:root {
  --ink: #f7f5ff;
  --muted: #c4c0de;
  --night: #0d102b;
  --night-2: #141943;
  --panel: #1b2050;
  --panel-2: #242861;
  --cyan: #55e9df;
  --yellow: #ffd452;
  --coral: #ff6d68;
  --violet: #9678ff;
  --line: rgba(173, 181, 255, .22);
  --shadow: 8px 8px 0 rgba(4, 5, 20, .42);
  --measure: 1180px;
  --stack: 3.25rem;
  --card-pad: 1.35rem;
  --font-display: 'Instrument Serif', serif;
  --font-body: 'Instrument Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: dark;
}

html[data-theme="light"], html.light {
  --ink: #181634;
  --muted: #2f2c4a;
  --night: #f6f4ff;
  --night-2: #ebe9fa;
  --panel: #ffffff;
  --panel-2: #dedcff;
  --cyan: #04555e;
  --yellow: #e8ab00;
  --coral: #8e1830;
  --violet: #4d32c4;
  --line: rgba(24, 22, 52, .18);
  --shadow: 8px 8px 0 rgba(72, 65, 150, .14);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body {
  margin: 0;
  background:
    linear-gradient(rgba(110, 112, 210, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 112, 210, .045) 1px, transparent 1px),
    var(--night);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
}
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 85% 0%, rgba(150, 120, 255, .16), transparent 32rem); z-index: -1; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }

.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--night) 88%, transparent); position: relative; z-index: 5; }
.header-inner, .site-footer-inner, .page-wrap { width: min(calc(100% - 3rem), var(--measure)); margin: 0 auto; }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: .85rem 1.25rem; flex-wrap: wrap; padding: .7rem 0; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; min-width: max-content; }
.brand-mark { width: 2.65rem; height: 2.65rem; padding: .38rem; background: var(--cyan); color: var(--night); box-shadow: 4px 4px 0 var(--yellow); }
.brand-name { font-family: var(--font-mono); font-size: clamp(1rem, 2vw, 1.28rem); font-weight: 700; letter-spacing: -.08em; }
.brand-name span { color: var(--cyan); }
.header-tools { display: flex; align-items: center; justify-content: flex-end; gap: .4rem; margin-left: auto; }
.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .2rem;
  padding: .3rem;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 4px 4px 0 rgba(150, 120, 255, .16);
}
.site-nav a {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  padding: .42rem .62rem;
  border: 1px solid transparent;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.site-nav a:hover {
  color: var(--ink);
  border-color: var(--line);
  background: var(--panel-2);
}
.site-nav a[aria-current="page"] {
  color: var(--night);
  background: var(--cyan);
  border-color: var(--cyan);
}
.site-nav a:focus-visible,
.nav-drop summary:focus-visible,
.category-tile:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  padding: .42rem .7rem .42rem .62rem;
  border: 1px solid transparent;
}
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after { content: "▾"; margin-left: .35rem; font-size: .62rem; }
.nav-drop summary:hover { color: var(--ink); }
.nav-sub {
  display: none;
  position: absolute;
  top: calc(100% - .2rem);
  left: 0;
  z-index: 8;
  min-width: 16.5rem;
  padding: .4rem;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.nav-drop:hover .nav-sub,
.nav-drop:focus-within .nav-sub,
.nav-drop[open] .nav-sub { display: flex; flex-direction: column; }
.nav-sub a { justify-content: flex-start; }
[data-anchor11], .quartz-fe10 {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  line-height: 1;
  font-size: 1.05rem;
  flex: 0 0 2.75rem;
}
.quartz-fe10 { display: none; }

.breadcrumbs { padding: 1rem 0 0; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .55rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--muted); font-weight: 400; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--ink); }

