:root {
  --ink: #f0f0e8;
  --ink-soft: #b8b9ae;
  --ink-faint: #787b72;
  --paper: #10110f;
  --paper-raised: #171916;
  --paper-soft: #1d201c;
  --line: #30342e;
  --line-strong: #494f46;
  --acid: #c8f43d;
  --acid-soft: #dff77e;
  --blue: #8ab4ff;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --max: 1180px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 0%, rgba(200, 244, 61, .055), transparent 28rem),
    var(--paper);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection { color: var(--paper); background: var(--acid); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--acid); }
img, svg, video, iframe { max-width: 100%; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 20;
  padding: .75rem 1rem; color: var(--paper); background: var(--acid);
}
.skip-link:focus { top: 1rem; }

.site-header {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; gap: .8rem; font-weight: 700; letter-spacing: -.02em; }
.wordmark:hover { color: var(--ink); }
.wordmark__mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  color: var(--paper); background: var(--acid); font: 500 .78rem var(--mono);
}
.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav__link { color: var(--ink-soft); font-size: .86rem; font-weight: 600; }
.site-nav__link:hover, .site-nav__link--active { color: var(--ink); }
.site-nav__link--active { text-decoration: underline; text-decoration-color: var(--acid); text-underline-offset: 8px; }
.site-nav__link--external { padding-left: 1.8rem; border-left: 1px solid var(--line); }

