:root {
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --link: #0066cc;
  --accent: #0071e3;
  --green: #1d8a4e;
  --green-soft: #e7f5ec;
  --amber: #b25000;
  --amber-soft: #fff4e5;
  --red: #c4231c;
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #86868b;
    --bg: #000000; --bg-alt: #161617; --card: #1d1d1f;
    --line: #424245; --line-soft: #2d2d30;
    --link: #2997ff; --accent: #0a84ff;
    --green: #30d158; --green-soft: #0f2a19; --amber: #ff9f0a; --amber-soft: #2e2108; --red: #ff453a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.47;
  letter-spacing: -0.022em; -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* Global nav */
.gnav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-alt) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.gnav-in { max-width: 1024px; margin: 0 auto; padding: 0 22px; height: 48px; display: flex; align-items: center; gap: 28px; font-size: 12px; letter-spacing: -0.01em; }
.gnav-in .brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 14px; }
.gnav-in .brand img { width: 22px; height: 22px; border-radius: 6px; }
.gnav-in a { color: var(--text); opacity: .8; }
.gnav-in a:hover { opacity: 1; text-decoration: none; }
.gnav-in a[aria-current="page"] { opacity: 1; font-weight: 600; }
.gnav-links { display: flex; gap: 24px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.gnav-links::-webkit-scrollbar { display: none; }
@media (max-width: 640px) { .gnav-in { gap: 14px; padding: 0 16px; } .gnav-links { gap: 16px; } .gnav-in .brand span { display: none; } }

/* Layout */
.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 22px; }
@media (max-width: 640px) { .wrap, .narrow { padding: 0 16px; } }
section { padding: 88px 0; }
section.alt { background: var(--bg-alt); }
@media (max-width: 640px) { section { padding: 56px 0; } }

/* Hero */
.hero { text-align: center; padding: 96px 0 72px; }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--text-2); margin: 0 0 8px; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.06; letter-spacing: -0.015em; font-weight: 700; margin: 0 0 14px; }
.lede { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.33; color: var(--text-2); max-width: 680px; margin: 0 auto; letter-spacing: 0.005em; }
h2 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.1; letter-spacing: -0.01em; font-weight: 700; margin: 0 0 12px; }
h3 { font-size: 22px; line-height: 1.2; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
h4 { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
p { margin: 0 0 14px; }
.sub { color: var(--text-2); font-size: 19px; line-height: 1.42; max-width: 680px; margin-bottom: 40px; }
.center { text-align: center; } .center .sub { margin-left: auto; margin-right: auto; }
.muted { color: var(--text-2); }
.small { font-size: 14px; line-height: 1.43; }
.tiny { font-size: 12px; line-height: 1.33; color: var(--text-3); }

/* Cards */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--radius); padding: 28px; }
section:not(.alt) .card { background: var(--bg-alt); }
.card .num { font-size: 13px; font-weight: 600; color: var(--text-3); margin-bottom: 10px; display: block; }
.card p:last-child { margin-bottom: 0; }
.card.link { display: block; color: var(--text); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.card.link:hover { text-decoration: none; transform: scale(1.012); }
.more { color: var(--link); font-size: 17px; }
.more::after { content: " ›"; }

.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 980px; margin-right: 6px; }
.tag.go { background: var(--green-soft); color: var(--green); }
.tag.later { background: var(--amber-soft); color: var(--amber); }
.tag.skip { background: var(--bg-alt); color: var(--text-2); border: 1px solid var(--line); }

/* Big stat */
.stat { font-size: clamp(40px, 6vw, 56px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; margin-bottom: 8px; }
.stat small { font-size: .45em; font-weight: 600; color: var(--text-2); }

/* Tables */
.tbl-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; background: var(--bg-alt); }
tr:last-child td { border-bottom: 0; }
td.n { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Writing example blocks */
.example { border-radius: 14px; padding: 20px 22px; margin: 0 0 16px; font-size: 16px; line-height: 1.5; }
.example .lbl { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.example.weak { background: var(--bg-alt); color: var(--text-2); }
.example.weak .lbl { color: var(--red); }
.example.strong { background: var(--green-soft); }
.example.strong .lbl { color: var(--green); }
section.alt .example.weak { background: var(--card); }

/* Timeline */
.tl { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.tl li { position: relative; padding: 0 0 22px 24px; }
.tl li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tl .yr { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Price bars */
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 120px 1fr 72px; align-items: center; gap: 12px; font-size: 14px; }
.bar .track { height: 26px; background: var(--bg-alt); border-radius: 6px; position: relative; overflow: visible; }
section.alt .bar .track { background: var(--card); }
.bar .fill { height: 100%; border-radius: 6px; background: var(--text-3); }
.bar .fill.hi { background: var(--green); }
.bar .fill.lo { background: var(--red); }
.bar .v { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.be-line { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--accent); }
@media (max-width: 600px) { .bar { grid-template-columns: 84px 1fr 60px; font-size: 13px; } }

/* Checklist / plan */
.plan-day { border-top: 1px solid var(--line); padding-top: 20px; }
.task { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.task .who { font-weight: 600; font-size: 15px; }
.task .what { font-size: 16px; }
.task .what .tiny { display: block; margin-top: 4px; }
@media (max-width: 600px) { .task { grid-template-columns: 1fr; gap: 4px; } }

.refs { font-size: 13px; line-height: 1.5; color: var(--text-2); padding-left: 18px; }
.refs li { margin-bottom: 6px; word-break: break-word; }

footer { border-top: 1px solid var(--line-soft); background: var(--bg-alt); padding: 28px 0 40px; font-size: 12px; color: var(--text-3); }

/* Buttons */
.btn { appearance: none; border: 0; cursor: pointer; font: inherit; font-size: 17px; padding: 11px 22px; border-radius: 980px; background: var(--accent); color: #fff; letter-spacing: -0.01em; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.secondary { background: transparent; color: var(--link); border: 1px solid var(--link); }
.btn.ghost { background: transparent; color: var(--link); padding: 11px 10px; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
