@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --page: #101310;
  --surface: #171b17;
  --surface-hover: #1c211c;
  --text: #f1f2e9;
  --muted: #989e90;
  --quiet: #6b7467;
  --border: rgba(226, 231, 216, .105);
  --accent: #b9ed78;
  --accent-dim: rgba(185, 237, 120, .12);
  --serif: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --sans: 'DM Sans', 'Helvetica Neue', sans-serif;
  --mono: 'DM Mono', 'SFMono-Regular', Consolas, monospace;
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  background: var(--page);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); font-size: 15px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: #11150e; }
.site-shell { max-width: 1440px; margin: 0 auto; padding: 0 8.2%; }
.site-header { min-height: 94px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); gap: 30px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; font-family: var(--serif); font-size: 15px; font-weight: 700; letter-spacing: -.055em; }
.wordmark-mark { display: grid; width: 27px; height: 27px; place-items: center; background: var(--accent); color: #121610; border-radius: 8px 8px 8px 2px; font-family: var(--serif); font-size: 17px; }
.wordmark-light { color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 43px); }
.site-nav a, .header-about { color: var(--muted); font-size: 12px; font-weight: 500; transition: color .18s ease; }
.site-nav a:hover, .header-about:hover, .footer-links a:hover, .subtle-link:hover { color: var(--accent); }
.header-about { padding: 9px 13px; border: 1px solid var(--border); border-radius: 5px; color: var(--text); }
.header-about span { margin-left: 8px; color: var(--accent); }
.hero { min-height: 518px; padding: 73px 0 76px; display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 17px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .13em; line-height: 1.7; text-transform: uppercase; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 11px rgba(185, 237, 120, .65); vertical-align: 1px; }
.hero h1, .listing-header h1, .article-header h1, .not-found h1 { margin: 0; font-family: var(--serif); font-size: clamp(53px, 6.45vw, 82px); font-weight: 500; letter-spacing: -.075em; line-height: .99; }
.hero h1 span { color: var(--accent); }
.hero-description { max-width: 390px; margin: 22px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.text-link { display: inline-flex; align-items: center; gap: 14px; padding: 3px 0 6px; border-bottom: 1px solid rgba(185, 237, 120, .45); color: var(--accent); font-size: 12px; font-weight: 600; transition: gap .2s ease; }
.text-link:hover { gap: 20px; }
.text-link span { font-size: 16px; }
.hero-art { position: relative; min-height: 338px; overflow: hidden; border: 1px solid var(--border); border-radius: 4px; background: linear-gradient(180deg, rgba(14, 18, 14, .04) 30%, rgba(12, 15, 13, .78) 100%), linear-gradient(105deg, rgba(15, 19, 17, .19), rgba(11, 15, 12, .46)), url('/images/backdrop.jpg') center 46% / cover, #22291f; isolation: isolate; }
.hero-art::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, transparent 48%, rgba(15, 22, 16, .13) 49%, transparent 50%), linear-gradient(0deg, transparent 48%, rgba(15, 22, 16, .17) 49%, transparent 50%); background-size: 43px 43px; content: ''; }
.art-label, .art-index { position: absolute; font-family: var(--mono); font-size: 9px; letter-spacing: .105em; }
.art-label { top: 18px; left: 19px; display: flex; align-items: center; gap: 9px; color: #d0d3c9; }
.art-cross { color: var(--accent); font-size: 13px; }
.art-index { right: 19px; bottom: 17px; color: #d5d7ce; line-height: 1.85; text-align: right; }
.latest-section { padding: 28px 0 70px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.section-heading .eyebrow { margin-bottom: 6px; font-size: 9px; }
.section-heading h2, .about-copy h2 { margin: 0; font-family: var(--serif); font-size: clamp(27px, 3.1vw, 39px); font-weight: 500; letter-spacing: -.06em; line-height: 1.15; }
.heading-dot { color: var(--accent); }
.subtle-link { padding-bottom: 4px; color: var(--muted); font-size: 11px; transition: color .18s ease; }
.subtle-link span { margin-left: 8px; color: var(--accent); font-size: 14px; }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.post-card { position: relative; display: flex; min-height: 240px; flex-direction: column; padding: 24px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.post-card:hover { transform: translateY(-3px); border-color: rgba(185, 237, 120, .35); background: var(--surface-hover); }
.featured-card { min-height: 268px; background: radial-gradient(ellipse at 92% 0%, rgba(185, 237, 120, .09), transparent 46%), var(--surface); }
.card-number { color: var(--quiet); font-family: var(--mono); font-size: 9px; letter-spacing: .095em; }
.card-category { align-self: flex-start; margin-top: 19px; padding: 4px 9px; border: 1px solid rgba(185, 237, 120, .18); border-radius: 2px; background: var(--accent-dim); color: var(--accent); font-family: var(--mono); font-size: 9px; }
.post-card h3 { max-width: 440px; margin: 12px 0 6px; font-family: var(--serif); font-size: clamp(19px, 2vw, 24px); font-weight: 500; letter-spacing: -.045em; line-height: 1.25; }
.post-card h3 a:hover { color: var(--accent); }
.card-excerpt { max-width: 500px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.85; }
.card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 17px; color: var(--quiet); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.card-meta span { color: var(--accent); font-size: 13px; }
.about-panel { display: grid; grid-template-columns: 82px 1fr minmax(150px, .7fr); gap: 25px; align-items: center; padding: 29px; border: 1px solid var(--border); border-radius: 4px; background: linear-gradient(115deg, rgba(185, 237, 120, .047), transparent 70%), #141813; }
.about-avatar { width: 72px; height: 72px; border: 1px solid rgba(185, 237, 120, .35); border-radius: 50%; object-fit: cover; }
.about-copy .eyebrow { margin-bottom: 8px; font-size: 9px; }
.about-copy h2 { font-size: 25px; }
.about-copy > p:last-child { max-width: 470px; margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.85; }
.about-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.about-links a { color: var(--muted); font-size: 11px; }
.about-links span { margin-left: 5px; color: var(--accent); }
.home-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 23px 0; color: var(--quiet); font-family: var(--mono); font-size: 9px; letter-spacing: .025em; }
.home-bottom a { color: var(--muted); }
.home-bottom a:hover { color: var(--accent); }
.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 9px 24px; align-items: center; min-height: 133px; padding: 23px 0 28px; border-top: 1px solid var(--border); }
.footer-wordmark { grid-column: 1; }
.site-footer > p { grid-column: 1; margin: -1px 0 0; color: var(--quiet); font-size: 10px; }
.footer-links { display: flex; flex-wrap: wrap; grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; gap: 8px 20px; }
.footer-links a { color: var(--muted); font-size: 10px; transition: color .18s ease; }
.site-footer > small { grid-column: 1 / -1; margin-top: 10px; color: var(--quiet); font-family: var(--mono); font-size: 9px; }
.site-footer > small span { padding: 0 5px; color: var(--accent); }
.listing-page { max-width: 760px; min-height: 68vh; margin: 0 auto; padding: 82px 0 90px; }
.listing-header { margin-bottom: 40px; }
.listing-header .eyebrow, .article-header .eyebrow { margin-bottom: 13px; }
.listing-header h1 { font-size: clamp(48px, 6vw, 70px); }
.listing-header > p:last-child { max-width: 520px; margin: 17px 0 0; color: var(--muted); font-size: 13px; }
.archive-list { border-top: 1px solid var(--border); }
.archive-year { margin: 26px 0 7px; color: var(--accent); font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .1em; }
.archive-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.archive-row > a, .archive-row > span { color: var(--text); font-family: var(--serif); font-size: 15px; font-weight: 500; letter-spacing: -.025em; transition: color .18s ease; }
.archive-row:hover > a, .archive-row:hover > span { color: var(--accent); }
.archive-row time { flex: 0 0 auto; color: var(--quiet); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.topic-card { position: relative; min-height: 120px; padding: 19px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); transition: border-color .2s ease, background .2s ease; }
.topic-card:hover { border-color: rgba(185, 237, 120, .35); background: var(--surface-hover); }
.topic-count { color: var(--quiet); font-family: var(--mono); font-size: 9px; letter-spacing: .09em; }
.topic-card h2 { margin: 16px 0 0; font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: -.045em; }
.topic-arrow { position: absolute; right: 18px; bottom: 18px; color: var(--accent); }
.category-archives { padding-top: 42px; }
.category-group { margin-top: 35px; scroll-margin-top: 22px; }
.category-group > h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 23px; font-weight: 500; letter-spacing: -.045em; }
.article-page { width: min(100%, 740px); min-height: 68vh; margin: 0 auto; padding: 65px 0 85px; }
.back-link { color: var(--muted); font-size: 11px; transition: color .18s ease; }
.back-link:hover { color: var(--accent); }
.article-header { margin: 43px 0 39px; }
.article-header .eyebrow { display: block; color: var(--accent); }
.article-header h1 { font-size: clamp(43px, 6vw, 67px); line-height: 1.04; }
.article-meta { display: flex; align-items: center; gap: 11px; margin: 17px 0 0; color: var(--quiet); font-family: var(--mono); font-size: 10px; }
.article-meta > span[aria-hidden] { color: var(--accent); }
.prose { color: #d1d5ca; font-size: 15px; line-height: 1.92; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 1.5em; text-align: justify; }
.prose h2, .prose h3, .prose h4 { margin: 2em 0 .7em; color: var(--text); font-family: var(--serif); font-weight: 500; letter-spacing: -.04em; line-height: 1.25; }
.prose h2 { font-size: 29px; }
.prose h3 { font-size: 23px; }
.prose h4 { font-size: 18px; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(185, 237, 120, .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose strong, .prose b { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.5em; margin: 0 0 1.6em; }
.prose li { margin: .36em 0; padding-left: .2em; }
.prose blockquote { margin: 1.9em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent); color: var(--muted); }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose pre, .prose code { font-family: var(--mono); }
.prose code { padding: .18em .4em; border-radius: 3px; background: rgba(185, 237, 120, .09); color: var(--accent); font-size: .88em; }
.prose pre { max-width: 100%; overflow-x: auto; padding: 20px; border: 1px solid var(--border); border-radius: 4px; background: #0c0f0c; color: #d7ddcd; font-size: 12px; line-height: 1.8; }
.prose pre code { padding: 0; background: none; color: inherit; }
.prose img { display: block; max-width: 100%; height: auto; margin: 1.7em auto; border: 1px solid var(--border); border-radius: 3px; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { color: var(--quiet); font-size: 11px; text-align: center; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.prose th, .prose td { padding: 9px 12px; border: 1px solid var(--border); text-align: left; }
.prose th { color: var(--text); }
.article-topics { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--quiet); font-family: var(--mono); font-size: 9px; }
.topic-chip { padding: 4px 9px; border: 1px solid var(--border); border-radius: 12px; color: var(--muted); }
.topic-chip:hover { color: var(--accent); }
.bottom-back-link { display: inline-block; margin-top: 35px; }
.not-found { display: flex; min-height: 64vh; flex-direction: column; justify-content: center; align-items: flex-start; }
.not-found h1 { font-size: clamp(45px, 6vw, 69px); }
.not-found > p:last-child { max-width: 430px; color: var(--muted); font-size: 13px; }
.not-found > p:last-child a { color: var(--accent); }

@media (min-width: 1400px) {
  .site-shell { padding-right: 9%; padding-left: 9%; }
}
@media (max-width: 860px) {
  .site-shell { padding-right: 6%; padding-left: 6%; }
  .hero { min-height: 450px; gap: 27px; padding: 55px 0 60px; }
  .hero-art { min-height: 290px; }
  .about-panel { grid-template-columns: 72px 1fr; gap: 18px; }
  .about-avatar { width: 62px; height: 62px; }
  .about-links { grid-column: 2; }
}
@media (max-width: 620px) {
  body { font-size: 14px; }
  .site-shell { padding-right: 22px; padding-left: 22px; }
  .site-header { min-height: 76px; gap: 13px; }
  .wordmark { gap: 7px; font-size: 13px; }
  .wordmark-mark { width: 25px; height: 25px; font-size: 15px; }
  .site-nav { gap: 14px; }
  .site-nav a, .header-about { font-size: 10px; }
  .header-about { padding: 7px 8px; }
  .header-about span { margin-left: 3px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 32px; padding: 57px 0 43px; }
  .hero h1 { font-size: clamp(53px, 13vw, 71px); }
  .hero-art { min-height: 218px; }
  .latest-section { padding: 18px 0 45px; }
  .section-heading { align-items: end; margin-bottom: 19px; }
  .section-heading h2 { font-size: 28px; }
  .post-grid, .topic-grid { grid-template-columns: 1fr; gap: 10px; }
  .post-card, .featured-card { min-height: 210px; padding: 19px; }
  .post-card h3 { font-size: 21px; }
  .about-panel { grid-template-columns: 56px 1fr; gap: 14px; padding: 19px; }
  .about-avatar { width: 51px; height: 51px; }
  .about-copy h2 { font-size: 22px; }
  .about-copy > p:last-child { font-size: 11px; }
  .about-links { gap: 6px 10px; }
  .about-links a { font-size: 10px; }
  .home-bottom { flex-wrap: wrap; font-size: 8px; }
  .home-bottom span:nth-child(2) { display: none; }
  .site-footer { grid-template-columns: 1fr; gap: 7px; min-height: 0; padding-top: 21px; }
  .footer-links { grid-column: 1; grid-row: auto; justify-content: flex-start; gap: 8px 16px; margin-top: 6px; }
  .site-footer > small { margin-top: 7px; }
  .listing-page { min-height: 65vh; padding: 57px 0 62px; }
  .listing-header { margin-bottom: 32px; }
  .listing-header h1 { font-size: 51px; }
  .topic-card { min-height: 105px; }
  .category-archives { padding-top: 27px; }
  .category-group { margin-top: 27px; }
  .archive-row { gap: 10px; padding: 12px 0; }
  .archive-row > a, .archive-row > span { font-size: 13px; }
  .article-page { min-height: 65vh; padding: 46px 0 62px; }
  .article-header { margin: 34px 0 29px; }
  .article-header h1 { font-size: clamp(40px, 10.5vw, 57px); }
  .prose { font-size: 14px; line-height: 1.88; }
  .prose h2 { font-size: 25px; }
  .prose h3 { font-size: 21px; }
  .prose pre { padding: 14px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.stream-status { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--border); }
.stream-status-card { display: flex; min-width: 0; align-items: center; gap: 12px; }
.stream-avatar-link { display: block; flex: 0 0 auto; }
.stream-avatar { display: block; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 50%; object-fit: cover; }
.stream-avatar-placeholder { display: grid; place-items: center; background: var(--surface); color: var(--muted); font-family: var(--serif); font-size: 17px; }
.stream-avatar[hidden] { display: none; }
.stream-status-details { min-width: 0; }
.stream-status-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.stream-service-link { font-size: 12px; font-weight: 600; }
.stream-service-link:hover, .stream-description a:hover { color: var(--accent); }
.stream-state { color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .04em; }
.stream-state.is-online { color: #7ee08a; }
.stream-description { display: flex; min-width: 0; flex-wrap: wrap; gap: 0 9px; margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.stream-description a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stream-description > span { color: var(--quiet); }
