@font-face {
  font-family: "Syne";
  src: url("/fonts/Syne-Variable.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-Variable.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-Italic-Variable.woff2") format("woff2");
  font-weight: 100 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0b1016;
  --bg-elev: #121821;
  --bg-soft: #18202b;
  --ink: #e8eef6;
  --muted: #9aa8ba;
  --faint: #6d7b8d;
  --line: rgba(232, 238, 246, 0.1);
  --amber: #f5b400;
  --amber-ink: #1a1400;
  --cyan: #4ad4c8;
  --danger: #ff6b6b;
  --font-display: "Syne", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 4px;
  --header-h: 4.25rem;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(245, 180, 0, 0.08), transparent 50%),
    radial-gradient(900px 400px at -10% 20%, rgba(74, 212, 200, 0.05), transparent 50%),
    var(--bg);
  min-height: 100vh;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--amber); }
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; background: var(--amber); color: var(--amber-ink);
  padding: 0.5rem 0.8rem; z-index: 100; font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 16, 22, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner, .footer-inner, .hero-inner, .highlights-grid, .featured, .latest, .categories, .layout-article, .layout-listing, .page-prose, .highlights {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}
.logo { display: flex; align-items: center; gap: 0.65rem; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; font-size: 1.15rem; }
.logo img { display: block; }
.logo-wordmark span { color: var(--amber); }
.nav-toggle { display: none; }
.site-nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 0.45rem 0.75rem; font-size: 0.95rem; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--amber); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.15rem; font-weight: 650; font-family: inherit;
  border-radius: var(--radius); text-decoration: none; border: 1px solid transparent;
  cursor: pointer; letter-spacing: 0.01em;
}
.btn-primary { background: var(--amber); color: var(--amber-ink); }
.btn-primary:hover { background: #ffc833; color: var(--amber-ink); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--amber); color: var(--amber); }

.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: center;
  width: min(var(--max), calc(100% - 2rem)); margin: 2.5rem auto 3rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}
.eyebrow, .card-kicker, .product-kicker {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber); font-weight: 650; margin: 0 0 0.75rem;
}
.hero h1, .article-header h1, .page-header h1, .error-page h1 {
  font-family: var(--font-display); font-weight: 750; letter-spacing: -0.04em;
  line-height: 1.05; margin: 0 0 1rem; font-size: clamp(2.3rem, 5vw, 4rem);
}
.hero-lead, .article-lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 1.5rem; max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: min(100%, 360px); height: auto; }

.highlights { margin-bottom: 3.5rem; }
.highlights-grid, .featured-grid, .category-grid { display: grid; gap: 1rem; }
.highlights-grid { grid-template-columns: repeat(3, 1fr); }
.highlight-card, .card, .category-card, .sidebar-card, .product-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem 1.35rem;
}
.highlight-card h2 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 0.5rem; }
.highlight-card p { margin: 0; color: var(--muted); }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; }
.section-head h2, .categories h2, .related h2, .sidebar h2 {
  font-family: var(--font-display); letter-spacing: -0.03em; margin: 0; font-size: 1.6rem;
}
.featured, .latest, .categories { margin-bottom: 3.5rem; }
.featured-grid { grid-template-columns: 1.3fr 1fr; }
.card h3, .article-list h3, .article-list h2 { font-family: var(--font-display); letter-spacing: -0.03em; font-size: 1.35rem; margin: 0.2rem 0 0.6rem; line-height: 1.2; }
.card h3 a, .article-list h3 a, .article-list h2 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover, .article-list a:hover { color: var(--amber); }
.card p, .article-list p { margin: 0 0 0.6rem; color: var(--muted); }
.card-meta, .card-kicker { color: var(--faint); }
.card-meta { font-size: 0.88rem; }
.card-featured.is-lead { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; background:
  linear-gradient(180deg, rgba(245, 180, 0, 0.08), var(--bg-elev) 55%), var(--bg-elev); }
.card-featured.is-lead h3 { font-size: 2rem; }

.category-grid { grid-template-columns: repeat(4, 1fr); }
.category-card { color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 0.4rem; transition: border-color 0.15s; }
.category-card:hover { border-color: var(--amber); color: var(--ink); }
.category-icon { color: var(--amber); }
.category-name { font-family: var(--font-display); font-weight: 700; }
.category-text { color: var(--muted); font-size: 0.92rem; }

