/* JustinAGilmore.com — editorial profile
   Instrument Serif (display) + Manrope (body, navigation, name). SIL OFL 1.1, self-hosted. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/manrope-variable.e310b55a7f.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-normal-400.60c06664b5.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-italic-400.6ee678c33f.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0b0b0b;
  --paper: #f3f0e9;
  --stone: #b6b0a7;       /* secondary text on dark */
  --stone-deep: #68635d;  /* secondary text on light */
  --brass: #b49a67;       /* minor accent, dark backgrounds only */
  --brass-deep: #7a6440;  /* accent on light backgrounds */
  --rule-dark: #2c2a27;
  --rule-light: #d3cdc3;

  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --margin: clamp(1.25rem, 4vw, 3.5rem);
  --gutter: clamp(1rem, 1.7vw, 1.5rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);

  --fg: var(--paper);
  --muted: var(--stone);
  --rule: var(--rule-dark);
  --accent: var(--brass);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
p, h1, h2, h3, figure, dl, dd, ol { margin: 0; }
ol { padding: 0; list-style: none; }
img, picture { display: block; max-width: 100%; height: auto; }
em { font-style: italic; }
::selection { background: var(--brass); color: var(--ink); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .3em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--margin); top: -4rem; z-index: 10;
  padding: .75rem 1rem; background: var(--paper); color: var(--ink);
  font-size: .875rem; font-weight: 600; text-decoration: none;
}
.skip:focus { top: .75rem; }

/* ---------- Layout primitives ---------- */
.wrap { width: min(86rem, 100% - 2 * var(--margin)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.grid > * { grid-column: 1 / -1; min-width: 0; }
.section { padding-block: var(--section); }

.light {
  --fg: var(--ink);
  --muted: var(--stone-deep);
  --rule: var(--rule-light);
  --accent: var(--brass-deep);
  background: var(--paper);
  color: var(--fg);
  color-scheme: light;
}

.label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.4;
}
.section-rule {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding-bottom: 1.1rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--rule);
}
.rule-note { font-size: .8125rem; color: var(--muted); text-align: right; }

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.75rem, 1.4rem + 4.6vw, 6rem);
  line-height: 1;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h2 em { font-style: italic; }

.prose { max-width: 35rem; }
.prose p { color: var(--muted); }
.prose p + p { margin-top: 1.35rem; }
.prose .lead {
  color: var(--fg);
  font-size: clamp(1.1875rem, 1rem + .6vw, 1.375rem);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -.01em;
  margin-bottom: 2rem;
}

/* ---------- Masthead ---------- */
.masthead { border-bottom: 1px solid var(--rule-dark); }
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: 1.5rem;
}
.wordmark { display: inline-flex; flex-direction: column; gap: .3rem; text-decoration: none; white-space: nowrap; }
.wordmark:hover { color: var(--paper); }
.wordmark-name { text-transform: uppercase; font-size: 1rem; font-weight: 600; letter-spacing: .14em; line-height: 1.2; }
.initial { margin-inline: .38em; font-weight: 400; color: var(--stone); }
.wordmark-domain { font-size: .6875rem; letter-spacing: .12em; color: var(--stone); text-transform: lowercase; }
.primary-nav { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); font-size: .875rem; }
.primary-nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  text-decoration: none; color: var(--stone);
}
.primary-nav a:hover { color: var(--paper); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(4rem, 8vw, 7rem); row-gap: 2.5rem; align-items: stretch; }
.hero-copy { grid-column: 1 / 8; display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; }
.hero-copy .label { color: var(--stone); }
.hero-name {
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(3.4rem, 11.2vw, 11rem);
  line-height: .9;
  letter-spacing: -.055em;
  margin-left: -.06em;
}
.hero-given, .hero-family { display: block; white-space: nowrap; }
.hero-initial {
  display: inline-block;
  font-size: .42em;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: .32em;
  vertical-align: baseline;
  color: var(--brass);
}
.hero-intro {
  margin-top: clamp(1.75rem, 3vw, 2.75rem);
  max-width: 33rem;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  line-height: 1.6;
  color: var(--stone);
}
.hero-intro a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--rule-dark); }
.hero-intro a:hover { color: var(--brass); text-decoration-color: currentColor; }
.hero-since { display: block; }
.hero-portrait { grid-column: 8 / -1; align-self: end; }
.hero-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #1a1816; }
.hero-portrait figcaption,
.archive-caption,
figcaption {
  font-size: .75rem;
  line-height: 1.5;
  color: var(--muted);
}
.hero-portrait figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: .8rem; }

