/* =========================================================================
   What He Knew About Money — JT · Father's Day 2026 · Finance Edition
   Warm editorial memoir, art-directed into movements. Architecture ported
   from the network's accepted JT Father's-Day template (Fashion edition):
   12-column grid, asymmetric openers, image-beside-text spreads, full-bleed
   dark interlude, numbered ledger, marginalia, pull moments, closer-over-image.
   NO scroll-reveal (content is always visible). All scoped under .fd-doc.
   Fonts: Cormorant Garamond (display) + Newsreader (serif) + JetBrains Mono
   (labels). Palette: forest + warm paper + amber. (No Fraunces / DM Sans.)
   ========================================================================= */

.fd-doc {
  --paper:      #f6f2ea;
  --paper-deep: #ece4d4;
  --ink:        #20231f;
  --ink-soft:   #50544a;
  --ink-faint:  #837f70;
  --rule:       #d9d2c2;
  --accent:     #013220;   /* forest — labels, links, structure */
  --accent-deep:#021c13;
  --amber:      #9c6b27;   /* warm accent — numbers, drop-cap, quote, sidenotes */
  --amber-soft: #c39a5e;
  --dark:       #07120d;   /* near-black forest — dark interlude / closer */
  --dark-soft:  #c9c3b2;
  --dark-gold:  #c9a36a;
  --mint:       #99edc3;

  --serif:   "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --display: "Cormorant Garamond", "Newsreader", Georgia, serif;
  --label:   "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: clip;
}
.fd-doc * { box-sizing: border-box; }
.fd-doc ::selection { background: rgba(1,50,32,0.18); }
.fd-doc img { max-width: 100%; display: block; }

/* faint paper grain */
.fd-doc::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.fd-shell { position: relative; z-index: 1; max-width: 1220px; margin: 0 auto; padding: 0 40px; }
.fd-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 40px; }
.fd-body-type { font-size: 20px; line-height: 1.64; color: var(--ink); text-wrap: pretty; }
.fd-body-type p { margin: 0 0 1.4em; }
.fd-body-type p:last-child { margin-bottom: 0; }

/* ---- TOPPER ------------------------------------------------------------- */
.fd-topper {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 30px 0 20px; border-bottom: 1px solid var(--rule);
  font-family: var(--label); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
}
.fd-crumb { display: flex; align-items: center; gap: 10px; color: var(--ink-faint); }
.fd-crumb a { color: var(--ink-soft); text-decoration: none; }
.fd-crumb a:hover { color: var(--accent); }
.fd-crumb .sep { color: var(--rule); }
.fd-crumb .here { color: var(--ink); }
.fd-stamp { color: var(--accent); font-weight: 500; }
.fd-stamp .dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--amber); margin: 0 8px 2px; }

/* ---- HEAD — asymmetric -------------------------------------------------- */
.fd-head { padding: 70px 0 54px; }
.fd-head .fd-grid { align-items: end; row-gap: 28px; }
.fd-kicker { font-family: var(--label); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; }
.fd-headline { grid-column: 1 / span 8; }
.fd-h1 {
  font-family: var(--display); font-weight: 500; font-optical-sizing: auto;
  font-size: clamp(46px, 8vw, 116px); line-height: 0.94; letter-spacing: -0.01em; margin: 0; text-wrap: balance; color: var(--ink);
}
.fd-h1 .it { font-style: italic; font-weight: 500; color: var(--accent-deep); }
.fd-sub {
  grid-column: 9 / span 4; align-self: end;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(19px, 2.1vw, 25px); line-height: 1.34; color: var(--ink-soft);
  margin: 0 0 10px; padding-left: 22px; border-left: 2px solid var(--amber); text-wrap: balance;
}
.fd-byline { display: flex; align-items: center; gap: 16px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--rule); font-family: var(--label); }
.fd-byline .avatar {
  width: 50px; height: 50px; border-radius: 50%; background-size: cover; background-position: center top;
  background-color: var(--accent); border: 1px solid var(--rule); flex: none;
  display: grid; place-items: center; color: var(--mint); font-weight: 700; font-size: 15px; letter-spacing: 0.04em;
}
.fd-byline .who { line-height: 1.4; }
.fd-byline .by { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }
.fd-byline .name { font-size: 16px; color: var(--ink); }
.fd-byline .name a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); }
.fd-byline .name a:hover { border-color: var(--accent); color: var(--accent); }
.fd-byline .meta { margin-left: auto; font-size: 11px; letter-spacing: 0.06em; color: var(--ink-faint); text-align: right; line-height: 1.7; }

/* ---- FIGURES ----------------------------------------------------------- */
.fd-figure { margin: 0; }
.fd-cap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 12px; font-family: var(--label); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-faint); }
.fd-cap .accent { color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; font-size: 10.5px; }

