/* jasoncfox.com. Black and white, one column, modelled on justinwelsh.me (Chris, Oct 14 2026). */
:root {
  /* Light mode (Chris, Oct 19 2026: "make it on light mode"). */
  --ink: #111111;
  --paper: #fbfbf9;
  --body: #3a3a37;
  --muted: #6b6b67;
  --line: #e4e4e0;
  --rule: #c9c9c4;
  --field: #f1f1ee;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 640px; margin: 0 auto; padding-inline: 20px; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }

/* Header: name left, pages right */
.top { position: sticky; top: 0; z-index: 10; background: rgba(251, 251, 249, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 640px; margin: 0 auto; padding: 16px 20px; }
.wordmark { font: 600 20px/1 var(--serif); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a:hover, .nav a[aria-current='page'] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.nav .nav-cta { padding: 8px 14px; border: 1px solid var(--ink); border-radius: 0; color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.nav .nav-cta:hover { text-decoration: none; background: var(--ink); color: var(--paper); }
html { scroll-padding-top: 80px; }
@media (max-width: 460px) { .nav { gap: 14px; font-size: 14px; } .nav a:first-child { display: none; } .nav .nav-cta { padding: 7px 10px; } }

/* Hero */
.hero { padding-block: clamp(56px, 11vw, 112px) 56px; }
h1 { font-size: clamp(34px, 6vw, 46px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 20px; }
.lede { color: var(--body); margin-bottom: 30px; max-width: 34em; }

/* Sign-up: one row, pill shapes */
.optin { display: grid; grid-template-columns: 1fr auto; gap: 10px; max-width: 480px; }
.optin input { min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 0; background: transparent; color: var(--ink); font: 400 16px var(--sans); }
.optin input::placeholder { color: var(--muted); }
.optin input:focus { outline: none; border-color: var(--ink); }
.optin button { height: 48px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--paper); font: 600 13px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.optin button:hover { background: transparent; color: var(--ink); }
.optin button:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.optin button:disabled { opacity: 0.6; cursor: progress; }
.optin-note { grid-column: 1 / -1; min-height: 1.4em; font-size: 13px; color: var(--muted); }
.optin-note.is-done { color: var(--ink); }
@media (max-width: 460px) { .optin { grid-template-columns: 1fr; } }

/* Small section labels */
.label { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }

/* What I write about */
.topics { padding-block: 8px 48px; }
.topics .features { margin: 0; }
.topics .features li:last-child { border-bottom: 1px solid var(--line); }
.topics + .praise { padding-top: 40px; border-top: 1px solid var(--line); }

/* Quotes */
.praise { padding-block: 8px 48px; }
.praise blockquote { margin: 0 0 24px; padding-left: 18px; border-left: 1px solid var(--rule); }
.praise blockquote p { font-family: var(--serif); font-size: 20px; line-height: 1.45; }
.praise footer { margin-top: 6px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }


/* Results: a plain list */
.results { padding-block: 40px 48px; border-top: 1px solid var(--line); }
.results ul { list-style: none; margin: 0; padding: 0; }
.results li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.results li span { color: var(--muted); }
.results li b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* About page: origin story */
.origin { padding-block: 32px 8px; margin-top: 32px; border-top: 1px solid var(--line); }

/* Jason's photo (his X profile picture, colour on a plain background; Jason Oct 20: no black and white) */
.portrait { display: block; width: 160px; height: 160px; object-fit: cover; margin-bottom: 28px; }
.portrait-sm { width: 96px; height: 96px; margin-bottom: 20px; }

/* About */
.about { padding-block: 40px 56px; border-top: 1px solid var(--line); }
.about p:not(.label) { color: var(--body); }

/* Closing sign-up */
.closing { padding-block: 48px 72px; border-top: 1px solid var(--line); }
.closing h2 { font-size: clamp(28px, 4.6vw, 34px); line-height: 1.2; margin-bottom: 22px; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-block: 24px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot nav { display: flex; gap: 20px; }
.foot a { text-decoration: none; color: var(--ink); }
.foot a:hover { text-decoration: underline; }

/* Inner pages (About, Adtaria) */
.page { padding-top: clamp(48px, 9vw, 88px); }
.page h1 { margin-bottom: 18px; }
.page .lede { margin-bottom: 28px; }
.prose p { color: var(--body); margin-bottom: 18px; }
.more { margin-top: 14px; }
.more a { color: var(--ink); text-underline-offset: 3px; }
.features { list-style: none; margin: 18px 0 0; padding: 0; }
.features li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--body); }
.features li b { color: var(--ink); font-weight: 600; }
.cta { margin: 32px 0 56px; }
.button { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.button:hover { background: transparent; color: var(--ink); }
.closing .lede { margin: -10px 0 22px; }

/* Work with us (hidden until a booking link is set) */
.work { padding-block: 48px 56px; border-top: 1px solid var(--line); }
.work h2 { font-size: clamp(28px, 4.6vw, 34px); line-height: 1.2; margin-bottom: 14px; }
.work p:not(.label) { color: var(--body); margin: 0 0 26px; max-width: 34em; }

/* Free guide page */
.free { padding-bottom: 80px; }
.free-grid { display: grid; grid-template-columns: 1fr 200px; gap: 48px; align-items: start; }
.free .features { margin: 0 0 32px; }
.free .features li:last-child { border-bottom: 1px solid var(--line); }
.cover { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 3 / 4; padding: 20px 18px; background: var(--ink); color: var(--paper); margin-top: 44px; }
.cover-top, .cover-foot { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.cover-title { font: 500 26px/1.1 var(--serif); }
@media (max-width: 640px) { .free-grid { grid-template-columns: 1fr; gap: 0; } .cover { display: none; } }

/* Thank-you page */
.thanks { padding-bottom: 96px; }
.steps { margin: 0 0 32px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; padding: 16px 0; border-top: 1px solid var(--line); color: var(--body); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); font: 500 20px/1.3 var(--serif); color: var(--ink); }
.steps b { color: var(--ink); font-weight: 600; }
.confirmed-list { margin: 0 0 40px; }
.confirmed-list li:last-child { border-bottom: 1px solid var(--line); }
.follow { color: var(--body); margin: 8px 0 0; }
.follow a { color: var(--ink); text-underline-offset: 3px; }
.thanks .work { margin-top: 48px; }

/* Privacy */
.legal { padding-bottom: 72px; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; }
.legal .muted { color: var(--muted); font-size: 14px; margin-top: 32px; }

/* 404 page */
.notfound { padding-block: 96px; }
.notfound h1 { margin-bottom: 14px; }
.notfound .button { margin-top: 26px; }
.prose .lede { font: 400 22px/1.45 var(--serif); color: var(--ink); }
