/* masonborda.com
   Sibling of galactic.inc, adapted for a personal site and long-form essays.

   Tokens reused from the Intergalactic editorial layer in
   https://galactic.inc/css/site.css (BRAND=intergalactic) and the component
   scale in https://galactic.inc/css/mockup.css:

   --ts-blue / --primary   #8c1d40   link and accent (galactic burgundy)
   --ts-blue-hover         #6e1532
   --bkg-grey              #fdf6ee   page paper
   --white / --card-bg     #fffdf9   nav and code surfaces
   --border                #e4d6c8   hairline rules
   --border-soft           rgba(26,24,23,.08)
   --font / --font-grey-dk #1a1817   ink
   --font-grey             #625a53   secondary text (6.3:1 on paper)
   --lt-grey               #7a6e63
   --green                 #0b7348   status
   --red                   #b3261e
   --amber / --amber-bg    #8a5a00 / #fbefd9
   --radius                4px
   --section-gap           28px (14px under 640px on galactic; 22px here)
   --font-serif            Newsreader
   UI face                 Inter (galactic nav, labels, tables, captions)
   Type scale              landing h1 48/34, research h1 40/32, body 16,
                           essay body stepped up for reading (19/1.7)

   Legacy names (--bg, --text, --gold, …) alias the same tokens so any
   remaining var() references resolve into this palette.
*/

:root {
  --ts-blue: #8c1d40;
  --ts-blue-hover: #6e1532;
  --primary: #8c1d40;
  --bkg-grey: #fdf6ee;
  --white: #fffdf9;
  --card-bg: #fffdf9;
  --border: #e4d6c8;
  --border-soft: rgba(26, 24, 23, 0.08);
  --font: #1a1817;
  --font-grey-dk: #1a1817;
  --font-grey: #625a53;
  --lt-grey: #7a6e63;
  --green: #0b7348;
  --red: #b3261e;
  --amber: #8a5a00;
  --amber-bg: #fbefd9;
  --radius: 4px;
  --radius-sm: 3px;
  --section-gap: 28px;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: Inter, system-ui, -apple-system, sans-serif;
  --page: 820px;
  --gutter: max(20px, calc((100vw - var(--page)) / 2));
  --nav-h: 64px;
  --measure: 66ch;
  /* Masthead band. Ink is --font. Type on it uses --white.
     Muted type on the band is the galactic dark-theme --font-grey. */
  --masthead: var(--font);
  --masthead-muted: #b3a99f;

  --bg: var(--bkg-grey);
  --surface: var(--white);
  --text: var(--font);
  --muted: var(--font-grey);
  --accent: var(--font);
  --gold: var(--ts-blue);
  --gold-light: var(--ts-blue);
}

@media (max-width: 640px) {
  :root { --section-gap: 22px; }
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bkg-grey);
  color: var(--font);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(140, 29, 64, 0.16); }

:focus-visible {
  outline: 2px solid var(--ts-blue);
  outline-offset: 3px;
}
.announcement-bar a:focus-visible,
nav a:focus-visible,
nav button:focus-visible,
.hero-links a:focus-visible,
.mobile-menu a:focus-visible,
.post-meta a:focus-visible {
  outline-color: var(--white);
}

img { max-width: 100%; height: auto; }

a { color: var(--ts-blue); text-underline-offset: 3px; }
a:hover { color: var(--ts-blue-hover); }

/* Prose links only. Nav, lists, and footer stay plain. */
.post-content a,
.transcript a,
main p a,
main li a,
.tl-desc a,
.venture-desc a,
.press-quote a,
#faq a,
#next a,
.press-link,
.summary a {
  text-decoration: underline;
  text-decoration-color: rgba(140, 29, 64, 0.4);
}
.post-content a:hover,
.transcript a:hover,
main p a:hover,
main li a:hover,
.hero-bio a:hover,
.tl-desc a:hover,
.venture-desc a:hover,
#faq a:hover,
.press-link:hover {
  text-decoration-color: currentColor;
}

/* ---------- announcement ---------- */
.announcement-bar {
  position: relative;
  top: auto;
  z-index: 40;
  background: var(--masthead);
  border-bottom: 1px solid rgba(255, 253, 249, 0.14);
  padding: 10px var(--gutter);
}
.announcement-bar a {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 12px;
  max-width: var(--page);
  margin: 0 auto;
  width: 100%;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.announcement-label {
  flex: none;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}
.announcement-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--masthead-muted);
  letter-spacing: 0;
}
.announcement-cta {
  flex: none;
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--white);
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 253, 249, 0.45);
}

