@font-face { font-family: 'DM Sans'; font-weight: 400 700; font-display: swap; src: url('fonts/dm-sans-latin.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 400 700; font-display: swap; src: url('fonts/space-grotesk-latin.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #0b1111;
  --surface: #111a19;
  --surface-soft: #14201e;
  --text: #f0f1e9;
  --muted: #9daea8;
  --subtle: #71857e;
  --accent: #b8e2c7;
  --line: rgba(192, 220, 205, .16);
  --display: 'Space Grotesk', sans-serif;
  --body: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--body);
  background: radial-gradient(ellipse 55% 28% at 85% 2%, rgba(87, 145, 115, .12), transparent 80%), var(--bg);
  -webkit-font-smoothing: antialiased;
}
::selection { color: #0b1111; background: var(--accent); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
#rain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: .34; }
.site-shell { position: relative; z-index: 1; max-width: 1224px; margin: auto; padding: 0 clamp(24px, 5vw, 72px); }

.section-index, .eyebrow, .section-kicker, .footer-note { font-family: var(--display); text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 600; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(275px, .75fr);
  align-items: end;
  gap: clamp(32px, 7vw, 110px);
  padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 72px);
}
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; color: var(--accent); }
.eyebrow::before { content: ''; width: 25px; height: 1px; background: currentColor; }
.hero h1 { margin: 0; font-family: var(--display); font-size: clamp(72px, 10vw, 148px); font-weight: 500; line-height: .87; letter-spacing: -.095em; }
.hero h1 span { display: block; }
.hero h1 span:last-child { color: var(--accent); }
.hero-aside { padding-bottom: 5px; }
.hero-aside .aside-rule { display: block; width: 100%; height: 1px; margin-bottom: 24px; background: var(--line); }
.hero .bio { max-width: 370px; margin: 0 0 30px; color: #bdc9c2; font-family: var(--display); font-size: clamp(19px, 2vw, 24px); line-height: 1.48; letter-spacing: -.025em; }
.pill-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.pill-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 3px 0 5px; border-bottom: 1px solid rgba(184, 226, 199, .4); color: var(--text); text-decoration: none; font-size: 13px; font-weight: 700; transition: color .2s, border-color .2s, transform .2s; }
.pill-nav a::after { content: '↗'; color: var(--accent); font-size: 15px; font-weight: 400; }
.pill-nav a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

.section { display: grid; grid-template-columns: minmax(175px, .27fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 58px); padding: 42px 0 64px; border-top: 1px solid var(--line); }
.section-meta { padding-top: 4px; }
.section-index { display: block; margin-bottom: 34px; color: var(--accent); }
.section-title { max-width: 260px; margin: 0; font-family: var(--display); font-size: clamp(28px, 3vw, 40px); line-height: 1.08; font-weight: 500; letter-spacing: -.06em; }
.section-description { max-width: 220px; margin: 18px 0 0; color: var(--subtle); font-size: 13px; line-height: 1.6; }
.section-content { min-width: 0; }
.section-kicker { margin: 4px 0 13px; color: var(--subtle); }
.favorites-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 42px); }
.fav-row { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 7px; min-width: 0; padding: 17px 0 19px; border-top: 1px solid var(--line); transition: padding-left .2s, border-color .2s; }
.fav-row:hover { padding-left: 7px; border-color: rgba(184, 226, 199, .55); }
.fav-label { color: var(--subtle); font-family: var(--display); font-size: 11px; font-weight: 600; line-height: 1.4; text-transform: uppercase; letter-spacing: .11em; }
.fav-value { min-width: 0; color: #e1e9e1; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.fav-value a { text-decoration-color: transparent; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.fav-value a:hover { color: var(--accent); text-decoration-color: currentColor; }
.fav-sep { padding: 0 5px; color: #4e6a60; }
.theme-details-trigger { padding: 0; border: 0; border-bottom: 1px dotted currentColor; background: none; color: var(--accent); font: inherit; cursor: pointer; }
.theme-details-trigger:hover { color: #e1f8e8; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 27px 0 48px; border-top: 1px solid var(--line); }
.footer-note { margin: 0; color: var(--subtle); }
.site-footer a { color: var(--accent); font-size: 13px; text-decoration-color: transparent; text-underline-offset: 4px; }
.site-footer a:hover { text-decoration-color: currentColor; }
.theme-dialog { width: min(600px, calc(100% - 32px)); max-height: calc(100% - 32px); margin: auto; padding: clamp(20px, 4vw, 32px); border: 1px solid #385247; border-radius: 12px; background: #121e1b; color: var(--text); box-shadow: 0 30px 90px #0009; }
.theme-dialog::backdrop { background: #020807d9; backdrop-filter: blur(5px); }
.theme-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.theme-dialog h2 { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 500; letter-spacing: -.04em; }
.theme-dialog-close { padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.theme-dialog-close:hover { background: var(--surface-soft); }
.theme-dialog pre { overflow: auto; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: #0b1412; color: var(--accent); font-size: 12px; line-height: 1.7; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 46px; padding: 44px 0 52px; }
  .hero-aside { max-width: 540px; }
  .section { grid-template-columns: 1fr; gap: 32px; }
  .section-index { margin-bottom: 16px; }
  .section-description { max-width: none; }
}
@media (max-width: 560px) {
  .hero { padding: 36px 0 48px; }
  .hero h1 { font-size: clamp(64px, 17vw, 90px); }
  .hero-aside .aside-rule { margin-bottom: 20px; }
  .favorites-grid { grid-template-columns: 1fr; }
  .section { padding: 32px 0 56px; }
  .section-kicker { margin-bottom: 11px; }
  .fav-row { padding: 15px 0; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
