/* Not Obsolete Yet: website design system.
   Layout: one centered column (max 1120px) with a 16px+ gutter; home is dark ("the screen"),
   the Reading Room is cream paper ("the library"). Same three brand colors everywhere. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(fonts/fraunces-normal-300-900.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 900; font-display: swap; src: url(fonts/fraunces-italic-300-900.woff2) format("woff2"); }
@font-face { font-family: "JB Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/jetbrainsmono-normal-400.woff2) format("woff2"); }

:root {
  --ink: #101112;
  --ink-2: #181a1d;
  --ink-3: #24272b;
  --paper: #F4F1E9;
  --paper-2: #EAE5D8;
  --paper-3: #DCD6C6;
  --lime: #C8FF45;
  --olive: #2f3a1c;
  --slate: #2a3138;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JB Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* page roles, set per theme below */
  --bg: var(--ink); --fg: var(--paper); --soft: #d6d0c4; --muted: #9a9c9b; --line: #2c2f33;
  --panel: var(--ink-2); --accent-text: var(--lime); --btn-bg: var(--lime); --btn-fg: var(--ink);
  --btn2-bg: transparent; --btn2-fg: var(--paper); --btn2-line: #3a3d40; --mark: rgba(200,255,69,.16);
  color-scheme: dark;
}
body.paper {
  --bg: var(--paper); --fg: var(--ink); --soft: #33373b; --muted: #62666a; --line: #d3cdbd;
  --panel: #fbf9f4; --accent-text: #3d5c00; --btn-bg: var(--ink); --btn-fg: var(--paper);
  --btn2-bg: transparent; --btn2-fg: var(--ink); --btn2-line: #bdb6a5; --mark: rgba(200,255,69,.7);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
body.paper :focus-visible { outline-color: var(--ink); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--btn-bg); color: var(--btn-fg); padding: 8px 12px; z-index: 50; }

.wrap { width: min(1120px, 100%); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 720px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; line-height: 1.04; margin: 0; text-wrap: balance;
  font-variation-settings: "opsz" 144, "SOFT" 30; }
h1 { font-size: clamp(42px, 6.4vw, 78px); }
h2 { font-size: clamp(31px, 4.2vw, 50px); }
h3 { font-size: 23px; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--soft); max-width: 62ch; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.meta { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; color: var(--muted); }
.lime { color: var(--lime); }
em.hl, .hl { font-style: normal; background: linear-gradient(transparent 58%, var(--mark) 58%); }
.stack { display: grid; gap: 18px; }
.stack-sm { display: grid; gap: 10px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 22px;
  border-radius: 999px; font-family: var(--sans); font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn.secondary { background: var(--btn2-bg); color: var(--btn2-fg); border-color: var(--btn2-line); }
.btn.lime { background: var(--lime); color: var(--ink); }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: 14.5px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.textlink { font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* ---------- header / footer ---------- */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-block: 8px; }
.brand img { display: block; height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a.navlink { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--soft); }
.nav a.navlink:hover, .nav a.navlink[aria-current="page"] { color: var(--fg); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
@media (max-width: 640px) { .nav { gap: 14px; } .nav .hide-sm { display: none; } .brand img { height: 22px; } }

.site-foot { border-top: 1px solid var(--line); padding-block: 48px 64px; margin-top: 40px; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-foot h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; font-weight: 400; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { text-decoration: none; color: var(--soft); }
.site-foot a:hover { color: var(--fg); text-decoration: underline; }
.site-foot .fine { font-size: 13.5px; color: var(--muted); margin-top: 14px; max-width: 46ch; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } .site-foot .wrap > :first-child { grid-column: 1 / -1; } }

/* ---------- sections ---------- */
.section { padding-block: 84px; }
.section.tight { padding-block: 56px; }
.band { background: var(--panel); border-block: 1px solid var(--line); }
.head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 760px; }
.grid2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid2 > *, .grid3 > *, .grid4 > * { min-width: 0; }
@media (max-width: 940px) { .grid2 { grid-template-columns: 1fr; } .grid4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .grid3, .grid4 { grid-template-columns: 1fr; } .section { padding-block: 60px; } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: grid; gap: 10px; align-content: start; }
.band .card { background: var(--bg); }
.card p { color: var(--soft); }
.num { font-family: var(--mono); font-size: 13px; color: var(--accent-text); letter-spacing: .1em; }
.pull { font-family: var(--serif); font-size: clamp(24px, 2.8vw, 32px); font-weight: 500; line-height: 1.22; letter-spacing: -.01em;
  max-width: 30ch; margin-top: 40px; font-style: italic; }
.pull::before { content: ""; display: block; width: 44px; height: 3px; background: var(--lime); margin-bottom: 18px; }

/* hero */
.hero { padding-block: 76px 64px; }
.hero h1 .lime { display: block; }
.hero .lede { margin-top: 22px; }
.hero .actions { margin-top: 30px; }
.cursor { display: inline-block; width: .09em; height: .8em; background: var(--lime); margin-left: .06em; vertical-align: -.04em;
  animation: blink 1.06s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } html { scroll-behavior: auto; } .btn:hover { transform: none; } }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.checklist li { padding: 11px 0 11px 30px; border-bottom: 1px solid var(--line); position: relative; color: var(--soft); }
