/* Forest Editorial v1.0 — Cody Advisory
   Tokens and components from the approved baseline (11 Oct 2026).
   Fonts: EB Garamond & Manrope, Google Fonts repository (OFL). */

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Variable.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Italic-Variable.ttf") format("truetype");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --site-paper: #F6F3E9;
  --site-ink: #203E37;
  --site-accent: #B6C4A7;
  --site-body: #45483C;
  --site-line: #DEDCCC;
  --site-on-dark: #D4DCCB;
  --font-heading: "EB Garamond", Georgia, serif;
  --font-body: "Manrope", sans-serif;
  --radius: 0;
  --card-padding: 24px;
  --card-gap: 16px;
  --stack-gap: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--site-paper); color: var(--site-body); font: 400 14px/1.7 "Manrope", sans-serif; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { margin: 0; color: var(--site-ink); font-family: "EB Garamond", Georgia, serif; font-weight: 400; text-wrap: balance; }
h1 { font-size: 48px; line-height: 1.07; letter-spacing: -.018em; }
h2 { font-size: 36px; line-height: 1.16; }
h3 { font-size: 28px; line-height: 1.18; }
h4 { font-size: 23px; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
strong { font-weight: 700; }
em { font-style: italic; }
a { color: var(--site-ink); text-underline-offset: 4px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--site-ink); outline-offset: 2px; }

