/* ==========================================================================
   Milkinmelanin — 06. Contacts page
   Only what the shared system does not already cover: the offset write-to-us
   plate with its form, the reply-order rows, the FAQ hairline grid and the
   two-column ink note. Colours, type and motion all come from the tokens.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page head — one accented word in the H1, matching the homepage voice
   -------------------------------------------------------------------------- */
.pagehead__title em {
  font-style: normal;
  color: var(--clay-600);
}

/* --------------------------------------------------------------------------
   Aside media + sidecard extras (the shared .frame needs an intrinsic ratio
   here, and the sidecard gains an icon and a body copy line)
   -------------------------------------------------------------------------- */
.contact-media { margin-bottom: clamp(1.2rem, 3vw, 2rem); }
/* portrait ratio: the supplied photograph is vertical, and a 5:4 box would crop
   away most of the scene (baby on the floor, plants, window light) */
.contact-media .frame__media { aspect-ratio: 3 / 4; }
.contact-media .frame__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidecard__icon {
  width: 34px;
  height: 34px;
  margin-bottom: 0.75rem;
  color: var(--cocoa-600);
}
.sidecard__text {
  font-size: var(--t-sm);
  line-height: 1.65;
  color: var(--text-soft);
  margin-bottom: 1.1rem;
}
.sidecard__list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: var(--t-sm);
  line-height: 1.55;
  color: var(--text-soft);
}
.sidecard__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 2px;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   The write-to-us plate: a flat offset plate, not a rounded template card.
   The plate is a hard, blur-free offset (same idea as .frame__plate) so the
   surface stays legible instead of being flooded with accent colour.
   -------------------------------------------------------------------------- */
.form-card {
  position: relative;
  padding: clamp(1.25rem, 3.4vw, 2.6rem);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  box-shadow: 12px 12px 0 0 var(--amber-500);
  transition: box-shadow var(--dur-slow) var(--ease-out);
}
.form-card:hover,
.form-card:focus-within { box-shadow: 18px 18px 0 0 var(--amber-500); }

/* asymmetric field grid: name left, mail wide right, topic under the name */
.form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(0.9rem, 2.4vw, 1.8rem);
  row-gap: 1.15rem;
}
.form-grid .field { margin-bottom: 0; }
.field--name { grid-column: span 5; }
.field--mail { grid-column: span 7; }
.field--topic { grid-column: span 5; }
.field--wide { grid-column: 1 / -1; }
.field--check {
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.7rem;
  padding-top: 0.3rem;
  border-top: 1px solid var(--line);
}

/* select: the shared sheet styles input/textarea only */
.field select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 0.85rem 2.7rem 0.85rem 1rem;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 7.5 10 13.5 16 7.5' fill='none' stroke='%237b452c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 15px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  font-family: var(--font-ui);
  font-size: var(--t-sm);
  cursor: pointer;
}
.field select:focus {
  outline: none;
  border-color: var(--cocoa-800);
  box-shadow: 0 0 0 3px rgba(189, 130, 66, 0.28);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }

.field__hint {
  font-family: var(--font-ui);
  font-size: var(--t-micro);
  line-height: 1.55;
  color: var(--text-faint);
}

/* checkbox row: keep the shared label, drop its uppercase micro-caps voice */
.field--check input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  padding: 0;
  accent-color: var(--cocoa-800);
  cursor: pointer;
}
.field__label--check {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: var(--t-xs);
  font-weight: 600;
  line-height: 1.55;
  color: var(--text-soft);
}

.form-foot {
  margin-top: clamp(1.2rem, 3vw, 1.7rem);
  padding-top: clamp(1rem, 2.6vw, 1.4rem);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.6rem;
}
.form-foot__alt {
  font-family: var(--font-ui);
  font-size: var(--t-xs);
  color: var(--text-faint);
}

.form-note {
  margin-top: 1.1rem;
  padding: 0.9rem 1.1rem;
  background: rgba(189, 130, 66, 0.14);
  border-left: 3px solid var(--amber-500);
  font-family: var(--font-ui);
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--text-soft);
}
.form-note[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Reply order — numbered hairline rows
   -------------------------------------------------------------------------- */
.steps { border-top: 1px solid var(--line-strong); }
.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(0.9rem, 2.4vw, 1.7rem);
  padding-block: clamp(1.05rem, 2.8vw, 1.6rem);
  border-bottom: 1px solid var(--line);
}
.step__num {
  font-family: var(--font-ui);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding-top: 0.3rem;
}
.step__title {
  font-size: var(--t-md);
  margin-bottom: 0.35rem;
}
.step__text {
  font-size: var(--t-sm);
  line-height: 1.66;
  color: var(--text-soft);
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   Ink note band
   -------------------------------------------------------------------------- */
.med__title {
  font-size: var(--t-xxl);
  margin-block: 0.9rem clamp(1.4rem, 3.4vw, 2.2rem);
  max-width: 24ch;
}
.med__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 3.6vw, 2.8rem);
  align-items: start;
}
.note--onDeep {
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
  background: rgba(248, 237, 217, 0.05);
  border-color: var(--line-on-deep);
  border-left-color: var(--amber-500);
  color: var(--text-on-deep-soft);
}

/* --------------------------------------------------------------------------
   FAQ — hairline grid, lead question spans the full measure
   -------------------------------------------------------------------------- */
.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.faq__item {
  background: var(--surface);
  padding: clamp(1.05rem, 2.6vw, 1.7rem);
}
.faq__item--lead { grid-column: 1 / -1; }
/* six answers: lead + two pairs + a closing full-width row, so the hairline
   grid never leaves an empty cell showing through as a solid block */
.faq__item:last-child { grid-column: 1 / -1; }
.faq__num {
  font-family: var(--font-ui);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.faq__q {
  font-size: var(--t-md);
  margin-bottom: 0.45rem;
}
.faq__item--lead .faq__q { font-size: var(--t-lg); max-width: 30ch; }
.faq__a {
  font-size: var(--t-sm);
  line-height: 1.7;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .field--name,
  .field--mail,
  .field--topic,
  .field--wide,
  .field--check { grid-column: 1 / -1; }
  .med__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .faq { grid-template-columns: 1fr; }
  .form-card { box-shadow: 7px 7px 0 0 var(--amber-500); }
  .form-card:hover,
  .form-card:focus-within { box-shadow: 10px 10px 0 0 var(--amber-500); }
}

@media (max-width: 420px) {
  .form-card { padding: 1.1rem 1rem; }
  .form-card,
  .form-card:hover,
  .form-card:focus-within { box-shadow: 5px 5px 0 0 var(--amber-500); }
}
