:root {
  color-scheme: light;
  --ink: #4a3427;
  --muted: #7b685d;
  --line: #eadbd2;
  --paper: #fffaf8;
  --soft: #f9edf0;
  --rose: #f7dfe6;
  --blue: #e7f2f6;
  --gold: #9b732b;
  --gold-soft: #d7bd82;
  --brown: #5a3a2b;
  --leaf: #82906d;
  --clay: #9b732b;
  --shadow: 0 18px 40px rgba(90, 58, 43, 0.13);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg, var(--blue), var(--rose) 48%, var(--paper));
  color: var(--ink);
}
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; width: 100%; }
.app-shell { width: min(100%, 560px); min-height: 100vh; margin: 0 auto; background: linear-gradient(180deg, #fffdfb, var(--paper)); }
.screen { display: none; min-height: 100vh; padding: 22px 18px 28px; }
.screen.is-active { display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--muted); font-size: 0.9rem; font-weight: 700; letter-spacing: 0; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--gold); font-family: Georgia, serif; font-size: 0.82rem; }
.hero-image, .result-image { overflow: hidden; border-radius: 8px; background: linear-gradient(135deg, var(--rose), var(--blue)); box-shadow: var(--shadow); }
.hero-image { aspect-ratio: 4 / 5; max-height: 48vh; }
.hero-image img, .result-image img { height: 100%; object-fit: cover; }
.intro { padding: 28px 2px 22px; }
.eyebrow { margin: 0 0 10px; color: var(--gold); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: 0; line-height: 1.05; }
h1 { max-width: 10ch; font-size: clamp(2.45rem, 14vw, 4.8rem); }
h2 { font-size: clamp(2rem, 10vw, 3.7rem); }
p { color: var(--muted); font-size: 1rem; line-height: 1.65; }
.primary-button, .secondary-button, .ghost-button, .text-button { min-height: 52px; border: 0; border-radius: 999px; font: inherit; font-weight: 800; cursor: pointer; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 0 22px; text-decoration: none; }
.primary-button { margin-top: auto; background: var(--ink); color: #fffdf9; }
.secondary-button { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.ghost-button, .text-button { background: transparent; color: var(--muted); }
.quiz-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ghost-button { min-width: 72px; padding: 0 4px; text-align: left; }
.progress-text { color: var(--muted); font-weight: 800; }
.progress-track { height: 7px; margin: 12px 0 34px; overflow: hidden; border-radius: 99px; background: linear-gradient(135deg, var(--rose), var(--blue)); }
.progress-track span { display: block; width: 20%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--rose), var(--blue)); transition: width 240ms ease; }
.question-copy { margin-bottom: 22px; }
.choice-grid { display: grid; grid-template-columns: 1fr; gap: 14px; padding-bottom: 12px; }
.choice-card { display: grid; grid-template-columns: 42% 1fr; min-height: 132px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fffdfb; color: var(--ink); cursor: pointer; box-shadow: 0 10px 24px rgba(70, 45, 28, 0.07); transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.choice-card:active { transform: scale(0.985); }
.choice-card.is-selected { border-color: var(--gold); box-shadow: 0 14px 28px rgba(184, 111, 89, 0.2); }
.choice-card img { height: 100%; object-fit: cover; }
.choice-card span { display: flex; align-items: center; min-width: 0; padding: 18px; font-size: 1.08rem; font-weight: 800; line-height: 1.25; }
.result-card { display: flex; flex: 1; flex-direction: column; gap: 18px; padding-top: 18px; }
.result-card h2 { font-size: clamp(2rem, 9vw, 3.4rem); }
.result-card p { margin: 0; }
.result-image { aspect-ratio: 1 / 1; margin: 8px 0 2px; }
.result-actions { display: grid; gap: 10px; margin-top: auto; }
.text-button { min-height: 44px; }
@media (min-width: 520px) {
  body { padding: 24px 0; }
  .app-shell { min-height: calc(100vh - 48px); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
  .screen { min-height: calc(100vh - 48px); padding: 28px; }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-card { grid-template-columns: 1fr; min-height: auto; }
  .choice-card img { aspect-ratio: 4 / 3; }
}