/* ---------- About ---------- */
.about { padding-bottom: calc(var(--section) * .6); }
.about-statement { grid-column: 1 / 6; align-self: start; position: sticky; top: 2rem; }
.about-prose { grid-column: 7 / -1; }
.about-prose .coda {
  margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--rule);
  color: var(--fg); font-family: var(--display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.2; text-wrap: balance;
}

/* ---------- Archive ---------- */
.archive { padding-top: calc(var(--section) * .6); }
.archive-grid { row-gap: 2rem; }
.archive-title { grid-column: 1 / 9; font-size: clamp(2.25rem, 1.3rem + 3vw, 4.25rem); line-height: 1.04; }
.archive-plate { grid-column: 1 / 10; }
.archive-plate img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.archive-caption { grid-column: 10 / -1; align-self: end; max-width: 16rem; padding-top: 1rem; border-top: 1px solid var(--rule); }

/* ---------- Ventures ---------- */
.ventures-title { margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.venture { border-top: 1px solid var(--rule); padding-top: clamp(2rem, 4vw, 3rem); row-gap: 2.5rem; }
.venture + .venture { margin-top: clamp(4rem, 8vw, 7rem); }
.venture-years { grid-column: 1 / 3; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); padding-top: .55rem; }
.venture-body { grid-column: 3 / 8; }
.venture h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.875rem, 1.3rem + 1.8vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -.035em;
  margin-bottom: 1.5rem;
}
.venture-body > p { color: var(--muted); max-width: 32rem; }
.venture-lead { font-family: var(--display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.2; color: var(--fg) !important; }
.facts { margin-top: 2rem; max-width: 32rem; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding-block: .8rem; border-bottom: 1px solid var(--rule); font-size: .9375rem; }
.facts dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: .15rem; }
.text-link {
  display: inline-flex; align-items: center; gap: 1.75rem; min-height: 2.75rem;
  margin-top: 1.75rem; padding-bottom: .35rem;
  font-size: .9375rem; text-decoration: none; border-bottom: 1px solid var(--brass);
}
.venture-cash { grid-column: 8 / -1; align-self: start; }
.venture-cash img { width: 100%; aspect-ratio: 1600 / 897; }
.venture figcaption { margin-top: .8rem; }
.venture-team { grid-column: 3 / 10; margin-top: 1rem; }
.venture-team img { width: 100%; aspect-ratio: 64 / 33; object-fit: cover; object-position: 50% 100%; }
.venture-note {
  grid-column: 10 / -1; align-self: end; padding-bottom: 2.2rem;
  font-family: var(--display); font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); line-height: 1.1;
}
.venture-note em { color: var(--brass); }
.venture-prose { grid-column: 8 / -1; padding-top: .4rem; }

/* ---------- Press ---------- */
.press-title { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.press-list { border-top: 1px solid var(--fg); }
.press-list li { border-bottom: 1px solid var(--rule); }
.press-list a {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: .6rem;
  align-items: baseline; padding-block: clamp(1.5rem, 2.6vw, 2.25rem); text-decoration: none;
}
.press-source { grid-column: 1 / 4; font-size: .9375rem; font-weight: 600; }
.press-type { display: block; margin-top: .2rem; font-size: .75rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.press-headline {
  grid-column: 4 / 11;
  font-family: var(--display); font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.25rem); line-height: 1.15;
  text-wrap: pretty;
}
.press-date { grid-column: 11 / -1; justify-self: end; display: inline-flex; gap: 1.25rem; font-size: .875rem; font-variant-numeric: tabular-nums; }
.press-arrow { display: inline-block; transition: transform .25s ease; }
.press-list a:hover { color: var(--fg); }
.press-list a:hover .press-headline { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: var(--rule); }
.press-list a:hover .press-arrow { transform: translate(3px, -3px); color: var(--accent); }
.press-note { margin-top: 1.5rem; max-width: 38rem; font-size: .8125rem; color: var(--muted); }

/* ---------- Now ---------- */
.now-title { grid-column: 1 / 7; font-size: clamp(4rem, 2rem + 8vw, 10.5rem); line-height: .92; letter-spacing: -.03em; }
.now-prose { grid-column: 7 / -1; align-self: end; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule-dark); }
.footer-inner {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2rem;
  padding-block: 3.5rem 3rem; font-size: .875rem; color: var(--stone);
}
.footer-name { text-transform: uppercase; grid-column: 1 / 6; font-size: 1rem; font-weight: 600; letter-spacing: .14em; color: var(--paper); white-space: nowrap; }
.footer-place { grid-column: 6 / 9; }
.footer-nav { grid-column: 9 / -1; display: flex; flex-direction: column; align-items: flex-start; }
.footer-nav a, .footer-top { display: inline-flex; align-items: center; gap: .5rem; min-height: 2rem; text-decoration: none; }
.footer-nav a:hover, .footer-top:hover { color: var(--paper); }
.footer-bottom {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding-top: 1.25rem; border-top: 1px solid var(--rule-dark); font-size: .8125rem;
}

