:root {
  --canvas: #FFFFFF;
  --surface: #F5F6F8;
  --pressed: #ECECEC;
  --ink: #1D1D1F;
  --muted: #66666B;
  --tertiary: #76767B;
  --line: #E2E2E4;
  --blue: #4F97FF;
  --blue-dark: #1D1D1F;
  --yellow: #FFD60A;
  --font: "SF Pro Text", "SF Pro Display", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --measure: 70ch;
}
* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; min-width: 0; background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: 17px; font-weight: 400; line-height: 1.35; text-rendering: optimizeLegibility; }
a { color: var(--blue-dark); text-decoration-thickness: .08em; text-underline-offset: .2em; }
button, summary { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
.skip-link { position: fixed; left: 16px; top: 8px; z-index: 30; min-height: 44px; padding: 11px 16px; background: var(--ink); color: white; border-radius: 10px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); }
.utility-strip { min-height: 48px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.utility-strip p { margin: 0; text-align: center; color: var(--muted); font-size: 16px; line-height: 1.3; }
.utility-strip a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); font-size: 16px; font-weight: 600; text-decoration: none; }
.utility-strip .guide-name { letter-spacing: -.01em; }
.site-menu { max-width: 1120px; margin: 0 auto; border-top: 1px solid var(--line); }
.site-menu > summary { min-height: 52px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font-weight: 700; }
.site-menu > summary::-webkit-details-marker, .floating-tools > summary::-webkit-details-marker, .source-drawer > summary::-webkit-details-marker { display: none; }
.menu-mark, .reveal-mark { color: var(--blue-dark); font-size: 24px; font-weight: 400; transition: transform 200ms ease; }
.site-menu[open] .menu-mark, .source-drawer[open] summary > span:last-child { transform: rotate(45deg); }
.menu-sheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 28px 20px 36px; border-top: 1px solid var(--line); background: var(--surface); }
.menu-group { min-width: 0; }
.menu-group h2 { margin: 0 0 8px; color: var(--muted); font-size: 18px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.menu-group a { min-height: 44px; display: flex; align-items: center; color: var(--ink); font-size: 16px; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-group a[aria-current="page"] { color: var(--blue-dark); font-weight: 700; }
.guide-main { padding: 0 20px 96px; }
.guide-article { width: min(100%, var(--measure)); margin: 0 auto; }
.flow > * + * { margin-top: 16px; }
.page-intro { padding: 56px 0 32px; }
.path-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.eyebrow { margin-bottom: 6px; color: var(--blue-dark); font-size: 16px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
h1 { max-width: 22ch; margin: 0; font-size: clamp(36px, 8vw, 42px); line-height: 1.08; letter-spacing: .3px; font-weight: 700; }
.deck { max-width: 60ch; margin-bottom: 0; color: #4E4E53; font-size: 19px; line-height: 1.45; }
.paper-scene { margin: 4px 0 36px; overflow: hidden; border-radius: 14px; background: var(--surface); aspect-ratio: 5 / 3; }
.paper-scene img { width: 100%; height: 100%; object-fit: cover; }
.reading-section { padding: 36px 0 28px; border-top: 1px solid var(--line); }
.reading-section h2, .section-heading h2 { margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.3; font-weight: 700; }
.reading-section p, .reading-section li, .source-drawer p, .site-footer p { font-size: 17px; line-height: 1.45; }
.reading-section p { margin-bottom: 0; }
.section-heading { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; }
.section-heading h2 { width: 100%; }
.pie-progress { width: 20px; height: 20px; flex: 0 0 20px; display: inline-block; border: 2px solid var(--tertiary); border-radius: 50%; background: conic-gradient(var(--blue) 0 var(--fill, 0%), transparent var(--fill, 0%) 100%); }
.progress-none { --fill: 0%; }
.progress-quarter { --fill: 25%; }
.progress-half { --fill: 50%; }
.progress-most { --fill: 75%; }
.progress-all { --fill: 100%; border-color: var(--blue); }
.task-row { min-height: 56px; display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); transition: padding 250ms ease, opacity 250ms ease, background 180ms ease; border-radius: 8px; }
.task-copy { margin: 0 !important; font-size: 17px; line-height: 1.35 !important; transition: color 250ms ease, opacity 250ms ease; }
.check-toggle { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 50%; }
.check-toggle > span { width: 23px; height: 23px; display: block; border: 2px solid var(--tertiary); border-radius: 50%; background: radial-gradient(circle, var(--blue) 0 0, transparent 0); transition: background 180ms ease, border-color 180ms ease, transform 180ms cubic-bezier(.2,.8,.2,1.3); }
.check-toggle[aria-pressed="true"] > span { border-color: var(--ink); background: var(--blue); transform: scale(1.03); }
.check-toggle[aria-pressed="true"] > span::after { content: ""; width: 8px; height: 4px; display: block; margin: 6px 0 0 5px; border-left: 2px solid white; border-bottom: 2px solid white; transform: rotate(-45deg); }
.task-row.is-complete { padding-top: 2px; padding-bottom: 2px; }
.task-row.is-complete .task-copy { color: var(--tertiary); opacity: .72; text-decoration: line-through; }
.plain-list, .flag-list { margin: 14px 0 0; padding: 0; list-style: none; }
.plain-list li, .flag-list li { min-height: 48px; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); position: relative; }
.plain-list li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.flag-list li::before { content: "!"; position: absolute; left: 0; top: 12px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 13px; font-weight: 700; }
.quiet-callout { margin: 24px 0; padding: 18px 20px; display: grid; grid-template-columns: 16px 1fr; gap: 12px; align-items: start; background: var(--surface); border-radius: 10px; }
.quiet-callout p { margin: 0; font-size: 17px; line-height: 1.45; }
.today-mark { width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; background: var(--yellow); }
.note-strip { margin: 24px 0 36px; padding: 16px 0 16px 20px; border-left: 3px solid var(--yellow); color: #45454A; font-size: 16px; line-height: 1.5; }
.tag { display: inline-flex; min-height: 28px; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--pressed); color: #515156; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.myth { border-bottom: 1px solid var(--line); }
.myth__button { width: 100%; min-height: 68px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.myth__button > span:nth-child(2) { font-size: 17px; line-height: 1.35; }
.myth__button[aria-expanded="true"] .reveal-mark { transform: rotate(45deg); }
.myth__answer { padding: 2px 40px 18px 0; color: #4E4E53; }
.myth__answer.is-hidden { display: none; }
.myth__answer p { margin: 0; }
.action-link { width: fit-content; min-height: 48px; display: inline-flex; align-items: center; gap: 18px; padding: 0 16px; border-radius: 10px; background: var(--blue); color: var(--ink); font-size: 16px; font-weight: 700; text-decoration: none; }
.action-link:hover { outline: 2px solid var(--ink); outline-offset: 2px; }
.source-drawer { margin: 16px 0 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.source-drawer > summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font-weight: 700; }
.source-drawer > summary > span:last-child { color: var(--blue-dark); font-size: 24px; font-weight: 400; transition: transform 200ms ease; }
.source-drawer__body { padding: 0 0 22px; }
.source-drawer__body ul { margin: 12px 0; padding: 0; list-style: none; }
.source-drawer__body li { border-top: 1px solid var(--line); }
.source-drawer__body a { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 16px; }
.source-note { color: var(--muted); font-size: 16px !important; line-height: 1.45 !important; }
.page-next { margin-top: 48px; padding: 24px 0; border-top: 1px solid var(--line); }
.page-next > span { display: block; color: var(--muted); font-size: 13px; }
.page-next a { min-height: 52px; display: flex; align-items: center; justify-content: space-between; color: var(--ink); font-size: 17px; font-weight: 700; text-decoration: none; }
.site-footer { padding: 36px 20px 104px; background: var(--surface); border-top: 1px solid var(--line); }
.site-footer > div { width: min(100%, var(--measure)); margin: 0 auto; }
.site-footer p { max-width: 58ch; margin: 0 0 20px; color: #515156; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; font-size: 16px; }
.floating-tools { position: fixed; right: 20px; bottom: 20px; z-index: 20; }
.floating-tools > summary { width: 56px; height: 56px; display: grid; place-items: center; margin-left: auto; border-radius: 50%; background: var(--blue); color: var(--ink); cursor: pointer; list-style: none; font-size: 28px; line-height: 1; box-shadow: 0 10px 30px rgba(79,151,255,.34); transition: transform 180ms cubic-bezier(.2,.8,.2,1.3); }
.floating-tools[open] > summary { transform: rotate(45deg); }
.floating-sheet { position: absolute; right: 0; bottom: 68px; width: min(280px, calc(100vw - 40px)); padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.98); box-shadow: none; }
.floating-sheet strong { display: block; margin: 0 8px 8px; font-size: 15px; }
.floating-sheet a { min-height: 44px; display: flex; align-items: center; padding: 0 8px; border-top: 1px solid var(--line); color: var(--ink); font-size: 16px; text-decoration: none; }
@media (max-width: 720px) {
  .utility-strip { grid-template-columns: 1fr auto; }
  .utility-strip p { display: none; }
  .menu-sheet { grid-template-columns: 1fr; gap: 22px; max-height: calc(100vh - 100px); overflow: auto; }
  .page-intro { padding-top: 40px; }
  .guide-main { padding-left: 20px; padding-right: 20px; }
}
@media (min-width: 900px) {
  .page-intro { padding-top: 72px; }
  .paper-scene { width: calc(100% + 120px); margin-left: -60px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