/* ---------- nav (galactic .site-nav / .brand-word) ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--gutter);
  background: var(--masthead);
  border-bottom: 3px solid var(--ts-blue);
}
/* Home and essays continue the ink band through the title, so the rule sits at the bottom of that band. */
body:has(.hero) nav,
body:has(.post-meta) nav { border-bottom: 0; }
.nav-name,
.nav-logo {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--masthead-muted);
  text-decoration: none;
  padding: 6px 10px;
  margin: 0;
  line-height: 1.2;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active {
  color: var(--white);
  font-weight: 600;
  box-shadow: inset 0 -1.5px 0 var(--white);
}
.nav-back {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--masthead-muted);
  text-decoration: none;
}
.nav-back:hover { color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  margin-left: 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--masthead);
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 88px var(--gutter) 40px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--white);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 253, 249, 0.16);
}
.mobile-menu a:hover { color: var(--masthead-muted); }

/* ---------- home ---------- */
.hero {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  column-gap: 28px;
  row-gap: 0;
  align-items: center;
  padding: 48px var(--gutter) 32px;
  min-height: 0;
  max-width: none;
  background: var(--masthead);
  color: var(--white);
  border-bottom: 3px solid var(--ts-blue);
}
.hero-inner { display: contents; }
.hero-photo,
.hero-photo.visible {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  opacity: 1;
  transform: none;
  animation: none;
}
.hero-label { grid-column: 2; grid-row: 1; align-self: end; }
.hero h1 { grid-column: 2; grid-row: 2; align-self: start; }
.hero-bio { grid-column: 1 / -1; }
.hero-links { grid-column: 1 / -1; }
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--masthead-muted);
  margin: 0 0 8px;
}
.hero h1,
h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.96;
  color: var(--font);
}
.hero h1 {
  font-size: clamp(64px, 8vw, 96px);
  margin: 0;
  color: var(--white);
}
.hero h1 .dim { color: var(--white); }
.hero-bio {
  font-family: var(--font-sans);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--font);
  max-width: calc(66ch + var(--gutter));
  margin: 0;
  padding: 32px var(--gutter) 4px;
  letter-spacing: 0;
}
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; }
.hero-links a {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--white);
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 253, 249, 0.45);
}
.hero-links a:hover { color: var(--white); text-decoration-color: var(--white); }

section {
  max-width: none;
  padding: 0 var(--gutter) 8px;
  border: 0;
}
.section-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--font-grey);
  margin: 48px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.ventures { display: flex; flex-direction: column; }
.venture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 32px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  border-top: 0;
}
.venture:first-child { border-top: 0; }
.venture-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--font);
  margin: 0 0 6px;
  line-height: 1.25;
}
.venture-desc {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--font);
  max-width: 68ch;
}
.venture-desc em { color: var(--font); font-style: italic; }
.venture-tag,
.venture-tag a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--font-grey);
  white-space: nowrap;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.venture-tag a:hover { color: var(--ts-blue); }

.timeline { display: flex; flex-direction: column; padding-top: 8px; }
.tl-item {
  display: grid;
  grid-template-columns: 52px 16px minmax(0, 1fr);
  gap: 0 14px;
  padding-bottom: 22px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-year {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--font-grey);
  text-align: right;
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}
.tl-line { display: flex; flex-direction: column; align-items: center; }
.tl-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--ts-blue);
  margin-top: 5px;
  flex-shrink: 0;
}
.tl-bar {
  width: 1px;
  flex: 1;
  background: var(--border);
  margin-top: 6px;
}
.tl-item:last-child .tl-bar { display: none; }
.tl-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--font);
  margin: 0 0 4px;
  line-height: 1.3;
}
.tl-desc {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--font);
  max-width: 66ch;
}

.press-grid { display: flex; flex-direction: column; }
.press-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.press-pub {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--font-grey);
  margin: 0 0 8px;
}
.press-headline {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--font);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.press-quote {
  font-family: var(--font-serif);
  font-size: 17px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  color: var(--font);
  border-left: 2px solid var(--border);
  padding-left: 16px;
  margin: 0 0 12px;
  max-width: 62ch;
}
.press-link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ts-blue);
  border: 0;
  padding: 0;
}

