/* Hallmark · shape: request desk (form-first, one screen) · genre: editorial · theme: custom (Melz Grillz brand: black, white, gold, Akira Expanded; layout after the icyortho.co request page) · job: book · idea: "a school or event requests Dr. Melz for 2027 in one screen" · vibe: "black and gold, loud headline, form first"
 * paper: oklch(14% 0 0) · accent: oklch(77% 0.13 86) · display: Akira Expanded · body: Helvetica Neue · hero: the headline and the request form side by side, no scroll · nav: none for now (logo bar to come) · footer: one line · imagery: photographs (the client's own, four school stops, small) · signature: the whole request fits on one screen
 * axes: black/expanded-sans/gold · posture: split · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P2 H2 E2 S2 R2 V1 · weakest: V (photos are small), on purpose: Vic asked for the form to lead */
/* waive: 58 words on one screen, Vic asked for the whole request (all fields and Ariel's required note) on one screen; the bio and helper lines were cut to the minimum */
/* waive: display face Akira Expanded is the client's own brand face (melzgrillz.co), used as given */
@import url("./tokens.css");
@import url("./base.css");

@font-face {
  font-family: "Akira Expanded";
  src: url("fonts/akira-expanded.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --container: 1240px;
  --radius-card: 10px;
  --radius-field: 8px;
  --field-h: 44px;
}

body {
  font-size: 1rem;
  background-color: var(--color-paper);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
h1, h2 { font-weight: 800; letter-spacing: var(--tracking-display); text-transform: uppercase; line-height: 1.02; }


/* page: intro left, form right, one screen */
.page {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: var(--space-2xl);
  align-items: center;
  padding-block: var(--space-xl);
}

.intro h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
.intro .lead { font-size: var(--text-sm); color: var(--color-ink-2); margin: var(--space-sm) 0 0; max-width: 46ch; }
.bio { color: var(--color-ink-2); max-width: 46ch; }
.stops { margin: var(--space-xl) 0 0; }
/* the stop photos: 1.75x the old four-across size, in a row that scrolls sideways */
.stops ul {
  --thumb: calc((100% - 3 * var(--space-xs)) / 4 * 1.75);
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: var(--space-xs);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.stops ul::-webkit-scrollbar { display: none; }
.stops li { flex: 0 0 var(--thumb); scroll-snap-align: start; }
.stops ul:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.stops img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; border: 1px solid var(--color-rule); }
.stops figcaption { font-size: var(--text-sm); color: var(--color-muted); margin-top: var(--space-xs); }
.note { font-size: var(--text-sm); color: var(--color-muted); margin-top: var(--space-lg); max-width: 48ch; }

/* form card */
.card {
  background: var(--color-paper-2);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-lg); flex-wrap: wrap; }
.card h2 { font-size: var(--text-xl); }
.muted, .opt, .fine { color: var(--color-muted); }
.muted, .fine { font-size: var(--text-sm); }
.opt { font-weight: 400; }
.req { color: var(--color-accent); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md) var(--space-lg); }
.span2 { grid-column: 1 / -1; }
.field { display: grid; gap: var(--space-xs); margin: 0; padding: 0; border: 0; min-width: 0; align-content: start; }
.field > label, legend { font-weight: 700; font-size: var(--text-sm); padding: 0; }
legend { margin-bottom: var(--space-xs); }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select {
  width: 100%; height: var(--field-h); padding: 0 var(--space-md);
  background: var(--color-paper); color: var(--color-ink);
  border: 1px solid var(--color-muted); border-radius: var(--radius-field);
  color-scheme: dark;
  transition: border-color var(--dur-micro) var(--ease-out);
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--color-ink-2) 50%), linear-gradient(135deg, var(--color-ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: var(--space-xl); }
input::placeholder { color: var(--color-muted); }
input:hover, select:hover { border-color: var(--color-ink-2); }
input:focus-visible, select:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; border-color: var(--color-focus); }
input:disabled, select:disabled { background: var(--color-paper-2); border-style: dashed; color: var(--color-muted); cursor: not-allowed; }

/* chips: checkboxes and radios as buttons */
.chips { display: grid; gap: var(--space-xs); }
.chips-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chips-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: var(--field-h); padding: 0 var(--space-sm);
  border: 1px solid var(--color-muted); border-radius: var(--radius-field);
  background: var(--color-paper); color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 700;
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.chip:hover span { border-color: var(--color-ink-2); color: var(--color-ink); }
.chip input:checked + span { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.chip input:disabled + span { border-style: dashed; color: var(--color-muted); cursor: not-allowed; }

/* actions */
.actions { display: flex; align-items: center; gap: var(--space-lg); margin-top: var(--space-lg); flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--space-xl);
  background: var(--color-accent); color: var(--color-accent-ink);
  border: 2px solid var(--color-accent); border-radius: var(--radius-field);
  font-family: var(--font-body); font-weight: 700; font-size: var(--text-md);
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.btn:hover { background: var(--color-paper); color: var(--color-accent); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 3px; }
.btn:disabled { background: var(--color-paper-3); border-color: var(--color-rule); color: var(--color-muted); cursor: progress; }
.form-error { margin-top: var(--space-md); color: var(--color-ink); background: color-mix(in oklab, var(--color-error) 35%, var(--color-paper)); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-field); font-size: var(--text-sm); }
.thanks { padding: var(--space-lg) 0; }
.thanks h2 { font-size: var(--text-xl); color: var(--color-accent); margin-bottom: var(--space-sm); }
.thanks:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.foot { border-top: 1px solid var(--color-rule); background: var(--color-paper); padding-block: var(--space-md); font-size: var(--text-xs); color: var(--color-muted); }

/* short screens: tighten so the form still fits */
@media (max-height: 960px) and (min-width: 60.01rem) {
  :root { --field-h: 42px; }
  .page { padding-block: var(--space-lg); }
  .card { padding: var(--space-lg) var(--space-xl); }
  .card-head { margin-bottom: var(--space-md); }
  .grid { gap: var(--space-sm) var(--space-lg); }
  .actions { margin-top: var(--space-md); }
  .stops { margin-top: var(--space-lg); }
  .foot { padding-block: var(--space-sm); }
}
@media (max-height: 820px) and (min-width: 60.01rem) {
  :root { --field-h: 38px; }
  .page { padding-block: var(--space-md); }
  .intro h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
  .note { margin-top: var(--space-md); }
}

@media (max-width: 60rem) {
  .page { grid-template-columns: minmax(0, 1fr); gap: 0; align-items: start; }
  .intro { display: contents; }
  .intro h1 { order: 1; }
  .intro .lead { order: 2; }
  .stops { order: 3; margin-top: var(--space-lg); }
  .card { order: 4; margin-top: var(--space-md); }
  .note { order: 6; }
}
@media (max-width: 40rem) {
  .grid, .chips-4 { grid-template-columns: minmax(0, 1fr); }
  .chips-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips-3 { grid-template-columns: minmax(0, 1fr); }
  .card { padding: var(--space-lg) var(--space-md); }
}
