:root {
  --bg: #fff7ef;
  --surface: #ffffff;
  --surface-2: #fff0e3;
  --text: #1f1a24;
  --muted: #6d6175;
  --line: #f0dccb;
  --brand: #e5383b;
  --brand-hover: #c92a2d;
  --brand-ink: #ffffff;
  --brand-soft: #ffe3df;
  --accent: #ffb703;
  --accent-soft: #fff1c9;
  --ok: #1a936f;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(31, 26, 36, .06), 0 10px 30px rgba(31, 26, 36, .08);
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14111a;
    --surface: #1e1a26;
    --surface-2: #272031;
    --text: #f6f0ea;
    --muted: #b6abc0;
    --line: #362e42;
    --brand: #ff5a5f;
    --brand-hover: #ff7579;
    --brand-ink: #1a0f12;
    --brand-soft: #3b2129;
    --accent: #ffc94d;
    --accent-soft: #3a3020;
    --ok: #3ccf9f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.logo svg { width: 32px; height: 32px; flex: none; }
.logo b { color: var(--brand); font-weight: 800; }
.nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; text-decoration: none; font-size: 15px; font-weight: 600; padding: 7px 12px; border-radius: 999px; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-2); color: var(--text); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

.disclosure { background: var(--accent-soft); border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--text); }
.disclosure .wrap { padding-top: 7px; padding-bottom: 7px; }

/* Hero */
.hero { padding-top: 40px; padding-bottom: 16px; text-align: center; }
.hero h1 { font-size: clamp(32px, 6vw, 54px); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 14px; font-weight: 850; }
.hero h1 .hl { background: linear-gradient(transparent 62%, var(--accent-soft) 62%); padding: 0 .1em; }
.hero p.lead { font-size: clamp(17px, 2.3vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto 8px; }
.countdowns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.countdowns li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14.5px; font-weight: 650; }

/* Quiz */
.quiz { text-align: left; scroll-margin-top: 84px; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); padding: clamp(18px, 4vw, 32px); margin: 24px auto 8px; max-width: 860px; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.quiz-step { font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.progress { flex: 1; max-width: 220px; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; width: 33%; background: var(--brand); border-radius: 99px; transition: width .3s ease; }
.quiz h2 { font-size: clamp(24px, 4vw, 32px); letter-spacing: -.025em; line-height: 1.15; margin: 4px 0 18px; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .options { grid-template-columns: repeat(3, minmax(0, 1fr)); } .options.tags { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.opt { display: flex; align-items: center; gap: 10px; min-height: 58px; width: 100%; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-weight: 650; font-size: 16px; text-align: left; cursor: pointer; transition: border-color .15s, transform .15s, background .15s; }
.opt .em { font-size: 26px; line-height: 1; flex: none; }
.opt:hover { border-color: var(--brand); transform: translateY(-1px); }
.opt[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 18px; }
.link-btn { background: none; border: 0; padding: 8px 4px; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 14px; border: 0; background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 750; font-size: 16px; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn.ghost { background: var(--surface-2); color: var(--text); }
.btn.ghost:hover { background: var(--line); }
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.results-head h2 { margin-bottom: 6px; }
.results-note { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }

/* Cards */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); position: relative; }
.card-top { display: flex; gap: 14px; align-items: flex-start; }
.card .em { flex: none; width: 54px; height: 54px; border-radius: 16px; background: var(--surface-2); display: grid; place-items: center; font-size: 30px; }
.card h3 { font-size: 18.5px; line-height: 1.25; margin: 2px 0 4px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.badge { font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--text); }
.badge.soft { background: var(--surface-2); color: var(--muted); }
.card .btn { width: 100%; }
.num { position: absolute; top: -10px; left: -6px; background: var(--text); color: var(--bg); font-size: 13px; font-weight: 800; border-radius: 99px; min-width: 28px; height: 28px; display: grid; place-items: center; padding: 0 7px; }
ol.list { list-style: none; padding: 0; margin: 0; }

/* Sections */
section { padding-top: 26px; padding-bottom: 26px; }
.section-title { font-size: clamp(22px, 3.4vw, 30px); letter-spacing: -.025em; margin: 0 0 6px; }
.section-sub { color: var(--muted); margin: 0 0 18px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .15s, border-color .15s; }
.tile:hover { transform: translateY(-2px); border-color: var(--brand); }
.tile .em { font-size: 26px; }
.tile strong { font-size: 16px; line-height: 1.2; }
.tile small { color: var(--muted); font-size: 13.5px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: var(--text); color: var(--bg); border-radius: 22px; padding: 22px; }
.cta h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.02em; }
.cta p { margin: 0; opacity: .8; }
.cta .btn { background: var(--accent); color: #1f1a24; }

/* Article pages */
.page-head { padding-top: 34px; padding-bottom: 6px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-head h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 12px; }
.page-head .intro { font-size: 18px; color: var(--muted); max-width: 760px; margin: 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
.faq summary { font-weight: 750; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--text); }

/* Footer */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: var(--surface); padding: 30px 0 40px; font-size: 14.5px; color: var(--muted); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 16px; padding: 0; list-style: none; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--text); }
.site-footer .legal { font-size: 13.5px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(120px); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 99px; font-weight: 700; transition: transform .25s ease; z-index: 20; }
.toast.show { transform: translateX(-50%) translateY(0); }
