/* Eric B. Henderson: site styles
   Navy type on a white page, one sans family (Hanken Grotesk), the portrait standing on a navy baseline,
   and gold banknote engraving kept to the navy band, the About portrait and the brand mark. Light only:
   the headshot is shot on white. */
:root {
  --paper: #FFFFFF;
  --paper-2: #F1F4F8;
  --ink: #13294B;
  --ink-2: #4B5A73;
  --rule: #D9DFE8;
  --note: #13294B;
  --note-ink: #FFFFFF;
  --note-soft: #E6ECF4;
  --navy: #0F2042;
  --gold: #C9A961;
  --on-navy: #F4F1E9;
  --on-navy-2: #B8C2D5;
  --line-a: rgba(19, 41, 75, .60);
  --line-b: rgba(19, 41, 75, .45);
  --line-c: rgba(19, 41, 75, .35);
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --display: var(--sans);
  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.125rem; line-height: 1.6;
  font-feature-settings: "kern", "liga"; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--note); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--note); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--note); color: var(--note-ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Masthead */
.masthead { padding-block: 22px; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand svg { width: 34px; height: 34px; overflow: visible; }
.brand span { font-family: var(--display); font-size: 1.3rem; font-weight: 500; letter-spacing: .005em; }
.nav { display: flex; gap: clamp(14px, 3vw, 28px); font-size: 1rem; }
.nav a { color: var(--ink-2); text-decoration: none; padding-block: 4px; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--note); }

/* Seal line work */
.g-a, .g-b, .g-c { fill: none; vector-effect: non-scaling-stroke; }
.g-a { stroke: var(--line-a); stroke-width: .6; }
.g-b { stroke: var(--line-b); stroke-width: .6; }
.g-c { stroke: var(--line-c); stroke-width: .6; }
.brand .g-a { stroke: var(--note); stroke-width: .7; }

/* Home hero */
.hero { padding-block: clamp(32px, 7vw, 88px) clamp(48px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero h1 {
  font-family: var(--display); font-weight: 500; font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  line-height: 1.04; letter-spacing: -.015em; margin: 0 0 28px; text-wrap: balance;
}
.hero .lede { font-size: 1.25rem; line-height: 1.55; color: var(--ink-2); max-width: 36em; margin-bottom: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; font: 600 1rem/1 var(--sans); padding: 14px 20px; border-radius: 3px;
  text-decoration: none; border: 1px solid var(--note);
}
.btn-primary { background: var(--note); color: var(--note-ink); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-quiet { color: var(--note); background: transparent; }
.btn-quiet:hover { background: var(--note-soft); }
.seal { position: relative; width: 100%; max-width: 440px; justify-self: end; aspect-ratio: 1; }
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal .mono {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 500; letter-spacing: .08em; color: var(--ink);
}
.seal .mono span { background: var(--paper); border-radius: 50%; width: 31%; aspect-ratio: 1; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line-a), 0 0 0 5px var(--paper), 0 0 0 6px var(--line-b); }

/* Sections */
.band { padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--rule); }
.band-tint { background: var(--paper-2); border-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
h3 { font-family: var(--sans); font-weight: 650; font-size: 1.15rem; line-height: 1.35; margin: 0 0 8px; text-wrap: balance; }

/* Essay index (a table of contents, so rules separate entries) */
.toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.toc li { border-bottom: 1px solid var(--rule); }
.toc a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 32px; padding: 26px 0; color: var(--ink); text-decoration: none; }
.toc a:hover .toc-title { color: var(--note); }
.toc-title { font-family: var(--display); font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 500; line-height: 1.2; text-wrap: balance; }
.toc-dek { grid-column: 1; color: var(--ink-2); font-size: 1.05rem; max-width: 60ch; }
.toc-len { grid-column: 2; grid-row: 1; color: var(--ink-2); font-size: .95rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); }
.principles h3 { font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.2; margin-bottom: 10px; }
.principles p { color: var(--ink-2); margin: 0; }

/* About teaser and about page */
.about-teaser { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.about-teaser p { max-width: 58ch; }
.portrait { position: relative; margin: 0; aspect-ratio: 4 / 5; width: 100%; }
.portrait svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.portrait .face {
  position: absolute; inset: 15% 17%; border-radius: 50%; overflow: hidden; background: var(--note-soft);
  display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line-a);
}
.portrait .face img { width: 100%; height: 100%; object-fit: cover; }
.portrait .initials { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--note); letter-spacing: .06em; }

