/* ------------------------------------------------------------------
   angusblair.com — design tokens & base styles
   Restrained, print-feeling, single-column. Newsreader + Inter.
   ------------------------------------------------------------------ */

:root {
  --bg:        #F8F6F1;
  --bg-deep:   #F2EFE6;
  --ink:       #14110F;
  --ink-soft:  #1A1612;
  --muted:     #6B6660;
  --muted-2:   #8A857E;
  --rule:      #E3DED6;
  --rule-2:    #D9D2C6;
  --accent:    #8B2E1F;
  --accent-ink:#6E2417;
  --portrait-filter: grayscale(100%);

  --serif: "Newsreader", "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --measure: 660px;
  --measure-wide: 760px;
  --gutter: clamp(20px, 4vw, 56px);

  --t-base: 18.5px;
  --t-small: 14px;
  --t-meta: 13px;
}

:root[data-theme="dark"] {
  --bg:        #14110F;
  --bg-deep:   #1B1815;
  --ink:       #EAE6DD;
  --ink-soft:  #D7D2C7;
  --muted:     #8E887E;
  --muted-2:   #6E6960;
  --rule:      #2A2622;
  --rule-2:    #36312B;
  --accent:    #D77556;
  --accent-ink:#E8866A;
  --portrait-filter: grayscale(100%) brightness(0.92) contrast(1.05);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
}

body { min-height: 100vh; }

/* ----------------- Page chrome ----------------- */

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  padding: 28px var(--gutter) 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.site-header__logo img {
  height: 44px;
  width: auto;
  display: block;
}

.site-header__nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: var(--t-small);
  letter-spacing: 0.005em;
  padding-top: 6px;
}

.site-header__nav a {
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 140ms ease;
}

.site-header__nav a:hover { color: var(--accent); }
.site-header__nav a[aria-current="page"] { color: var(--accent); }
.site-header__nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--accent);
}

/* ----------------- Mobile menu button ----------------- */

.site-header__menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  padding: 6px 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  z-index: 60;
}
.site-header__menu-btn-bars {
  position: relative;
  width: 22px;
  height: 14px;
  display: inline-block;
}
.site-header__menu-btn-bars span {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: currentColor;
  transition: transform 220ms ease, top 220ms ease, opacity 160ms ease;
}
.site-header__menu-btn-bars span:nth-child(1) { top: 4px; }
.site-header__menu-btn-bars span:nth-child(2) { top: 10px; }
.site-header__menu-btn-bars[data-open="true"] span:nth-child(1) {
  top: 7px; transform: rotate(45deg);
}
.site-header__menu-btn-bars[data-open="true"] span:nth-child(2) {
  top: 7px; transform: rotate(-45deg);
}

/* ----------------- Mobile menu overlay ----------------- */

.mobile-menu { display: none; }
@media (max-width: 720px) {
  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: var(--bg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease;
    padding: 88px var(--gutter) 32px;
    overflow-y: auto;
  }
  .mobile-menu[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--rule);
    margin-top: 8px;
  }
  .mobile-menu__link {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--rule);
    text-decoration: none;
    color: var(--ink);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 320ms ease, transform 320ms ease, color 140ms ease;
  }
  .mobile-menu[data-open="true"] .mobile-menu__link {
    opacity: 1;
    transform: translateY(0);
  }
  .mobile-menu__link-num {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--muted-2);
    flex: 0 0 auto;
    padding-top: 4px;
  }
  .mobile-menu__link-label {
    font-family: var(--serif);
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.012em;
  }
  .mobile-menu__link[aria-current="page"] .mobile-menu__link-label { color: var(--accent); }
  .mobile-menu__link[aria-current="page"] .mobile-menu__link-num   { color: var(--accent); }
  .mobile-menu__foot {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--muted);
  }
  .mobile-menu__foot a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--rule-2);
    padding-bottom: 1px;
  }
  .mobile-menu__foot a:hover { color: var(--accent); border-color: var(--accent); }
}

.site-main { flex: 1; width: 100%; }

