/* Article design system — loaded AFTER each article's inline styles.
   The inline styles are the fallback skeleton; this file is the finish.
   Articles do not load main.css (its fixed header assumptions differ),
   so the shared shell pieces (header, logo, nav) are replicated here. */

:root {
  --abyss: #0d1114;
  --dream-teal: #269999;
  --dream-teal-bright: #4cc9c9;
  --electric-fern-bright: #3ecf85;
  --jellyfish-pink: #f07fc2;
  --neural-amber: #ffcc66;
  --text-primary: #f2f5f4;
  --text-muted: #b8c2c0;
  --text-subtle: #7d8a88;
  --border-card: rgba(255, 255, 255, 0.09);
  --font-display: 'Bricolage Grotesque', 'Space Mono', monospace;
  --font-lab: 'Space Mono', monospace;
}

/* ---------- shell ---------- */

body {
  color: var(--text-primary);
  padding-top: 62px; /* room for the fixed header */
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(38, 153, 153, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 85% 110%, rgba(240, 127, 194, 0.05) 0%, transparent 60%),
    var(--abyss);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Film grain, same recipe as the rest of the site */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: rgba(38, 153, 153, 0.45);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--dream-teal-bright);
  outline-offset: 3px;
}

/* Fixed glass header, same as the rest of the site */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  margin: 0;
  background: rgba(13, 17, 20, 0.78);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--border-card);
}

header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.logo {
  font-family: var(--font-lab);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dream-teal-bright);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-lab);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--dream-teal-bright);
}

/* ---------- transmission head ---------- */

.article-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.breadcrumb {
  margin-bottom: 42px;
  font-family: var(--font-lab);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--dream-teal-bright);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dream-teal-bright);
  box-shadow: 0 0 6px var(--dream-teal-bright);
}

.breadcrumb a:hover {
  color: var(--electric-fern-bright);
}

.article-header {
  text-align: left;
  margin-bottom: 56px;
}

.article-title {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin-bottom: 22px;
}

.article-subtitle {
  color: var(--neural-amber);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  max-width: 42em;
  margin-bottom: 28px;
}

.article-meta {
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 0;
}

.meta-badge {
  font-family: var(--font-lab);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-subtle);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 5px 14px;
}

/* ---------- reading ---------- */

.article-section {
  margin-bottom: 64px;
}

.article-section h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.article-section h2::before {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dream-teal-bright);
  box-shadow: 0 0 8px var(--dream-teal-bright);
  transform: translateY(-4px);
}

.article-section p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-section a {
  color: var(--dream-teal-bright);
  text-decoration: underline;
  text-decoration-color: rgba(76, 201, 201, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.article-section a:hover {
  text-decoration-color: var(--dream-teal-bright);
}

.article-section strong {
  color: var(--text-primary);
}

.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(38, 153, 153, 0.35), transparent);
  margin: 3.5rem 0;
}

/* ---------- media panels ---------- */

.hero-image,
.inline-figure img {
  border: 1px solid var(--border-card);
  border-radius: 14px;
}

.inline-figure figcaption,
.gallery-caption,
.video-caption {
  font-family: var(--font-lab);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  font-style: normal;
  text-align: left;
}

.inline-figure figcaption {
  margin-top: 12px;
  padding-left: 2px;
}

.image-gallery,
.video-container {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 26px 28px;
}

.gallery-title {
  font-family: var(--font-lab);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dream-teal-bright);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
}

.gallery-title::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dream-teal-bright);
  box-shadow: 0 0 6px var(--dream-teal-bright);
}

.gallery-item {
  border: 1px solid var(--border-card);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: rgba(76, 201, 201, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 28px rgba(38, 153, 153, 0.16);
}

.video-wrapper {
  border: 1px solid var(--border-card);
}

.video-caption {
  margin-top: 14px;
}

/* ---------- specs ---------- */

.specs-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-card);
  border-left: 2px solid var(--electric-fern-bright);
  border-radius: 12px;
  padding: 24px 28px;
}

.specs-title {
  font-family: var(--font-lab);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--electric-fern-bright);
  margin-bottom: 18px;
}

.specs-list li {
  font-family: var(--font-lab);
  font-size: 0.86rem;
  color: var(--text-muted);
}

.specs-list li strong {
  color: var(--dream-teal-bright);
}

/* ---------- end of transmission ---------- */

.article-end {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 90px;
  text-align: center;
}

.article-end .end-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(38, 153, 153, 0.35), transparent);
  margin-bottom: 40px;
}

.article-end a {
  display: inline-block;
  font-family: var(--font-lab);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  margin: 0 16px;
  color: var(--dream-teal-bright);
  transition: color 0.2s ease;
}

.article-end a:hover {
  color: var(--electric-fern-bright);
}

.article-end .end-home {
  color: var(--text-subtle);
}

.article-end .end-home:hover {
  color: var(--dream-teal-bright);
}

/* ---------- responsive & motion ---------- */

@media (max-width: 640px) {
  header nav {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .logo {
    font-size: 1rem;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 0.72rem;
  }

  .article-container {
    padding-top: 40px;
  }

  .image-gallery,
  .video-container,
  .specs-box {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item:hover {
    transform: none;
  }
}
