/* gregoryheller.com
 *
 * Built on the Conversations on Careers design system: navy ground, one gold
 * accent, cream paper; Bebas Neue display caps, Merriweather light italic as
 * the connective voice, Lato for text. Flat and square: no shadows, no
 * gradients, round only for the gold disc and circular headshots.
 *
 * Colors come in two layers. Brand tokens never change. Semantic tokens
 * (surface, ink, ...) switch with data-theme, so a section, or the whole site
 * via <html data-theme="navy">, can flip between Paper and Navy.
 */

/* ---- Fonts (self-hosted, latin subset) ---------------------------------- */

@font-face { font-family: "Bebas Neue"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/BebasNeue-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/Lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/Lato-700.woff2") format("woff2"); }
@font-face { font-family: "Merriweather"; font-weight: 300; font-style: italic; font-display: swap; src: url("/assets/fonts/Merriweather-300i.woff2") format("woff2"); }

/* ---- Tokens -------------------------------------------------------------- */

:root {
  /* Brand */
  --navy: #2c3b4e;
  --gold: #e59f28;
  --cream: #f5f0e6;
  --white: #ffffff;

  /* Type */
  --font-display: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --font-serif: Merriweather, Georgia, serif;
  --font-sans: Lato, "Helvetica Neue", Arial, sans-serif;

  /* Space, radius, stroke */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 96px;
  --radius-0: 0;
  --radius-sm: 4px;
  --radius-full: 9999px;
  --stroke-hair: 2px;

  --measure: 62ch;
  --page: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* Paper: cream surface, navy ink. The default for the website. */
:root,
[data-theme="paper"] {
  --surface: var(--cream);
  --surface-raised: var(--white);
  --line: #dcd5c8;
  --ink: var(--navy);
  --ink-muted: #5b6878;
  --accent: var(--gold);
  --accent-text: #8a5a0f;
  --on-accent: var(--navy);
  --focus: var(--navy);
  --button: var(--navy);
  --on-button: var(--cream);
  color-scheme: light;
}

/* Navy: navy surface, white ink. For promotional bands, or the whole site. */
[data-theme="navy"] {
  --surface: var(--navy);
  --surface-raised: #36475d;
  --line: #4a5b71;
  --ink: var(--white);
  --ink-muted: #c3cbd5;
  --accent: var(--gold);
  --accent-text: #f0b24a;
  --on-accent: var(--navy);
  --focus: #f0b24a;
  --button: var(--gold);
  --on-button: var(--navy);
  color-scheme: dark;
}

/* ---- Base ---------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 17px/27px var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[data-theme] { background: var(--surface); color: var(--ink); }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-text); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--space-3); top: -100px; z-index: 100;
  padding: var(--space-2) var(--space-3);
  background: var(--button); color: var(--on-button);
  font-weight: 700;
}
.skip-link:focus { top: var(--space-3); }

/* ---- Type styles --------------------------------------------------------- */

.display-xl,
.display-lg,
.headline,
.title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.display-xl { font-size: clamp(64px, 10.5vw, 132px); line-height: 0.92; }
.display-lg { font-size: clamp(44px, 6vw, 72px); line-height: 0.95; }
.headline { font-size: clamp(32px, 4vw, 44px); line-height: 1; letter-spacing: 0.02em; }
.title { font-size: clamp(26px, 2.6vw, 32px); line-height: 1; letter-spacing: 0.02em; }

.accent-lg,
.accent-sm,
.quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
}
.accent-lg { font-size: clamp(26px, 3.2vw, 44px); line-height: 1.2; }
.accent-sm { font-size: 20px; line-height: 1.3; }
.quote { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; }

.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; max-width: var(--measure); }
.body-sm { font-size: 14px; line-height: 21px; }
.muted { color: var(--ink-muted); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* "on" between two gold hairlines: the show lockup's connective word. */
.on {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
}
.on::before,
.on::after {
  content: "";
  width: 1.3em;
  height: var(--stroke-hair);
  background: var(--gold);
}

/* ---- Layout -------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, var(--space-7)); }
.section--raised { background: var(--surface-raised); }
.section + .section--raised,
.section--raised + .section { border-top: 1px solid var(--line); }

.section-head { display: grid; gap: var(--space-2); margin-bottom: clamp(40px, 5vw, var(--space-6)); max-width: 46rem; }
.section-head--split {
  max-width: none;
  grid-template-columns: 1fr;
  align-items: end;
  gap: var(--space-3) var(--space-6);
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); }
}

/* ---- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-4);
  border: var(--stroke-hair) solid var(--button);
  border-radius: var(--radius-0);
  background: var(--button);
  color: var(--on-button);
  font: 700 14px/1 var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--surface); }
.btn--small { min-height: 40px; padding: 0 var(--space-3); font-size: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 72px;
}
.wordmark {
  font: 400 28px/1 var(--font-display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.site-nav ul { display: flex; gap: var(--space-5); }
.site-nav a { color: var(--ink-muted); text-decoration: none; font-size: 15px; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 760px) {
  .site-nav { display: none; }
}

/* ---- Hero ---------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, var(--space-7)) clamp(64px, 9vw, 120px); }
.hero .wrap {
  display: grid;
  gap: var(--space-5) var(--space-6);
  align-items: end;
}
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.hero-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  margin: var(--space-3) 0 var(--space-5);
}
.hero-lockup .row { display: flex; align-items: center; gap: var(--space-3); }
.hero-lockup .on { font-size: 0.42em; line-height: 1; }

.hero .btn-row { margin-top: var(--space-5); }
.hero .meta {
  display: flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-5);
}
.dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--gold); flex: none; }

.hero-figure { position: relative; max-width: 480px; justify-self: center; width: 100%; }
@media (min-width: 960px) { .hero-figure { justify-self: end; } }
.hero-figure picture { position: relative; z-index: 1; display: block; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-figure figcaption { position: relative; z-index: 1; margin-top: var(--space-2); text-align: right; }

/* The gold disc: behind the person, bleeding off the edge, never whole. */
.disc {
  position: absolute;
  z-index: 0;
  border-radius: var(--radius-full);
  background: var(--gold);
  pointer-events: none;
}
.hero-figure .disc { width: 78%; aspect-ratio: 1; left: -26%; bottom: -22%; }

/* ---- Pillars ------------------------------------------------------------- */

.pillars { display: grid; gap: var(--space-5) var(--space-5); }
@media (min-width: 820px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { border-top: var(--stroke-hair) solid var(--gold); padding-top: var(--space-4); }
.pillar-head { display: flex; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-3); }
.pillar-num { font: 400 40px/1 var(--font-display); color: var(--accent-text); }
.pillar p { color: var(--ink-muted); }

/* ---- Selected work ------------------------------------------------------- */

.work { border-top: 1px solid var(--line); }
.work li {
  display: grid;
  gap: var(--space-2) var(--space-5);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) {
  .work li { grid-template-columns: 14rem minmax(0, 1fr); align-items: baseline; }
}
.work-stat .display-lg { display: block; }
.work-stat .eyebrow { display: block; margin-top: var(--space-2); }
.work h3 { margin-bottom: var(--space-2); }
.work p { color: var(--ink-muted); max-width: var(--measure); }

/* ---- Testimonials -------------------------------------------------------- */

.quotes { display: grid; gap: var(--space-4); }
@media (min-width: 820px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
.quote-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, var(--space-5));
  background: var(--surface);
}
.section--raised .quote-card { background: var(--surface); }
.quote-card::before {
  content: "";
  width: 64px;
  height: var(--stroke-hair);
  background: var(--gold);
  margin-bottom: var(--space-4);
}
.quote-card blockquote { flex: 1; }
.quote-card figcaption { margin-top: var(--space-4); }
.quote-card .who { display: block; font: 400 24px/1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; }
.quote-card .role { display: block; margin-top: var(--space-1); }