#next p,
#faq p,
#newsletter p {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--font);
  max-width: 66ch;
}
#faq > div {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 70ch;
  margin-top: 4px;
}
#faq > div > div {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
#faq h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--font);
}
#newsletter { text-align: left; }
#newsletter > div { max-width: 40em; margin: 0; }
#newsletter > div > div:first-child {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--font-grey);
  margin: 48px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
#newsletter h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 10px;
  color: var(--font);
}
#newsletter p { margin: 0 0 20px; color: var(--font-grey); }
iframe {
  display: block;
  width: 100%;
  max-width: 480px;
  height: 150px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
}

section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* ---------- writing index, podcasts, essays ---------- */
.wrap,
.page-header,
.podcast-list,
.post-wrap {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap { padding-top: 48px; padding-bottom: 24px; }
.page-label,
.post-tag,
.transcript-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--font-grey);
  margin: 0 0 18px;
}
.post-list { display: flex; flex-direction: column; }
.post-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.post-year {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--font-grey);
  font-variant-numeric: tabular-nums;
}
.post-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--font);
}
.post-row:hover .post-title { color: var(--ts-blue); }
.post-row .post-subtitle,
.post-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.45;
  color: var(--font-grey);
  margin-top: 4px;
}

.page-header { padding-top: 48px; padding-bottom: 8px; border: 0; }
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--font);
  margin: 0 0 16px;
}
.page-desc {
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--font-grey);
  max-width: 58ch;
}
.podcast-list { padding-top: 8px; padding-bottom: 8px; }
.podcast-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 28px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.pod-show,
.post-show {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--font-grey);
  margin: 0 0 6px;
}
.pod-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--font);
  margin: 0 0 8px;
}
.pod-desc,
.post-desc {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--font);
  max-width: 62ch;
  margin: 0 0 14px;
}
.post-meta .post-desc {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
  color: var(--font-grey);
  max-width: var(--measure);
}
.pod-tags { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 12px; }
.pod-tag {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--lt-grey);
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.pod-links, .post-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.pod-link,
.post-link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ts-blue);
  text-decoration: underline;
  text-decoration-color: rgba(140, 29, 64, 0.4);
  text-underline-offset: 3px;
  border: 0;
  padding: 0;
}
.pod-link.secondary,
.post-link.secondary { color: var(--font-grey); text-decoration-color: var(--border); }
.pod-link:hover,
.post-link:hover { color: var(--ts-blue-hover); }
.pod-meta { text-align: right; padding-top: 4px; }
.pod-number {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--lt-grey);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.pod-year {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0;
  color: var(--font-grey);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.post-wrap {
  padding-top: 0;
  padding-bottom: 24px;
}
.post-meta {
  max-width: none;
  margin: 0 calc(var(--gutter) * -1) 0;
  padding: 44px var(--gutter) 32px;
  background: var(--masthead);
  color: var(--white);
  border-bottom: 3px solid var(--ts-blue);
}
.post-meta .post-tag,
.post-meta .post-show,
.post-meta .post-date { color: var(--masthead-muted); }
.post-wrap h1 {
  font-size: clamp(40px, 5.5vw, 56px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  max-width: 18em;
  color: var(--white);
}
.post-meta .post-subtitle { font-size: 21px; line-height: 1.4; margin: 0 0 14px; max-width: 36em; color: var(--masthead-muted); }
.post-meta .post-desc { color: var(--masthead-muted); }
.post-meta .post-link,
.post-meta .post-links a {
  color: var(--white);
  text-decoration-color: rgba(255, 253, 249, 0.45);
}
.post-meta .post-link:hover,
.post-meta .post-links a:hover { color: var(--white); text-decoration-color: var(--white); }
.post-date {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--font-grey);
  font-variant-numeric: tabular-nums;
}
.post-divider {
  border: 0;
  height: 0;
  margin: 0;
  max-width: none;
}
.post-meta + .transcript-label {
  border-top: 0;
  margin-top: 32px;
}
.post-content {
  max-width: var(--measure);
  margin-top: 32px;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.7;
  color: var(--font);
}
.post-content p { margin: 0 0 1.15em; }
.post-content h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--font);
  margin: 1.6em 0 0.5em;
}
.post-content h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin: 1.4em 0 0.4em;
  color: var(--font);
}
.post-content ul,
.post-content ol { margin: 0 0 1.15em 1.25em; }
.post-content li { margin: 0 0 0.35em; }
.post-content strong { font-weight: 600; }
.post-content em { font-style: italic; color: inherit; }
.post-content blockquote {
  border-left: 2px solid var(--ts-blue);
  padding-left: 16px;
  margin: 1.4em 0;
  color: var(--font-grey);
  font-style: italic;
}
.post-content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}
.post-content figure,
.post-content .captioned-image-container { margin: 1.6em 0; }
.post-content img { display: block; }
.post-content .image-link-expand,
.post-content .pencraft,
.post-content button.restack-image,
.post-content button.view-image { display: none !important; }
.post-content figcaption {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--font-grey);
  margin-top: 8px;
}
.post-content table,
main table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
}
.post-content th,
main th {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--font-grey);
  text-align: left;
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: bottom;
}
.post-content td,
main td {
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--font);
}
.post-content code,
main code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
  background: rgba(140, 29, 64, 0.06);
  color: var(--font);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
