* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
}
[hidden] { display: none !important; }
a { color: var(--accent-deep); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 700; line-height: 1.25; margin: 0; letter-spacing: .02em; }
h1 { font-size: clamp(30px, 5vw, 42px); }
h2 { font-size: clamp(22px, 3.4vw, 28px); }
h3 { font-size: 20px; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 頁框 */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(253, 245, 234, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1120px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 10px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-title); font-weight: 700; font-size: 20px; min-height: var(--tap); }
.brand svg { width: 40px; height: 24px; flex: none; }
.crumb { color: var(--muted); font-size: 15px; display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.crumb a { color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.crumb a:hover { text-decoration: underline; }
.topbar .spacer { flex: 1; }
.toplink { color: var(--ink-soft); text-decoration: none; font-size: 15px; padding: 10px 12px; border-radius: 999px; min-height: var(--tap); display: inline-flex; align-items: center; }
.toplink:hover { background: var(--paper-deep); }

main.page { max-width: 1120px; margin: 0 auto; padding: 28px 16px 72px; display: flex; flex-direction: column; gap: 28px; }
.lead { color: var(--ink-soft); font-size: 18px; max-width: 46em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--accent-deep); background: var(--accent-soft); border-radius: 999px; padding: 2px 12px; letter-spacing: .04em; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.footer { max-width: 1120px; margin: 0 auto; padding: 0 16px 40px; color: var(--muted); font-size: 14px; }
.footer p + p { margin-top: 4px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* 程式移動焦點（換頁時跳到標題）不畫外框；鍵盤 Tab 照常有外框 */
[tabindex="-1"]:focus { outline: none; }
.eyebrow { align-self: flex-start; }
.brand span, .toplink { white-space: nowrap; }
@media (max-width: 640px) {
  .topbar-in { flex-wrap: wrap; row-gap: 0; padding-bottom: 4px; }
  .crumb { order: 3; width: 100%; overflow-x: auto; white-space: nowrap; font-size: 14px; padding-bottom: 4px; }
  .crumb > span:first-child { display: none; }
  .crumb a { min-height: 36px; display: inline-flex; align-items: center; }
}