.hero { padding: var(--stack) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(17rem, .82fr); gap: 2.5rem; align-items: stretch; }
.eyebrow, .section-kicker { color: var(--cyan); font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero h1, .page-intro h1 { font-family: var(--font-display); font-size: clamp(3.3rem, 8vw, 7.4rem); font-weight: 600; letter-spacing: -.07em; line-height: .87; margin: .8rem 0 1.35rem; max-width: 8ch; }
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero-lede { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); max-width: 38rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .75rem 1rem; border: 1px solid var(--cyan); background: var(--cyan); color: var(--night); font-family: var(--font-mono); font-size: .76rem; font-weight: 700; text-decoration: none; text-align: center; }
.button:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--yellow); }
.button.secondary { border-color: var(--line); background: transparent; color: var(--ink); }
.hero-art { position: relative; align-self: stretch; min-height: 26rem; background: #071018; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center center; transform: scale(1.42); transform-origin: center 80%; image-rendering: pixelated; }
.static-note { margin: 1rem 0 0; padding: 1rem 1.1rem; border: 1px solid var(--line); background: var(--panel); color: var(--muted); }
.static-note a { color: var(--cyan); font-weight: 700; }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(7, 8, 26, .82)); pointer-events: none; }
.hero-caption { position: absolute; right: 1.2rem; bottom: 1.1rem; left: 1.2rem; z-index: 1; }
.hero-caption p { margin: .45rem 0 0; color: #fff; font-weight: 700; }
.art-credit { margin: .4rem 0 0; color: var(--muted); font-family: var(--font-mono); font-size: .66rem; font-weight: 700; }
.hero-caption .art-credit { color: rgba(255, 255, 255, .86); }

.section { padding: var(--stack) 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.35rem; }
.section-heading h2, .page-intro h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 600; letter-spacing: -.045em; line-height: .95; margin: .3rem 0 0; }
.text-link { color: var(--yellow); font-family: var(--font-mono); font-size: .76rem; font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--cyan); }
html[data-theme="light"] .text-link,
html.light .text-link { color: #6a3d00; }
html[data-theme="light"] .hero h1 em,
html.light .hero h1 em,
html[data-theme="light"] .rating,
html.light .rating { color: #6a3d00; }
.category-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.category-strip.cols-3 { grid-template-columns: repeat(3, 1fr); }
.category-tile { min-height: 8.5rem; padding: var(--card-pad); display: flex; flex-direction: column; justify-content: space-between; gap: .75rem; border: 1px solid var(--line); background: var(--panel); text-decoration: none; box-shadow: 4px 4px 0 rgba(150, 120, 255, .18); }
.category-tile:hover { border-color: var(--cyan); transform: translateY(-3px); }
.category-tile strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; line-height: .95; }
.category-tile small { color: var(--muted); font-family: var(--font-mono); font-size: .72rem; font-weight: 700; line-height: 1.4; }
.category-tile:nth-child(2) { background: #2d235b; } .category-tile:nth-child(3) { background: #153d50; } .category-tile:nth-child(4) { background: #4a263d; }
html[data-theme="light"] .category-tile:nth-child(2),
html.light .category-tile:nth-child(2) { background: #e7e3ff; }
html[data-theme="light"] .category-tile:nth-child(3),
html.light .category-tile:nth-child(3) { background: #dff3f5; }
html[data-theme="light"] .category-tile:nth-child(4),
html.light .category-tile:nth-child(4) { background: #fde8ec; }

.credential-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.credential-list li { margin: 0; padding: var(--card-pad); border: 1px solid var(--line); background: var(--panel); color: var(--ink); }

.news-grid, .amber-cf5a { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.15rem; align-items: start; }
.flint-8848 { border: 1px solid var(--line); background: var(--panel); overflow: hidden; padding: var(--card-pad); }
.violet-7fd4 { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel-2); margin-bottom: 1rem; }
.violet-7fd4 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .4s ease; }
.flint-8848:hover .violet-7fd4 img { transform: scale(1.05); }
.harbor-916b { padding: 0; }
.onyx-c852 { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .75rem; color: var(--muted); font-family: var(--font-mono); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.delta-019b { color: var(--cyan); }
.flint-8848 h3 { margin: .6rem 0 .5rem; font-family: var(--font-display); font-size: 1.65rem; font-weight: 600; line-height: 1; }
.flint-8848 p { margin: 0; color: var(--muted); }
.orchid-f0d0 { border: 1px dashed var(--line); color: var(--muted); padding: var(--card-pad); grid-column: 1 / -1; }

.feature-band { display: grid; grid-template-columns: .78fr 1.22fr; gap: 2.2rem; align-items: center; padding: var(--card-pad); border: 1px solid var(--line); background: linear-gradient(110deg, var(--panel), var(--panel-2)); }
.feature-band img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: pixelated; }
.feature-band h2 { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4.7rem); font-weight: 600; letter-spacing: -.06em; line-height: .9; margin: .55rem 0 1rem; }
.feature-band p { color: var(--muted); max-width: 33rem; }
.rating { display: inline-flex; align-items: center; gap: .5rem; margin-top: .7rem; color: var(--yellow); font-family: var(--font-mono); font-weight: 700; }
.rating strong { font-size: 1.45rem; }

.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; margin: 0; padding: var(--stack) var(--card-pad); border: 1px solid var(--cyan); background: var(--night-2); }
.newsletter h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 600; line-height: .95; margin: .4rem 0 .7rem; }
.newsletter p { color: var(--muted); margin: 0; }
.newsletter-form { display: flex; align-items: flex-start; gap: .5rem; }
.newsletter-field { min-width: 0; flex: 1; }
.newsletter-form input, .search-form input { width: 100%; min-width: 0; padding: .85rem 1rem; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.form-note { margin: .65rem 0 0; min-height: 1.5em; color: var(--cyan); font-family: var(--font-mono); font-size: .72rem; font-weight: 700; }
.form-note.is-success { color: var(--cyan); }
.form-note.is-error { color: var(--coral); }

.page-intro { padding: var(--stack) 0 1.25rem; max-width: 48rem; }
.page-intro h1 { font-size: clamp(3.2rem, 7vw, 6.6rem); max-width: 12ch; }
.page-intro p { color: var(--muted); font-size: 1.15rem; max-width: 40rem; }
.archive-shell { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; gap: 2rem; align-items: start; }
.search-form { display: flex; gap: .5rem; margin-bottom: 1.25rem; }
.filter-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filter-list a { border: 1px solid var(--line); color: var(--muted); padding: .45rem .65rem; font-family: var(--font-mono); font-size: .72rem; font-weight: 700; text-decoration: none; }
.filter-list a:hover { border-color: var(--cyan); color: var(--cyan); }

.velvet-8c25 { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; gap: 2rem; align-items: start; }
.velvet-8c25:has([data-zephyr0b][hidden]) { grid-template-columns: minmax(0, 1fr); }
[data-zephyr0b][hidden] { display: none; }
.ember-cab9 { position: sticky; top: 1.5rem; border-left: 2px solid var(--yellow); padding-left: 1rem; }
.ember-cab9 h2 { margin: 0 0 .8rem; color: var(--yellow); font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; }
.ember-cab9 ol { margin: 0; padding-left: 1rem; color: var(--muted); font-size: .85rem; }
.ember-cab9 a { text-decoration: none; } .ember-cab9 a:hover { color: var(--cyan); }

.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: start; }
.about-grid h2 { font-family: var(--font-display); font-size: 3rem; line-height: .95; margin-top: 0; }
.about-grid p { color: var(--muted); font-size: 1.08rem; }
.fact-list { display: grid; gap: .75rem; }
.fact { padding: var(--card-pad); background: var(--panel); border: 1px solid var(--line); }
.fact b { display: block; color: var(--cyan); font-family: var(--font-mono); font-size: .72rem; font-weight: 700; margin-bottom: .25rem; }

