:root {
  color-scheme: light;
  --paper: #f4f1eb;
  --ink: #20201e;
  --muted: #77736d;
  --line: #d8d2c8;
  --accent: #a84f36;
  --card: #fbfaf7;
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

button, a { color: inherit; }
button { font: inherit; }

.page-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding: 30px clamp(22px, 6vw, 88px) 24px;
}

.topbar, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.08em;
  text-decoration: none;
}

.wordmark span { color: var(--accent); }

.language-switch { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.language-option { padding: 6px 2px; border: 0; background: none; color: inherit; cursor: pointer; }
.language-option[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.language-option:focus-visible, .choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.language-divider { color: #c1bbb2; }

.hero {
  display: flex;
  width: min(100%, 980px);
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 76px 0 96px;
  text-align: center;
}

.eyebrow { margin: 0 0 24px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .22em; }
h1 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(48px, 8vw, 92px); font-weight: 500; letter-spacing: -.055em; line-height: 1.05; }
.intro { margin: 21px 0 0; color: var(--muted); font-size: clamp(15px, 2vw, 18px); }

.choices {
  display: flex;
  width: min(100%, 720px);
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 48px);
  margin-top: clamp(52px, 9vh, 92px);
}

.choice {
  display: flex;
  min-width: 0;
  width: min(42%, 270px);
  min-height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 23px 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--card);
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.choice:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--accent); }
.choice:disabled { cursor: wait; opacity: .68; }
.choice-label { font-family: "Playfair Display", Georgia, serif; font-size: clamp(19px, 3vw, 26px); }
.choice-count { color: var(--accent); font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.or { color: var(--muted); font-family: "Playfair Display", Georgia, serif; font-size: 18px; font-style: italic; }
.status { min-height: 22px; margin: 27px 0 0; color: var(--muted); font-size: 13px; }
.status[data-state="error"] { color: #a33b2e; }
.status[data-state="success"] { color: #45694c; }

.footer { justify-content: center; gap: 9px; color: var(--muted); font-size: 11px; letter-spacing: .025em; }
.footer-dot { color: var(--accent); }

@media (max-width: 560px) {
  .page-shell { padding: 23px 20px 20px; }
  .hero { padding: 66px 0 72px; }
  .choices { flex-direction: column; gap: 15px; margin-top: 42px; }
  .choice { width: 100%; min-height: 104px; gap: 9px; }
  .or { line-height: 1; }
  .footer { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