.site-footer {
  margin-top: 96px;
  padding: 32px var(--gutter) 40px;
  border-top: 1px solid var(--rule);
  max-width: 1280px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  font-family: var(--sans);
  font-size: var(--t-meta);
  color: var(--muted);
  line-height: 1.55;
}
.site-footer__bio { max-width: 520px; }
.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  justify-self: end;
}
.site-footer__links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}
.site-footer__links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.site-footer__copy {
  grid-column: 1 / -1;
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 12px;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.measure {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}
.measure-wide {
  max-width: var(--measure-wide);
  margin-left: auto;
  margin-right: auto;
}

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

.label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.016em;
}

.dek {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  margin-top: 14px;
  max-width: 640px;
  text-wrap: balance;
}

.lead {
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a.text-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-2);
  transition: color 140ms ease, border-color 140ms ease;
}
a.text-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

a.muted-link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}
a.muted-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

a.arrow-link {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.005em;
  transition: opacity 140ms ease;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
a.arrow-link::after {
  content: "→";
  transition: transform 180ms ease;
}
a.arrow-link:hover { opacity: 0.78; }

hr.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 56px 0;
}

/* ----------------- Page title block ----------------- */

.page-head {
  padding: 56px var(--gutter) 28px;
  max-width: 1280px;
  margin: 0 auto;
}
.page-head__inner { max-width: var(--measure-wide); }
.page-head .label {
  display: block;
  margin-bottom: 18px;
}
.page-head .dek { margin-top: 16px; }

/* ----------------- Curated list item ----------------- */

.list { list-style: none; margin: 0; padding: 0; }

.list-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.list-item:last-child { border-bottom: 1px solid var(--rule); }
.list-item__date {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding-top: 6px;
}
.list-item__body { min-width: 0; }
.list-item__title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  font-weight: 500;
}
.list-item__title a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: color 160ms ease, background-size 220ms ease;
  padding-bottom: 1px;
}
.list-item__title a:hover {
  color: var(--accent);
  background-size: 100% 1px;
}
.list-item__summary {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  max-width: 580px;
}
.list-item__aside {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
  padding-top: 8px;
}

@media (max-width: 720px) {
  .list-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px 0;
  }
  .list-item__date { padding-top: 0; order: 1; }
  .list-item__body { order: 2; }
  .list-item__aside { text-align: left; padding-top: 4px; order: 3; }
}

.year-divider {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 44px 0 6px;
  padding-bottom: 6px;
}

/* ----------------- Pinned essay block ----------------- */

.pinned {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 28px 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
}
.pinned__label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.pinned__title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.014em;
  margin: 0 0 10px;
  font-weight: 500;
  text-wrap: balance;
}
.pinned__title a { color: var(--ink); text-decoration: none; }
.pinned__title a:hover { color: var(--accent); }
.pinned__sub {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
  margin: 0;
  max-width: 600px;
}
.pinned__cta {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.pinned__cta:hover { opacity: 0.78; }

@media (max-width: 720px) {
  .pinned { grid-template-columns: 1fr; gap: 16px; }
}

/* ----------------- Prose (essay body) ----------------- */

.prose {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
}
.prose p { margin: 0 0 1.1em; }
.prose h2 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin: 2em 0 0.6em;
  font-weight: 500;
}
.prose h3 {
  font-size: 13px;
  line-height: 1.25;
  margin: 1.6em 0 0.5em;
  font-weight: 600;
  font-family: var(--sans);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--muted);
}
.prose blockquote {
  border-left: 2px solid var(--accent);
  margin: 1.4em 0;
  padding: 4px 0 4px 24px;
  font-style: italic;
  color: var(--ink-soft);
}
.prose ol, .prose ul {
  padding-left: 1.4em;
  margin: 0 0 1.1em;
}
.prose li { margin-bottom: 0.4em; }
.prose a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-2);
  transition: color 140ms ease, border-color 140ms ease;
}
.prose a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.2em auto;
  width: 60px;
}