.site-main { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.site-footer {
  width: min(calc(100% - 48px), var(--max)); margin: 8rem auto 0;
  padding: 2.2rem 0 3rem; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 2rem;
  color: var(--ink-faint); font-size: .82rem;
}
.site-footer p { margin: 0; }
.site-footer__name { color: var(--ink); font-weight: 700; }
.site-footer__links { display: flex; gap: 1.4rem; }
.site-footer__links a { color: var(--ink-soft); }
.site-footer__copy { font-family: var(--mono); }

.hero {
  min-height: 680px; padding: 8.5rem 0 6rem;
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .55fr); gap: 7rem; align-items: center;
}
.eyebrow {
  margin: 0 0 1.3rem; color: var(--acid);
  font: 500 .72rem/1.4 var(--mono); letter-spacing: .11em; text-transform: uppercase;
}
.signal { display: inline-block; width: 7px; height: 7px; margin-right: .65rem; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 5px rgba(200,244,61,.1); }
.hero h1, .page-hero h1 {
  max-width: 920px; margin: 0;
  font: 500 clamp(3.7rem, 7.5vw, 7.2rem)/.93 var(--serif);
  letter-spacing: -.055em;
}
.hero__intro { max-width: 720px; margin: 2.2rem 0 0; color: var(--ink-soft); font-size: 1.18rem; line-height: 1.7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.5rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: .75rem 1.1rem; border: 1px solid var(--line-strong); font-size: .84rem; font-weight: 700;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary { color: var(--paper); background: var(--acid); border-color: var(--acid); }
.button--primary:hover { color: var(--paper); background: var(--acid-soft); }
.button--quiet { color: var(--ink); background: transparent; }
.button--quiet:hover { color: var(--acid); border-color: var(--acid); }
.hero__note { padding: 1.7rem; border: 1px solid var(--line); background: rgba(23,25,22,.75); box-shadow: 12px 12px 0 rgba(200,244,61,.06); }
.hero__note p { margin: 0 0 1rem; color: var(--ink-soft); font-size: .9rem; }
.hero__note .hero__note-label { color: var(--ink-faint); font: .68rem var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.hero__note .hero__note-title { color: var(--ink); font: 600 1.55rem var(--serif); }
.hero__note a { color: var(--acid); font-size: .78rem; font-weight: 700; }

.proof-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.proof-strip span { padding: 1rem 1.2rem; color: var(--ink-soft); font: .7rem var(--mono); text-align: center; text-transform: uppercase; letter-spacing: .08em; border-right: 1px solid var(--line); }
.proof-strip span:last-child { border-right: 0; }

.section { padding-top: 8.5rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.2rem; }
.section-heading h2 { margin: 0; font: 500 clamp(2.3rem, 4vw, 4rem)/1 var(--serif); letter-spacing: -.035em; }
.section-heading--bordered { padding-bottom: 1.5rem; border-bottom: 1px solid var(--line-strong); }
.text-link { color: var(--ink-soft); font-size: .82rem; font-weight: 700; }

.feature-card { display: grid; grid-template-columns: 110px 1fr; border: 1px solid var(--line-strong); background: var(--paper-raised); }
.feature-card__index { padding: 1.6rem; color: var(--acid); font: .7rem var(--mono); border-right: 1px solid var(--line); }
.feature-card__body { padding: clamp(2rem, 5vw, 4.4rem); }
.feature-card__topline { display: flex; gap: 1.2rem; color: var(--ink-faint); font: .68rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.status-dot { color: var(--acid); font: 500 .68rem var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.status-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: .45rem; border-radius: 50%; background: currentColor; }
.feature-card h3 { margin: 2rem 0 .5rem; font: 500 clamp(3.2rem, 6vw, 6rem)/.95 var(--serif); letter-spacing: -.05em; }
.feature-card__tagline { margin: 0; color: var(--acid); font-size: 1rem; font-weight: 600; }
.feature-card__description { max-width: 850px; margin: 2rem 0; color: var(--ink-soft); font-size: 1.02rem; }
.system-list, .stack-list, .tag-list, .topic-rail { list-style: none; padding: 0; }
.system-list { display: grid; grid-template-columns: repeat(6, 1fr); margin: 2.5rem 0; border: 1px solid var(--line); }
.system-list li { padding: .7rem .45rem; color: var(--ink-soft); font: .65rem var(--mono); text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-card__footer { display: flex; justify-content: space-between; gap: 2rem; align-items: end; padding-top: 2rem; border-top: 1px solid var(--line); }
.stack-list { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; }
.stack-list li, .tag-list li { padding: .28rem .5rem; color: var(--ink-soft); background: var(--paper-soft); font: .64rem var(--mono); }
.card-links { display: flex; gap: 1.2rem; flex-shrink: 0; }
.card-links a { color: var(--acid); font-size: .78rem; font-weight: 700; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.project-card { min-height: 430px; padding: 2rem; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s ease; }
.project-card:hover { background: var(--paper-raised); }
.project-card__media { height: 180px; margin: -2rem -2rem 1.7rem; overflow: hidden; border-bottom: 1px solid var(--line); background: #090a09; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; }
.project-card__media img[src$=".svg"] { padding: 2.2rem; object-fit: contain; }
.project-card__meta { margin: 0 0 2.2rem; color: var(--ink-faint); font: .65rem var(--mono); text-transform: uppercase; }
.project-card h3 { margin: 0; font: 500 2.1rem/1.05 var(--serif); letter-spacing: -.03em; }
.project-card__tagline { color: var(--acid) !important; font-weight: 600; }
.project-card > p { color: var(--ink-soft); font-size: .86rem; }
.project-card__footer { margin-top: auto; display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.round-link { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid var(--line-strong); border-radius: 50%; }
.round-link:hover { color: var(--paper); background: var(--acid); border-color: var(--acid); }

.learning { display: grid; grid-template-columns: .8fr 1.2fr; gap: 7rem; padding-bottom: 2rem; }
.learning__intro h2 { margin: 0; font: 500 clamp(2.8rem, 5vw, 5.2rem)/.98 var(--serif); letter-spacing: -.045em; }
.learning__intro > p:not(.eyebrow) { margin: 1.8rem 0 2rem; color: var(--ink-soft); }
.article-stack { border-top: 1px solid var(--line-strong); }
.article-row { padding: 1.7rem 0; border-bottom: 1px solid var(--line); }
.article-row__meta, .journal-entry__meta, .post__meta { display: flex; gap: 1rem; color: var(--ink-faint); font: .65rem var(--mono); text-transform: uppercase; }
.article-row h3 { margin: .65rem 0; font: 500 1.65rem var(--serif); }
.article-row p { margin: 0 0 .8rem; color: var(--ink-soft); font-size: .84rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0 0; }

.page-hero { padding: 9rem 0 7rem; border-bottom: 1px solid var(--line-strong); }
.page-hero h1 { max-width: 1050px; }
.page-hero > p:not(.eyebrow) { max-width: 760px; margin: 2.2rem 0 0; color: var(--ink-soft); font-size: 1.08rem; }
.topic-rail { display: flex; flex-wrap: wrap; gap: .6rem; margin: 2.6rem 0 0; }
.topic-rail li { padding: .45rem .75rem; border: 1px solid var(--line); color: var(--ink-soft); font: .68rem var(--mono); }
.journal-section { padding-top: 5.5rem; }
.entry-count { color: var(--ink-faint); font: .68rem var(--mono); text-transform: uppercase; }
.journal-list { border-bottom: 1px solid var(--line-strong); }
.journal-entry { display: grid; grid-template-columns: 90px 1fr auto; gap: 2rem; align-items: center; padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.journal-entry:last-child { border-bottom: 0; }
.journal-entry__number { color: var(--ink-faint); font: .72rem var(--mono); }
.journal-entry h2 { margin: .7rem 0 .5rem; font: 500 clamp(1.9rem, 3vw, 2.8rem)/1.05 var(--serif); }
.journal-entry p { max-width: 750px; margin: 0; color: var(--ink-soft); }

.work-list { border-bottom: 1px solid var(--line-strong); }
.work-row { display: grid; grid-template-columns: 150px 1fr 110px; gap: 2rem; padding: 3rem 0; border-top: 1px solid var(--line); }
.work-row h3 { margin: 0 0 .5rem; font: 500 2.1rem var(--serif); }
.work-row__body > p { max-width: 760px; color: var(--ink-soft); }
.work-row__tagline { color: var(--acid) !important; font-weight: 600; }
.work-row__links { display: flex; flex-direction: column; align-items: end; gap: .6rem; font-size: .75rem; font-weight: 700; }
.work-row__media { max-width: 680px; margin: 0 0 1.5rem; overflow: hidden; border: 1px solid var(--line); background: #090a09; }
.work-row__media img { display: block; width: 100%; max-height: 320px; object-fit: cover; }
.work-row__media img[src$=".svg"] { padding: 3rem; object-fit: contain; }

.post { padding-top: 6rem; }
.post__header { max-width: 980px; margin: 0 auto; padding-bottom: 4rem; text-align: center; border-bottom: 1px solid var(--line-strong); }
.back-link { display: inline-block; margin-bottom: 4rem; color: var(--ink-soft); font-size: .8rem; }
.post__meta { justify-content: center; }
.post__header h1 { margin: 1.4rem 0; font: 500 clamp(3.5rem, 7vw, 7rem)/.95 var(--serif); letter-spacing: -.055em; }
.post__summary { max-width: 720px; margin: 0 auto; color: var(--ink-soft); font-size: 1.08rem; }
.post__header .tag-list { justify-content: center; margin-top: 1.5rem; }
.post__layout { display: grid; grid-template-columns: 180px minmax(0, 720px); justify-content: center; gap: 5rem; padding-top: 4rem; }
.post__aside { color: var(--ink-faint); font: .68rem/1.6 var(--mono); text-transform: uppercase; }
.post__aside p { margin: 0 0 .5rem; color: var(--acid); }
.post__body { color: #d6d7ce; font-size: 1.04rem; line-height: 1.82; }
.post__body > :first-child { margin-top: 0; }
.post__body h1, .post__body h2, .post__body h3 { margin: 2.8rem 0 1rem; color: var(--ink); font-family: var(--serif); line-height: 1.1; }
.post__body h2 { font-size: 2.2rem; }
.post__body h3 { font-size: 1.55rem; }
.post__body a, .prose a { color: var(--acid); text-decoration: underline; text-underline-offset: 3px; }
.post__body pre { overflow-x: auto; padding: 1.3rem; background: #090a09; border: 1px solid var(--line); font: .78rem/1.7 var(--mono); }
.post__body code { color: var(--acid-soft); font-family: var(--mono); font-size: .85em; }
.post__body blockquote { margin: 2rem 0; padding-left: 1.4rem; border-left: 3px solid var(--acid); color: var(--ink-soft); }
.post__body iframe, .post__body video { width: 100%; aspect-ratio: 16/9; margin: 2rem 0; border: 1px solid var(--line); }
.post__footer { max-width: 900px; margin: 6rem auto 0; padding: 2.5rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; background: var(--paper-raised); border: 1px solid var(--line); }
.post__footer p { margin: 0; color: var(--ink-soft); }

.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 7rem; padding: 6rem 0; }
.about-copy { font: 500 clamp(1.45rem, 2.4vw, 2.15rem)/1.5 var(--serif); }
.about-copy p { margin: 0 0 1.5rem; }
.about-facts { border-top: 1px solid var(--line-strong); }
.about-facts div { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.about-facts span { display: block; color: var(--ink-faint); font: .65rem var(--mono); text-transform: uppercase; }
.about-facts strong { display: block; margin-top: .35rem; font-size: .92rem; }
.contact-panel { padding: 3rem; display: flex; justify-content: space-between; align-items: end; gap: 2rem; background: var(--paper-raised); border: 1px solid var(--line); }
.contact-panel h2 { max-width: 600px; margin: 0; font: 500 3rem/1 var(--serif); }
.contact-panel__links { display: flex; flex-wrap: wrap; gap: .6rem; }

.empty-state { padding: 3rem 0; color: var(--ink-faint); }
.breadcrumb, .section__heading, .card-grid, .post-list, .contact-list, .error-text { color: var(--ink-soft); }
.error-section { min-height: 60vh; padding-top: 8rem; }
.error-section .hero__ascii { color: var(--acid); font: 500 clamp(2rem, 8vw, 7rem) var(--serif); }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; min-height: auto; padding: 7rem 0 5rem; }
  .hero__note { max-width: 560px; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .learning { grid-template-columns: 1fr; gap: 4rem; }
  .system-list { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .post__layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .post__aside { display: none; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer__copy { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .site-header { width: min(calc(100% - 32px), var(--max)); min-height: 76px; }
  .wordmark__text { display: none; }
  .site-nav { gap: 1rem; }
  .site-nav__link { font-size: .76rem; }
  .site-nav__link--external { display: none; }
  .site-main, .site-footer { width: min(calc(100% - 32px), var(--max)); }
  .hero { padding: 5.5rem 0 4rem; }
  .hero h1, .page-hero h1 { font-size: clamp(3.1rem, 15vw, 5rem); }
  .hero__intro { font-size: 1rem; }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-strip span:nth-child(2) { border-right: 0; }
  .proof-strip span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding-top: 6rem; }
  .section-heading { align-items: start; flex-direction: column; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-card__index { border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-card__footer { align-items: start; flex-direction: column; }
  .system-list { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 360px; }
  .page-hero { padding: 6rem 0 4.5rem; }
  .journal-entry { grid-template-columns: 1fr auto; gap: 1.2rem; }
  .journal-entry__number { display: none; }
  .work-row { grid-template-columns: 1fr; gap: .8rem; }
  .work-row__links { align-items: start; flex-direction: row; }
  .post { padding-top: 4rem; }
  .post__header { text-align: left; }
  .post__meta, .post__header .tag-list { justify-content: start; }
  .back-link { margin-bottom: 2.5rem; }
  .post__footer, .contact-panel { align-items: start; flex-direction: column; padding: 1.5rem; }
  .contact-panel h2 { font-size: 2.2rem; }
  .site-footer { grid-template-columns: 1fr; margin-top: 6rem; }
  .site-footer__links { flex-wrap: wrap; }
  .site-footer__copy { grid-column: auto; }
}

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