/* =========================================================
   Relentless Aaron — Editorial Static Site
   Palette: charcoal / off-white / muted gold + rust
   Type:    Display serif (Fraunces) + body sans (Inter)
   ========================================================= */

:root {
  /* Colors */
  --ink:        #16161a;   /* near-black charcoal */
  --ink-2:      #2a2a2f;   /* secondary charcoal */
  --paper:      #f4efe6;   /* warm off-white / newsprint */
  --paper-2:    #ebe4d4;   /* darker paper accent */
  --rule:       #d8cfbb;   /* hairline rule on paper */
  --rule-dark:  #2f2f34;   /* hairline rule on ink */
  --gold:       #b89255;   /* muted gold accent */
  --gold-2:     #8e6c3a;   /* deep gold */
  --rust:       #a14a2a;   /* muted rust accent */
  --muted:      #5a564f;   /* secondary text on paper */
  --muted-ink:  #a09c93;   /* secondary text on ink */

  /* Type scale (older-reader friendly: floors raised) */
  --text-xs:    clamp(13px, 0.85rem + 0.1vw, 14px);
  --text-sm:    clamp(15px, 0.95rem + 0.15vw, 16px);
  --text-base:  clamp(17px, 1rem + 0.25vw, 19px);
  --text-lg:    clamp(20px, 1.1rem + 0.5vw, 22px);
  --text-xl:    clamp(26px, 1.4rem + 1vw, 32px);
  --text-2xl:   clamp(36px, 2rem + 1.6vw, 52px);
  --text-hero:  clamp(48px, 3rem + 3.5vw, 96px);

  /* Spacing */
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-6:  24px;
  --space-8:  32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;

  --container: 1240px;
  --container-narrow: 760px;

  --font-display: "Fraunces", "Source Serif 4", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rust); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-6); }
.narrow    { max-width: var(--container-narrow); margin-inline: auto; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 239, 230, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) 0;
  gap: var(--space-6);
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.brand-mark { width: 36px; height: 36px; color: var(--ink); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
}
.nav-links {
  display: flex; align-items: center; gap: var(--space-8);
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 2px;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--gold); }
.nav-links a.nav-cta {
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; border-radius: 0;
  text-decoration: none; font-weight: 600; font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: background .15s;
}
.nav-links a.nav-cta:hover {
  background: var(--rust);
  color: var(--paper);
  border-bottom-color: transparent;
}
.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px;
  color: var(--ink);
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.is-open {
    display: flex; flex-direction: column;
    align-items: flex-start; gap: var(--space-3);
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: var(--space-6);
  }
  .nav-cta { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
  cursor: pointer;
  line-height: 1;
  min-height: 56px;     /* big buttons */
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--rust); color: var(--paper); }

.btn-secondary {
  background: transparent; color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

.btn-gold {
  background: var(--gold); color: var(--ink);
}
.btn-gold:hover { background: var(--gold-2); color: var(--paper); }

.btn-ghost {
  background: transparent; color: var(--paper);
  border-color: rgba(244,239,230,0.4);
  padding: 14px 22px;
}
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border-bottom: 1px solid var(--rule-dark);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-16);
  align-items: center;
  padding: clamp(64px, 9vw, 140px) 0 clamp(72px, 10vw, 160px);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-6);
}
.hero-eyebrow::before {
  content: ""; display: inline-block;
  width: 36px; height: 1px; background: var(--gold);
}
.hero h1 {
  color: var(--paper);
  margin-bottom: var(--space-6);
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.hero-sub {
  font-size: var(--text-lg);
  color: #cfc8b7;
  line-height: 1.5;
  max-width: 56ch;
  margin-bottom: var(--space-8);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.hero-art {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #1f1f24 0%, #2a2a2f 100%);
  overflow: hidden;
}
.hero-art svg { width: 100%; height: 100%; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-8); padding: 56px 0 64px; }
  .hero-art { aspect-ratio: 5/4; order: -1; }
}

/* ---------- Section primitives ---------- */
section { padding: clamp(72px, 9vw, 128px) 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
  border-bottom: 1px solid var(--rule);
  padding-bottom: var(--space-6);
}
.section-head h2 { max-width: 18ch; }
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: var(--space-4);
}
.lede { font-size: var(--text-lg); color: var(--muted); max-width: 56ch; }

/* ---------- 4 Topic Gateways ---------- */
.gateways {
  background: var(--paper);
}
.gateway-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.gateway {
  position: relative;
  padding: var(--space-12) var(--space-8);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: var(--space-4);
  transition: background .25s;
  min-height: 320px;
}
.gateway:hover { background: var(--paper-2); }
.gateway-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--gold-2);
  letter-spacing: 0.1em;
}
.gateway h3 {
  font-size: clamp(24px, 2vw, 30px);
  margin-bottom: 6px;
}
.gateway p {
  color: var(--muted);
  font-size: var(--text-base);
  margin: 0;
  max-width: 42ch;
}
.gateway-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  width: fit-content;
}
.gateway:hover .gateway-link { color: var(--rust); border-color: var(--rust); }
@media (max-width: 720px) {
  .gateway-grid { grid-template-columns: 1fr; }
  .gateway { min-height: auto; padding: var(--space-8) var(--space-6); }
}