.prose .dropcap::first-letter,
.prose.dropcap-wrap > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  -webkit-initial-letter: 3;
          initial-letter: 3;
  float: left;
  font-size: 4.4em;
  line-height: 1;
  padding: 0.02em 0.08em 0 0;
  margin-top: -0.04em;
  shape-outside: margin-box;
}
@supports ((-webkit-initial-letter: 3) or (initial-letter: 3)) {
  .prose .dropcap::first-letter,
  .prose.dropcap-wrap > p:first-of-type::first-letter {
    float: none;
    font-size: inherit;
    line-height: inherit;
    padding: 0;
    margin-top: 0;
    margin-right: 0.06em;
  }
}

.footnote-marker {
  font-family: var(--sans);
  font-size: 0.7em;
  vertical-align: super;
  color: var(--accent);
  text-decoration: none;
  margin-left: 1px;
}
.footnotes {
  border-top: 1px solid var(--rule);
  margin-top: 64px;
  padding-top: 24px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.footnotes ol { padding-left: 1.2em; }
.footnotes li { margin-bottom: 12px; }

/* ----------------- Back link ----------------- */

.back-link {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
  transition: color 140ms ease;
}
.back-link::before { content: "←"; }
.back-link:hover { color: var(--accent); }

.section-title {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

/* ----------------- Responsive (global) ----------------- */

@media (max-width: 720px) {
  :root {
    --t-base: 17px;
    --gutter: 18px;
  }
  body { font-size: 17px; }
  .site-header {
    padding: 18px var(--gutter) 0;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .site-header__logo img { height: 36px; }
  .site-header > .site-header__nav { display: none; }
  .site-header__menu-btn { display: inline-flex; }
  .site-footer {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 56px;
    padding-bottom: 56px;
  }
  .site-footer__links { justify-self: start; flex-direction: row; flex-wrap: wrap; gap: 14px 18px; }
  .page-head { padding: 32px var(--gutter) 16px; }
  .page-title { font-size: clamp(28px, 7.5vw, 38px); }
  .home { padding-top: 28px; }
  .home__hero { padding: 0 0 36px; }
  .home__name { font-size: clamp(28px, 8vw, 38px); margin-bottom: 18px; }
  .home__section { padding: 36px 0; }
  .home__outset { padding: 36px 0; }
  .pinned { padding: 22px 0 24px; }
  .pinned__title { font-size: 24px; }
  .pinned__cta { white-space: normal; }
  .prose { font-size: 17.5px; }
  .prose .dropcap::first-letter { font-size: 4em; }
  .prose blockquote { padding-left: 16px; margin: 1.2em 0; }
  .home__pinned-list .list-item__summary { font-size: 15.5px; }
}

/* ----------------- Theme toggle ----------------- */

.theme-toggle {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--rule-2);
  font-size: 18px;
  font-family: var(--serif);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: color 140ms ease, border-color 140ms ease, transform 200ms ease, background 220ms ease;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle:active { transform: scale(0.95); }
@media (max-width: 720px) {
  .theme-toggle { bottom: 14px; right: 14px; width: 36px; height: 36px; font-size: 16px; }
}

/* ----------------- Selection ----------------- */
::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ----------------- Theme transition ----------------- */
html { transition: background-color 220ms ease, color 220ms ease; }
body, .site-header, .site-footer, .pinned, .list-item, .home__section, .home__outset {
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

/* ----------------- Portrait theme-aware ----------------- */
.home__portrait { filter: var(--portrait-filter); }

/* ------------------------------------------------------------------
   Page-specific styles: home
   ------------------------------------------------------------------ */

.home {
  padding: 56px var(--gutter) 0;
  max-width: 1280px;
  margin: 0 auto;
}

.home__hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: 24px 0 80px;
}

.home__intro .label {
  display: block;
  margin-bottom: 22px;
}

.home__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin: 0 0 24px;
  text-wrap: balance;
}

.home__positioning {
  font-family: var(--serif);
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0;
}
.home__positioning + .home__positioning { margin-top: 1em; }

.home__portrait-wrap { position: relative; }

.home__portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: var(--bg-deep);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.home__portrait-meta {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  padding-top: 8px;
}

@media (max-width: 820px) {
  .home__hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 48px;
  }
  .home__portrait-wrap { order: -1; max-width: 360px; }
}

.home__section {
  padding: 56px 0;
  border-top: 1px solid var(--rule);
}
.home__section:last-of-type { border-bottom: 1px solid var(--rule); }

.home__section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  gap: 24px;
}