/* ---------- Notes: shared ---------- */
.primary-nav a[aria-current] { color: var(--paper); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: .5em; }

.page-head { padding-block: clamp(3rem, 7vw, 6.5rem) clamp(3rem, 6vw, 5.5rem); row-gap: 1.75rem; }
.page-head-label { grid-column: 1 / -1; color: var(--stone); padding-bottom: 1.1rem; border-bottom: 1px solid var(--rule-dark); }
.page-title {
  grid-column: 1 / 7; align-self: end;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(4rem, 2rem + 8vw, 10rem); line-height: .92; letter-spacing: -.03em;
}
.page-intro { grid-column: 7 / -1; align-self: end; max-width: 34rem; color: var(--stone); }
.page-intro p + p { margin-top: 1.1rem; }
.page-intro-aside { font-size: .9375rem; }
.page-intro a { color: var(--paper); text-decoration-color: var(--rule-dark); }

/* ---------- Notes: index ---------- */
.notes-list { border-top: 1px solid var(--fg); }
.notes-list li { border-bottom: 1px solid var(--rule); }
.notes-list a {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: .75rem;
  align-items: baseline; padding-block: clamp(1.75rem, 3vw, 2.75rem); text-decoration: none;
}
.notes-list a:hover { color: var(--fg); }
.notes-meta { grid-column: 1 / 4; display: flex; flex-wrap: wrap; gap: .35rem .75rem; align-items: baseline; font-size: .8125rem; color: var(--muted); }
.notes-text { grid-column: 4 / 11; display: flex; flex-direction: column; gap: .6rem; }
.notes-title { font-family: var(--display); font-size: clamp(1.875rem, 1.3rem + 1.8vw, 3rem); line-height: 1.05; text-wrap: balance; overflow-wrap: break-word; }
.notes-dek { max-width: 36rem; color: var(--muted); }
.notes-arrow { grid-column: 12 / -1; justify-self: end; font-size: 1.25rem; transition: transform .25s ease; }
.notes-list a:hover .notes-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; text-decoration-color: var(--rule); }
.notes-list a:hover .notes-arrow { transform: translateX(4px); color: var(--accent); }
.notes-footnote { margin-top: 1.5rem; font-size: .8125rem; color: var(--muted); max-width: 38rem; }

.status-flag {
  display: inline-block; padding: .1rem .5rem;
  border: 1px solid currentColor; color: var(--accent);
  font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5;
}

/* ---------- Notes: article ---------- */
.draft-banner { background: var(--brass); color: var(--ink); font-size: .875rem; line-height: 1.5; }
.draft-banner-inner { padding-block: .7rem; }