.checklist li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent-text); font-weight: 800; }
.checklist.no li::before { content: "✕"; color: var(--muted); }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* paper insets on dark pages */
.paperbox { background: var(--paper); color: var(--ink); border-radius: 22px; padding: 34px; }
.paperbox p, .paperbox .lede { color: #42464a; }
.paperbox .eyebrow { color: #3d5c00; }
.paperbox h2, .paperbox h3 { color: var(--ink); }
.paperbox pre { white-space: pre-wrap; font-family: var(--mono); font-size: 13.5px; line-height: 1.55; background: #fff;
  border: 1px solid #d8d2c2; border-radius: 12px; padding: 16px; margin: 0; color: #1a1c1f; overflow-x: auto; }
.paperbox dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 15.5px; }
.paperbox dt { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding-top: 3px; }
.paperbox dd { margin: 0; color: #42464a; }

/* forms */
.form { display: grid; gap: 12px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label { font-size: 13.5px; font-weight: 700; display: block; margin-bottom: 4px; }
.form input { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 12px; border: 1px solid #c8c2b2;
  background: #fff; color: var(--ink); color-scheme: light; }
.form .note { min-height: 22px; font-weight: 700; color: #2f5d00; font-size: 15px; }
.form .fine { font-size: 13px; color: #5b6066; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } .paperbox { padding: 24px; } }

/* offer */
.offer { border: 1px solid var(--line); background: var(--panel); border-radius: 24px; padding: 32px; display: grid; gap: 14px; }
.offer.feature { border-color: rgba(200,255,69,.45); background: linear-gradient(160deg, rgba(200,255,69,.09), var(--panel) 55%); }
.price { font-family: var(--serif); font-size: 72px; font-weight: 700; line-height: .9; letter-spacing: -.03em; }
.pill { display: inline-block; justify-self: start; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--lime); color: var(--ink); border-radius: 999px; padding: 6px 12px; }
.offer ul { list-style: none; margin: 0; padding: 0; }
.offer li { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--soft); }
.offer .btn { width: 100%; }

/* ---------- book covers (typographic, no retailer images) ---------- */
.cover { position: relative; aspect-ratio: 2 / 3; max-width: 100%; border-radius: 4px 10px 10px 4px; padding: 18% 12% 10% 16%;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 18px 34px -18px rgba(16,17,18,.55); }
.cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7%; background: rgba(0,0,0,.18); }
.cover::after { content: ""; position: absolute; inset: 0 auto 0 7%; width: 1px; background: rgba(255,255,255,.18); }
.cover .ct { font-family: var(--serif); font-weight: 650; font-size: clamp(20px, 2.3vw, 30px); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; position: relative; }
.cover .ca { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; position: relative; line-height: 1.4; }
.cover .cl { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; position: relative; }
.cover.lime { background: var(--lime); color: var(--ink); }
.cover.ink { background: var(--ink); color: var(--paper); }
.cover.ink .ct span { color: var(--lime); }
.cover.paper { background: #fffdf7; color: var(--ink); border: 1px solid var(--paper-3); }
.cover.slate { background: var(--slate); color: var(--paper); }
.cover.olive { background: var(--olive); color: var(--paper); }
.cover.lg .ct { font-size: clamp(30px, 4vw, 44px); }
.cover.lg .ca { font-size: 12.5px; }

/* ---------- reading room ---------- */
.rr-hero { padding-block: 72px 40px; }
.rr-hero .lede { margin-top: 20px; }
.shelf { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.shelf > * { min-width: 0; }
@media (max-width: 1000px) { .shelf { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .shelf { grid-template-columns: 1fr 1fr; gap: 16px; } }
.bookcard { display: grid; gap: 12px; text-decoration: none; align-content: start; }
.bookcard:hover .cover { transform: translateY(-4px) rotate(-.6deg); }
.bookcard .cover { transition: transform .25s ease; }
.bookcard h3 { font-size: 20px; }
.bookcard .by { font-size: 14.5px; color: var(--soft); }
.bookcard .why { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 9px; color: var(--soft); white-space: nowrap; }
.tag.ease { background: var(--panel); }

.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.path { display: grid; gap: 6px; align-content: start; padding: 18px 20px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--panel); text-decoration: none; transition: border-color .15s ease; }
.path:hover { border-color: var(--ink); }
.path b { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.2; }
.path span { font-size: 14px; color: var(--muted); }

.shelves { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 40px; }
.shelfrow { padding: 20px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.shelfrow h3 { font-size: 21px; }
.shelfrow p { color: var(--muted); font-size: 15px; }
.shelfrow ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: 15px; }
.shelfrow li span { color: var(--muted); }

.disclose { font-size: 14px; color: var(--muted); border-left: 3px solid var(--lime); padding: 4px 0 4px 14px; max-width: 70ch; }
body.paper .disclose { border-left-color: var(--ink); }

/* book page */
.bk-top { padding-block: 56px 32px; display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 820px) { .bk-top { grid-template-columns: 1fr; gap: 32px; } .bk-top .cover { max-width: 240px; } }
.crumbs { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; color: var(--muted); }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.bk-title { display: grid; gap: 10px; }
.bk-title .sub { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.2vw, 24px); color: var(--soft); line-height: 1.3; }
.bk-title .by { font-size: 18px; font-weight: 600; }
.factrow { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-block: 14px; border-block: 1px solid var(--line); margin-top: 8px; }
.factrow div { display: grid; }
.factrow dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.factrow dd { margin: 0; font-size: 15px; font-weight: 600; }

.buy { display: grid; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.buy .actions { gap: 10px; }
.buy .disclose { border: 0; padding: 0; font-size: 13.5px; }

.bk-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 64px; padding-block: 24px 40px; align-items: start; }
@media (max-width: 900px) { .bk-body { grid-template-columns: 1fr; gap: 40px; } }
.prose { display: grid; gap: 40px; max-width: 66ch; }
.prose section { display: grid; gap: 14px; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); }
.prose p { color: var(--soft); }
.ideas { list-style: none; margin: 0; padding: 0; counter-reset: idea; display: grid; gap: 18px; }
.ideas li { counter-increment: idea; display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; }
.ideas li::before { content: counter(idea); grid-row: span 2; font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1; color: var(--fg);
  font-variant-numeric: tabular-nums; }
.ideas b { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.25; }
.ideas p { font-size: 16.5px; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.twocol > * { min-width: 0; }
@media (max-width: 640px) { .twocol { grid-template-columns: 1fr; } }
.take { background: var(--ink); color: var(--paper); border-radius: 18px; padding: 28px; display: grid; gap: 12px; }
.take .eyebrow { color: var(--lime); }
.take p { color: #e6e1d6; font-size: 18px; }
.aside { display: grid; gap: 22px; position: sticky; top: 96px; }
@media (max-width: 900px) { .aside { position: static; } }
.mini { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; text-decoration: none; }
.mini .cover { padding: 14% 10% 10% 16%; border-radius: 2px 5px 5px 2px; }
.mini .cover .ct { font-size: 9px; } .mini .cover .ca, .mini .cover .cl { display: none; }
.mini b { font-family: var(--serif); font-size: 17px; font-weight: 600; display: block; line-height: 1.2; }
.mini span { font-size: 14px; color: var(--muted); }
.softcta { border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 10px; background: var(--panel); }
.softcta p { font-size: 15px; color: var(--soft); }

/* simple text pages */
.page-text { padding-block: 64px; display: grid; gap: 20px; max-width: 68ch; }
.page-text h2 { font-size: 28px; margin-top: 16px; }
.page-text p, .page-text li { color: var(--soft); }

/* Reading and education pages */
.article-body > * + * { margin-top: 22px; }
.article-body h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 46px; }
.article-body h2:first-child { margin-top: 0; }
.article-body a { text-underline-offset: 4px; }
.article-body p { color: var(--soft); }
.article-body .paperbox p { color: #42464a; }
:target { scroll-margin-top: 100px; }

/* Approved free-guide execution preview */
.execution-preview {background:#171d19;border:1px solid #52624e;border-radius:16px;padding:clamp(22px,3vw,36px);display:grid;gap:16px;min-width:0;color:#f4f1e9;}
.execution-preview h2 {font-family:var(--sans);font-size:clamp(30px,3.2vw,43px);font-weight:750;line-height:1.08;letter-spacing:-.035em;text-wrap:initial;}
.execution-subhead {font-size:clamp(19px,2vw,24px);font-weight:650;line-height:1.25;letter-spacing:-.025em;}
.execution-intro {font-size:16px;line-height:1.55;color:#d6dcd4;}
.execution-intro strong {font-weight:500;}
.execution-steps {display:grid;gap:0;margin-top:4px;}
.execution-step {padding:17px 20px;border:1px solid #364238;border-radius:12px;background:#111612;}
.execution-step h3 {font-family:var(--sans);font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--lime);margin:0 0 8px;line-height:1.35;}
.execution-step p {font-size:15px;line-height:1.55;}
.execution-arrow {text-align:center;color:var(--lime);font-size:25px;line-height:1.05;padding:3px;}
.execution-note {font-size:14px;color:#b9c3b7;line-height:1.45;}
.hero>.grid2 {align-items:center;}
@media(max-width:760px){.execution-preview {margin-top:12px;}.execution-step{padding:16px;}.execution-preview h2{font-size:32px;}}
