/* ==========================================================================
   jesseforrest.me — site.css
   A dark monograph: catalog type, growth rings, oxide, plate marks.
   No framework. No build step.
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/outfit.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0e0c0a;
  --plate: #161310;
  --bone: #ebe4d6;
  --paper: #f3eee4;
  --copper: #c4a06a;
  --oxide: #c24a2e;
  --oxide-deep: #9a3822;
  --muted: #9a9286;
  --muted-2: #6f685e;

  --bg: var(--ink);
  --bg-elev: var(--plate);
  --fg: var(--bone);
  --fg-soft: var(--muted);
  --accent: var(--copper);
  --accent-strong: #d4b27c;
  --warm: var(--oxide);
  --rule: rgba(235, 228, 214, 0.12);
  --rule-strong: rgba(235, 228, 214, 0.28);
  --paper-bg: var(--paper);
  --paper-fg: #1a1612;
  --paper-soft: #5c564c;
  --paper-rule: rgba(26, 22, 18, 0.12);

  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Outfit", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --w-max: 1180px;
  --w-wide: 1320px;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #141210;
    --bg-elev: #1c1916;
    --fg: var(--bone);
    --fg-soft: #b0a89c;
    color-scheme: dark;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--oxide) 70%, transparent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.35rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
h4 { font-size: 1rem; font-family: var(--sans); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
em { font-family: var(--serif); }
::selection { background: var(--oxide); color: var(--paper); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--oxide); color: var(--paper);
  padding: 0.5rem 0.9rem; z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
body > * { position: relative; z-index: 1; }

.container { width: min(100% - 2 * var(--gutter), var(--w-max)); margin-inline: auto; }
.container--wide { width: min(100% - 2 * var(--gutter), var(--w-wide)); }
.section { position: relative; isolation: isolate; padding-block: var(--section); scroll-margin-top: 4.5rem; }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; }
.lede { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; max-width: 42rem; }
.soft { color: var(--fg-soft); }
.small { font-size: 0.88rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.25rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; font-family: var(--serif); font-size: 1.25rem; letter-spacing: -0.01em;
}
.brand svg { width: 1.7rem; height: 1.7rem; flex: none; }
.brand small { display: none; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 1.75rem; align-items: center; }
.nav-links a {
  text-decoration: none; font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-soft);
  position: relative; padding-block: 0.3rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--oxide); transition: right 0.3s var(--ease);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--fg); }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; border: 1px solid var(--rule-strong);
  background: transparent; color: var(--fg); cursor: pointer;
}
.nav-toggle svg { width: 1.2rem; height: 1.2rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .brand small { display: block; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-soft); margin-top: 0.15rem; }
}
.mobile-menu { display: none; border-top: 1px solid var(--rule); padding: 1rem 0 1.4rem; }
.mobile-menu[data-open="true"] { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.mobile-menu a { display: block; padding: 0.85rem 0; text-decoration: none; font-family: var(--serif); font-size: 1.7rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 860px) { .mobile-menu { display: none !important; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.8rem 1.25rem;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  appearance: none; background: none; color: inherit;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn svg { width: 0.95rem; height: 0.95rem; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--oxide); color: var(--paper); border-color: var(--oxide); }
.btn-primary:hover { background: var(--oxide-deep); border-color: var(--oxide-deep); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--fg); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 2rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--accent-strong); }
.link-arrow svg { width: 0.95rem; height: 0.95rem; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Hero (the cover) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 4.25rem);
  display: flex;
  align-items: flex-end;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3.25rem);
  background: radial-gradient(70% 60% at 78% 40%, rgba(194, 74, 46, 0.16), transparent 58%), var(--ink);
}
.hero .reveal { opacity: 1; transform: none; }
.hero-art {
  position: absolute; inset: -8% -6% -8% 18%;
  z-index: 0; pointer-events: none; opacity: 0.42;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 78%, transparent 100%), linear-gradient(#000 0%, #000 78%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 78%, transparent 100%), linear-gradient(#000 0%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); will-change: transform; }
.hero .container { position: relative; z-index: 1; width: min(100% - 2 * var(--gutter), var(--w-wide)); }
.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
@media (max-width: 959px) {
  .hero { min-height: 0; align-items: stretch; }
  .hero-plate { justify-self: start; width: min(15rem, 70%); }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.7fr); }
}
.hero-kicker {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1.5rem;
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(3.8rem, 11vw, 8rem);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.04em;
  margin: 0 0 1.15rem;
}
.hero-name em {
  display: block;
  font-style: italic;
  color: var(--oxide);
  padding-left: 0.08em;
}
.hero .lede { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem); font-style: italic; line-height: 1.35; max-width: 28ch; color: var(--bone); }
.hero-meta {
  display: grid; gap: 0.85rem 2rem;
  margin-top: 1.75rem; padding-top: 1.15rem;
  border-top: 1px solid var(--rule);
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-soft);
}
@media (min-width: 720px) { .hero-meta { grid-template-columns: auto auto; } }
.hero-meta b { display: block; color: var(--fg); font-weight: 500; letter-spacing: 0.04em; text-transform: none; font-size: 0.95rem; margin-bottom: 0.15rem; }
.hero-plate {
  justify-self: end;
  align-self: end;
  width: min(100%, 20rem);
}
.hero-plate figure { margin: 0; }
.hero-plate img {
  width: 100%; height: auto; aspect-ratio: 1;
  object-fit: cover; object-position: center;
  border-radius: 50%;
}

/* Registration marks */
.marks { position: absolute; inset: 1.1rem; z-index: 2; pointer-events: none; color: color-mix(in srgb, var(--bone) 35%, transparent); }
.marks i {
  position: absolute; width: 14px; height: 14px;
}
.marks i::before, .marks i::after { content: ""; position: absolute; background: currentColor; }
.marks i::before { width: 14px; height: 1px; top: 6.5px; left: 0; }
.marks i::after { width: 1px; height: 14px; left: 6.5px; top: 0; }
.marks .tl { top: 0; left: 0; }
.marks .tr { top: 0; right: 0; }
.marks .bl { bottom: 0; left: 0; }
.marks .br { bottom: 0; right: 0; }

