:root {
  color-scheme: light;
  --paper: #f7f3e9;
  --surface: #fffcf5;
  --ink: #292d27;
  --muted: #606458;
  --line: #d4cdbd;
  --accent: #9c3e22;
  --accent-ink: #ffffff;
  --soft: #eee6d6;
  --focus: #226376;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #20231e;
    --surface: #292d26;
    --ink: #f5f0e5;
    --muted: #c2c3b5;
    --line: #545a4c;
    --accent: #f2a284;
    --accent-ink: #26231d;
    --soft: #343a2f;
    --focus: #8acede;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
.wrap { width: min(100% - 32px, 1100px); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -100px; padding: 12px 20px; background: var(--surface); z-index: 2; }
.skip-link:focus { top: 12px; }
.masthead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: .9rem; }
.brand-mark { width: 24px; height: 24px; border: 1px solid var(--accent); display: inline-grid; place-items: center; color: var(--accent); font: 17px var(--serif); border-radius: 50%; }
nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; color: var(--ink); }
.hero { padding-block: 58px 36px; }
.eyebrow { font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 20px; }
h1, h2, h3 { font-weight: 400; line-height: 1.12; text-wrap: balance; }
h1, h2 { font-family: var(--serif); }
h1 { font-size: clamp(3.5rem, 9vw, 7.2rem); letter-spacing: -.055em; margin: 0; max-width: 850px; }
.hero h1 span { display: block; }
.intro { font-size: clamp(1.125rem, 2.4vw, 1.45rem); max-width: 590px; margin-block: 24px 32px; line-height: 1.5; }
p { max-width: 70ch; }
.muted, .fine { color: var(--muted); }
.fine { font-size: .85rem; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.stat { min-width: 0; padding: 20px 12px; }
.stat:nth-child(even) { border-left: 1px solid var(--line); }
.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
.stat dt { font-size: .75rem; color: var(--muted); line-height: 1.5; }
.stat dd { font-variant-numeric: tabular-nums; font-size: clamp(1.1rem, 4.7vw, 2rem); letter-spacing: -.035em; line-height: 1.3; margin: 8px 0 0; font-weight: 550; }
.stat.earned dd { color: var(--accent); }
.stats-note { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-block: 12px 0; }
.section { padding-block: 42px; border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.035em; margin: 0 0 22px; }
.section h3 { font-family: var(--serif); font-size: 1.45rem; margin: 28px 0 12px; }
.section p:first-of-type { margin-top: 0; }
.section-label { color: var(--muted); font-size: .75rem; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .1em; }
.night-list { list-style: none; padding: 0; margin: 24px 0 12px; }
.night { padding-block: 16px; }
.night + .night { border-top: 1px solid var(--line); }
.night-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-bottom: 10px; font-size: .875rem; font-variant-numeric: tabular-nums; }
.night-numbers { color: var(--muted); }
.bar-track { height: 8px; background: var(--soft); }
.bar { display: block; height: 100%; width: var(--bar-width); background: var(--accent); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: steps; display: grid; gap: 20px; }
.steps li { counter-increment: steps; display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: baseline; }
.steps li::before { content: counter(steps, decimal-leading-zero); font-size: .75rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.steps p { margin: 0; }
.tip-section { background: var(--soft); padding: 28px 20px; border: 1px solid var(--line); margin-block: 44px 0; }
.tip-section h2 { max-width: 11ch; }
.tip-amounts { display: grid; gap: 16px; margin-block: 28px; }
.tip-option { border-top: 1px solid var(--line); padding-top: 16px; }
.tip-option p { font-size: .875rem; margin: 12px 0 0; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 11px 20px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); text-decoration: none; font-size: .9rem; font-weight: 600; text-align: center; line-height: 1.45; }
.button:hover { text-decoration: underline; }
a[aria-disabled='true'] { cursor: not-allowed; pointer-events: none; }
.button[aria-disabled='true'] { background: transparent; color: var(--muted); border-color: var(--muted); }
.amount { font-family: var(--serif); display: block; font-size: 2rem; margin-bottom: 12px; }
.tip-option .button { width: 100%; padding-inline: 10px; }
.price { font-family: var(--serif); font-size: 2.7rem; line-height: 1.2; margin-bottom: 16px; }
.price small { font: .85rem var(--sans); color: var(--muted); margin-left: 8px; }
.scopes { margin: 28px 0; }
.scopes > div { padding-block: 18px; border-top: 1px solid var(--line); }
.scopes dt { font-weight: 650; margin-bottom: 6px; }
.scopes dd { margin: 0; max-width: 65ch; }
ul, ol { padding-left: 1.35rem; }
li { margin-bottom: 10px; }
.footer { display: grid; gap: 12px; padding-block: 30px 44px; font-size: .8rem; color: var(--muted); }
.footer p { margin: 0; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }
.document { max-width: 800px; margin-inline: auto; }
.document .hero { padding-bottom: 24px; }
.document h1 { font-size: clamp(2.7rem, 6.5vw, 4.8rem); }
.document .intro { font-size: 1.125rem; }
.document .section { padding-block: 32px; }
.document .section h2 { font-size: 2rem; }
.document li p { margin-block: 0; }
.contents { list-style: none; padding: 0; counter-reset: contents; }
.contents li { counter-increment: contents; padding: 20px 0 20px 40px; border-top: 1px solid var(--line); position: relative; }
.contents li::before { content: counter(contents, decimal-leading-zero); position: absolute; left: 0; top: 23px; color: var(--accent); font-size: .75rem; }
.contents strong { display: block; margin-bottom: 8px; }
.faq dt { font-weight: 650; margin-top: 24px; }
.faq dd { margin: 8px 0 0; }
.pending { color: var(--muted); }
.table-scroll { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .8rem; text-align: left; }
th, td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
th { font-weight: 600; }
caption { text-align: left; padding-bottom: 12px; color: var(--muted); }
main, section, dl, li { min-width: 0; }
.document p, .document li, .document dd { overflow-wrap: anywhere; }

@media (min-width: 640px) {
  .hero { padding-block: 76px 48px; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat { padding: 22px 16px; }
  .stat + .stat { border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 0; }
  .stat dd { font-size: clamp(1.05rem, 2.8vw, 2rem); }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px 40px; }
  .tip-amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .tip-section { padding: 40px; }
  .section { padding-block: 56px; }
  .footer { grid-template-columns: 1fr auto; gap: 40px; }
}

@media (min-width: 900px) {
  .section-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; }
  .section-grid > :first-child h2 { max-width: 13ch; }
  .stats dd { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