.article-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.article-list li article, .article-list-full li article { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.latest .article-list { grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; }

.layout-article, .listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 16.5rem; gap: 2.5rem; padding: 2rem 0 4rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; padding: 0; font-size: 0.88rem; color: var(--faint); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: var(--faint); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.article-header { margin-bottom: 1.25rem; }
.article-body { max-width: 42rem; }
.article-body h2 { font-family: var(--font-display); letter-spacing: -0.03em; font-size: 1.6rem; margin: 2.2rem 0 0.8rem; }
.article-body h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 1.6rem 0 0.5rem; }
.article-body p, .article-body li { color: #d5deea; }
.article-body ul, .article-body ol { padding-left: 1.2rem; }
.article-body li + li { margin-top: 0.35rem; }
.article-body blockquote {
  margin: 1.5rem 0; padding: 0.2rem 0 0.2rem 1.1rem; border-left: 3px solid var(--amber);
  color: var(--ink); font-style: italic;
}

.disclosure-banner {
  background: rgba(245, 180, 0, 0.08); border: 1px solid rgba(245, 180, 0, 0.28);
  padding: 0.85rem 1rem; border-radius: 6px; margin: 0 0 1.5rem; font-size: 0.92rem;
}
.disclosure-banner p { margin: 0; color: var(--muted); }

.product-card { margin: 1.6rem 0; border-left: 3px solid var(--amber); }
.product-name { font-family: var(--font-display); margin: 0 0 0.5rem; font-size: 1.25rem; }
.product-blurb, .product-note { color: var(--muted); margin: 0 0 0.75rem; }
.product-note { font-size: 0.9rem; }

.related { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.related ul, .sidebar ul, .footer-cols ul, .error-links { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.related li, .sidebar li { margin: 0 0 0.5rem; }
.sidebar { position: sticky; top: calc(var(--header-h) + 1rem); align-self: start; display: flex; flex-direction: column; gap: 1rem; }
.sidebar-note p { color: var(--muted); margin: 0.5rem 0 0; font-size: 0.92rem; }
.page-prose { padding: 2.5rem 0 4rem; max-width: 46rem; }
.page-header { margin-bottom: 1.5rem; }

.ad-slot { margin: 0; }
.ad-slot[hidden] { display: none !important; }
.ad-slot.has-ad { margin: 1rem auto; width: min(var(--max), calc(100% - 2rem)); display: flex; justify-content: center; }
.ad-slot-inarticle.has-ad, .ad-slot-sidebar.has-ad { width: 100%; margin: 1.5rem 0; }
.ad-slot.is-placeholder {
  margin: 1rem auto; width: min(var(--max), calc(100% - 2rem));
  min-height: 5.5rem; border: 1px dashed rgba(245, 180, 0, 0.45);
  display: flex; align-items: center; justify-content: center; color: var(--faint);
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.ad-slot-inarticle.is-placeholder, .ad-slot-sidebar.is-placeholder { width: 100%; margin: 1.25rem 0; }

.site-footer { border-top: 1px solid var(--line); background: #080b10; padding: 3rem 0 2rem; margin-top: 1rem; }
.footer-inner { display: grid; gap: 1.5rem; }
.footer-brand p, .footer-note, .footer-copy { color: var(--muted); font-size: 0.92rem; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.footer-cols h2 { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin: 0; }
.footer-cols a, .error-links a { color: var(--ink); text-decoration: none; }
.footer-cols a:hover { color: var(--amber); }
.footer-copy { margin-bottom: 0; }

.error-page { min-height: 50vh; }
.contact-email { font-size: 1.2rem; }

@media (max-width: 900px) {
  .hero, .featured-grid, .layout-article, .listing-layout, .highlights-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .latest .article-list { grid-template-columns: 1fr; }
  .card-featured.is-lead { min-height: 0; }
  .hero-art { display: none; }
  .sidebar { position: static; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: transparent; color: var(--ink); border: 1px solid var(--line);
    border-radius: 4px; padding: 0.4rem 0.7rem; font: inherit;
  }
  .nav-toggle-icon { width: 1rem; height: 2px; background: var(--ink); box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink); }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #0e141c; border-bottom: 1px solid var(--line); padding: 0.5rem 1rem 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-header { position: sticky; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .ad-slot, .sidebar, .nav-toggle, .hero-actions { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: inherit; }
}

.category-icon { display: inline-flex; margin-bottom: 0.35rem; }
.category-icon svg { display: block; }