/* ---------- Featured products ---------- */
.featured { background: var(--paper-2); }
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.book-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.book-cover {
  aspect-ratio: 2 / 3;
  position: relative;
  display: flex;
  overflow: hidden;
}
.book-cover svg { width: 100%; height: 100%; }
.book-body { padding: var(--space-6); flex: 1; display: flex; flex-direction: column; }
.book-tag {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--rust); font-weight: 600; margin-bottom: 8px;
}
.book-card h3 { font-size: var(--text-lg); margin-bottom: 8px; line-height: 1.2; }
.book-card p { color: var(--muted); font-size: 15px; flex: 1; }
.book-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
}
.book-price { font-family: var(--font-display); font-size: 22px; }
.book-link {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none;
  color: var(--ink); border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.book-link:hover { color: var(--rust); border-color: var(--rust); }

@media (max-width: 900px) { .book-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .book-grid { grid-template-columns: 1fr; } }

/* ---------- Essays / For Readers 50+ split ---------- */
.split {
  background: var(--paper);
}
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
}
.split-block { display: flex; flex-direction: column; gap: var(--space-6); }
.essay-list { list-style: none; padding: 0; margin: 0; }
.essay-list li { border-bottom: 1px solid var(--rule); padding: var(--space-4) 0; }
.essay-list a {
  text-decoration: none; color: var(--ink);
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-4);
  font-family: var(--font-display); font-size: 22px;
  line-height: 1.25;
}
.essay-list a small {
  font-family: var(--font-body); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  white-space: nowrap;
}
.essay-list a:hover { color: var(--rust); }
.readers50-card {
  background: var(--ink); color: var(--paper);
  padding: var(--space-12);
  display: flex; flex-direction: column; gap: var(--space-6);
}
.readers50-card h3 { color: var(--paper); }
.readers50-card p { color: #cfc8b7; }
.readers50-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.readers50-list li {
  display: flex; gap: 12px;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--rule-dark);
}
.readers50-list li::before {
  content: "›"; color: var(--gold);
  font-family: var(--font-display); font-size: 22px; line-height: 1;
}
@media (max-width: 860px) {
  .split-grid { grid-template-columns: 1fr; gap: var(--space-12); }
  .readers50-card { padding: var(--space-8); }
}

/* ---------- Email capture ---------- */
.capture {
  background: var(--ink); color: var(--paper);
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
}
.capture-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.capture h2 { color: var(--paper); max-width: 16ch; }
.capture h2 em { font-style: italic; color: var(--gold); font-weight: 400; }
.capture p { color: #cfc8b7; font-size: var(--text-lg); max-width: 50ch; }
.capture-form {
  display: flex; gap: 0;
  border: 1px solid var(--paper);
  background: transparent;
}
.capture-form input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--paper);
  padding: 18px 20px;
  font: 500 17px var(--font-body);
  min-height: 60px;
}
.capture-form input::placeholder { color: #8a857a; }
.capture-form input:focus { outline: none; background: rgba(255,255,255,0.04); }
.capture-form button {
  background: var(--gold); color: var(--ink);
  border: 0; padding: 0 var(--space-8);
  font-weight: 700; font-size: 14px;
  letter-spacing: 0.1em; text-transform: uppercase;
  min-height: 60px;
  transition: background .15s;
}
.capture-form button:hover { background: var(--paper); }
.capture-status {
  margin-top: var(--space-4);
  font-size: 14px; color: var(--gold);
  min-height: 1.4em;
}
.capture-note {
  font-size: 12px; color: var(--muted-ink);
  letter-spacing: 0.06em;
  margin-top: var(--space-3);
}
@media (max-width: 860px) {
  .capture-inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .capture-form { flex-direction: column; border: 0; gap: var(--space-3); }
  .capture-form input { border: 1px solid var(--paper); }
  .capture-form button { width: 100%; padding: 18px; }
}

/* ---------- Social proof ---------- */
.proof { background: var(--paper-2); }
.proof-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--space-12);
}
.proof-stat {
  padding: var(--space-8) var(--space-6);
  border-right: 1px solid var(--rule);
  text-align: left;
}
.proof-stat:last-child { border-right: 0; }
.proof-stat .num {
  font-family: var(--font-display);
  font-size: clamp(46px, 5vw, 72px);
  line-height: 1; color: var(--ink);
  font-weight: 500;
}
.proof-stat .num em { color: var(--gold); font-style: italic; font-weight: 400; }
.proof-stat .label {
  margin-top: 10px;
  font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
  font-weight: 600;
}

.quotes {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8);
}
.quote {
  padding: var(--space-8);
  background: var(--paper);
  border-left: 3px solid var(--gold);
}
.quote p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: var(--space-4);
}
.quote cite {
  font-style: normal;
  font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
  font-weight: 600;
}
@media (max-width: 720px) {
  .proof-stats { grid-template-columns: 1fr; }
  .proof-stat { border-right: 0; border-bottom: 1px solid var(--rule); }
  .proof-stat:last-child { border-bottom: 0; }
  .quotes { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */
.about { background: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-16);
  align-items: start;
}
.about-portrait {
  aspect-ratio: 4/5;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.about-portrait svg { width: 100%; height: 100%; }
.about-body p { font-size: var(--text-lg); color: var(--ink-2); line-height: 1.6; }
.about-body p.first::first-letter {
  font-family: var(--font-display);
  font-size: 5em;
  float: left;
  line-height: 0.85;
  padding: 6px 14px 0 0;
  color: var(--rust);
  font-weight: 600;
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: var(--paper);
  padding: var(--space-16) 0 var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: #cfc8b7; text-decoration: none; font-size: 15px; }
.footer-grid a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.footer-brand { max-width: 38ch; }
.footer-brand p { color: #a09c93; font-size: 14px; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid var(--rule-dark);
  padding-top: var(--space-6);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4);
  font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-ink);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Misc ---------- */
.rule { height: 1px; background: var(--rule); margin: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