/* Page header (inner pages) */
.page-head { padding-block: clamp(28px, 6vw, 72px) clamp(24px, 4vw, 40px); }
.page-head h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2.4rem, 5vw, 3.75rem); line-height: 1.06; letter-spacing: -.015em; margin: 0 0 18px; max-width: 20ch; text-wrap: balance; }
.page-head .dek { font-size: 1.3rem; line-height: 1.5; color: var(--ink-2); max-width: 40em; margin: 0; }
.crumb { display: inline-block; font-size: 1rem; margin-bottom: 18px; }
.byline { margin-top: 22px; color: var(--ink-2); font-size: 1rem; }
.byline p { margin: 0; }

/* Long-form reading */
.prose { max-width: var(--measure); padding-bottom: clamp(40px, 6vw, 72px); }
.prose p, .prose li { font-size: 1.15rem; line-height: 1.7; }
.prose h2 { margin: 2.2em 0 .6em; font-size: clamp(1.6rem, 2.6vw, 2rem); }
.prose h3 { margin: 1.8em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose strong { font-weight: 650; color: var(--ink); }
.prose blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--note);
  font-family: var(--display); font-size: 1.45rem; line-height: 1.35; color: var(--ink);
}
.prose blockquote p { font-size: inherit; line-height: inherit; margin: 0; }
.prose .lead { font-size: 1.3rem; line-height: 1.6; color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 1.6em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 1rem; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-weight: 650; color: var(--ink-2); font-size: .95rem; }
.prose td.n, .prose th.n { text-align: right; padding-right: 0; padding-left: 12px; white-space: nowrap; }
.prose caption { caption-side: bottom; text-align: left; color: var(--ink-2); font-size: .9rem; padding-top: 10px; }
.cs { margin: 1.2em 0 2em; display: grid; gap: 4px; }
.cs div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.cs dt { font-family: var(--display); font-size: 1.3rem; font-weight: 600; line-height: 1.25; }
.cs dd { margin: 0; color: var(--ink-2); font-size: 1.05rem; }

/* Earnings-day timeline: a real sequence, so it is ordered */
.timeline { list-style: none; padding: 0 !important; margin: 1.6em 0 2em !important; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6.6em; top: 8px; bottom: 8px; width: 1px; background: var(--rule); }
.timeline li { display: grid; grid-template-columns: 6.6em minmax(0, 1fr); gap: 0 24px; margin: 0 0 18px !important; position: relative; }
.timeline li::after { content: ""; position: absolute; left: calc(6.6em - 4px); top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--note); }
.timeline time { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--note); font-size: .98rem; padding-top: .12em; }
.timeline div { padding-left: 4px; }
.timeline b { display: block; font-weight: 650; }

.sources { margin-top: 3em; padding-top: 1.2em; border-top: 1px solid var(--rule); }
.sources h2 { font-family: var(--sans); font-size: 1.05rem; font-weight: 650; margin: 0 0 .6em; letter-spacing: 0; }
.sources ol { font-size: .95rem; color: var(--ink-2); padding-left: 1.2em; }
.sources li { font-size: .95rem; line-height: 1.5; margin-bottom: .4em; }
.next { margin-top: 2.4em; padding: 22px 24px; background: var(--paper-2); border-radius: 4px; }
.next p { margin: 0; font-size: 1rem; color: var(--ink-2); }
.next a { font-family: var(--display); font-size: 1.4rem; font-weight: 500; line-height: 1.25; text-decoration: none; display: inline-block; margin-top: 4px; }
.next a:hover { text-decoration: underline; }

