/*
 * NOWON Band - HTML template
 * Contact page: who do you need, write to us, find us, follow along.
 *
 * TABLE OF CONTENTS
 *  01. Who do you need
 *  02. Write to us: form
 *  03. Write to us: receipt and links
 *  04. Find us
 *  05. Follow along
 *  06. Newsletter
 *  07. Media queries
 */

/* ==========================================================================
   01. Who do you need
   ========================================================================== */
.ct-whos__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.ct-whos__grid > li {
  display: flex;
}

.ct-who {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 230px;
  padding: 22px;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  color: var(--cream);
  box-shadow: inset 0 0 0 1.5px rgba(245, 237, 216, .1);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, transform .3s var(--spring);
}

.ct-who:hover,
.ct-who:focus-visible {
  box-shadow: inset 0 0 0 1.5px var(--acc);
  transform: translateY(-6px);
}

.ct-who[aria-pressed="true"] {
  background: var(--acc);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--acc);
}

.ct-who__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
}

.ct-who__title {
  margin-top: 16px;
  font-weight: 900;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1;
  letter-spacing: -.02em;
}

.ct-who__note {
  margin: 8px 0 14px;
  font-size: 13px;
  line-height: 1.5;
  opacity: .85;
}

.ct-who__foot {
  display: block;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(245, 237, 216, .14);
}

.ct-who[aria-pressed="true"] .ct-who__foot {
  border-top-color: rgba(18, 17, 16, .25);
}

.ct-who__person {
  display: block;
  font-weight: 800;
  font-size: 14px;
}

.ct-who__mail {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  word-break: break-all;
  opacity: .85;
}

/* ==========================================================================
   02. Write to us: form
   ========================================================================== */
.ct-write__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 30px clamp(30px, 4vw, 70px);
}

.ct-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(22px, 2.6vw, 36px);
  border-radius: 18px;
  background: var(--surface);
}

.ct-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 18px;
}

.ct-form[hidden] {
  display: none;
}

.ct-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ct-group .field__label {
  display: block;
  margin-bottom: 8px;
  padding: 0;
}

.ct-chips {
  gap: 8px;
}

.ct-chip {
  min-height: 42px;
  padding: 0 16px;
  box-shadow: inset 0 0 0 1.5px rgba(245, 237, 216, .25);
  font-size: 10px;
  letter-spacing: .2em;
}

.ct-chip:has(:focus-visible) {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
}

.ct-form__grid {
  gap: 16px;
}

.ct-form .input,
.ct-form .textarea {
  border-radius: 12px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px rgba(245, 237, 216, .2);
}

.ct-form .input:focus,
.ct-form .textarea:focus {
  box-shadow: inset 0 0 0 1.5px var(--acc);
}

.ct-form .is-invalid .input,
.ct-form .is-invalid .textarea {
  box-shadow: inset 0 0 0 1.5px var(--error);
}

.ct-form .field[hidden] {
  display: none;
}

.ct-form__message {
  flex: 1;
}

.ct-form__msg {
  flex: 1;
  min-height: 160px;
  padding: 14px 18px;
}