.post-content pre,
main pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.55;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow-x: auto;
  margin: 1.2em 0;
  color: var(--font);
}
.post-content pre code,
main pre code { background: none; padding: 0; font-size: inherit; border-radius: 0; }
.highlight {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow-x: auto;
  margin: 1.2em 0;
}
.highlight pre { border: 0; padding: 0; margin: 0; background: transparent; }

.post-bio {
  max-width: var(--measure);
  margin-top: 48px;
  padding: 20px 0 0;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}
.post-bio-name {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--font-grey);
  margin: 0 0 8px;
}
.post-bio-text {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--font-grey);
}
.post-bio-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.post-bio-links a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ts-blue);
  text-decoration: none;
}
.post-bio-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.back-link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--font-grey);
  text-decoration: none;
  display: inline-block;
  margin-top: 36px;
}
.back-link:hover { color: var(--ts-blue); }

.transcript-label {
  max-width: var(--measure);
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.transcript {
  max-width: var(--measure);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--font);
}
.transcript p { margin: 0 0 1.15em; }

/* ---------- legal + erc-1404 ---------- */
main {
  max-width: none;
  margin: 0;
  padding: 40px var(--gutter) 72px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--font);
}
main h1 {
  font-size: clamp(34px, 5vw, 44px);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 10px;
}
.subtitle,
main > h1 + p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--font-grey);
  margin: 0 0 28px;
  max-width: 62ch;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--font-grey);
  margin: 0 0 20px;
}
.breadcrumb a { color: var(--font-grey); text-decoration: none; }
.breadcrumb a:hover { color: var(--font); }
.breadcrumb span { color: var(--lt-grey); }

.disclaimer {
  background: transparent;
  border: 0;
  border-left: 2px solid var(--border);
  border-radius: 0;
  padding: 2px 0 2px 16px;
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--font-grey);
  max-width: 70ch;
}
.disclaimer strong { color: var(--font); font-weight: 600; }

.case {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding: 28px 0;
  margin: 0;
}
.case-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  flex-wrap: wrap;
}
.case-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--font);
}
.case-number {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--font-grey);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.badge {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  white-space: nowrap;
}
.badge-active { color: var(--green); background: transparent; border: 0; }
.meta,
.case-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
  margin: 0 0 18px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--border);
}
.meta-item label {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--font-grey);
  margin: 0 0 3px;
}
.meta-item span {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
  color: var(--font);
}
.summary {
  font-size: 16px;
  line-height: 1.65;
  color: var(--font);
  margin: 0 0 18px;
  max-width: 70ch;
  border: 0;
  padding: 0;
}
.filings-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--font-grey);
  margin: 8px 0 8px;
}
.filing-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  margin: 0;
  background: transparent;
  border-radius: 0;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.filing-name { font-size: 15px; font-weight: 600; color: var(--font); }
.filing-date { font-size: 13px; color: var(--font-grey); margin-top: 2px; font-variant-numeric: tabular-nums; }
.filing-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ts-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(140, 29, 64, 0.4);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  white-space: nowrap;
}
.filing-link:hover { background: transparent; border: 0; color: var(--ts-blue-hover); }
.filing-box {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding: 16px 0;
  margin: 12px 0 8px;
}
.content-section { margin: 0 0 28px; max-width: 70ch; }
main h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--font);
  margin: 1.4em 0 0.5em;
  padding: 0;
}
main h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  margin: 1.2em 0 0.4em;
  color: var(--font);
}
main p { margin: 0 0 1em; }
main ul, main ol { margin: 0 0 1em 1.25em; }
main li { margin: 0 0 0.35em; }