.plate-hud {
  position: fixed; right: var(--gutter); bottom: 1.4rem; z-index: 40;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-soft); pointer-events: none;
  mix-blend-mode: difference;
}
@media (max-width: 700px) { .plate-hud { display: none; } }

/* ---------- Paper insert ---------- */
.paper {
  background: var(--paper-bg);
  color: var(--paper-fg);
}
.paper .eyebrow { color: var(--oxide-deep); }
.paper .soft { color: var(--paper-soft); }
.paper a { text-decoration-color: color-mix(in srgb, var(--oxide) 55%, transparent); }
.paper .btn-ghost { color: var(--paper-fg); border-color: var(--paper-rule); }
.paper .btn-ghost:hover { border-color: var(--paper-fg); }
.paper .link-arrow { color: var(--oxide-deep); }

.intro-grid {
  display: grid; gap: clamp(2rem, 5vw, 5rem);
}
@media (min-width: 880px) {
  .intro-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; }
}
.intro-grid h2 { max-width: 12ch; }
.prose { max-width: 62ch; }
.prose p { font-size: 1.06rem; }
.drop::first-letter {
  font-family: var(--serif);
  font-size: 3.4em;
  float: left;
  line-height: 0.78;
  padding: 0.12em 0.12em 0 0;
  color: var(--oxide);
}

/* ---------- Work plates ---------- */
.work-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.chapters { display: grid; gap: 0; }
.chapter {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(2.2rem, 4.5vw, 3.4rem) 0;
  border-top: 1px solid var(--rule);
}
.chapter:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 880px) {
  .chapter { grid-template-columns: 8.5rem minmax(0, 1.1fr) minmax(0, 1.4fr); align-items: start; }
}
.chapter-no {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--oxide);
  font-style: italic;
}
.chapter-meta time, .chapter-meta .where {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.chapter-meta time { margin-bottom: 0.45rem; color: var(--accent); }
.chapter h3 { margin: 0 0 0.35rem; }
.chapter .role { font-family: var(--serif); font-style: italic; color: var(--accent-strong); margin: 0 0 1rem; font-size: 1.15rem; }
.chapter .bullets { list-style: none; padding: 0; margin: 1.15rem 0 0; display: grid; gap: 0.55rem; }
.chapter .bullets li {
  padding-left: 1.1rem;
  position: relative;
  color: var(--fg-soft);
  font-size: 0.98rem;
}
.chapter .bullets li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 0.45rem; height: 1px; background: var(--oxide);
}

