/* The Kickass Entrepreneur — public site styles (spec section 10).
   Navy anchor, red accent, cream surfaces. Bold, editorial, magazine-like.
   Mobile-first; responsive from the first commit. */

/* Brand display face — condensed bold sans (self-hosted, variable). Matches the
   Kickass brand's typographic voice. */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("/static/fonts/oswald.woff2") format("woff2");
}

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/caveat.woff2") format("woff2");
}

/* Homepage design pass: self-hosted Playfair Display (display) + Spectral (body). */
@font-face { font-family:"Playfair Display"; font-style:normal; font-weight:500; font-display:swap; src:url("/static/fonts/playfairdisplay-500.woff2") format("woff2"); }
@font-face { font-family:"Playfair Display"; font-style:normal; font-weight:700; font-display:swap; src:url("/static/fonts/playfairdisplay-700.woff2") format("woff2"); }
@font-face { font-family:"Playfair Display"; font-style:normal; font-weight:800; font-display:swap; src:url("/static/fonts/playfairdisplay-800.woff2") format("woff2"); }
@font-face { font-family:"Playfair Display"; font-style:italic; font-weight:500; font-display:swap; src:url("/static/fonts/playfairdisplay-500i.woff2") format("woff2"); }
@font-face { font-family:"Spectral"; font-style:normal; font-weight:300; font-display:swap; src:url("/static/fonts/spectral-300.woff2") format("woff2"); }
@font-face { font-family:"Spectral"; font-style:normal; font-weight:400; font-display:swap; src:url("/static/fonts/spectral-400.woff2") format("woff2"); }
@font-face { font-family:"Spectral"; font-style:normal; font-weight:500; font-display:swap; src:url("/static/fonts/spectral-500.woff2") format("woff2"); }
@font-face { font-family:"Spectral"; font-style:italic; font-weight:400; font-display:swap; src:url("/static/fonts/spectral-400i.woff2") format("woff2"); }

:root {
  --navy: #1A2438;
  --red: #E23B34;          /* homepage v3 brief palette */
  --ink: #23272F;
  --soft: #5C6470;         /* soft gray */
  --faint: #9AA1AC;        /* faint gray */
  --gray: #9AA1AC;
  --cream: #FAF8F4;
  --paper: #FFFFFF;
  --blush: #FDF3F2;        /* warm blush */
  --muted: #5C6470;
  --line: #E7E4DE;         /* hairline */
  --maxw: 1120px;
  --col: 1000px;           /* v2: wider content column */
  --serif: Georgia, "Times New Roman", Times, serif;
  --display: "Oswald", "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif;
  --sans: "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
  --hand: "Caveat", "Segoe Script", cursive;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  font-size: 18px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; width: 100%; }
.section { padding: 56px 20px; }
.muted { color: var(--muted); }
.accent { color: var(--red); }

.kicker {
  text-transform: uppercase; letter-spacing: .14em; font-size: .72rem;
  font-weight: 700; color: var(--red); margin: 0 0 .6rem;
}
.kicker.light { color: rgba(255,255,255,.85); }

.section-title {
  font-family: var(--display); font-size: 1.9rem; margin: 0 0 1.4rem;
  border-bottom: 3px solid var(--navy); display: inline-block; padding-bottom: 6px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 2px; font-weight: 700;
  text-decoration: none; font-size: .95rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.calc-band .btn-ghost { color: #fff; border-color: #fff; }

/* ---------- header ---------- */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; color: #fff; text-decoration: none; }
/* Horizontal wordmark lockup (real SVG, shoe preserved) — sized by height, crisp on retina. */
.brand-logo { height: 34px; width: auto; display: block; }
.main-nav { display: flex; gap: 22px; }
.main-nav a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .85rem; font-weight: 600; }
.main-nav a:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }

