/* ============================================
   Wish I'd Known — style.css
   Palette: paper #FAFAF7 / ink #1C1B1A / highlight #FFD84D
   Stages: early #2E7D6B / mid #B98A1B / late #6E4E82
   ============================================ */

:root {
  --paper: #FAFAF7;
  --ink: #1C1B1A;
  --ink-soft: #55524E;
  --line: #E3E1DB;
  --highlight: #FFD84D;
  --early: #2E7D6B;
  --mid: #B98A1B;
  --late: #6E4E82;
  --max: 1080px;
  --measure: 680px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: "Archivo", "Helvetica Neue", sans-serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: "Archivo", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Signature: highlighter sweep */
.hl {
  background: linear-gradient(105deg, transparent 2%, var(--highlight) 4%, var(--highlight) 96%, transparent 98%);
  padding: 0 0.15em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Brand strip (signature) ---------- */
.brand-strip {
  height: 6px;
  background: linear-gradient(to right, var(--early) 0 33.3%, var(--mid) 33.3% 66.6%, var(--late) 66.6% 100%);
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.logo svg { flex: none; }
.logo:hover .logo-mark-bg { fill: var(--ink); }
.logo:hover .logo-mark-star { fill: var(--highlight); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo .apostrophe { color: var(--mid); }
nav.primary { display: flex; gap: 22px; flex-wrap: wrap; }
nav.primary a {
  font-family: "Archivo", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
nav.primary a:hover { color: var(--ink); border-bottom-color: var(--highlight); }
nav.primary a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 64px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 216, 77, 0.28), transparent 42%),
    radial-gradient(circle at 6% 92%, rgba(46, 125, 107, 0.10), transparent 38%),
    var(--paper);
}
.hero .deco-star {
  position: absolute;
  right: 6%;
  top: 22%;
  width: clamp(90px, 14vw, 170px);
  opacity: 0.9;
  transform: rotate(12deg);
  pointer-events: none;
}
@media (max-width: 820px) { .hero .deco-star { opacity: 0.25; } }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  max-width: 15ch;
}
.hero p.lede {
  margin-top: 28px;
  font-size: 1.35rem;
  max-width: 34ch;
  color: var(--ink-soft);
}

/* ---------- Timeline strip (signature) ---------- */
.timeline { padding: 24px 0 72px; }
.timeline-track {
  position: relative;
  height: 4px;
  background: linear-gradient(to right, var(--early) 0 33.3%, var(--mid) 33.3% 66.6%, var(--late) 66.6% 100%);
  border-radius: 2px;
  margin: 0 8px 36px;
}
.timeline-track .tick {
  position: absolute;
  top: -6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 4px solid var(--ink);
  transform: translateX(-50%);
}
.tick.t1 { left: 0%; border-color: var(--early); }
.tick.t2 { left: 50%; border-color: var(--mid); }
.tick.t3 { left: 100%; border-color: var(--late); }

.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stage-card {
  border: 1px solid var(--line);
  border-top: 6px solid var(--stage, var(--ink));
  background: linear-gradient(180deg, var(--stage-tint, #fff) 0%, #fff 55%);
  padding: 28px 24px 26px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.stage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(28, 27, 26, 0.09);
}
.stage-card.early { --stage: var(--early); --stage-tint: #E9F3EF; }
.stage-card.mid   { --stage: var(--mid); --stage-tint: #F8F0DC; }
.stage-card.late  { --stage: var(--late); --stage-tint: #EFE9F4; }
.stage-card .go { color: var(--stage); }
.stage-card .age {
  font-family: "Archivo", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stage);
}
.stage-card h2 { font-size: 1.45rem; }
.stage-card p { color: var(--ink-soft); font-size: 1rem; }
.stage-card .go {
  margin-top: auto;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Post lists ---------- */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }

.post-list { display: grid; gap: 0; }
.post-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.post-item:hover h3 { background: linear-gradient(105deg, transparent 2%, var(--highlight) 4%, var(--highlight) 96%, transparent 98%); }
.post-item .tag {
  font-family: "Archivo", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 5px;
}
.tag.early { color: var(--early); }
.tag.mid { color: var(--mid); }
.tag.late { color: var(--late); }
.post-item h3 { font-size: 1.3rem; margin-bottom: 6px; display: inline; }
.post-item p { color: var(--ink-soft); font-size: 1rem; margin-top: 8px; }
.post-item .meta { font-family: "Archivo", sans-serif; font-size: 0.8rem; color: var(--ink-soft); margin-top: 10px; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0;
}
.newsletter h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 20ch; }
.newsletter p { color: #C9C6C0; margin-top: 14px; max-width: 46ch; }
.newsletter form { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input[type="email"] {
  flex: 1 1 260px;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: "Archivo", sans-serif;
  border: 2px solid transparent;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}
.newsletter button {
  padding: 14px 28px;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  background: var(--highlight);
  color: var(--ink);
  border: none;
  cursor: pointer;
}
.newsletter button:hover { filter: brightness(0.95); }
.newsletter .fineprint { font-size: 0.85rem; color: #8B8781; margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 44px 0 56px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  border-top: 6px solid transparent;
  border-image: linear-gradient(to right, var(--early) 0 33.3%, var(--mid) 33.3% 66.6%, var(--late) 66.6% 100%) 1;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); }

/* ---------- Hub pages ---------- */
.hub-hero {
  padding: 72px 0 48px;
  border-bottom: 6px solid var(--stage, var(--ink));
  background: linear-gradient(180deg, var(--stage-tint, transparent) 0%, var(--paper) 78%);
}
.hub-hero.early { --stage: var(--early); --stage-tint: #E9F3EF; }
.hub-hero.mid { --stage: var(--mid); --stage-tint: #F8F0DC; }
.hub-hero.late { --stage: var(--late); --stage-tint: #EFE9F4; }
.hub-hero .eyebrow { color: var(--stage); }
.hub-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-top: 10px; max-width: 18ch; }
.hub-hero p { margin-top: 20px; max-width: 52ch; color: var(--ink-soft); font-size: 1.2rem; }

/* ---------- Article ---------- */
.article-head { padding: 72px 0 32px; }
.article-head .wrap, .article-body .wrap { max-width: var(--measure); }
.article-head h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); margin-top: 12px; }
.article-head .meta { font-family: "Archivo", sans-serif; font-size: 0.85rem; color: var(--ink-soft); margin-top: 18px; }
.article-body { padding-bottom: 72px; }
.article-body p { margin: 22px 0; }
.article-body h2 { font-size: 1.6rem; margin: 44px 0 6px; }
.article-body ul { margin: 22px 0 22px 22px; }
.article-body li { margin: 10px 0; }
.article-body .pullquote {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 40px 0;
  padding-left: 20px;
  border-left: 6px solid var(--highlight);
}
.disclaimer {
  margin-top: 44px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .stage-grid { grid-template-columns: 1fr; }
  .timeline-track { display: none; }
  .post-item { grid-template-columns: 1fr; gap: 6px; }
  .hero { padding: 56px 0 40px; }
}