/* ---- About --------------------------------------------------------------- */

.about { display: grid; gap: var(--space-6); }
@media (min-width: 960px) {
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .about-aside { position: sticky; top: 120px; align-self: start; }
}
.portrait { position: relative; width: min(100%, 360px); margin-bottom: var(--space-5); }
.portrait picture { position: relative; z-index: 1; display: block; }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-full); }
.portrait .disc { width: 62%; aspect-ratio: 1; left: -18%; bottom: -10%; }
.mantra span { display: block; }
.mantra .muted { color: var(--ink-muted); }
.mantra .accent { color: var(--accent-text); }

.prose { display: grid; gap: var(--space-4); max-width: var(--measure); font-size: 18px; line-height: 1.65; }
.prose em { font-family: var(--font-serif); font-weight: 300; }
.prose .closer {
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.5;
}
.prose .closer a { color: var(--accent-text); font-weight: 400; }

/* ---- Podcast (Navy band) ------------------------------------------------- */

.podcast { position: relative; overflow: hidden; }
.podcast .wrap { position: relative; z-index: 1; display: grid; gap: var(--space-6); }
@media (min-width: 960px) { .podcast .wrap { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; } }
/* Kept clear of the lockup: the system never puts text on the disc. */
.podcast .disc { width: 200px; aspect-ratio: 1; right: -80px; top: -116px; }
@media (min-width: 960px) { .podcast .disc { width: 340px; right: -150px; top: -230px; } }