.home__pinned-list { list-style: none; margin: 0; padding: 0; }

.home__outset {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(28px, 4vw, 64px);
  padding: 56px 0 64px;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.home__outset h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}
.home__outset p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 1em;
}

@media (max-width: 820px) {
  .home__outset { grid-template-columns: 1fr; gap: 18px; }
}

/* ------------------------------------------------------------------
   Page-specific styles: contact, now, library, talks, investing
   ------------------------------------------------------------------ */

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

.contact {
  padding: 64px var(--gutter) 0;
  max-width: 1280px;
  margin: 0 auto;
}
.contact__grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  padding: 24px 0;
}
.contact__portrait {
  width: 220px;
  height: 260px;
  background-color: var(--bg-deep);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: var(--portrait-filter);
}
.contact__caption {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 10px;
}
.contact__filter {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 580px;
  margin: 0 0 32px;
}
.contact__email {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-2);
  padding-bottom: 4px;
  display: inline-block;
  margin-bottom: 40px;
  transition: color 140ms ease, border-color 140ms ease;
}
.contact__email:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.contact__bio {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 580px;
}
.contact__channels {
  font-family: var(--sans);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  letter-spacing: 0.02em;
}
.contact__channels a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-2);
  padding-bottom: 1px;
}
.contact__channels a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (max-width: 720px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__portrait { width: 160px; height: 200px; }
  .contact__email { font-size: clamp(22px, 6vw, 30px); }
}

/* ---- Now ---- */

.now-update {
  padding: 32px 0 24px;
  border-top: 1px solid var(--rule);
}
.now-update:first-of-type { border-top: 0; }
.now-update__date {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.now-update__body {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
}
.now-update__body p { margin: 0 0 1em; }
.now-update__body p:last-child { margin-bottom: 0; }
.now-archive {
  margin-top: 56px;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}
.now-archive__list { list-style: none; padding: 0; margin: 0; }
.now-archive__list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
}
.now-archive__list a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.now-archive__list a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (max-width: 720px) {
  .now-update__body { font-size: 17.5px; }
  .now-archive__list li {
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    padding: 10px 0;
    border-top: 1px solid var(--rule);
  }
  .now-archive__list li:first-child { border-top: 0; }
}

/* ---- Library currently reading ---- */

.currently {
  padding: 16px 0 32px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}
.currently__list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}
.currently__list li {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
}
.currently__list em { color: var(--ink); }
.currently__list span { color: var(--muted); }

/* ---- Talks subsection ---- */

.talks-section { margin-bottom: 56px; }
.talks-section:last-child { margin-bottom: 0; }
.talks-empty {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  padding: 16px 0 28px;
  font-size: 16px;
}

/* ---- Investing thesis ---- */

.thesis {
  padding: 16px 0 36px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 36px;
}
.thesis p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 1em;
  max-width: 680px;
}
.thesis p:last-child { margin-bottom: 0; color: var(--muted); }

/* ---- Portfolio entry (Investing & Library section heads) ---- */

.portfolio-group { margin-bottom: 44px; }
.portfolio-group__head {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.portfolio-item {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.portfolio-item:first-of-type { border-top: 0; }
.portfolio-item__name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.portfolio-item__desc {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.45;
  color: var(--muted);
}
.portfolio-item__mark {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

@media (max-width: 720px) {
  .portfolio-item { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
}

/* ---- Library book entry ---- */

.book {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.book__title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
}
.book__author {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 18px;
  margin-left: 6px;
}
.book__author::before { content: "by "; color: var(--muted); font-style: normal; }
.book__note {
  font-family: var(--serif);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  margin-top: 4px;
  max-width: 560px;
}
.book__year {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