.ct-form__send {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.ct-form__submit {
  height: 58px;
  padding: 0 32px;
  letter-spacing: .2em;
}

.ct-form__err {
  color: var(--error);
  font-size: 13px;
}

/* ==========================================================================
   03. Write to us: receipt and links
   ========================================================================== */
.ct-receipt {
  flex: 1;
  justify-content: center;
  gap: 0;
  min-height: 360px;
}

.ct-receipt__word {
  margin-top: 14px;
  font-size: clamp(56px, 7vw, 120px);
  line-height: .95;
}

.ct-receipt__word:focus {
  outline: none;
}

.ct-receipt__text {
  max-width: 560px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.ct-receipt__again {
  height: 50px;
  margin-top: 22px;
  padding: 0 22px;
  font-size: 11px;
  letter-spacing: .2em;
}

.ct-before {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.ct-before__list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.ct-before__item {
  display: flex;
  flex: 1;
}

.ct-before__link {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  color: var(--cream);
  box-shadow: inset 0 0 0 1.5px rgba(245, 237, 216, .14);
  transition: box-shadow .2s ease;
}

.ct-before__link:hover {
  color: var(--cream);
  box-shadow: inset 0 0 0 1.5px var(--acc);
}

.ct-before__text {
  display: block;
  min-width: 0;
}

.ct-before__title {
  display: block;
  font-weight: 800;
  font-size: 16px;
}

.ct-before__note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.ct-before__arrow {
  color: var(--acc);
  font-weight: 700;
  font-size: 18px;
  transition: transform .2s ease;
}

.ct-before__link:hover .ct-before__arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   04. Find us
   ========================================================================== */
.ct-find__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ct-place {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
}

/* A styled stand-in for a map: no third-party map is loaded. */
.ct-map {
  position: relative;
  min-height: 260px;
  background: var(--stripes), var(--surface);
}

.ct-map__pin {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 0 10px var(--acc-25);
}

.ct-map__tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  color: rgba(245, 237, 216, .45);
  font-family: var(--mono);
  font-size: 11px;
}

.ct-place__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 24px;
}

.ct-place__label {
  color: var(--acc);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .25em;
}

.ct-place__city {
  margin-top: 10px;
  font-weight: 900;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.ct-place__addr {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
}

.ct-place__hours {
  margin: 12px 0 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
}

.ct-place__link {
  margin-top: auto;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .18em;
}

/* ==========================================================================
   05. Follow along
   ========================================================================== */
.ct-socials {
  border-top: 2px solid var(--cream);
}

.ct-social {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 30px;
  padding: 16px 14px;
  border-bottom: 1px solid rgba(245, 237, 216, .14);
  color: var(--cream);
  transition: background-color .25s ease, color .25s ease;
}

.ct-social:hover,
.ct-social:focus-visible {
  background: var(--acc);
  color: var(--ink);
}

.ct-social__name {
  min-width: 0;
  font-weight: 900;
  font-size: clamp(40px, 5vw, 84px);
  line-height: .95;
  letter-spacing: -.04em;
}

.ct-social__note {
  font-size: 15px;
  opacity: .85;
}

.ct-social__meta {
  display: block;
  text-align: right;
}

.ct-social__handle {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
}

.ct-social__count {
  display: block;
  margin-top: 4px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .18em;
}

/* ==========================================================================
   06. Newsletter
   ========================================================================== */
.ct-news {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 30px;
  margin-top: 24px;
  padding: 22px 26px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--acc);
}

.ct-news__label {
  color: var(--acc);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .25em;
}

.ct-news__title {
  margin-top: 6px;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.3;
}

.ct-news__form {
  display: flex;
  flex: 1 1 380px;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 560px;
}

.ct-news__form[hidden] {
  display: none;
}

.ct-news__field {
  flex: 1 1 220px;
}

.ct-news__input {
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px rgba(245, 237, 216, .25);
}

.ct-news__btn {
  height: 54px;
  padding: 0 26px;
  font-size: 11px;
  letter-spacing: .2em;
}

.ct-news__done {
  color: var(--acc);
  font-weight: 900;
  font-size: 24px;
}

/* ==========================================================================
   07. Media queries
   ========================================================================== */
@media (max-width: 1199px) {
  .ct-whos__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ct-find__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1099px) {
  .ct-write__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 899px) {
  .ct-social {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ct-social__note {
    display: none;
  }
}

@media (max-width: 699px) {
  .ct-form__grid,
  .ct-place {
    grid-template-columns: minmax(0, 1fr);
  }

  .ct-map {
    min-height: 200px;
  }
}

@media (max-width: 639px) {
  .ct-whos__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ct-who {
    min-height: 0;
  }

  .ct-social {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .ct-social__meta {
    text-align: left;
  }

  .ct-news {
    padding: 22px;
  }

  .ct-news__form {
    flex-basis: 100%;
  }
}

@media (max-width: 399px) {
  .ct-chip {
    padding: 0 12px;
    letter-spacing: .12em;
  }

  .ct-form__submit,
  .ct-news__btn {
    width: 100%;
    padding: 0 18px;
  }
}