.fd-hero { margin-top: 4px; }
.fd-hero .img { width: 100%; aspect-ratio: 16 / 8.2; background-size: cover; background-position: center 46%; background-color: var(--dark); }
.fd-hero .fd-cap { max-width: 1220px; margin: 12px auto 0; padding: 0 40px; }

/* ---- M1 · OPENING (huge line + offset column) -------------------------- */
.fd-open { padding: 84px 0 22px; }
.fd-open .fd-grid { row-gap: 26px; }
.fd-open .big {
  grid-column: 1 / span 7; font-family: var(--display); font-weight: 500; font-optical-sizing: auto;
  font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.015em; margin: 0; color: var(--ink); text-wrap: balance;
}
.fd-open .big .lead::first-letter { font-weight: 600; color: var(--amber); }
.fd-open .col { grid-column: 9 / span 4; align-self: start; padding-top: 10px; }
.fd-open .col p { font-size: 18px; line-height: 1.62; }

/* ---- M2 · NUMBERED LEDGER (3-up principles) ---------------------------- */
.fd-ledger { padding: 56px 0 34px; }
.fd-ledger .lead-line { grid-column: 1 / span 12; font-family: var(--label); font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); margin-bottom: 30px; }
.fd-led { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.fd-led-item { padding: 26px 28px 8px 0; border-right: 1px solid var(--rule); }
.fd-led-item:last-child { border-right: none; padding-right: 0; padding-left: 28px; }
.fd-led-item:nth-child(2) { padding-left: 28px; }
.fd-led-item .n { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 48px; line-height: 1; color: var(--amber); display: block; margin-bottom: 18px; }
.fd-led-item p { font-size: 17px; line-height: 1.56; color: var(--ink); margin: 0; }

/* ---- TWO-UP (image beside text, reversible) ---------------------------- */
.fd-twoup { padding: 66px 0; align-items: center; row-gap: 28px; }
.fd-twoup .im { grid-column: 1 / span 6; }
.fd-twoup .tx { grid-column: 8 / span 5; }
.fd-twoup.rev .im { grid-column: 7 / span 6; }
.fd-twoup.rev .tx { grid-column: 1 / span 5; }
.fd-twoup .im .ph { width: 100%; background-size: cover; background-position: center; background-color: var(--dark); }
.fd-twoup .im.portrait .ph { aspect-ratio: 4 / 5; }
.fd-twoup .im.land .ph { aspect-ratio: 3 / 2; }
.fd-twoup .tx p { font-size: 19px; line-height: 1.62; }

/* ---- DARK INTERLUDE (full-bleed) --------------------------------------- */
.fd-dark { background: var(--dark); color: var(--paper); padding: 96px 0; margin: 84px 0; position: relative; }
.fd-dark .inner { max-width: 1220px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 1; }
.fd-dark .eyebrow { font-family: var(--label); font-size: 11.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--dark-gold); margin-bottom: 34px; }
.fd-dark .punch {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(30px, 4.8vw, 58px); line-height: 1.06; letter-spacing: -0.01em; color: #f6efe2; margin: 0; max-width: 20ch; text-wrap: balance;
}

/* ---- BODY RUN ---------------------------------------------------------- */
.fd-run { padding: 22px 0; }
.fd-run .body { grid-column: 2 / span 7; }
.fd-run .body p { font-size: 20px; line-height: 1.64; }

/* ---- BEAT (inline display line) ---------------------------------------- */
.fd-beat { padding: 40px 0 12px; }
.fd-beat .line {
  grid-column: 2 / span 9; font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(28px, 4vw, 50px); line-height: 1.08; letter-spacing: -0.01em; color: var(--accent-deep); margin: 0; text-wrap: balance; max-width: 20ch;
}

/* ---- MARGINALIA (body + verbatim sidenotes) ---------------------------- */
.fd-margin { padding: 34px 0 10px; row-gap: 24px; }
.fd-margin .body { grid-column: 1 / span 7; }
.fd-margin .body p { font-size: 20px; line-height: 1.64; }
.fd-margin .side { grid-column: 9 / span 4; align-self: start; padding-top: 8px; }
.fd-margin .side .note {
  font-family: var(--display); font-style: italic; font-size: 22px; line-height: 1.3; color: var(--ink-soft);
  padding-left: 18px; border-left: 2px solid var(--amber); margin-bottom: 30px;
}

/* ---- BIG PULL ---------------------------------------------------------- */
.fd-pull { padding: 78px 0; }
.fd-pull .fd-grid { align-items: start; }
.fd-pull .mark { grid-column: 1 / span 2; font-family: var(--display); font-size: 120px; line-height: 0.7; color: var(--amber); opacity: 0.55; }
.fd-pull blockquote {
  grid-column: 3 / span 9; margin: 0; font-family: var(--display); font-weight: 500;
  font-size: clamp(30px, 4.8vw, 60px); line-height: 1.08; letter-spacing: -0.018em; color: var(--ink); text-wrap: balance;
}

