/* The teaser's one stylesheet. Colours are the Clay palette of theme/tokens.ts, copied by hand
   (light first, dark under prefers-color-scheme); type is the system stack, as in the app. */
:root {
  --bg: #F3E9D8;
  --surface: #FFFDF8;
  --fg: #3A2A1E;
  --muted: #624E3E;
  --line: #E3D5BE;
  --strong-line: #8C7A66;
  --accent: #38532F;
  --accent-soft: #DCE8D3;
  --accent-mid: #B7CFA9;
  --on-action: #FFFDF8;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #21160E;
    --surface: #2D2017;
    --fg: #F3E9D8;
    --muted: #CDBFA9;
    --line: #3D2C20;
    --strong-line: #8C7A66;
    --accent: #B7CFA9;
    --accent-soft: #24361F;
    --accent-mid: #33422C;
    --on-action: #21160E;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.top, .one, .foot { width: min(960px, 100%); margin-left: auto; margin-right: auto; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: 0.06em; }
.beta {
  border: 1px solid var(--strong-line);
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.beta:hover { background: var(--surface); }

.one {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 24px 0 56px;
}
h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 14ch;
  text-wrap: balance;
}
.sub { margin: 0; font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 46ch; }
.sub.small { font-size: 17px; }
.lead { margin: 0; font-size: 21px; font-weight: 600; }

.answers { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.big {
  appearance: none;
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  background: transparent;
  border: 2px solid var(--fg);
  border-radius: 16px;
  min-height: 72px;
  padding: 0 32px;
  cursor: pointer;
  flex: 1 1 160px;
  max-width: 260px;
}
.big:hover { background: var(--surface); }
.big[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

.reveal {
  border-left: 3px solid var(--accent-mid);
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
  outline: none;
}
.reveal:focus-visible { outline: none; }
/* `display: flex` above would beat the browser's own `[hidden]` rule; the attribute wins here. */
.reveal[hidden] { display: none; }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 0 28px;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 480px) {
  .one { padding: 8px 0 40px; justify-content: flex-start; }
  .big { max-width: none; min-height: 64px; font-size: 20px; padding: 0 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 240ms ease-out; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