/* About page */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 80px); align-items: start; padding-bottom: clamp(48px, 7vw, 88px); }
.about-grid .prose { padding-bottom: 0; }
.facts { margin: 28px 0 0; border-top: 1px solid var(--rule); }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: .9rem; color: var(--ink-2); }
.facts dd { margin: 2px 0 0; font-size: 1rem; }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding-block: 32px 40px; color: var(--ink-2); font-size: .95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.foot p { margin: 0; max-width: 60ch; }
.foot a { color: var(--ink-2); }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .seal { justify-self: start; max-width: 300px; order: -1; }
  .principles { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid aside { max-width: 300px; order: -1; }
  .about-grid .portrait { max-width: 170px; }
}
@media (max-width: 600px) {
  body { font-size: 1.0625rem; }
  .brand span { font-size: 1.12rem; }
  .brand svg { width: 28px; height: 28px; }
  .seal { max-width: 220px; }
  .about-teaser { grid-template-columns: 1fr; }
  .about-teaser .portrait { max-width: 180px; }
  .toc a { grid-template-columns: 1fr; }
  .toc-len { grid-column: 1; grid-row: auto; }
  .cs div { grid-template-columns: 1fr; gap: 2px; }
  .timeline::before { left: 4px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 26px; }
  .timeline li::after { left: 0; top: .45em; }
  .timeline div { padding-left: 0; }
  .prose p, .prose li { font-size: 1.0625rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .masthead .nav, .actions, .seal, .next { display: none; } body { background: #fff; color: #000; } }

/* ---- Navy direction ---- */
.brand span { font-family: var(--sans); font-weight: 700; letter-spacing: -.01em; }
.hero { padding-bottom: 0; border-bottom: 6px solid var(--ink); }
.hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; }
.hero .wrap > div:first-child { padding-bottom: clamp(40px, 7vw, 96px); }
.hero h1 { font-weight: 700; letter-spacing: -.03em; font-size: clamp(2.4rem, 4.8vw, 4rem); line-height: 1.04; }
.hero-portrait { margin: 0; align-self: end; justify-self: end; max-width: 500px; width: 100%; }
.hero-portrait img { display: block; width: 100%; height: auto; }
h2, .page-head h1 { font-weight: 700; letter-spacing: -.025em; }
.toc-title { font-weight: 650; letter-spacing: -.015em; }
.principles h3 { font-weight: 700; letter-spacing: -.01em; font-size: 1.3rem; }
.prose blockquote { font-weight: 600; font-size: 1.35rem; }
.cs dt { font-weight: 700; font-size: 1.2rem; }
.next a { font-weight: 650; }
.btn { border-radius: 2px; }
.about-teaser { grid-template-columns: 1fr; }
.hero + .band { border-top: 0; }

/* The navy band: where Option 2's engraving lives */
.band-navy { position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy); border-top: 0; }
.band-navy h2 { color: #fff; }
.band-navy .principles h3 { color: #fff; padding-top: 14px; border-top: 2px solid var(--gold); display: inline-block; }
.band-navy .principles p { color: var(--on-navy-2); }
.band-navy .wrap { position: relative; z-index: 1; }
.band-seal { position: absolute; right: -250px; top: 50%; width: 560px; height: 560px; transform: translateY(-50%); opacity: .4; pointer-events: none; }
.band-seal svg { width: 100%; height: 100%; overflow: visible; }
.band-navy .g-a { stroke: rgba(201, 169, 97, .55); }
.band-navy .g-b { stroke: rgba(201, 169, 97, .42); }
.band-navy .g-c { stroke: rgba(201, 169, 97, .34); }

/* Engraved oval portrait (About page) in navy and gold */
.portrait .face { background: var(--paper); box-shadow: 0 0 0 1px var(--gold); }

/* Footer in navy */
.foot { background: var(--navy); color: var(--on-navy-2); border-top: 0; }
.foot a { color: var(--on-navy); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .wrap > div:first-child { padding-bottom: 8px; }
  .hero-portrait { justify-self: center; max-width: 340px; }
  .band-seal { right: -220px; opacity: .35; }
}