.compare-table { width: 100%; border-collapse: collapse; margin: 0; }
.compare-table th, .compare-table td { border: 1px solid var(--line); padding: .85rem 1rem; text-align: left; vertical-align: top; }
.compare-table th { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); background: var(--panel); }
.compare-table td { background: var(--panel); }
.compare-table a { color: var(--cyan); font-weight: 700; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; gap: 2rem; align-items: start; }
.article-main { min-width: 0; }
.byline { display: flex; align-items: center; gap: .75rem; margin: 0 0 1.5rem; color: var(--muted); }
.byline[hidden] { display: none; }
.byline img { width: 2.8rem; height: 2.8rem; border-radius: 50%; object-fit: cover; }
.byline strong { color: var(--ink); display: block; } .byline p { margin: 0; font-size: .85rem; }
.mist-097d h1 { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 6rem); font-weight: 600; letter-spacing: -.06em; line-height: .9; max-width: 15ch; margin: 1rem 0; }
.marble-d9d3 { color: var(--muted); font-size: 1.25rem; max-width: 44rem; }
.fable-4e9f { margin: 2rem 0; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel-2); }
.fable-4e9f img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: 46rem; font-size: 1.13rem; }
.prose p { margin: 0 0 1.35rem; } .prose h2, .prose h3 { font-family: var(--font-display); line-height: 1; margin: 2.1rem 0 .8rem; }
.prose h2 { font-size: 2.4rem; } .prose h3 { font-size: 1.7rem; }
.prose a { color: var(--cyan); text-decoration-thickness: .12em; text-underline-offset: .18em; }
.prose ul, .prose ol { padding-left: 1.35rem; } .prose li { margin: .5rem 0; }