.eyebrow--accent { color: var(--accent-text); margin-bottom: var(--space-4); }
.show-lockup { display: inline-flex; flex-direction: column; align-items: flex-end; color: var(--white); }
.show-lockup .row { display: flex; align-items: center; gap: var(--space-3); }
.show-lockup .on { font-size: 0.36em; line-height: 1; }
.show-lockup .sub { margin-top: var(--space-2); }

.podcast .lede { color: var(--ink-muted); margin-top: var(--space-5); }
.stats { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-5); margin-top: var(--space-5); }
.stats dt { order: 2; }
.stats div { display: flex; flex-direction: column; gap: var(--space-1); }
.stats dd { order: 1; margin: 0; font: 400 44px/1 var(--font-display); color: var(--white); }
.listen { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-top: var(--space-5); }
.listen a { color: var(--white); }
.listen a:hover { color: var(--accent-text); }
.podcast .btn { margin-top: var(--space-5); }

/* ---- Related sites ------------------------------------------------------- */

.sites { display: grid; gap: var(--space-4); }
@media (min-width: 820px) { .sites { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.site-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  height: 100%;
  padding: clamp(24px, 3vw, var(--space-5));
  background: var(--surface-raised);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.15s;
}
.site-card:hover { color: inherit; border-color: var(--ink); }
.site-card:hover .title { color: var(--accent-text); }
.site-card img { width: 96px; height: auto; }
/* Domain names are one long word; let them break rather than widen the page. */
.site-card .eyebrow { display: flex; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-3); letter-spacing: 0.14em; }
.site-card .eyebrow span:first-child { min-width: 0; overflow-wrap: anywhere; }
.site-card .title { margin-bottom: var(--space-2); }
.site-card p { color: var(--ink-muted); }

/* ---- Contact ------------------------------------------------------------- */

.contact { display: grid; gap: var(--space-5) var(--space-6); align-items: end; }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.contact .lede { margin-top: var(--space-4); color: var(--ink-muted); }
.contact-actions { display: grid; gap: var(--space-3); justify-items: start; }

/* ---- Footer -------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); padding-block: var(--space-5); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3) var(--space-5);
}
.site-footer ul { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: var(--ink); }

/* ---- Blog: layout -------------------------------------------------------- */

.blog-layout {
  display: grid;
  gap: var(--space-6);
  padding-block: clamp(40px, 6vw, var(--space-6)) clamp(64px, 9vw, var(--space-7));
}
@media (min-width: 1000px) {
  .blog-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-7); }
}

/* ---- Blog: post ---------------------------------------------------------- */