.note-head { padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); row-gap: 1.5rem; }
.note-crumb { grid-column: 1 / -1; padding-bottom: 1.1rem; border-bottom: 1px solid var(--rule); }
.note-crumb a { text-decoration: none; color: var(--muted); display: inline-flex; min-height: 2rem; align-items: center; }
.note-crumb a::before { content: "← "; white-space: pre; }
.note-crumb a:hover { color: var(--accent); }
.note-title {
  grid-column: 1 / 11; margin-top: 1.5rem;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3rem, 1.4rem + 6vw, 7.5rem); line-height: .98; letter-spacing: -.025em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.note-dek {
  grid-column: 1 / 9; max-width: 44rem;
  font-size: clamp(1.1875rem, 1rem + .6vw, 1.4375rem); line-height: 1.5; color: var(--muted);
}
.note-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem 3rem; margin-top: 1rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); font-size: .875rem; }
.note-meta div { display: flex; gap: .75rem; align-items: baseline; }
.note-meta dt { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.note-meta a { text-decoration-color: var(--rule); }

.note-body { padding-bottom: clamp(3rem, 6vw, 5rem); }
.note-prose { grid-column: 4 / 11; max-width: 35rem; font-size: 1.125rem; line-height: 1.75; }
.note-prose p + p { margin-top: 1.4rem; }
.note-prose > p:first-child { font-size: clamp(1.25rem, 1.05rem + .6vw, 1.5rem); line-height: 1.55; font-weight: 500; letter-spacing: -.01em; }
.note-prose h2 {
  margin-top: 3.5rem; margin-bottom: 1.25rem;
  font-size: clamp(1.875rem, 1.4rem + 1.4vw, 2.625rem); line-height: 1.1; letter-spacing: -.015em;
}
.note-prose a { text-decoration-color: var(--brass-deep); }

.note-foot { padding-bottom: var(--section); }
.author-box { grid-column: 4 / 11; max-width: 35rem; padding-top: 1.5rem; border-top: 1px solid var(--fg); }
.author-box .label { color: var(--muted); margin-bottom: .75rem; }
.author-links { display: flex; flex-wrap: wrap; gap: .25rem 2rem; margin-top: 1rem; font-size: .9375rem; }
.author-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  .hero-copy { grid-column: 1 / 8; }
  .hero-portrait { grid-column: 8 / -1; }
  .hero-name { font-size: clamp(3.4rem, 10.8vw, 7.5rem); }
  .about-statement { grid-column: 1 / -1; position: static; max-width: 40rem; margin-bottom: 2.5rem; }
  .about-prose { grid-column: 1 / -1; }
  .archive-title { grid-column: 1 / -1; }
  .archive-plate { grid-column: 1 / -1; }
  .archive-caption { grid-column: 1 / 9; max-width: 28rem; }
  .venture-years { grid-column: 1 / -1; padding-top: 0; }
  .venture-body { grid-column: 1 / 8; }
  .venture-cash { grid-column: 8 / -1; }
  .venture-team { grid-column: 1 / -1; margin-top: 0; }
  .venture-note { display: none; }
  .venture-prose { grid-column: 1 / -1; }
  .press-source { grid-column: 1 / 10; }
  .press-headline { grid-column: 1 / 11; grid-row: 2; }
  .press-date { grid-column: 10 / -1; grid-row: 1; }
  .now-title { grid-column: 1 / -1; margin-bottom: 2.5rem; }
  .now-prose { grid-column: 1 / -1; }
  .page-title, .page-intro { grid-column: 1 / -1; }
  .notes-meta { grid-column: 1 / -1; }
  .notes-text { grid-column: 1 / 12; }
  .notes-arrow { grid-row: 2; }
  .note-title, .note-dek { grid-column: 1 / -1; }
  .note-prose, .author-box { grid-column: 1 / -1; }
}

/* ---------- Mobile ---------- */
@media (max-width: 699px) {
  body { font-size: 1rem; }
  .masthead-inner { flex-direction: column; align-items: flex-start; gap: .75rem; padding-block: 1.25rem .25rem; }
  .wordmark-name { font-size: .9375rem; }
  .primary-nav { width: 100%; gap: 1.75rem; border-top: 1px solid var(--rule-dark); }
  .hero { padding-top: 2rem; row-gap: 2.25rem; }
  .hero-copy { grid-column: 1 / -1; gap: 1.75rem; }
  .hero-copy .label { letter-spacing: .1em; font-size: .6875rem; }
  .hero-name { font-size: clamp(2.6rem, 19vw, 6rem); }
  .hero-portrait { grid-column: 1 / -1; }
  .section-rule { margin-bottom: 2.25rem; }
  .rule-note { font-size: .75rem; }
  .prose .lead { margin-bottom: 1.5rem; }
  .archive-caption { grid-column: 1 / -1; }
  .venture-body, .venture-cash { grid-column: 1 / -1; }
  .facts div { grid-template-columns: 5.5rem 1fr; }
  .press-source { grid-column: 1 / 9; }
  .press-date { grid-column: 9 / -1; gap: .75rem; font-size: .8125rem; }
  .press-headline { grid-column: 1 / -1; }
  .footer-name, .footer-place, .footer-nav { grid-column: 1 / -1; }
  .primary-nav { gap: 1.25rem; }
  .note-prose { font-size: 1.0625rem; }
  .note-prose h2 { margin-top: 2.75rem; }
  .note-meta { flex-direction: column; gap: .4rem; }
  .note-title { font-size: clamp(2rem, 9.6vw, 3rem); }
  .notes-title { font-size: clamp(1.5rem, 7.2vw, 1.875rem); }
}

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

@media print {
  body, .light { background: #fff; color: #000; }
  .masthead nav, .skip, .footer-top, .venture-note { display: none; }
  .about-statement { position: static; }
  a { text-decoration: underline; }
}