/* SEO-only FAQ blocks. Keep them out of the visual page. */
.faq-section,
.faq-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ai-row {
  margin: 8px 0 8px;
  padding: 18px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
}
.ai-row-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--font-grey);
  margin: 0 0 4px;
}
.ai-row-sub {
  font-size: 14px;
  line-height: 1.5;
  color: var(--font-grey);
  margin: 0 0 12px;
  max-width: 62ch;
}
.ai-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-btn {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--font);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.ai-btn:hover {
  border-color: var(--ts-blue);
  color: var(--ts-blue);
  background: var(--white);
}

/* ERC-1404 reads as an essay; legal pages stay in Inter. */
main:has(.intro) {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.7;
}
main:has(.intro) .page-label { margin-bottom: 14px; }
main:has(.intro) .intro {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--font);
  max-width: var(--measure);
  margin: 0 0 1em;
}
main:has(.intro) p,
main:has(.intro) li { max-width: var(--measure); }
main:has(.intro) h1 { max-width: 16em; margin-bottom: 16px; }
main:has(.intro) table,
main:has(.intro) th,
main:has(.intro) td,
main:has(.intro) pre,
main:has(.intro) .page-label {
  font-family: var(--font-sans);
}
main:has(.intro) table { font-size: 14px; line-height: 1.45; max-width: 100%; }

/* ---------- footer ---------- */
footer {
  margin-top: 12px;
  padding: 22px var(--gutter) 48px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 24px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--font-grey);
  background: transparent;
  text-align: left;
}
.footer-name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--font-grey);
}
.footer-links,
footer > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
footer a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--font-grey);
  text-decoration: none;
}
footer a:hover { color: var(--ts-blue); }
footer p {
  flex: 1 0 100%;
  max-width: 68ch;
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--lt-grey);
  text-align: left;
}

/* Terms page, before it is wrapped in main. */
body > h1 { padding: 48px var(--gutter) 0; }
body > p { padding: 0 var(--gutter); max-width: calc(var(--measure) + var(--gutter)); margin-bottom: 16px; }

/* ---------- pac-man easter egg ---------- */
#pacman-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#pacman-overlay > div {
  color: #fffdf9;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}
#pacman-canvas { border: 1px solid #2a2b34; max-width: 100%; height: auto; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  nav:has(.hamburger) .nav-links { display: none; }
  nav:has(.hamburger) .hamburger { display: flex; }
  nav:not(:has(.hamburger)) {
    height: auto;
    min-height: var(--nav-h);
    padding-top: 10px;
    padding-bottom: 10px;
    flex-wrap: wrap;
  }
  nav:not(:has(.hamburger)) .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0;
  }
  .hero {
    grid-template-columns: 1fr;
    row-gap: 0;
    padding-top: 32px;
    align-items: start;
  }
  .hero-photo,
  .hero-photo.visible,
  .hero-label,
  .hero h1,
  .hero-links {
    grid-column: 1;
    grid-row: auto;
  }
  .hero-photo,
  .hero-photo.visible { width: 84px; height: 84px; margin-bottom: 18px; }
  .hero h1 { font-size: 52px; }
  .hero-bio { padding-top: 24px; max-width: none; }
  .venture { grid-template-columns: minmax(0, 1fr); }
  .venture-tag,
  .venture-tag a { white-space: normal; }
  .podcast-item { grid-template-columns: minmax(0, 1fr); }
  .pod-meta { text-align: left; display: flex; gap: 10px; }
  .announcement-cta { display: none; }
  .announcement-title { min-width: 0; }
  .post-row { grid-template-columns: 44px minmax(0, 1fr); gap: 8px 12px; }
  .post-title, .pod-title { font-size: 22px; }
  .post-content { font-size: 18px; }
  .case-header { flex-direction: column; }
  .meta, .case-meta { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 42px; }
  .tl-item { grid-template-columns: 42px 14px minmax(0, 1fr); gap: 0 8px; }
  .mobile-menu a { font-size: 24px; }
}

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