@font-face {
  font-family: "Geist Preview";
  src: url("https://fonts.gstatic.com/s/geist/v4/gyByhwUxId8gMHweElSvO5Tc.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

:root {
  --bg: #010101;
  --fg: rgba(255, 253, 248, 0.96);
  --muted: rgba(255, 253, 248, 0.58);
  --line: rgba(255, 253, 248, 0.14);
  --line-soft: rgba(255, 253, 248, 0.11);
  --hairline: 1px;
  --maxw: 1440px;
  --pad-x: clamp(32px, 7vw, 112px);
  --label-inset: clamp(18px, 2.5vw, 44px);
  --section-gap: 48px;
  --font-body: "Geist Preview", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Neue Haas Grotesk Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #010101;
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 74% 18%, rgba(0, 153, 255, 0.34), transparent 33%),
    radial-gradient(ellipse at 46% 3%, rgba(144, 0, 255, 0.22), transparent 34%),
    radial-gradient(ellipse at 10% 88%, rgba(253, 119, 2, 0.12), transparent 32%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.10) 0 0.7px, transparent 1.4px) 0 0 / 42px 42px,
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.055) 0 0.7px, transparent 1.5px) 18px 26px / 96px 96px,
    linear-gradient(180deg, #000 0%, #050505 46%, #0a0908 100%);
}
::selection { background: var(--fg); color: var(--bg); }
a { color: inherit; text-decoration: none; }
.slash-cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.cursor-ready,
  html.cursor-ready * { cursor: none !important; }
  .slash-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: block;
    width: 41px;
    height: 41px;
    pointer-events: none;
    border-radius: 13px;
    background: #0a0a0a;
    box-shadow: 0 13px 27px rgba(0, 0, 0, 0.16);
    opacity: 0;
    transform: translate3d(-100px, -100px, 0);
    transition: opacity 160ms ease, width 180ms ease, height 180ms ease, border-radius 180ms ease;
    will-change: transform;
  }
  .slash-cursor::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 18px;
    width: 5px;
    height: 27px;
    border-radius: 999px;
    background: #fafafa;
    transform: rotate(28deg);
  }
  html.cursor-active .slash-cursor { opacity: 1; }
  html.cursor-pressing .slash-cursor {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
}
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.76);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: var(--hairline) solid rgba(255, 253, 248, 0.18);
}
main,
.site-footer {
  position: relative;
  z-index: 1;
}
.top-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  font-size: 12px;
  letter-spacing: -0.012em;
  text-transform: none;
}
.top-right {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.4vw, 34px);
}
.top a:hover,
.top a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 3px;
}
section { border-bottom: var(--hairline) solid var(--line); }
.hero,
.article-hero,
.search-hero {
  display: flex;
  align-items: center;
  min-height: clamp(460px, 70vh, 720px);
  padding: clamp(64px, 8vw, 118px) 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero::before,
.article-hero::before,
.search-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 20%, rgba(255, 253, 248, 0.045) 20.05% 20.12%, transparent 20.2% 100%),
    linear-gradient(90deg, transparent 0 51%, rgba(255, 253, 248, 0.035) 51.05% 51.12%, transparent 51.2% 100%),
    linear-gradient(90deg, transparent 0 82%, rgba(255, 253, 248, 0.04) 82.05% 82.12%, transparent 82.2% 100%),
    radial-gradient(circle at 66% 35%, rgba(0, 204, 255, 0.3) 0 1.1px, transparent 1.8px),
    radial-gradient(circle at 76% 26%, rgba(255, 255, 255, 0.28) 0 1px, transparent 1.7px),
    radial-gradient(circle at 84% 48%, rgba(144, 0, 255, 0.22) 0 1px, transparent 1.8px);
  opacity: 1;
}
.hero::after,
.article-hero::after,
.search-hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: max(5vw, 48px);
  z-index: -1;
  width: clamp(220px, 29vw, 420px);
  aspect-ratio: 1;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.16), transparent 56%),
    conic-gradient(from 20deg, rgba(0, 153, 255, 0.28), rgba(144, 0, 255, 0.1), rgba(255, 255, 255, 0.04), rgba(0, 153, 255, 0.28));
  opacity: 0.46;
  filter: blur(18px) saturate(130%);
  transform: translateY(-50%);
}
.grid {
  display: grid;
  grid-template-columns: calc(160px + var(--label-inset)) 1fr;
  gap: var(--section-gap);
  width: 100%;
}
.copy,
.article-title,
.search-copy {
  grid-column: 2;
  max-width: 1000px;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(62px, 10vw, 156px);
  line-height: 0.9;
  letter-spacing: 0;
  font-weight: 700;
  margin: 0;
  max-width: 11ch;
  text-wrap: balance;
}
.subtitle,
.standfirst {
  margin: clamp(28px, 4vw, 46px) 0 0;
  max-width: 28ch;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--muted);
  text-wrap: balance;
}
.notes-section,
.article-body-section,
.search-section,
.related-section {
  padding: clamp(76px, 9vw, 132px) 0;
}
.section-label,
.article-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  align-self: start;
  position: sticky;
  top: 80px;
  padding-left: var(--label-inset);
}
.section-label {
  letter-spacing: -0.01em;
  text-transform: none;
}
.section-label .num {
  color: var(--fg);
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}
.article-meta a,
.article-end a,
.site-footer a:hover,
.search-result a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.notes-list,
.related-list,
.search-results {
  max-width: 920px;
  border-top: 1px solid var(--line-soft);
}
.note-entry,
.related-entry,
.search-result {
  display: grid;
  grid-template-columns: minmax(96px, 140px) 1fr;
  gap: clamp(24px, 5vw, 76px);
  padding: clamp(26px, 4vw, 46px) 0;
  border-bottom: 1px solid var(--line-soft);
}
.note-entry time,
.related-entry time,
.search-result .result-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}
.note-link,
.related-link,
.search-result a {
  display: block;
}
.note-link:hover h2,
.related-link:hover h2,
.search-result a:hover h2 {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.note-entry h2,
.related-entry h2,
.search-result h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 700;
  margin: 0 0 14px;
  max-width: 18ch;
}
.note-entry p,
.related-entry p,
.search-result p {
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.32;
  letter-spacing: 0;
  margin: 0;
  max-width: 52ch;
}
.theme-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}
.theme {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  line-height: 1;
  padding: 7px 10px 8px;
}
.article-title h1 { max-width: 12ch; }
.article-meta a {
  display: inline-block;
  color: var(--fg);
  margin-bottom: 18px;
}
.meta-stack {
  display: grid;
  gap: 8px;
}
.featured-media {
  margin: clamp(38px, 5vw, 62px) 0 0;
  max-width: 920px;
}
.featured-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}
.toc {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.toc-title {
  color: var(--fg);
  font-size: 12px;
  margin: 0 0 10px;
  text-transform: none;
}
.toc a {
  display: block;
  margin: 8px 0;
}
.toc a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body {
  grid-column: 2;
  max-width: 720px;
}
.article-body p {
  font-size: clamp(20px, 1.55vw, 24px);
  line-height: 1.42;
  letter-spacing: 0;
  margin: 0 0 28px;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
  letter-spacing: 0;
  margin: clamp(56px, 8vw, 86px) 0 22px;
  max-width: 13ch;
}
.article-body p:last-child { margin-bottom: 0; }
.article-body .dim { color: var(--muted); }
blockquote {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.2vw, 76px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 700;
  margin: clamp(52px, 7vw, 86px) 0;
  max-width: 12ch;
  border: 1px solid rgba(255, 253, 248, 0.12);
  border-radius: 8px;
  padding: clamp(28px, 5vw, 58px);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(0, 153, 255, 0.16), transparent 38%),
    rgba(255, 255, 255, 0.035);
}
.article-end {
  margin-top: clamp(54px, 8vw, 96px);
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 14px;
}
.article-end a { color: var(--fg); }
.author-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  margin-top: clamp(54px, 8vw, 96px);
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.author-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}
.article-body .author-card h2 {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: 0;
}
.article-body .author-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  max-width: 56ch;
}
.search-panel {
  grid-column: 2;
  max-width: 920px;
}
.search-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: clamp(30px, 4.5vw, 64px);
  line-height: 1.05;
  padding: 0 0 18px;
  outline: none;
}
.theme-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
}
.theme-button {
  appearance: none;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  line-height: 1;
  padding: 8px 11px 9px;
}
.theme-button[aria-pressed="true"] {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}
.search-empty {
  color: var(--muted);
  padding: 28px 0;
}
.site-footer {
  padding: 18px 0 24px;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}
.site-footer .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 860px) {
  .grid,
  .note-entry,
  .related-entry,
  .search-result {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .copy,
  .article-title,
  .article-body,
  .search-copy,
  .search-panel {
    grid-column: 1;
  }
  .section-label,
  .article-meta {
    position: static;
    padding-left: 0;
  }
  .site-footer .shell {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 620px) {
  h1 { font-size: clamp(52px, 17vw, 86px); }
  .subtitle,
  .standfirst {
    font-size: clamp(22px, 7vw, 30px);
    max-width: 24ch;
  }
  .article-body p { font-size: 19px; }
}