/* page scaffolding */
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 32px; }
.section { padding: 64px 0; }
.section-tight { padding: 44px 0; }
.full-dark { background: var(--site-ink); color: var(--site-on-dark); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rule { border: 0; border-top: 1px solid var(--site-line); margin: 0; }

/* components */
.site-panel { padding: 24px; border: 1px solid var(--site-line); }
.site-eyebrow { font: 600 16px/1.3 "EB Garamond", Georgia, serif; font-variant-caps: all-small-caps; letter-spacing: .1em; color: var(--site-ink); }
.site-meta { font-size: 12px; line-height: 1.65; }
.site-stack { display: grid; gap: 14px; }
.site-lead { font-size: 16px; line-height: 1.75; max-width: 52ch; }
.site-prose { font-size: 16px; line-height: 1.75; max-width: 65ch; }
.site-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.site-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 0; background: var(--site-ink); color: var(--site-paper); font: 600 12px/1.5 "Manrope", sans-serif; text-decoration: none; cursor: pointer; }
a.site-button { color: var(--site-paper); }
.site-button-accent { background: var(--site-accent); color: var(--site-ink); }
a.site-button-accent { color: var(--site-ink); }
.site-button-outline { background: var(--site-paper); border-color: var(--site-ink); color: var(--site-ink); }
a.site-button-outline { color: var(--site-ink); }
.site-button:hover { filter: brightness(.96); }
.site-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; font-weight: 700; }
.site-card-numeral { color: var(--site-ink); font: italic 400 36px/1 "EB Garamond", Georgia, serif; }
.site-bullets { margin: 0; padding-left: 17px; display: grid; gap: 7px; }
.site-bullets li { padding-left: 4px; }
.site-bullets li::marker { color: var(--site-ink); font-size: .7em; }
.site-dark { background: var(--site-ink); color: var(--site-on-dark); }
.site-dark h1, .site-dark h2, .site-dark h3 { color: var(--site-paper); }
.site-dark .site-eyebrow { color: var(--site-on-dark); }
.site-dark a { color: var(--site-paper); }
.site-band { padding: 32px; display: grid; gap: 14px; }
.site-band .site-actions { margin-top: 5px; }
.site-accent-word { color: var(--site-accent); font-style: italic; }
.site-hero { padding: 38px 32px; gap: 18px; }
.site-hero h1 { max-width: 17ch; }
.site-hero .site-lead { max-width: 47ch; }
.site-header { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 16px 20px; border: 1px solid var(--site-line); background: var(--site-paper); }
.site-brand { display: inline-flex; align-items: center; gap: 8px; font: 600 25px/1 "EB Garamond", Georgia, serif; color: var(--site-ink); white-space: nowrap; text-decoration: none; }
.site-brand svg { width: 30px; height: 30px; }
.site-nav { display: flex; align-items: center; gap: 14px; flex: 1; justify-content: center; }
.site-nav a { display: flex; align-items: center; min-height: 44px; font-size: 12px; text-decoration: none; }
.site-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; }
.site-menu { display: none; padding: 10px; margin-left: auto; min-height: 44px; background: var(--site-paper); border: 1px solid var(--site-ink); color: var(--site-ink); font: 600 12px/1.5 "Manrope", sans-serif; }
.site-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-cta-copy { display: grid; gap: 10px; }
.site-footer { padding: 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; border: 1px solid var(--site-line); }
.site-footer-brand { display: grid; align-content: start; gap: 13px; }
.site-footer-links { display: grid; align-content: start; }
.site-footer-links .site-eyebrow { margin-bottom: 10px; }
.site-footer-links a { font-size: 12px; text-decoration: none; min-height: 36px; display: flex; align-items: center; }
.site-legal-row { grid-column: 1/-1; padding-top: 18px; border-top: 1px solid var(--site-line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; }
.site-tag { display: inline-block; align-self: start; justify-self: start; padding: 3px 8px; background: var(--site-accent); color: var(--site-ink); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.site-keyline { border: 0; border-left: 3px solid var(--site-accent); padding: 4px 0 4px 18px; }
.site-topic { border: 0; border-top: 2px solid var(--site-ink); padding: 20px 0 0; }
.site-details summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 8px; font-size: 12px; font-weight: 700; color: var(--site-ink); list-style: none; cursor: pointer; }
.site-details summary::-webkit-details-marker { display: none; }
.site-details summary::after { content: "+"; font: 400 22px/1 "Manrope", sans-serif; }
.site-details[open] summary::after { content: "\2212"; }
.site-details p { padding: 6px 0 12px; }
.site-table-panel { padding: 24px; border: 1px solid var(--site-line); }
.site-table { border-collapse: collapse; width: 100%; font-size: 12px; line-height: 1.65; }
.site-table caption { text-align: left; margin-bottom: 16px; color: var(--site-ink); font: 400 28px/1.2 "EB Garamond", Georgia, serif; }
.site-table th { text-align: left; font-weight: 600; }
.site-table th, .site-table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--site-line); vertical-align: top; }
.site-table th:last-child, .site-table td:last-child { padding-right: 0; }
.site-table td:first-child { font-variant-numeric: tabular-nums; }
.site-table td:nth-child(2) { color: var(--site-ink); font-weight: 600; }
.site-portrait { min-width: 0; aspect-ratio: 4/5; background: var(--site-accent); color: var(--site-ink); display: grid; place-content: center; text-align: center; gap: 8px; }
.site-portrait span { font-size: 12px; }
.site-profile-split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.site-bio { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.5fr); gap: 26px; align-items: start; }
.site-role { font-size: 12px; font-weight: 600; }
.site-principle { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.site-index { font: italic 400 34px/1 "EB Garamond", Georgia, serif; color: var(--site-ink); }
.site-credentials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.site-values { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; font-size: 13px; }
.site-contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.site-form { display: grid; gap: 16px; }
.site-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.site-field { display: grid; gap: 6px; min-width: 0; color: var(--site-ink); font-size: 12px; font-weight: 600; }
.site-input { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 10px 11px; border: 1px solid var(--site-body); border-radius: 0; background: var(--site-paper); color: var(--site-ink); font: 400 16px/1.5 "Manrope", sans-serif; }
textarea.site-input { min-height: 104px; resize: vertical; }
.site-input::placeholder { color: var(--site-body); opacity: 1; font-size: 14px; }
.site-chip-group { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.site-chip-group legend { font-size: 12px; font-weight: 600; color: var(--site-ink); padding: 0; margin-bottom: 8px; }
.site-chip { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 7px 10px; border: 1px solid var(--site-line); font-size: 12px; color: var(--site-ink); }
.site-chip:has(input:checked) { background: var(--site-accent); border-color: var(--site-ink); }
.site-chip input { margin: 0; accent-color: var(--site-ink); width: 14px; height: 14px; }
.site-form .site-button { justify-self: start; }
.site-contact-list { display: grid; gap: 14px; }
.site-contact-row { display: flex; gap: 10px; align-items: start; overflow-wrap: anywhere; font-size: 12px; }
.site-contact-row dt { font-weight: 600; color: var(--site-ink); min-width: 74px; }
.site-contact-row dd { margin: 0; }
.site-steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.site-steps li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; counter-increment: steps; }
.site-steps li::before { content: counter(steps); color: var(--site-ink); font: 400 24px/1.1 "EB Garamond", Georgia, serif; }
.site-legal-section { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; }
.site-notice { background: var(--site-accent); color: var(--site-ink); padding: 15px 22px; font-size: 12px; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .site-profile-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 630px) {
  .wrap { padding: 0 20px; }
  .section { padding: 44px 0; }
  .grid-2, .site-contact, .site-credentials { grid-template-columns: minmax(0, 1fr); }
  .site-menu { display: inline-flex; }
  .site-header .site-header-action { display: none; }
  .site-nav { flex: 0 0 100%; align-items: stretch; justify-content: start; flex-direction: column; gap: 0; border-top: 1px solid var(--site-line); padding-top: 10px; }
  .site-cta { align-items: start; flex-direction: column; }
  .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer-brand { grid-column: 1/-1; }
}
@media (max-width: 440px) {
  .site-panel, .site-table-panel { padding: 20px; }
  .site-band { padding: 26px 22px; }
  .site-hero { padding: 30px 22px; }
  h1 { font-size: 39px; }
  h2 { font-size: 32px; }
  .site-bio, .site-field-row { grid-template-columns: minmax(0, 1fr); }
  .site-bio .site-portrait { width: 100%; max-width: 200px; }
  .site-table { font-size: 11px; }
  .site-table th, .site-table td { padding-right: 9px; }
  .site-legal-section { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
}

/* site overrides: header and footer are content on the page, not framed boxes */
.site-header { border: 0; padding: 16px 0; }
.site-footer { border: 0; padding: 0; }

/* hero: copy on the left, action on the right */
.site-hero-split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.site-hero-split .site-hero-action { justify-self: end; }
.site-button-lg { min-height: 62px; padding: 19px 32px; font-size: 15px; }
@media (max-width: 900px) {
  .site-hero-split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .site-hero-split .site-hero-action { justify-self: start; }
}

/* contrast fix: inside dark sections, .site-dark a was overriding the accent
   button's label to paper (#F6F3E9 on sage = 1.6:1). Force ink (6.3:1) and
   carry a heavier label weight. */
.site-dark a.site-button-accent,
.site-dark .site-button-accent { color: var(--site-ink); }
.site-button-accent { font-weight: 700; }

/* footer sits on the dark ground, bookending the hero */
.site-dark .site-brand { color: var(--site-paper); }
.site-dark .site-legal-row { border-top-color: rgba(246, 243, 233, 0.22); }

/* about preview: give the copy column room for a full-width headline */
@media (min-width: 901px) {
  .site-profile-split { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
}

/* CTA copy must not size to its max-content width when the band stacks */
.site-cta-copy { min-width: 0; max-width: 100%; }

/* --- review pass, 19 Oct 2026 ------------------------------------------ */

/* Collapse the nav behind the Menu button on phones (site.js toggles it). */
.site-header .site-nav[hidden] { display: none; }
@media (max-width: 900px) {
  .site-header { gap: 12px; padding: 12px 0; }
  .site-nav { padding-bottom: 6px; }
  .site-nav a { min-height: 40px; }
}

/* "What's this about" reads as choices, not boxes. */
.site-chip { border: 0; padding: 6px 0; min-height: 40px; }
.site-chip:has(input:checked) { background: none; border-color: transparent; font-weight: 700; }
.site-chip-group { gap: 4px 22px; }

/* Side notes sit on a keyline rather than in a panel. */
.site-aside {
  align-self: center;
  border-left: 3px solid var(--site-accent);
  padding: 6px 0 6px 22px;
  margin-left: 24px;
}
@media (max-width: 900px) {
  .site-aside { margin-left: 0; align-self: start; }
}

/* folded in from the per-page <style> block so the CSP needs no inline <style> */
body { margin: 0; background: #F6F3E9; }
