:root {
  color-scheme: dark;
  --bg: #080b11;
  --bg-deep: #05070c;
  --panel: rgba(20, 25, 37, .86);
  --panel-solid: #141925;
  --line: rgba(255, 255, 255, .095);
  --line-strong: rgba(117, 230, 255, .34);
  --text: #f6f7fb;
  --muted: #a7afc1;
  --accent: #75e6ff;
  --accent-2: #c899ff;
  --good: #6cf3a4;
  --warning: #ffd49a;
  --shadow: 0 24px 76px rgba(0, 0, 0, .3);
  --radius: 22px;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -8%, rgba(117, 230, 255, .16), transparent 34rem),
    radial-gradient(circle at 100% 22%, rgba(200, 153, 255, .13), transparent 42rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(var(--shell), calc(100% - 32px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
}
.skip-link:focus { top: 12px; }

.preview-banner {
  padding: 8px 16px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #090c13;
  text-align: center;
  font-weight: 850;
  letter-spacing: .03em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 17, .88);
}
@supports (backdrop-filter: blur(18px)) {
  .site-header { background: rgba(8, 11, 17, .72); backdrop-filter: blur(18px); }
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 850;
  letter-spacing: .08em;
}
.brand-orb {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(117, 230, 255, .36);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(117, 230, 255, .22), rgba(200, 153, 255, .2));
  box-shadow: 0 0 30px rgba(117, 230, 255, .16);
}
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  padding: 8px 0;
  color: var(--muted);
  text-decoration: none;
  font-weight: 750;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { border-bottom: 1px solid var(--accent); }

.hero { padding: clamp(54px, 8vw, 90px) 0 42px; }
.hero-grid {
  min-height: 410px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font: 750 .75rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .15em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin-top: 0;
  line-height: 1.08;
  letter-spacing: -.04em;
  text-wrap: balance;
}
h1 { max-width: 900px; margin-bottom: 22px; font-size: clamp(3.05rem, 9vw, 7rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.65rem); }
.lead {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.4vw, 1.35rem);
  text-wrap: pretty;
}
.hero-art { position: relative; min-height: 370px; display: grid; place-items: center; }
.hero-art img {
  position: relative;
  width: min(100%, 440px);
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 26px 64px rgba(0, 0, 0, .48));
}
.hero-glow {
  position: absolute;
  inset: 12% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(117, 230, 255, .26), rgba(200, 153, 255, .17) 42%, transparent 72%);
  filter: blur(22px);
}

.section { padding: 42px 0 88px; }
.section-heading { margin-bottom: 24px; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.post-card,
.empty-state,
.legal-card,
.legal-warning {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
@supports (backdrop-filter: blur(12px)) {
  .post-card, .empty-state, .legal-card, .legal-warning { backdrop-filter: blur(12px); }
}
.post-card {
  overflow: clip;
  content-visibility: auto;
  contain-intrinsic-size: 680px;
}
.post-image {
  min-height: 260px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(117, 230, 255, .1), rgba(200, 153, 255, .12));
}
.post-image img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .42s ease; }
.post-card:hover .post-image img { transform: scale(1.025); }
.image-placeholder { font-size: 7rem; font-weight: 900; color: rgba(255, 255, 255, .12); }
.post-copy { padding: 24px; }
.post-copy h2 { margin-bottom: 14px; font-size: clamp(1.45rem, 3vw, 1.75rem); }
.post-copy h2 a, .text-link { text-decoration: none; }
.post-copy > p { color: var(--muted); text-wrap: pretty; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font: 700 .74rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.tag-row span { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .76rem; }
.text-link { color: var(--accent); font-weight: 800; }
.empty-state { padding: clamp(32px, 6vw, 54px); text-align: center; }
.empty-state p:last-child { color: var(--muted); }

.article-shell { padding: 58px 0 88px; }
.back-link { display: inline-block; margin-bottom: 40px; color: var(--muted); text-decoration: none; }
.article-header { max-width: 920px; margin-bottom: 34px; }
.article-header h1 { font-size: clamp(2.6rem, 7vw, 5.7rem); }
.article-deck { max-width: 780px; color: var(--muted); font-size: 1.25rem; text-wrap: pretty; }
.article-image { margin: 0 0 42px; }
.article-image img { width: 100%; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.article-image figcaption { margin-top: 10px; color: var(--muted); font-size: .85rem; }
.prose { max-width: 780px; font-size: 1.08rem; }
.prose h2, .prose h3 { margin: 2.3em 0 .8em; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.35em; }
.prose a { color: var(--accent); }
.prose blockquote { margin-left: 0; padding: 18px 22px; border-left: 3px solid var(--accent-2); border-radius: 0 14px 14px 0; background: rgba(255, 255, 255, .035); color: var(--muted); }
.prose code { padding: .15em .38em; border-radius: 6px; background: rgba(255, 255, 255, .07); }
.prose pre { overflow-x: auto; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #0b0e15; }
.prose img { margin: 1.8em 0; border: 1px solid var(--line); border-radius: 18px; }

.legal-page { padding: 68px 0 90px; }
.legal-page > h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
.legal-card, .legal-warning { max-width: 820px; padding: 28px; }
.legal-warning { margin-bottom: 18px; border-color: rgba(255, 190, 100, .3); color: var(--warning); }
.legal-card h2 { margin: 1.8em 0 .5em; font-size: 1.3rem; }
.legal-card h2:first-child { margin-top: 0; }

.site-footer { border-top: 1px solid var(--line); background: rgba(8, 11, 17, .58); }
.footer-grid { padding: 38px 0 24px; display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; }
.footer-grid p { max-width: 520px; color: var(--muted); }
.footer-brand { margin-bottom: 14px; }
.footer-grid > a { color: var(--muted); }
.footer-bottom { padding: 18px 0 28px; display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.gamer-note { text-align: right; }
.gamer-note a { color: var(--accent); }

:focus-visible { outline: 3px solid rgba(117, 230, 255, .72); outline-offset: 4px; border-radius: 4px; }

@media (max-width: 800px) {
  .hero-grid { min-height: auto; grid-template-columns: 1fr; }
  .hero-art { min-height: 250px; }
  .post-grid { grid-template-columns: 1fr; }
  .footer-grid, .footer-bottom { display: block; }
  .footer-grid > a, .footer-bottom > * { display: block; margin-top: 14px; }
  .gamer-note { text-align: left; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 22px, var(--shell)); }
  .header-inner { min-height: 68px; }
  .site-nav { gap: 15px; font-size: .9rem; }
  .brand { letter-spacing: .04em; }
  .hero { padding-top: 44px; }
  .hero-art { min-height: 205px; }
  .post-copy { padding: 20px; }
  .article-shell { padding-top: 38px; }
}

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