/* ---------- hero ---------- */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: center; padding: 64px 20px; }
.hero-title { font-family: var(--display); font-size: 3.1rem; line-height: 1.05; margin: 0 0 1rem; letter-spacing: -.01em; }
.hero-lede { font-size: 1.15rem; color: var(--muted); max-width: 34ch; margin: 0 0 1.6rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo img { border-radius: 4px; box-shadow: 0 20px 40px rgba(26,36,56,.18); width: 100%; object-fit: cover; }

/* ---------- category tiles ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  --tile: var(--navy);
  background: var(--tile); color: #fff; text-decoration: none; border-radius: 4px;
  padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; min-height: 190px;
  position: relative; overflow: hidden;
}
.tile-label { font-family: var(--display); font-size: 1.5rem; font-weight: 700; }
.tile-hook { font-size: .98rem; opacity: .92; flex: 1; }
.tile-go { font-size: .8rem; font-weight: 700; opacity: .9; letter-spacing: .03em; }
.tile:hover { filter: brightness(1.08); }

/* ---------- cards ---------- */
.card-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 20px;
  text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px;
  transition: box-shadow .12s ease, transform .12s ease;
}
.card:hover { box-shadow: 0 10px 24px rgba(26,36,56,.10); transform: translateY(-2px); }
.card-img { border-radius: 3px; aspect-ratio: 16/9; object-fit: cover; margin: -20px -20px 4px; max-width: none; width: calc(100% + 40px); }
.card-cat { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--red); font-weight: 700; }
.card-title { font-family: var(--display); font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.card-hook { color: var(--muted); font-size: .92rem; }

/* ---------- calculators band ---------- */
.calc-band { background: var(--red); color: #fff; padding: 60px 20px; }
.calc-band-title { font-family: var(--display); font-size: 2.4rem; margin: 0 0 .5rem; }
.calc-band-lede { font-size: 1.1rem; opacity: .95; max-width: 46ch; margin: 0 0 1.6rem; }
.calc-list { display: flex; flex-wrap: wrap; gap: 12px; }
.calc-chip {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); color: #fff;
  padding: 12px 18px; border-radius: 40px; text-decoration: none; font-weight: 600; font-size: .95rem;
  display: inline-flex; gap: 10px; align-items: center;
}
.calc-chip:hover { background: #fff; color: var(--red); }

/* ---------- book + bio strips ---------- */
.book-strip { display: flex; gap: 36px; align-items: center; background: var(--navy); color: #fff; border-radius: 6px; padding: 40px; }
.book-strip .kicker { color: var(--red); }
.book-cover { border-radius: 3px; box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.book-copy h2 { font-family: var(--display); font-size: 1.8rem; margin: .2rem 0 .6rem; }
.bio-strip { background: var(--paper); border-top: 1px solid var(--line); }
.bio-inner { display: flex; gap: 32px; align-items: center; padding: 56px 20px; }
.bio-photo { border-radius: 50%; width: 160px; height: 160px; object-fit: cover; }
.bio-inner h2 { font-family: var(--display); font-size: 1.8rem; margin: .2rem 0 .6rem; }

/* ---------- essay ---------- */
.essay-head { padding: 48px 20px 8px; max-width: 760px; }
.essay-cat { display: inline-block; background: var(--tile,#1A2438); color: #fff; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; padding: 5px 12px; border-radius: 3px; text-decoration: none; }
.essay-title { font-family: var(--display); font-size: 2.7rem; line-height: 1.08; margin: 16px 0 10px; }
.essay-hook { font-size: 1.2rem; color: var(--muted); margin: 0 0 20px; }
.byline { display: flex; align-items: center; gap: 12px; }
.byline-avatar { border-radius: 50%; width: 48px; height: 48px; object-fit: cover; }
.byline-name { font-weight: 700; display: block; }
.byline-date { color: var(--muted); font-size: .85rem; }
.essay-body { max-width: 720px; padding-top: 24px; padding-bottom: 24px; }
.prose { font-size: 1.12rem; line-height: 1.75; }
.prose p { margin: 0 0 1.3rem; }
.prose h2 { font-family: var(--display); font-size: 1.7rem; margin: 2.2rem 0 .8rem; }
.prose h3 { font-family: var(--display); font-size: 1.35rem; margin: 1.8rem 0 .6rem; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.prose img { border-radius: 4px; margin: 1.4rem 0; }
.prose ul, .prose ol { margin: 0 0 1.3rem 1.2rem; }
.prose blockquote { border-left: 4px solid var(--red); margin: 1.6rem 0; padding: .4rem 0 .4rem 1.2rem; font-style: italic; color: var(--muted); }
.author-box { max-width: 720px; display: flex; gap: 18px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 22px; margin-bottom: 56px; }
.author-box img { border-radius: 50%; width: 72px; height: 72px; object-fit: cover; }
.author-box-name { font-weight: 700; font-family: var(--display); font-size: 1.2rem; }

/* ---------- The Arc: chapter chrome ---------- */
/* Progress marker: a thin strip under the header, filled to the current chapter. */
.arc-progress { border-bottom: 1px solid var(--line); background: var(--paper); }
.arc-progress-inner { max-width: 760px; display: flex; align-items: center; gap: 14px; padding: 11px 20px; }
.arc-progress-track { display: flex; gap: 4px; flex: 1 1 auto; max-width: 260px; }
.arc-seg { flex: 1 1 0; height: 3px; border-radius: 2px; background: var(--line); }
.arc-seg.on { background: var(--red); }
.arc-progress-label { font-family: var(--sans); font-size: 11.5px; letter-spacing: .06em;
  color: var(--faint); white-space: nowrap; }

/* The door to the next chapter: bridge line, then one large link. */
.arc-next { max-width: 720px; margin-top: 8px; padding-top: 26px; border-top: 1px solid var(--line); }
.arc-bridge { font-family: var(--serif); font-style: italic; font-size: 1.18rem; line-height: 1.6;
  color: var(--ink); margin: 0 0 18px; }
.arc-next-link { margin: 0; }
.arc-next-link a { font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1.28;
  color: #E23B34; text-decoration: none; }
.arc-next-link a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* open door (chapter 9) */
.arc-door { max-width: 720px; margin-top: 8px; padding-top: 28px; border-top: 1px solid var(--line); }
.arc-door-text { font-family: var(--serif); font-size: 1.2rem; line-height: 1.6; color: var(--ink); margin: 0 0 16px; }
.arc-door-text a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.arc-door-links { font-family: var(--serif); font-size: 1.02rem; color: var(--muted); margin: 0 0 20px; }
.arc-door-links a { color: var(--red); text-decoration: none; font-weight: 700; }
.arc-door-links a:hover { text-decoration: underline; }
.arc-signup #signup-form, .arc-signup form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 460px; }
.arc-signup input[type="email"] { flex: 1; min-width: 220px; padding: 12px 14px; border: 2px solid var(--line);
  border-radius: 4px; font-size: 1rem; font-family: inherit; background: #fff; }
.arc-signup input[type="email"]:focus { outline: none; border-color: var(--navy); }
.arc-signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-done { font-family: var(--serif); font-size: 1.05rem; color: var(--navy); margin: 6px 0 0; }
.signup-err { color: var(--red); font-size: .92rem; margin: 8px 0 0; }

/* tiny prev / next, below the door */
.arc-pager { max-width: 720px; display: flex; justify-content: space-between; gap: 16px;
  margin: 18px auto 52px; }
.arc-pager-right { margin-left: auto; }
.arc-pager a { font-family: var(--sans); font-size: 12.5px; letter-spacing: .04em;
  color: var(--faint); text-decoration: none; }
.arc-pager a:hover { color: var(--red); }

/* ---------- book landing page ---------- */
.book-hero { max-width: 900px; display: grid; grid-template-columns: 300px 1fr; gap: 44px;
  align-items: start; padding: 48px 20px 8px; }
.book-hero-cover img { width: 100%; height: auto; border-radius: 4px;
  box-shadow: 0 18px 44px rgba(26,36,56,.18); display: block; }
.book-title { font-family: var(--display); font-size: 2.5rem; line-height: 1.06; margin: 0 0 10px; color: var(--navy); }
.book-subtitle { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--muted); margin: 0 0 20px; }
.book-intro { font-family: var(--serif); font-size: 1.08rem; line-height: 1.7; color: var(--ink); margin: 0 0 26px; }
.book-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.book-btn { font-size: 1rem; padding: 13px 22px; }
.book-reviews { max-width: 900px; padding: 40px 20px 56px; margin-top: 20px; border-top: 1px solid var(--line); }
.book-reviews-title { font-family: var(--display); font-size: 1.05rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--red); margin: 0 0 22px; }
.book-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.book-review { margin: 0; background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.book-review blockquote { margin: 0 0 10px; font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; line-height: 1.55; color: var(--ink); }
.book-review figcaption { font-family: var(--sans); font-size: .74rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--faint); font-weight: 700; }
.about-arc p { max-width: 62ch; }
.about-arc a { color: var(--red); }
@media (max-width: 720px) {
  .book-hero { grid-template-columns: 1fr; gap: 28px; }
  .book-hero-cover { max-width: 240px; }
  .book-title { font-size: 2rem; }
  .book-review-grid { grid-template-columns: 1fr; }
}

/* ---------- category page ---------- */
.cat-hero { --tile: var(--navy); background: var(--tile); color: #fff; padding: 56px 20px; }
.cat-hero h1 { font-family: var(--display); font-size: 2.6rem; margin: 0 0 .4rem; }
.cat-hook { font-size: 1.15rem; opacity: .92; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
.about-photo { border-radius: 6px; box-shadow: 0 16px 34px rgba(26,36,56,.18); }
.about h1 { font-family: var(--display); font-size: 2.6rem; margin: .2rem 0 1rem; }
.about-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.about-hero { background: var(--navy); color: #fff; }
.about-hero-grid { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center; padding: 64px 20px; }
.about-portrait { border-radius: 8px; width: 300px; height: 300px; object-fit: cover; box-shadow: 0 20px 44px rgba(0,0,0,.4); }
.about-hero h1 { font-family: var(--display); font-size: 3rem; margin: .2rem 0 .8rem; }
.about-tagline { font-size: 1.2rem; color: rgba(255,255,255,.85); max-width: 40ch; margin: 0; }
.about-hero .about-links { margin-top: 22px; }
.about-hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.about-body { max-width: 760px; }
.about-body .prose h2 { border-bottom: 2px solid var(--line); padding-bottom: 6px; }
.start-here-lede { margin: -8px 0 20px; }

/* ---------- calculator widget ---------- */
.calc-hero { padding: 48px 20px 8px; }
.calc-title { font-family: var(--display); font-size: 2.5rem; margin: 8px 0 0; }
.calc-widget { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 28px; box-shadow: 0 10px 30px rgba(26,36,56,.07); }
.calc-controls { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.calc-field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 200px; }
.calc-field span { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.calc-field input, .calc-field select { padding: 13px 14px; border: 2px solid var(--line); border-radius: 4px; font-size: 1.05rem; font-family: inherit; background: #fff; }
.calc-field input:focus, .calc-field select:focus { outline: none; border-color: var(--navy); }
.calc-result { margin-top: 22px; padding: 22px; background: var(--navy); color: #fff; border-radius: 6px; font-family: var(--display); font-size: 1.5rem; line-height: 1.3; }
.calc-result .pct { color: var(--red); font-weight: 700; }
.calc-note { margin-top: 14px; font-size: .82rem; color: var(--muted); }
.calc-copy { margin-top: 40px; }
.calc-alllink { display: inline-block; font-family: var(--sans); font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--red); text-decoration: none; margin: 0 0 6px; }
.calc-alllink:hover { text-decoration: underline; }

/* threshold / data table inside calc copy */
.calc-table { width: 100%; border-collapse: collapse; margin: 18px 0 6px; font-family: var(--sans); }
.calc-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); border-bottom: 2px solid var(--line); padding: 8px 10px; }
.calc-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: .98rem; }
.calc-table tbody tr:nth-child(odd) td { background: var(--cream); }

/* ---------- /calculators landing (cream, serif, cards) ---------- */
.calc-landing { background: var(--cream); padding: 8px 0 56px; }
.calc-landing-head { padding-top: 44px; }
.calc-landing-head h1 { font-family: var(--display); font-size: 2.7rem; line-height: 1.06; margin: 0 0 12px; color: var(--navy); }
.calc-landing-sub { font-family: var(--serif); font-size: 1.12rem; line-height: 1.6; color: var(--ink); max-width: 60ch; margin: 0; }
.calc-group { margin-top: 40px; }
.calc-group-title { font-family: var(--display); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--red); margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.calc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-card { display: flex; flex-direction: column; gap: 8px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 8px; padding: 22px 22px 20px; text-decoration: none; color: var(--ink);
  transition: box-shadow .15s ease, transform .15s ease; }
.calc-card:hover { box-shadow: 0 12px 30px rgba(26,36,56,.09); transform: translateY(-2px); }
.calc-card-title { font-family: var(--display); font-size: 1.3rem; font-weight: 700; line-height: 1.18; color: var(--navy); }
.calc-card-blurb { font-family: var(--serif); font-size: .96rem; line-height: 1.5; color: var(--soft); }
.calc-card-go { margin-top: 2px; font-family: var(--sans); font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--red); }
.calc-landing-foot { margin-top: 44px; }
.calc-landing-foot p { font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.65;
  color: var(--soft); max-width: 62ch; margin: 0; }
@media (max-width: 640px) { .calc-cards { grid-template-columns: 1fr; } .calc-landing-head h1 { font-size: 2.1rem; } }

/* ---------- footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  align-items: center; padding: 26px 20px; max-width: var(--col); }
.footer-left { font-family: var(--sans); font-size: 14px; color: var(--soft); }
.footer-about { font-family: var(--sans); font-size: 14px; color: var(--soft); text-decoration: none; }
.footer-about:hover { color: var(--navy); }

.error-page h1 { font-family: var(--display); font-size: 2.2rem; margin: .3rem 0 1rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .hero-grid { grid-template-columns: 1fr; padding: 40px 20px; }
  .hero-photo { order: -1; max-width: 280px; }
  .hero-title { font-size: 2.3rem; }
  .tile-grid { grid-template-columns: 1fr 1fr; }
  .card-row { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 260px; }
  .about-hero-grid { grid-template-columns: 1fr; gap: 22px; padding: 40px 20px; }
  .about-portrait { width: 220px; height: 220px; }
  .about-hero h1 { font-size: 2.3rem; }
  .book-strip { flex-direction: column; text-align: center; }
  .bio-inner { flex-direction: column; text-align: center; }
  .calc-band-title { font-size: 1.9rem; }
  .essay-title { font-size: 2.1rem; }

  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy);
    flex-direction: column; padding: 12px 20px; gap: 14px; border-top: 1px solid rgba(255,255,255,.1);
  }
  body.nav-open .main-nav { display: flex; }
  .nav-toggle { display: block; }
  .header-inner { height: 56px; }
  .brand-logo { height: 26px; }
  .main-nav { top: 56px; }
}
@media (max-width: 520px) {
  .tile-grid { grid-template-columns: 1fr; }
  .calc-controls { flex-direction: column; align-items: stretch; }
  .calc-field { min-width: 0; }
}

/* ---------- brand typography refinements (Oswald condensed; from brand file) ---------- */
.hero-title, .essay-title, .calc-title, .cat-hero h1, .about-hero h1,
.section-title, .tile-label, .calc-band-title, .book-copy h2, .bio-inner h2,
.error-page h1, .footer-brand { font-weight: 700; }
.card-title, .prose h2, .prose h3, .author-box-name, .calc-band-lede { font-weight: 600; }

/* Uppercase display headings, brand-style */
.hero-title { text-transform: uppercase; letter-spacing: 0; }
.tile-label, .calc-band-title, .cat-hero h1 { text-transform: uppercase; letter-spacing: .01em; }

/* Section titles: red accent bar above (brand cue) instead of the navy underline */
.section-title {
  text-transform: uppercase; letter-spacing: .02em; border-bottom: none;
  padding: 15px 0 0; position: relative; font-size: 2rem;
}
.section-title::before {
  content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 4px; background: var(--red);
}

/* ---------- quiet homepage (personal "thinking out loud", restrained accents) ---------- */
.hero-quiet { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-quiet-grid { display: flex; align-items: center; gap: 34px; padding: 84px 20px; }
.hero-quiet-photo { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.hero-quiet-text {
  font-family: var(--sans); font-weight: 400; font-size: 1.55rem; line-height: 1.5;
  color: var(--ink); margin: 0; max-width: 34ch; letter-spacing: -.01em; text-transform: none;
}

.section-tight { padding: 22px 20px; }
.quiet-line { max-width: 640px; color: var(--muted); font-size: 1.08rem; line-height: 1.6; margin: 0; }
.quiet-line a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.quiet-line a:hover { color: var(--red); }

/* Topics: clean near-monochrome text list */
.topics { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; max-width: 820px; }
.topic {
  display: block; padding: 18px 2px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink); font-family: var(--display);
  font-size: 1.5rem; font-weight: 600; letter-spacing: .01em; transition: color .12s ease;
}
.topic:hover { color: var(--red); }

.book-plain { display: flex; align-items: center; gap: 24px; }
.book-plain-cover { border-radius: 2px; box-shadow: 0 6px 18px rgba(26,36,56,.14); flex-shrink: 0; }

@media (max-width: 700px) {
  .hero-quiet-grid { flex-direction: column; align-items: flex-start; gap: 22px; padding: 52px 20px; }
  .hero-quiet-text { font-size: 1.35rem; }
  .topics { grid-template-columns: 1fr; }
  .book-plain { flex-direction: column; align-items: flex-start; }
}

/* =========================================================================
   Homepage v3 — quiet, warm, serif personal site (brief). Scoped to .home /
   .writing / .calc-index so essay/about pages keep their own type.
   ========================================================================= */
.home, .writing, .calc-index { max-width: var(--col); margin: 0 auto; padding: 0 20px;
  font-family: var(--serif); color: var(--ink); }
.home-section { padding: 34px 0; border: none; }
.home-label { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint); margin: 0 0 16px; }
.home-intro { font-family: var(--serif); font-style: italic; color: var(--soft); margin: 0 0 20px; font-size: 16px; }
.hr-soft { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---- hero ---- */
.home-hero { display: flex; gap: 44px; align-items: flex-start; padding: 52px 0 26px; }
.home-hero-text { flex: 1; min-width: 0; }
.home-h1 { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 42px;
  line-height: 1.16; margin: 0 0 20px; letter-spacing: -.01em; }
.home-hl { background-image: linear-gradient(transparent 76%, rgba(226,59,52,.35) 76%,
  rgba(226,59,52,.35) 95%, transparent 95%); }
.home-lede { font-family: var(--serif); font-size: 17.5px; line-height: 1.62; color: var(--ink);
  max-width: 62ch; margin: 0; }
.home-sig { font-family: var(--hand); font-weight: 600; font-size: 40px; color: var(--navy);
  transform: rotate(-2deg); display: inline-block; line-height: 1; margin: 22px 0 0; }
.home-sig .dot { color: var(--red); }
.home-portrait-wrap { flex: 0 0 auto; }
.home-portrait { width: 250px; height: 310px; border-radius: 10px; object-fit: cover;
  border: 1px solid var(--line); box-shadow: 8px 8px 0 var(--blush); display: block; }
.home-caption { font-family: var(--sans); font-size: 12.5px; color: var(--faint); margin: 16px 0 0; max-width: 210px; }

/* ---- era pills + filter (shared with /writing) ---- */
.era-pill { display: inline-block; font-family: var(--sans); font-size: 11.5px; font-weight: 600;
  color: #fff; padding: 3px 11px; border-radius: 999px; letter-spacing: .02em;
  background: var(--era, #1A2438); white-space: nowrap; }
.era-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.era-btn { font-family: var(--sans); font-size: 13px; font-weight: 600; color: #fff; padding: 7px 16px;
  border-radius: 999px; border: none; cursor: pointer; background: var(--era, #23272F);
  opacity: .55; transition: opacity .12s ease, transform .12s ease, box-shadow .12s ease; }
.era-btn:hover { opacity: 1; transform: translateY(-1px); }
.era-btn.active { opacity: 1; transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,.16); }

/* ---- Start Here essay rows ---- */
.sh-list { margin-top: 20px; }
.sh-row { border-top: 1px solid var(--line); border-left: 3px solid transparent;
  padding: 20px 0 20px 18px; transition: border-color .12s ease; }
.sh-row:hover { border-left-color: var(--red); }
.sh-meta { font-family: var(--sans); font-size: 12.5px; display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.sh-num { color: var(--red); font-weight: 700; letter-spacing: .04em; }
.sh-title { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--navy);
  text-decoration: none; display: block; line-height: 1.25; }
.sh-title:hover { color: var(--red); }
.sh-teaser { font-family: var(--serif); color: var(--soft); margin: 7px 0 0; font-size: 15.5px; line-height: 1.5; }

/* ---- Recent ---- */
.rec-row { display: flex; gap: 18px; padding: 12px 0; border-top: 1px solid var(--line); align-items: baseline; }
.rec-date { flex: 0 0 76px; font-family: var(--sans); font-size: 12.5px; color: var(--faint); }
.rec-title { font-family: var(--serif); font-size: 17px; color: var(--navy); text-decoration: none; }
a.rec-title:hover { color: var(--red); }
.rec-row.coming .rec-title { color: var(--soft); cursor: default; }
.rec-all { display: inline-block; margin-top: 16px; font-family: var(--sans); font-size: 14px;
  color: var(--red); text-decoration: none; }
.rec-all:hover { text-decoration: underline; }

/* ---- Topics ---- */
.home-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 4px; }
.home-topic { font-family: var(--sans); font-size: 14px; color: var(--soft); text-decoration: underline;
  text-decoration-color: var(--line); text-underline-offset: 3px; }
.home-topic:hover { color: var(--navy); text-decoration-color: var(--navy); }
.home-topic-sep { color: var(--faint); margin: 0 10px; font-family: var(--sans); font-size: 13px; }

/* ---- quiet asides ---- */
.home-aside { font-family: var(--serif); color: var(--soft); font-size: 16.5px; line-height: 1.55;
  padding: 18px 0; border-top: 1px solid var(--line); margin: 0; }
.home-aside a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.home-aside a:hover { color: var(--red); }

/* ---- /writing + /calculators indexes ---- */
.writing, .calc-index { padding-top: 12px; padding-bottom: 40px; }
.wr-title { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 30px; margin: 30px 0 8px; }
.wr-sub { font-family: var(--serif); font-style: italic; color: var(--soft); margin: 0 0 24px; }
.calc-row { display: block; border-top: 1px solid var(--line); padding: 18px 0; text-decoration: none; }
.calc-row:last-child { border-bottom: 1px solid var(--line); }
.calc-name { font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--navy); }
.calc-row:hover .calc-name { color: var(--red); }
.calc-note { font-family: var(--sans); font-size: 13px; color: var(--soft); margin-top: 4px; }

@media (max-width: 640px) {
  .home-hero { flex-direction: column-reverse; gap: 22px; padding: 34px 0 18px; }
  .home-portrait { width: 150px; height: 186px; }
  .home-caption { max-width: none; }
  .home-h1 { font-size: 28px; }
  .home-sig { font-size: 34px; }
}

/* ---------- homepage v2: era depth + email capture ---------- */
.sh-list.filtered .sh-num { display: none; }
.sh-more { margin-top: 20px; }

.signup { border-top: 1px solid var(--line); padding-top: 22px; }
.signup-copy { font-family: var(--serif); font-size: 16.5px; color: var(--soft); margin: 0 0 14px; }
.signup-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 480px; }
.signup-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-form input[type="email"] { flex: 1; min-width: 200px; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 4px; font-family: var(--sans); font-size: 15px; background: #fff; color: var(--ink); }
.signup-form input[type="email"]:focus { outline: none; border-color: var(--navy); }
.signup-btn { font-family: var(--sans); font-size: 14px; font-weight: 600; color: #fff; background: var(--navy);
  border: none; border-radius: 4px; padding: 11px 22px; cursor: pointer; }
.signup-btn:hover { background: var(--red); }
.signup-done { font-family: var(--serif); font-size: 17px; color: var(--navy); margin: 0; }
.signup-err { font-family: var(--sans); font-size: 13px; color: var(--red); margin: 8px 0 0; }
.footer-links { display: flex; gap: 18px; }

/* ============ Homepage design pass (mock: Playfair/Spectral/coral) — scoped .home ============ */
.home {
  --coral:#F2A491; --hink:#1B2130; --hink-soft:#3C4356; --hmuted:#8A8F9C; --hrule:#E2DED4;
  max-width:1120px; margin:0 auto; padding:0 48px;
  font-family:"Spectral", Georgia, serif; color:var(--hink); line-height:1.6; font-weight:400;
}
.home .hero { display:grid; grid-template-columns:1fr 300px; gap:56px; padding:78px 0 40px; align-items:start; }
.home .kicker { font-family:"Spectral",serif; font-style:italic; font-weight:400; font-size:15.5px;
  color:var(--hmuted); margin:0 0 22px; letter-spacing:.01em; text-transform:none; }
.home h1 { font-family:"Playfair Display",serif; font-weight:800; font-size:60px; line-height:1.04;
  letter-spacing:-.01em; color:var(--hink); margin:0 0 30px; text-transform:none; }
.home h1 .hl { background:linear-gradient(transparent 62%, var(--coral) 62%); padding:0 .04em; }
.home .lede { font-size:19px; line-height:1.62; color:var(--hink-soft); max-width:34em; font-weight:400; margin:0; }
.home .sig { font-family:"Caveat",cursive; font-weight:600; font-size:38px; color:var(--hink); margin:34px 0 0; line-height:1; transform:none; }
.home .sig .dot { color:var(--coral); }
.home .hero-cta { margin-top:26px; }
.home .hero-cta-btn { display:inline-block; background:#E23B34; color:#fff; font-family:"Spectral",serif;
  font-size:15.5px; font-weight:600; letter-spacing:.01em; padding:13px 26px; border-radius:4px;
  text-decoration:none; transition:transform .15s ease, opacity .15s ease; }
.home .hero-cta-btn:hover { transform:translateY(-1px); opacity:.94; }
.home .hero-cta-note { margin:12px 0 0; font-family:var(--sans); font-size:12.5px; letter-spacing:.04em;
  color:var(--hmuted); }
.home .portrait-col { padding-top:6px; }
.home .portrait { width:100%; aspect-ratio:1/1.12; object-fit:cover; border-radius:2px; display:block; box-shadow:none; border:0; }
.home .portrait-cap { margin:12px 0 0; font-size:13px; font-style:italic; color:var(--hmuted); text-align:center; }
.home .divider { border:0; border-top:1px solid var(--hrule); margin:26px 0 44px; }
.home .eyebrow { font-family:"Spectral",serif; font-size:12px; letter-spacing:.28em; text-transform:uppercase; color:var(--hmuted); margin:0 0 14px; }
.home .intro-line { font-family:"Spectral",serif; font-style:italic; font-size:18px; color:var(--hink-soft); margin:0 0 24px; }
.home .filters { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:8px; }
.home .era-btn { border:0; cursor:pointer; padding:8px 18px; border-radius:40px; font-family:"Spectral",serif;
  font-size:14.5px; color:#fff; background:var(--era,#1A2032); opacity:.9; transition:transform .15s, opacity .15s; }
.home .era-btn:hover { transform:translateY(-1px); opacity:1; }
.home .era-btn.active { opacity:1; }
.home .list { margin-top:20px; }
.home .item { display:grid; grid-template-columns:44px 1fr; gap:20px; padding:26px 0;
  border-top:1px solid var(--hrule); border-left:0; }
.home .item:first-child { border-top:0; }
.home .num { font-family:"Playfair Display",serif; font-size:20px; color:var(--coral); font-weight:700; padding-top:3px; }
.home .meta { display:flex; align-items:center; gap:12px; margin-bottom:8px; }
.home .era { font-size:11.5px; letter-spacing:.16em; text-transform:uppercase; font-weight:600; display:flex; align-items:center; gap:7px; }
.home .era-dot { width:8px; height:8px; border-radius:50%; display:inline-block; }
.home .year { font-size:12.5px; color:var(--hmuted); letter-spacing:.02em; }
.home .item h3 { font-family:"Playfair Display",serif; font-weight:700; font-size:24px; line-height:1.18;
  color:var(--hink); margin:0 0 7px; transition:color .15s; }
.home .item a:hover h3 { color:#000; }
.home .dek { color:var(--hink-soft); font-size:16.5px; max-width:52em; margin:0; }
@media (max-width:820px){
  .home { padding:0 22px; }
  .home .hero { grid-template-columns:1fr; gap:32px; padding:46px 0 30px; }
  .home .portrait-col { max-width:280px; }
  .home h1 { font-size:42px; }
  .home .lede { font-size:17.5px; }
}
.home a { text-decoration: none; color: inherit; }

/* Era-chip label contrast fix: pastel chips get dark ink (~5-7:1); only the dark
   "All" chip keeps light text. Pastel fill colours unchanged. */
.era-btn { color:#1B2130; font-weight:500; }
.era-btn[data-era="all"] { color:#F5F2EB; font-weight:400; }
.era-pill { color:#1B2130; }
.home .era-btn { color:#1B2130; font-weight:500; }
.home .era-btn[data-era="all"] { background:#1B2130; color:#F5F2EB; font-weight:400; }

/* ---- Start Here: The Arc (homepage sequenced read) ---- */
.home .arc-home { margin-top:20px; }
.home .arc-lead.item { display:block; border-top:0; padding:6px 0 30px; }
.home .arc-lead .meta { margin-bottom:12px; }
.home .arc-lead-ch { font-family:"Spectral",serif; font-size:12px; letter-spacing:.14em;
  text-transform:uppercase; color:var(--hmuted); }
.home .arc-lead-title { font-family:"Playfair Display",serif; font-weight:800; font-size:34px;
  line-height:1.1; margin:0 0 12px; }
.home .arc-lead-title a { color:var(--hink); transition:color .15s; }
.home .arc-lead-title a:hover { color:#000; }
.home .arc-lead-dek { color:var(--hink-soft); font-size:18px; line-height:1.55; max-width:46em; margin:0 0 18px; }
.home .arc-begin { display:inline-block; font-family:"Spectral",serif; font-weight:600; font-size:15px;
  color:var(--coral); }
.home .arc-begin:hover { text-decoration:underline; }

.home .arc-seq { border-top:1px solid var(--hrule); }
.home .arc-row.item { grid-template-columns:44px 1fr; align-items:start; }
.home .arc-row-num { font-family:"Playfair Display",serif; font-size:20px; color:var(--coral);
  font-weight:700; padding-top:3px; }
.home .arc-row-body { display:block; }
.home .arc-row-title { display:block; font-family:"Playfair Display",serif; font-weight:700;
  font-size:22px; line-height:1.2; color:var(--hink); margin:0 0 5px; transition:color .15s; }
.home .arc-row:hover .arc-row-title { color:#000; }
.home .arc-row-dek { display:block; color:var(--hink-soft); font-size:16px; max-width:52em; }
.home .arc-coda-line { display:grid; grid-template-columns:44px 1fr; gap:20px; padding:22px 0 6px;
  border-top:1px solid var(--hrule); text-decoration:none; }
.home .arc-coda-mark { font-family:"Spectral",serif; font-size:11.5px; letter-spacing:.16em;
  text-transform:uppercase; color:var(--coral); font-weight:600; padding-top:6px; }
.home .arc-coda-line .arc-row-title { font-size:20px; }