/* ---- CLOSER over image ------------------------------------------------- */
.fd-closer { margin: 70px 0 0; position: relative; }
.fd-closer .img { width: 100%; aspect-ratio: 16 / 8; background-size: cover; background-position: center 45%; background-color: var(--dark); }
.fd-closer .veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,12,8,0.86) 0%, rgba(4,12,8,0.55) 46%, rgba(4,12,8,0.12) 100%); display: flex; align-items: center; }
.fd-closer .veil .inner { max-width: 1220px; margin: 0 auto; padding: 0 40px; width: 100%; }
.fd-closer .final { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 5.6vw, 74px); line-height: 1.0; letter-spacing: -0.02em; color: #f7f1e5; margin: 0; max-width: 15ch; text-wrap: balance; }

/* ---- SIGNOFF ----------------------------------------------------------- */
.fd-sign { display: flex; align-items: center; gap: 18px; margin: 60px 0 0; padding-top: 38px; border-top: 1px solid var(--rule); }
.fd-sign .avatar { width: 62px; height: 62px; border-radius: 50%; background-size: cover; background-position: center top; background-color: var(--accent); border: 1px solid var(--rule); flex: none; display: grid; place-items: center; color: var(--mint); font-family: var(--label); font-weight: 700; font-size: 18px; }
.fd-sign .txt { font-family: var(--label); line-height: 1.5; }
.fd-sign .txt .n { font-family: var(--display); font-size: 22px; font-style: italic; color: var(--ink); }
.fd-sign .txt .r { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.05em; }
.fd-sign .txt .r a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--amber); }

/* ---- SERIES STRIP (9 editions) ----------------------------------------- */
.fd-series { background: var(--dark); color: #fff; padding: 92px 0; margin-top: 80px; }
.fd-series .inner { max-width: 1220px; margin: 0 auto; padding: 0 40px; }
.fd-series .ey { font-family: var(--label); font-size: 11.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--mint); margin-bottom: 18px; }
.fd-series h2 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 4vw, 52px); line-height: 1.04; margin: 0; max-width: 20ch; color: #fdfdf8; }
.fd-series .intro { font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: rgba(255,255,255,0.72); max-width: 48ch; margin: 18px 0 44px; }
.fd-series .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); }
.fd-card2 { background: var(--dark); padding: 28px; min-height: 188px; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: background 0.4s ease; }
.fd-card2:hover { background: #0b1f16; }
.fd-card2 .ed { font-family: var(--label); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mint); margin-bottom: 16px; }
.fd-card2 .ti { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.12; color: #fdfdf8; flex: 1; }
.fd-card2 .go { font-family: var(--label); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-top: 20px; }
.fd-card2:hover .go { color: var(--mint); }
.fd-card2.cur { background: var(--accent); cursor: default; }
.fd-card2.cur:hover { background: var(--accent); }
.fd-card2.cur .ed, .fd-card2.cur .go { color: var(--mint); }
.fd-series .note { font-family: var(--label); font-size: 11px; letter-spacing: 0.06em; color: rgba(255,255,255,0.42); line-height: 1.6; margin: 28px 0 0; }

/* ---- RESPONSIVE -------------------------------------------------------- */
@media (max-width: 960px) {
  .fd-shell, .fd-hero .fd-cap, .fd-dark .inner, .fd-closer .veil .inner, .fd-series .inner { padding-left: 26px; padding-right: 26px; }
  .fd-headline, .fd-sub { grid-column: 1 / -1; }
  .fd-sub { border-left: none; padding-left: 0; }
  .fd-open .big, .fd-open .col { grid-column: 1 / -1; }
  .fd-twoup .im, .fd-twoup .tx, .fd-twoup.rev .im, .fd-twoup.rev .tx { grid-column: 1 / -1; }
  .fd-twoup .im { order: -1; }
  .fd-run .body, .fd-margin .body, .fd-margin .side, .fd-beat .line { grid-column: 1 / -1; }
  .fd-margin .side { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .fd-pull .mark { display: none; }
  .fd-pull blockquote { grid-column: 1 / -1; }
  .fd-led { grid-template-columns: 1fr; }
  .fd-led-item, .fd-led-item:nth-child(2), .fd-led-item:last-child { border-right: none; border-bottom: 1px solid var(--rule); padding: 22px 0; }
  .fd-led-item:last-child { border-bottom: none; }
  .fd-series .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .fd-shell { padding: 0 20px; }
  .fd-hero .img { aspect-ratio: 4 / 5; }
  .fd-margin .side { grid-template-columns: 1fr; }
  .fd-byline { flex-wrap: wrap; }
  .fd-byline .meta { margin-left: 0; text-align: left; width: 100%; }
  .fd-closer .veil { background: linear-gradient(180deg, rgba(4,12,8,0.45) 0%, rgba(4,12,8,0.86) 100%); }
  .fd-closer .img { aspect-ratio: 4 / 5; }
  .fd-series .grid { grid-template-columns: 1fr; }
}
