/* hall.online — landing. Style: Ornament (dark), neutral binding.
   The content is the only light in the room; one lit control; everything else is matte type. */

@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/InterTight.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/EBGaramond-Italic.woff2) format("woff2"); }

:root {
  --ground: #070707;
  --surface-1: #111110;
  --surface-2: #191918;
  --surface-3: #232321;
  --ink: #f2f1ec;
  --ink-2: #c2c1ba;
  --ink-3: #94938c;
  --on-ink: #070707;
  --light: 243, 242, 238;

  --accent-statement: #ff5a5f;   /* marks only */
  --accent-question: #f2d35e;    /* marks only */

  --r-frame: 20px;
  --r-key: 16px;
  --hit: 44px;

  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ask: "EB Garamond", "Iowan Old Style", Georgia, serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-press: 140ms;
  --dur-ui: 200ms;
  --dur-room: 420ms;

  --top: 64px;
  --panel: clamp(340px, 28vw, 420px);
  --inset: clamp(28px, 5.2vw, 76px);   /* where the hero's text starts inside the frame */
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--ground); color: var(--ink);
  font: 400 16px/1.4 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}
h1, h2, p, dl, dd, dt { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
svg { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nb { white-space: nowrap; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ── top bar: the mark, alone. The name is the address ── */
.top { height: var(--top); flex: none; display: flex; align-items: center; padding: 0 28px; }
.brand { font-weight: 600; font-size: 25px; line-height: 1; letter-spacing: -0.035em; color: var(--ink); white-space: nowrap; }
.brand span { font-weight: 400; opacity: 0.62; }

/* ── the room ── */
.room { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) var(--panel); min-height: 0; padding-bottom: 36px; }
.stage { min-width: 0; padding: 4px 32px 0 28px; display: flex; flex-direction: column; isolation: isolate; }

/* the content frame: the one lit surface */
.frame {
  position: relative; flex: 1; min-height: 380px; display: flex; align-items: flex-end;
  border-radius: var(--r-frame);
  background:
    radial-gradient(90% 70% at 22% 0%, rgba(var(--light), 0.075) 0%, rgba(var(--light), 0) 70%),
    var(--surface-1);
  box-shadow: inset 0 0 0 1px rgba(var(--light), 0.06);
}
.frame::before {   /* the light the content throws into the room */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  box-shadow: 0 0 110px 6px rgba(var(--light), 0.07), 0 40px 170px 30px rgba(var(--light), 0.06);
}
.hero { padding: 120px var(--inset) clamp(36px, 4.4vw, 64px); max-width: 100%; }

.question {
  font: italic 400 clamp(64px, 8.6vw, 148px)/0.94 var(--ask); letter-spacing: -0.022em;
  color: var(--ink); margin: 0 0 0.3em -0.05em;
}
.qm { display: inline-block; width: 0.42em; height: 0.74em; margin-left: 0.06em; vertical-align: -0.04em; fill: none; stroke: var(--accent-question); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }

.lead { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.25; letter-spacing: -0.015em; color: var(--ink); }
.mark { position: relative; white-space: nowrap; }
.ul { position: absolute; left: -2%; right: -2%; bottom: -0.2em; width: 104%; height: 0.22em; fill: var(--accent-statement); }

/* under the frame: the one lit control */
.under { padding: 28px var(--inset) 0; }
.lit {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 32px; border: 0; border-radius: var(--r-key);
  background: var(--ink); color: var(--on-ink);
  font-weight: 600; font-size: 18px; letter-spacing: -0.01em; cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-ui) var(--ease-out);
}
.lit:hover { background: #ffffff; }
.lit:active { transform: scale(0.97); }
.lit[aria-busy="true"] { opacity: 0.7; }
.lit--wide { width: 100%; }
.pin { display: none; }

/* ── the side panel: the host's two voices ── */
.panel { min-width: 0; padding: 20px 32px 0 12px; display: flex; flex-direction: column; }
.pair { width: auto; height: 60px; aspect-ratio: 117 / 100; align-self: flex-start; margin-bottom: 34px; fill: var(--ink-3); color: var(--ink-3); overflow: visible; }

.talk { display: grid; gap: 24px; }
.turn { display: grid; gap: 7px; }
.talk dt, .talk dd { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.talk dt { font: italic 400 25px/1.12 var(--ask); letter-spacing: -0.01em; color: var(--ink); }
.talk dd { font-size: 17px; line-height: 1.35; color: var(--ink-2); }
.who { width: 12px; height: 15px; margin-top: 6px; justify-self: center; fill: var(--ink-3); color: var(--ink-3); overflow: visible; }
.who--tell { width: 3.4px; height: 15px; margin-top: 4px; }

/* ── the dialog: the room is held, the product asks ── */
.ask {
  width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 0; border: 0; border-radius: 22px;
  background: var(--surface-2); color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(var(--light), 0.07), 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.ask:focus-visible { outline: none; }
.ask::backdrop { background: rgba(7, 7, 7, 0.9); }
.ask[open] { animation: ask-in 220ms var(--ease-out); }
.ask[open]::backdrop { animation: veil-in var(--dur-room) var(--ease-out); }
@keyframes ask-in { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes veil-in { from { opacity: 0; } to { opacity: 1; } }

.ask form { position: relative; padding: 28px; }
.key { display: grid; place-items: center; width: var(--hit); height: var(--hit); border: 0; border-radius: 12px; background: none; cursor: pointer; transition: background-color var(--dur-ui) var(--ease-out); }
.key:hover { background: rgba(var(--light), 0.1); }
.key svg { width: 24px; height: 24px; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; }
.close { position: absolute; top: 10px; right: 10px; }

.ask__title { font: italic 400 34px/1.04 var(--ask); letter-spacing: -0.015em; margin: 6px 44px 26px 0; }

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; color: var(--ink-2); }
.field i { font-style: normal; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 13px 14px; border: 0; border-radius: 12px; resize: none;
  background: var(--surface-3); color: var(--ink); font-size: 17px; line-height: 1.35;
  box-shadow: inset 0 0 0 1px rgba(var(--light), 0.06);
  transition: box-shadow var(--dur-ui) var(--ease-out);
}
.field input:focus-visible, .field textarea:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--ink-2); }
.err { font-size: 14px; font-weight: 500; color: var(--ink); }
#send-err { margin: 0 0 14px; }
.ask .lit--wide { margin-top: 8px; }

.ask__done { display: grid; grid-template-columns: 6px minmax(0, 1fr); column-gap: 18px; align-items: start; padding: 22px 44px 10px 2px; }
.done__who { width: 6px; height: 28px; margin-top: 4px; fill: var(--ink); color: var(--ink); }
.done__line { font-size: 24px; line-height: 1.25; letter-spacing: -0.015em; }
.done__line:focus { outline: none; }

/* the one line of small print under Send */
.fine { margin-top: 14px; font-size: 13px; color: var(--ink-3); text-align: center; }
.fine a, .page a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 0.18em; }
.fine a:hover, .page a:hover { color: var(--ink); }

/* ── a plain text page (privacy) ── */
a.brand { text-decoration: none; display: inline-flex; align-items: center; min-height: var(--hit); border-radius: 8px; }
.page { width: min(680px, 100%); padding: 56px 28px 96px; }
.page h1 { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.page .date { margin-top: 10px; color: var(--ink-3); font-size: 15px; }
.page h2 { margin: 36px 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.page p { font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.page p + p { margin-top: 12px; }
.page .date + p { margin-top: 28px; color: var(--ink); }

/* ── Stack: narrower than 900 px ── */
@media (max-width: 899px) {
  :root { --inset: 22px; }
  .top { padding: 0 12px; }
  .room { grid-template-columns: minmax(0, 1fr); align-content: start; padding-bottom: calc(112px + var(--safe-b)); }
  .stage { padding: 0 12px; }
  .frame { min-height: 0; border-radius: 16px; }
  .hero { padding: 88px var(--inset) 30px; }
  .question { font-size: clamp(52px, 15.5vw, 96px); }
  .under { padding: 16px 0 0; }
  .under .lit { width: 100%; }
  .panel { padding: 44px 34px 0; }
  .pair { height: 52px; margin-bottom: 32px; }
  .pin {
    display: inline-flex; position: fixed; z-index: 5; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b));
    box-shadow: 0 0 0 12px var(--ground), 0 -18px 30px 12px var(--ground);
  }
  .ask { margin: 12px auto auto; }
}

/* ── short and wide (a phone on its side) ── */
@media (max-height: 520px) and (min-width: 900px) {
  .frame { min-height: 0; }
  .hero { padding-top: 32px; }
  .question { font-size: clamp(48px, 13vh, 76px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
  .lit:active { transform: none; }
}
@media (prefers-contrast: more) {
  .frame, .ask, .field input, .field textarea { box-shadow: inset 0 0 0 1px var(--ink); }
  .talk dd { color: var(--ink); }
}