.site-footer { margin-top: var(--stack); border-top: 1px solid var(--line); background: var(--night-2); }
.site-footer-inner { display: grid; grid-template-columns: 1.15fr 1fr 1fr .9fr; gap: 1.5rem 1.75rem; padding: 2.5rem 0; }
.site-footer h2 { font-family: var(--font-display); font-size: 1.7rem; margin: 0 0 .65rem; }
.site-footer p, .site-footer a { color: var(--muted); font-size: .88rem; }
.site-footer a { display: block; margin: .3rem 0; text-decoration: none; } .site-footer a:hover { color: var(--cyan); }
.footer-bottom { display: block; border-top: 1px solid var(--line); padding: 1rem 0; color: var(--muted); font-family: var(--font-mono); font-size: .72rem; font-weight: 700; }

@media (max-width: 980px) {
  .site-nav { flex: 1 1 100%; margin-left: 0; justify-content: flex-start; }
}

@media (max-width: 800px) {
  .header-inner, .site-footer-inner, .page-wrap { width: min(calc(100% - 2rem), var(--measure)); }
  .header-inner { min-height: 72px; }
  .site-nav { display: none; position: absolute; top: 100%; right: 1rem; left: 1rem; flex: none; margin: 0; padding: .75rem; flex-direction: column; align-items: stretch; justify-content: flex-start; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.marble-4bc0 { display: flex; }
  .site-nav a { padding: .7rem .65rem; }
  .nav-drop { width: 100%; }
  .nav-drop summary { width: 100%; padding: .7rem .65rem; }
  .nav-sub { position: static; min-width: 0; padding: 0 0 .35rem .4rem; border: 0; background: transparent; box-shadow: none; }
  .nav-drop:hover .nav-sub { display: none; }
  .nav-drop[open] .nav-sub,
  .nav-drop:focus-within .nav-sub { display: flex; }
  .quartz-fe10 { display: inline-flex; }
  .hero-grid, .feature-band, .newsletter, .about-grid, .credential-list { grid-template-columns: 1fr; }
  .hero { padding: var(--stack) 0; }
  .category-strip, .category-strip.cols-3 { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .archive-shell, .velvet-8c25, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .ember-cab9 { position: static; order: 2; }
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
  .site-footer-inner > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .brand-name { font-size: .86rem; }
  .brand-mark { width: 2.25rem; height: 2.25rem; }
  .hero h1, .page-intro h1 { font-size: 3.3rem; }
  .section { padding: var(--stack) 0; }
  .section-heading { display: block; } .section-heading .text-link { display: inline-block; margin-top: .8rem; }
  .site-footer-inner { grid-template-columns: 1fr; }
}

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