@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter.woff2') format('woff2');
}

@font-face {
  font-family: Playfair Display;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/playfair.woff2') format('woff2');
}

@font-face {
  font-family: Playfair Display;
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/playfair-italic.woff2') format('woff2');
}

@font-face {
  font-family: Silkscreen;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/silkscreen.woff2') format('woff2');
}

@font-face {
  font-family: Gayathri;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/gayathri.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --mouse-x: 50vw;
  --mouse-y: 50vh;
  font-family: Inter, Arial, sans-serif;
  background: #050505;
  color: #fff;
}

* { box-sizing: border-box; }
.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; }
html { background: #050505; }
body { min-width: 320px; margin: 0; overflow-x: hidden; background: #050505; color: #fff; }
a { color: inherit; text-decoration: none; }
.page { position: relative; min-height: 100vh; }

.dotted-bg,
.dotted-bg-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background-size: 32px 32px;
}

.dotted-bg-blog { background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px); }
.dotted-bg-glow-blog {
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  opacity: 0.45;
  mask-image: radial-gradient(circle 400px at var(--mouse-x) var(--mouse-y), #000, transparent 80%);
}

.site-shell {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
  flex-direction: column;
}

.topbar, .topnav, .brand, .button, .footer-brand, .footer-nav, .footer-nav nav { display: flex; align-items: center; }
.topbar { justify-content: space-between; gap: 1rem; }
.brand { min-height: 2.75rem; gap: 15px; }
.brand img { width: auto; height: 32px; flex-shrink: 0; }
.brand > span { margin-top: 8px; color: #fff; font-family: Gayathri, sans-serif; font-size: 34px; font-weight: 400; letter-spacing: .1em; line-height: 32px; }
.topnav { gap: .75rem; }
.button { min-height: 2.75rem; padding: .5rem 1rem; border-radius: 999px; font-size: .875rem; transition: background-color .2s, color .2s; }
.button-muted { border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); color: #d4d4d8; }
.button-muted:hover { color: #fff; }
.button-green { background: #34d399; color: #000; font-weight: 500; }
.button-green:hover { background: #6ee7b7; }

.journal-hero { padding-top: 6rem; }
.journal-badge {
  display: inline-flex;
  margin: 0;
  padding: .25rem .75rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: #d4d4d8;
  font-size: .6875rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.journal-hero h1 { max-width: 56rem; margin: 1.5rem 0 0; font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 300; letter-spacing: -.025em; line-height: 1; }
.journal-lede { max-width: 48rem; margin: 1.5rem 0 0; color: #d4d4d8; font-size: 1.125rem; line-height: 2; }

.empty-state,
.featured-preview {
  margin-top: 3.5rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 2rem;
  background: rgba(255,255,255,.05);
}
.featured-preview { transition: background-color .2s; }
.featured-preview:hover { background: rgba(255,255,255,.08); }
.featured-preview a { display: block; padding: 2rem; }
.empty-state { padding: 2rem; }
.featured-preview p,
.empty-state p { margin: 0; color: #6ee7b7; font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase; }
.featured-preview h2,
.empty-state h2 { margin: 1.25rem 0 0; font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 300; }
.featured-preview span,
.empty-state span { display: block; margin-top: 1.25rem; color: #d4d4d8; font-size: .95rem; }
.featured-preview small { display: block; margin-top: 1.5rem; color: #71717a; font-size: .875rem; }

.article-shell { position: relative; z-index: 1; width: 100%; max-width: 56rem; margin: 0 auto; padding: 2rem 2rem 6rem; }
.breadcrumbs { display: flex; align-items: center; gap: .5rem; color: #d4d4d8; font-size: .875rem; }
.breadcrumbs a { min-height: 2.75rem; padding: .75rem .25rem; }
.breadcrumbs a { transition: color .2s; }
.breadcrumbs a:hover { color: #fff; }
.article-header { padding-top: 3.5rem; }
.article-category { margin: 0; color: #6ee7b7; font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase; }
.article-header h1 { margin: 1.25rem 0 0; font-size: 2.25rem; font-weight: 300; letter-spacing: -.025em; line-height: 2.5rem; }
.article-description { margin: 1.25rem 0 0; color: #d4d4d8; font-size: 1.125rem; line-height: 2; }
.article-meta { display: flex; margin-top: 1.75rem; flex-wrap: wrap; gap: 1rem; color: #71717a; font-size: .875rem; }
.article-tags { display: flex; margin-top: 1.5rem; flex-wrap: wrap; gap: .5rem; }
.article-tags span { padding: .25rem .75rem; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(255,255,255,.05); color: #a1a1aa; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.article-cover { position: relative; height: min(25rem, 52vw); min-height: 16rem; margin: 2.5rem 0 0; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 1.75rem; background: radial-gradient(circle at 50% 45%, rgba(52,211,153,.12), transparent 45%), #111113; }
.cover-grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px); background-size: 28px 28px; }
.cover-line { position: absolute; top: 50%; left: 24%; width: 52%; height: 1px; background: rgba(110,231,183,.45); }
.cover-node { position: absolute; top: 50%; width: 7rem; padding: 1rem; transform: translate(-50%,-50%); border: 1px solid rgba(255,255,255,.14); border-radius: 1rem; background: rgba(5,5,5,.88); text-align: center; font-size: .8rem; }
.cover-node.one { left: 24%; }
.cover-node.two { left: 50%; }
.cover-node.three { left: 76%; }
.article-cover figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: .75rem 1.25rem; border-top: 1px solid rgba(255,255,255,.1); background: rgba(5,5,5,.75); color: #d4d4d8; font-size: .75rem; }
.article-prose { margin-top: 3.5rem; color: #d4d4d8; font-size: 1.05rem; line-height: 1.95; }
.article-prose h2 { margin: 3.5rem 0 1rem; color: #fff; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.85rem, 3vw, 2.4rem); font-style: italic; font-weight: 400; letter-spacing: -.02em; line-height: 1.15; }
.article-prose h3 { margin: 2.5rem 0 .75rem; color: #fff; font-size: 1.25rem; font-weight: 500; line-height: 1.35; }
.article-prose p, .article-prose ul, .article-prose blockquote { margin: 1.1rem 0; }
.article-prose ul { padding-left: 1.4rem; }
.article-prose li + li { margin-top: .5rem; }
.article-prose li::marker { color: #a1a1aa; }
.article-prose strong { color: #fff; }
.article-prose blockquote { margin: 2rem 0; padding-left: 1rem; border-left: 3px solid rgba(52,211,153,.55); color: #e4e4e7; }
.article-prose a { color: #6ee7b7; text-decoration: underline; text-decoration-color: rgba(110,231,183,.35); text-underline-offset: .2em; }
.article-prose hr { margin: 3rem 0; border: 0; border-top: 1px solid rgba(255,255,255,.1); }
.article-diagram { margin: 2.25rem 0; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 1.25rem; background: #08080a; }
.article-diagram img { display: block; width: 100%; height: auto; }
.article-diagram figcaption { padding: .75rem 1rem; border-top: 1px solid rgba(255,255,255,.08); color: #71717a; font-size: .75rem; }
.table-scroll { margin: 2rem 0; overflow-x: auto; border: 1px solid rgba(255,255,255,.1); border-radius: 1rem; }
.article-prose table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.55; }
.article-prose th, .article-prose td { min-width: 10rem; padding: .9rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; vertical-align: top; }
.article-prose th { color: #fff; background: rgba(255,255,255,.05); }
.article-note { margin-top: 3rem; padding: 1.5rem; border: 1px solid rgba(52,211,153,.2); border-radius: 1.5rem; background: rgba(52,211,153,.08); color: #e4e4e7; }

.journal-grid { display: grid; margin-top: 4rem; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.journal-card { display: flex; min-height: 19rem; padding: 1.75rem; flex-direction: column; border: 1px solid rgba(255,255,255,.1); border-radius: 1.5rem; background: rgba(255,255,255,.04); transition: background-color .2s, border-color .2s; }
.journal-card:hover { border-color: rgba(110,231,183,.28); background: rgba(255,255,255,.07); }
.journal-card p { margin: 0; color: #6ee7b7; font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; }
.journal-card h2 { margin: 1.25rem 0 0; font-size: 1.55rem; font-weight: 350; line-height: 1.15; }
.journal-card span { margin-top: 1rem; color: #a1a1aa; font-size: .9rem; line-height: 1.65; }
.journal-card small { margin-top: auto; padding-top: 1.5rem; color: #71717a; text-transform: capitalize; }

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  padding-top: 8rem;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255,255,255,.05);
  background: #050505;
  text-align: center;
}
.footer-glow { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,78,59,.1), transparent); pointer-events: none; }
.footer h2 { position: relative; z-index: 1; margin: 0 0 2rem; font-size: clamp(3rem, 7vw, 4.5rem); font-weight: 300; }
.footer h2 em { color: #a1a1aa; font-family: 'Playfair Display', Georgia, serif; font-weight: 400; }
.download-button { position: relative; z-index: 1; padding: 1rem 2rem; border-radius: 999px; background: #fff; color: #000; font-size: 1.125rem; font-weight: 500; transition: background-color .2s; }
.download-button:hover { background: #e4e4e7; }
.footer-nav { position: relative; z-index: 1; width: 100%; max-width: 72rem; margin: 8rem auto 4rem; padding: 0 1.5rem; justify-content: space-between; color: #71717a; font-size: .875rem; }
.footer-brand { gap: .5rem; }
.footer-brand em { color: #a1a1aa; font-family: 'Playfair Display', Georgia, serif; letter-spacing: .05em; }
.footer-brand > span:last-child { margin-left: .5rem; }
.footer-brand img { width: 1rem; height: 1rem; opacity: .5; }
.footer-nav nav { flex-wrap: wrap; justify-content: center; gap: .75rem 2rem; }
.footer-nav a { transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.wordmark { position: relative; z-index: 1; width: 100%; margin-top: auto; overflow: hidden; font-family: Silkscreen, monospace; font-size: 18vw; font-weight: 700; letter-spacing: -.05em; line-height: .75; }

::selection { background: rgba(255,255,255,.3); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { border-radius: 4px; background: #333; }
::-webkit-scrollbar-thumb:hover { background: #555; }

@media (max-width: 767px) {
  .site-shell { padding-right: 1.5rem; padding-left: 1.5rem; }
  .journal-hero { padding-top: 4rem; }
  .journal-lede { font-size: 1rem; }
  .article-shell { padding-right: 1.5rem; padding-left: 1.5rem; }
  .article-description { font-size: 1rem; }
  .cover-node { width: 5.5rem; padding: .75rem .25rem; font-size: .7rem; }
  .footer-nav { flex-direction: column; gap: 1.5rem; }
  .topnav .button-muted { display: none; }
  .journal-grid { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
  .article-header h1 { font-size: 3.75rem; line-height: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
:root { overflow-x: hidden; }
