:root {
  color-scheme: light;
  --paper: #f5f0e6;
  --card: #fffcf5;
  --ink: #203d32;
  --muted: #515b4e;
  --orange: #a8482e;
  --line: #dcd6c8;
  --heading: "Noto Serif TC", "Songti TC", "Noto Serif CJK TC", "PMingLiU", serif;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
h1, h2, p, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #ad4c30; outline-offset: 4px; }
.shell { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--heading); font-size: 1.26rem; font-weight: 800; letter-spacing: .09em; }
.brand-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff4d2; font: 1.25rem/1 system-ui, sans-serif; }
.nav-current { text-decoration: none; border: 1px solid #c9cabb; padding: 7px 14px; border-radius: 30px; font-size: .875rem; font-weight: 700; }
.nav-current:hover { background: #e7e9da; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); gap: 40px; align-items: center; padding-block: 64px 62px; }
.eyebrow { color: var(--orange); letter-spacing: .13em; font-size: .875rem; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.eyebrow > span { width: 7px; height: 7px; display: inline-block; background: #b75537; border-radius: 50%; flex-shrink: 0; }
.hero h1 { font-family: var(--heading); font-size: clamp(2rem, 4.1vw, 4rem); font-weight: 900; line-height: 1.25; letter-spacing: -.055em; margin-block: 20px 22px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.small-break { display: none; }
.lede { font-size: 1.125rem; color: #414e41; line-height: 1.85; }
.metadata { font-size: .875rem; margin-block: 18px; color: var(--muted); }
.metadata span { padding-inline: 5px; }
.primary { display: inline-flex; justify-content: center; align-items: center; border: 1px solid transparent; background: var(--ink); color: #fffdf5; border-radius: 6px; padding: 13px 24px; font-weight: 800; min-height: 48px; }
.primary:hover { background: #315748; }
.primary:disabled { cursor: default; background: #e0e3d9; color: #515b4e; }
.hero .primary { min-width: 156px; }
.postcard { position: relative; isolation: isolate; padding: 10px; background: #fff9e8; border: 1px solid #dfd5bf; border-radius: 3px; box-shadow: 0 14px 26px #483b2929; transform: rotate(1.7deg); }
.postcard img { display: block; width: 100%; height: auto; min-height: 270px; object-fit: cover; background: #d99a57; }
.postcard figcaption { position: absolute; inset: 10px; display: flex; justify-content: space-between; align-items: end; padding: clamp(10px, 2vw, 24px); color: #fff1c8; pointer-events: none; }
.postcard-label { text-shadow: 1px 2px 5px #17291d; font: 800 clamp(1.6rem, 5vw, 4rem)/.95 Georgia, serif; letter-spacing: .04em; }
.postcard-label b { display: inline-block; font: 700 .85rem/1.15 var(--heading); letter-spacing: .24em; }
.postmark { width: 76px; aspect-ratio: 1; border-radius: 50%; border: 1px solid currentColor; outline: 1px solid currentColor; outline-offset: -5px; display: grid; place-content: center; text-align: center; transform: rotate(-13deg); font: 700 .59rem/1.12 ui-monospace, monospace; }
.postmark strong { font: 800 .9rem/1.4 var(--heading); }
.sample-section { border-top: 1px solid #cfc7b8; padding-block: 34px 54px; }
.sample { width: min(100%, 690px); margin-inline: auto; padding: clamp(18px, 2.7vw, 32px); border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.sample h2 { font: 800 clamp(1.32rem, 2vw, 1.72rem)/1.48 var(--heading); margin-block: 12px 22px; }
.answers { display: grid; gap: 10px; }
.answer { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid #ddd8cd; background: #fffdf8; color: var(--ink); border-radius: 7px; text-align: left; line-height: 1.55; min-height: 54px; }
.answer:hover { background: #f5f5eb; border-color: #7b8e75; }
.answer[aria-pressed="true"] { background: #e4eddf; border-color: #45604e; }
.option-letter { background: #ebeadd; color: #304438; border-radius: 5px; min-width: 29px; height: 29px; display: grid; place-items: center; font: 800 .875rem/1 ui-monospace, monospace; }
.answer[aria-pressed="true"] .option-letter { background: var(--ink); color: white; }
.sample-feedback { margin-top: 14px; font-size: .875rem; }
.text-button { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; background: none; border: 0; border-radius: 4px; padding: 10px 3px; font-weight: 750; }
.text-button:hover { color: var(--orange); }
.city-card { --wash: #f4e0bf; --accent: #a7462e; --dark: #442a20; margin-block: 14px; }
.city-header { position: relative; overflow: hidden; padding: 22px 22px 19px; background: var(--wash); border: 1px solid #281a1622; border-radius: 8px; color: var(--dark); }
.city-header::after { position: absolute; content: ""; pointer-events: none; border: 1px solid var(--accent); opacity: .24; border-radius: 50%; width: 140px; aspect-ratio: 1; right: -18px; top: -28px; box-shadow: 0 0 0 10px var(--wash), 0 0 0 11px var(--accent), 0 0 0 20px var(--wash), 0 0 0 21px var(--accent); }
.city-tag { position: relative; z-index: 1; font-weight: 800; font-size: .875rem; letter-spacing: .09em; }
.city-heading { position: relative; z-index: 1; font: 900 clamp(2.45rem, 5vw, 3.85rem)/1.2 var(--heading); color: var(--accent); margin-block: 4px; }
.roman { font: 700 .82rem/1.3 ui-monospace, monospace; margin-inline-start: 8px; letter-spacing: .12em; }
.city-description { margin-block: 15px; line-height: 1.75; }
.city-quote { border-inline-start: 3px solid var(--accent); padding: 3px 0 3px 11px; color: var(--accent); font-weight: 800; line-height: 1.65; }
.card-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.secondary { font-size: .875rem; font-weight: 800; border: 1px solid #a4ab9d; color: var(--ink); background: transparent; border-radius: 5px; padding: 9px 13px; min-height: 42px; }
.secondary:hover { background: #e7ecdf; }
.quiz-panel, .result-panel { width: min(100%, 690px); margin: clamp(28px, 7vw, 76px) auto; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: clamp(16px, 4.5vw, 48px); }
.quiz-top, .quiz-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.quiz-actions { margin-top: 24px; }
#progress-label { font-size: .875rem; font-weight: 800; white-space: nowrap; }
progress { display: block; appearance: none; width: 100%; height: 8px; border: none; border-radius: 8px; background: #e8e6db; margin-block: 16px 26px; overflow: hidden; color: var(--ink); }
progress::-webkit-progress-bar { background: #e8e6db; }
progress::-webkit-progress-value { background: var(--ink); }
progress::-moz-progress-bar { background: var(--ink); }
.quiz-panel h1 { font: 850 clamp(1.5rem, 4vw, 2.2rem)/1.45 var(--heading); margin-bottom: 22px; }
#result-heading:focus, #question-heading:focus { outline: none; }
.result-panel .city-card { margin-top: 0; }
.result-panel .city-header { padding: clamp(22px, 5vw, 40px); }
.status { position: fixed; z-index: 2; bottom: 18px; inset-inline: 16px; width: fit-content; max-width: calc(100% - 32px); margin: auto; padding: 13px 18px; background: var(--ink); color: white; border-radius: 7px; box-shadow: 0 2px 12px #0003; }
.footer { color: var(--muted); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; padding-block: 22px 28px; font-size: .875rem; }
@media (max-width: 980px) {
  .shell { width: calc(100% - 56px); }
  .hero { gap: 25px; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 60px; }
  .hero { grid-template-columns: 1fr; }
  .hero { padding-block: 34px 34px; gap: 29px; }
  .hero h1 { font-size: clamp(2rem, 7.9vw, 3.35rem); margin-block: 14px; }
  .postcard { transform: rotate(.75deg); }
  .postcard img { min-height: 0; }
  .postcard-label { font-size: clamp(1.85rem, 9vw, 3rem); }
  .postmark { width: 58px; }
  .sample-section { padding-block: 23px 32px; }
}
@media (max-width: 350px) {
  .small-break { display: initial; }
  .hero h1 { font-size: 1.9rem; }
}
dialog { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; max-width: calc(100% - 32px); padding: 24px; }
dialog::backdrop { background: #18292070; }
dialog form { display: grid; justify-items: start; gap: 12px; width: min(100%, 440px); }
dialog input { width: 100%; padding: 9px; font: inherit; }
.result-art { margin: 0; aspect-ratio: 2.2; overflow: hidden; border: 1px solid #281a1622; border-bottom: none; border-radius: 9px 9px 0 0; background: var(--wash); }
.result-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.result-art + .city-header { border-radius: 0 0 9px 9px; background: linear-gradient(125deg, #fff7e8, var(--wash)); }
.result-panel .city-heading { font-size: clamp(2.25rem, 7vw, 4rem); }
.quiz-cover h1 { letter-spacing: -.045em; }
.quiz-cover .lede { max-width: 28ch; }
.quiz-illustration { max-width: 485px; width: 100%; justify-self: center; }
.quiz-illustration img { aspect-ratio: 1; min-height: 0; }
.result-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.related-quizzes { margin-top:1rem; padding-top:.85rem; border-top:1px solid var(--line,#d6c6ae); }
.related-quizzes h2 { margin:.1rem 0 .4rem; font-size:1.1rem; }
.related-quizzes ul { padding:0; margin:0; list-style:none; }
.related-quizzes a { display:inline-flex; min-height:44px; align-items:center; text-underline-offset:.2em; }