/* ---------- Now / desks ---------- */
.desks {
  display: grid; gap: 1.25rem;
}
@media (min-width: 800px) { .desks { grid-template-columns: 1fr 1fr; } }
.desk {
  border: 1px solid var(--paper-rule);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: color-mix(in srgb, #fff 35%, var(--paper-bg));
  min-height: 100%;
}
.desk .num { font-family: var(--serif); font-style: italic; color: var(--oxide); font-size: 1.4rem; margin-bottom: 0.8rem; }
.desk h3 { margin-bottom: 0.3rem; }
.desk .kicker { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-soft); margin-bottom: 1rem; }

/* ---------- Principles ---------- */
.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: p; }
.principles li {
  counter-increment: p;
  display: grid; grid-template-columns: 3.2rem 1fr;
  gap: 1rem; padding: 1.45rem 0;
  border-top: 1px solid var(--rule);
}
.principles li:last-child { border-bottom: 1px solid var(--rule); }
.principles li::before {
  content: counter(p, decimal-leading-zero);
  font-family: var(--serif); font-style: italic; color: var(--oxide); font-size: 1.15rem; padding-top: 0.2rem;
}
.principles h3 { margin: 0 0 0.3rem; }
.principles p { margin: 0; color: var(--fg-soft); }

.split { display: grid; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 880px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .sticky { position: sticky; top: 6rem; }
}

/* ---------- Resume page ---------- */
.page-hero { padding-block: clamp(4rem, 9vw, 6.5rem) clamp(2rem, 4vw, 3rem); }
.resume { background: var(--paper-bg); color: var(--paper-fg); }
.resume .eyebrow { color: var(--oxide-deep); }
.resume .soft { color: var(--paper-soft); }
.resume .btn-ghost {
  color: var(--paper-fg);
  border-color: color-mix(in srgb, var(--paper-fg) 45%, transparent);
}
.resume .btn-ghost:hover {
  border-color: var(--paper-fg);
  background: color-mix(in srgb, var(--paper-fg) 6%, transparent);
}
.resume-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 880px) {
  .resume-grid { grid-template-columns: 16rem 1fr; }
}
.resume h2 {
  font-size: 0.72rem;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oxide-deep);
  border-top: 1px solid var(--paper-rule);
  padding-top: 1.1rem;
  margin: 0 0 1.2rem;
}
.job { padding: 1.15rem 0; border-top: 1px solid var(--paper-rule); }
.job:first-of-type { border-top: 0; padding-top: 0; }
.job-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 1.5rem; margin-bottom: 0.35rem; }
.job h3 { font-size: 1.45rem; margin: 0; }
.job .co { font-weight: 500; }
.job .when { font-size: 0.85rem; color: var(--paper-soft); }
.job .where { font-size: 0.92rem; color: var(--paper-soft); margin-bottom: 0.55rem; }
.job ul { margin: 0.6rem 0 0; padding-left: 1.1rem; color: var(--paper-soft); }
.job li { margin: 0.25rem 0; }
.edu { display: grid; gap: 0.85rem; }
.edu p { margin: 0; }
.print-letterhead { display: none; }
.resume-focus { font-size: 0.92rem; color: var(--paper-soft); margin-top: 0.75rem !important; }

/* ---------- Footer / CTA ---------- */
.cta h2 { max-width: 16ch; }
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 2rem;
  color: var(--fg-soft);
  font-size: 0.88rem;
}
.footer-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.25rem 2rem;
  align-items: end;
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--fg);
  font-family: var(--serif); font-size: 1.2rem;
}
.footer-brand svg { width: 1.5rem; height: 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; }
.footer-links a:hover { color: var(--fg); }
.social { display: flex; flex-wrap: wrap; gap: 0.75rem 1.4rem; margin-top: 1.5rem; }
.social a { display: inline-flex; align-items: center; gap: 0.45rem; text-decoration: none; font-size: 0.92rem; }
.social svg { width: 1.05rem; height: 1.05rem; }

