/* CONTACT — "A note to Nidhi" (unique skeleton)
   A single floating Linen-Veil letter-card on a dark Aubergine room,
   with letterhead fleuron + underline-only ruled inputs + a short
   "other ways" ledger. The shortest, quietest spread. */

.note-room {
  display: flex;
  flex-direction: column;
  padding-block: clamp(6.5rem, 15vh, 8.5rem) clamp(3rem, 8vh, 5rem);
}

.note-room__num { display: none; }

/* single centered card — no gutter thread (it crowded the card) */
.note-sheet { position: relative; }
.note-tick { display: none; }

.note-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.8rem, 5vw, 2.6rem);
}

/* ---- The floating letter-card ------------------------------------ */
.card {
  position: relative;
  width: 100%;
  max-width: 36rem;
  background: var(--linen);
  color: var(--plum);
  border: 1px solid var(--hair);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 6vw, 3rem) clamp(1.4rem, 6vw, 3rem) clamp(1.8rem, 6vw, 2.6rem);
  text-align: center;
}
/* hairline mat-like inner frame, paper feel */
.card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(155, 144, 152, .28);
  border-radius: calc(var(--r) - 6px);
  pointer-events: none;
}

/* the card is a light island inside the dark room — keep its text dark
   (overrides .room h1/h2/h3 -> porcelain) */
.card h1, .card h2, .card h3 { color: var(--plum); }

.card__fleuron {
  width: 34px; height: 34px;
  margin: 0 auto .9rem;
  display: block;
}
.card__eyebrow {
  color: var(--mauve);
  justify-content: center;
}
.card__salutation {
  font-size: clamp(2rem, 9vw, 2.8rem);
  font-style: italic;
  font-weight: 560;
  color: var(--plum);
  margin-top: .5rem;
  line-height: 1.05;
}
.card__intro {
  margin: .8rem auto 0;
  max-width: 32ch;
  font-size: var(--t-small);
  color: var(--pencil);
  line-height: 1.6;
}

/* ---- The form (left-aligned within the card) --------------------- */
.note-form {
  margin-top: clamp(1.4rem, 5vw, 2rem);
  text-align: left;
  display: grid;
  gap: clamp(1.1rem, 4vw, 1.5rem);
}

/* underline-only ruled fields */
.rule-field { display: grid; gap: .3rem; }
.rule-field label {
  font-family: var(--ui);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pencil);
}
.rule-field input {
  font: inherit;
  font-size: 1rem;
  color: var(--plum);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--hair);
  padding: .5rem .1rem;
  width: 100%;
  transition: border-color .3s var(--ease);
}
.rule-field input::placeholder { color: var(--pencil-soft); }
.rule-field input:focus { outline: none; border-color: var(--gold); }

/* ruled-paper textarea */
.rule-field--note textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--plum);
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(2rem - 1.5px),
      var(--hair) calc(2rem - 1.5px),
      var(--hair) 2rem
    );
  line-height: 2rem;
  border: 0;
  width: 100%;
  min-height: 6rem;
  padding: 0 .1rem;
  resize: vertical;
}
.rule-field--note textarea::placeholder { color: var(--pencil-soft); }
.rule-field--note textarea:focus { outline: none; }
.rule-field--note:focus-within label { color: var(--mauve); }

/* ---- chip selector (wayfinding motif) ---------------------------- */
.chip-set { border: 0; padding: 0; margin: 0; display: grid; gap: .6rem; }
.chip-set legend { padding: 0; color: var(--pencil); }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--ui);
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--plum);
  padding: .5rem .9rem;
  min-height: 44px;
  border: 1px solid var(--hair);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip__dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex: none; opacity: .45;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.chip:hover { border-color: var(--pencil); }
.chip:has(input:checked) {
  border-color: var(--mauve);
  background: rgba(123, 94, 122, .08);
}
.chip:has(input:checked) .chip__dot { opacity: 1; transform: scale(1.25); }
.chip:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }

.note-form__send {
  justify-self: start;
  margin-top: .3rem;
}

/* ---- OTHER WAYS ledger (marginalia on the dark room) ------------- */
.ledger {
  width: 100%;
  max-width: 36rem;
  text-align: center;
}
.ledger__cap {
  color: var(--gold);
  justify-content: center;
  margin-bottom: .9rem;
}
.ledger__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .7rem clamp(1rem, 4vw, 1.8rem);
  font-size: var(--t-small);
}
.ledger__list li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.ledger__glyph {
  color: var(--gold);
  font-size: .95rem;
  line-height: 1;
}
.ledger__plain { color: var(--pencil-soft); }
.note-room .ledger .ulink { color: var(--porcelain); }

/* separators between ledger items on wider screens */
@media (min-width: 560px) {
  .ledger__list li:not(:last-child)::after {
    content: "·";
    color: rgba(245, 239, 234, .4);
    margin-left: clamp(1rem, 4vw, 1.8rem);
    margin-right: calc(-1 * clamp(1rem, 4vw, 1.8rem) + .5rem);
  }
}

/* ---- Desktop: keep it close to one viewport --------------------- */
@media (min-width: 760px) {
  .card { padding: clamp(2.2rem, 4vw, 3.2rem) clamp(2.4rem, 4vw, 3.4rem); }
}