.post-header { padding-bottom: var(--space-4); margin-bottom: var(--space-5); border-bottom: var(--stroke-hair) solid var(--gold); max-width: 46rem; }
.post-header .eyebrow a { color: inherit; text-decoration: none; }
.post-header .eyebrow a:hover { color: var(--ink); text-decoration: underline; }
.post-title {
  margin: var(--space-3) 0 0;
  font: 400 clamp(40px, 5.4vw, 68px) / 0.98 var(--font-display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.post-topics { margin-top: var(--space-3); font-family: var(--font-serif); font-style: italic; font-weight: 300; color: var(--ink-muted); }
.post-topics a { color: var(--accent-text); }
.post-note {
  margin-bottom: var(--space-5);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-raised);
  border-left: var(--stroke-hair) solid var(--gold);
  font-size: 15px;
  color: var(--ink-muted);
  max-width: 46rem;
}

/* Long-form text from Markdown. */
.post-body { max-width: 46rem; font-size: 18px; line-height: 1.7; display: block; }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2,
.post-body h3,
.post-body h4 {
  margin-top: 1.8em;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
}
.post-body h2 { font-size: 34px; }
.post-body h3 { font-size: 26px; }
.post-body h4 { font-size: 21px; }
.post-body a { color: var(--accent-text); text-decoration-thickness: 1px; }
.post-body a:hover { color: var(--ink); }
.post-body ul,
.post-body ol { padding-left: 1.4em; }
.post-body ul { list-style: square; }
.post-body ol { list-style: decimal; }
.post-body li + li { margin-top: 0.4em; }
.post-body li::marker { color: var(--accent-text); }
.post-body blockquote {
  margin-inline: 0;
  padding-left: var(--space-4);
  border-left: var(--stroke-hair) solid var(--gold);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.6;
}
.post-body blockquote > * + * { margin-top: 0.8em; }
.post-body img { height: auto; }
.post-body figure figcaption { margin-top: var(--space-2); font-size: 14px; color: var(--ink-muted); }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.post-body code { font: 0.9em/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--surface-raised); padding: 0.1em 0.3em; }
.post-body pre { overflow-x: auto; padding: var(--space-3); background: var(--surface-raised); border: 1px solid var(--line); }
.post-body pre code { background: none; padding: 0; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.post-body th,
.post-body td { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.post-body th { font-weight: 700; }
.post-body .embed-link a {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  background: var(--surface-raised);
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}
.post-body .embed-link a:hover { border-color: var(--ink); }
.post-body .embed-gone { font-size: 14px; color: var(--ink-muted); }

.post-footer { margin-top: var(--space-6); max-width: 46rem; display: grid; gap: var(--space-5); }
.post-nav { display: grid; gap: var(--space-3); border-top: 1px solid var(--line); padding-top: var(--space-4); }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: grid; gap: var(--space-1); text-decoration: none; }
.post-nav a.older { text-align: right; }
.post-nav-title { font: 400 22px/1.05 var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; }
.post-nav a:hover .post-nav-title { color: var(--accent-text); }

/* ---- Blog: chips and sidebar --------------------------------------------- */

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 32px;
  padding: 0 var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-current { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chip .count { color: var(--ink-muted); font-size: 12px; }
.chips--large .chip { min-height: 40px; font-size: 15px; }

.blog-sidebar { display: grid; gap: var(--space-5); align-content: start; }
@media (min-width: 1000px) { .blog-sidebar { border-left: 1px solid var(--line); padding-left: var(--space-5); } }
.side-title {
  margin-bottom: var(--space-3);
  padding-top: var(--space-2);
  border-top: var(--stroke-hair) solid var(--gold);
  font: 400 13px/16px var(--font-sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.side-list li,
.archive ul li { display: flex; justify-content: space-between; gap: var(--space-3); padding-block: 5px; font-size: 15px; }
.side-list a,
.archive a { text-decoration: none; }
.side-list a:hover,
.archive a:hover { text-decoration: underline; }
.side-list a[aria-current],
.archive a[aria-current] { font-weight: 700; color: var(--accent-text); }
.count { color: var(--ink-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.side-more { margin-top: var(--space-3); font-size: 14px; }
.side-more a { color: var(--accent-text); }

.archive > li { border-bottom: 1px solid var(--line); }
.archive summary {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-block: var(--space-2);
  cursor: pointer;
  list-style: none;
  font: 400 22px/1 var(--font-display);
  letter-spacing: 0.03em;
}
.archive summary::-webkit-details-marker { display: none; }
.archive summary::before { content: "+"; font-family: var(--font-sans); font-size: 16px; color: var(--accent-text); width: 1em; }
.archive details[open] summary::before { content: "−"; }
.archive summary span:first-of-type { flex: 1; }
.archive details ul { padding: 0 0 var(--space-3) 1em; }

/* ---- Blog: lists ---------------------------------------------------------- */

.list-header { display: grid; gap: var(--space-2); padding-bottom: var(--space-4); border-bottom: var(--stroke-hair) solid var(--gold); margin-bottom: var(--space-2); }
.post-list > li { border-bottom: 1px solid var(--line); }
.post-card { display: grid; gap: var(--space-2); padding-block: var(--space-4); }
.post-card .title a { text-decoration: none; }
.post-card .title a:hover { color: var(--accent-text); }
.post-card-excerpt { color: var(--ink-muted); max-width: var(--measure); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); margin-top: var(--space-5); }

/* ---- Standalone pages and the full archive ------------------------------- */

.page-layout { max-width: calc(46rem + 2 * var(--gutter)); padding-block: clamp(40px, 6vw, var(--space-6)) clamp(64px, 9vw, var(--space-7)); }
.page-figure { width: 100%; max-height: 520px; object-fit: cover; margin-bottom: var(--space-5); }

.year-jump { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin-bottom: var(--space-5); font: 400 22px/1.2 var(--font-display); letter-spacing: 0.03em; }
.year-jump a { text-decoration: none; color: var(--accent-text); }
.year-jump a:hover { text-decoration: underline; }
.archive-year { padding-top: var(--space-5); margin-top: var(--space-5); border-top: var(--stroke-hair) solid var(--gold); }
.archive-year h2 a { text-decoration: none; }
.archive-year h2 .count { font-family: var(--font-sans); font-size: 15px; letter-spacing: 0; }
.archive-month { margin-top: var(--space-4); }
.archive-month h3 a { text-decoration: none; }
.archive-month ul { margin-top: var(--space-2); display: grid; gap: var(--space-2); }
.archive-month li a { text-decoration: none; }
.archive-month li a:hover { color: var(--accent-text); text-decoration: underline; }

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