.notfound { min-height: 62vh; display: flex; align-items: center; }
.notfound h1 { max-width: 12ch; }
.notfound .big {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(5rem, 16vw, 10rem); line-height: 0.8;
  color: var(--oxide); margin-bottom: 0.4rem;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible, .no-js .reveal { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art img { transform: none !important; }
}

/* ---------- Print / resume PDF ---------- */
@page {
  size: letter;
  margin: 0.42in 0.5in;
}
@media print {
  :root { color-scheme: light; }
  * { box-shadow: none !important; text-shadow: none !important; }
  html, body {
    background: #fff !important;
    color: #1a1612;
    font-size: 9pt;
    line-height: 1.32;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body::before,
  .site-header,
  .site-footer,
  .plate-hud,
  .marks,
  .nav-toggle,
  .skip-link,
  .actions,
  .hero-art,
  .mobile-menu,
  .resume-contact { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  a { text-decoration: none; color: inherit; }
  .container { width: 100%; margin: 0; }
  .page-hero {
    padding: 0 0 0.35rem;
    margin: 0 0 0.4rem;
    border-bottom: 1.25pt solid #c24a2e;
    background: #fff !important;
    color: #1a1612 !important;
  }
  .page-hero .eyebrow { display: none; }
  .page-hero h1 {
    font-size: 22pt;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin: 0 0 0.12rem;
    color: #1a1612;
  }
  .page-hero .lede {
    font-size: 9.5pt;
    line-height: 1.3;
    max-width: none;
    color: #5c564c;
    margin: 0 0 0.2rem;
  }
  .print-letterhead {
    display: block;
    margin: 0;
    font-size: 8pt;
    letter-spacing: 0.03em;
    color: #1a1612;
  }
  .section { padding-block: 0; }
  .section + .section { margin-top: 0.38rem; }
  .resume { background: #fff !important; color: #1a1612; }
  .resume-grid {
    display: grid;
    grid-template-columns: 1.05in 1fr;
    gap: 0.08rem 0.32in;
    align-items: start;
  }
  .resume h2 {
    font-size: 7.5pt;
    letter-spacing: 0.16em;
    color: #9a3822;
    border-top: 0;
    padding-top: 0.1rem;
    margin: 0;
  }
  .resume .prose p { font-size: 9pt; margin: 0 0 0.25em; }
  .resume-focus { font-size: 8pt; margin-top: 0.2rem !important; color: #6f685e; }
  .job p { font-size: 9pt; margin: 0 0 0.2em; }
  .job { padding: 0.28rem 0; border-top: 0.4pt solid #ddd6ca; break-inside: avoid; page-break-inside: avoid; }
  .job:first-of-type { border-top: 0; padding-top: 0; }
  .job-top { margin-bottom: 0.05rem; }
  .job h3 { font-size: 10.5pt; letter-spacing: -0.01em; }
  .job .when { font-size: 8pt; color: #6f685e; }
  .job .co { font-size: 8.5pt; }
  .job .where { font-size: 8pt; color: #6f685e; margin-bottom: 0.12rem; }
  .job ul { margin: 0.15rem 0 0; padding-left: 0.9em; font-size: 8.5pt; color: #3d3832; }
  .job li { margin: 0.06rem 0; }
  /* Earlier roles: title / company / dates only, so the page stays one leaf. */
  .job:nth-of-type(n+4) > p:not(.co):not(.where) { display: none; }
  .job:nth-of-type(n+4) ul { display: none; }
  .job:nth-of-type(n+4) { padding: 0.14rem 0; }
  .job:nth-of-type(n+4) h3 { font-size: 9.5pt; }
  .job:nth-of-type(n+4) .where { margin-bottom: 0; }
  .edu { gap: 0.2rem; }
  .edu p { font-size: 9pt; }
  .edu br { display: none; }
  .edu strong::after { content: " — "; font-weight: 500; }
}
