@import url('https://fonts.googleapis.com/css2?family=Karla:wght@300;400;500;600;700&family=Playfair+Display+SC:wght@400;700&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --c-lime: #80ff00;
  --c-green: #00ff00;
  --c-dark: #1f2617;
  --c-dark2: #141a0e;
  --c-mid: #2e3d1f;
  --c-light: #e8ffcc;
  --c-muted: #a8cc6e;
  --c-white: #f5ffe0;
  --c-accent: #ff0080;
  --nav-w: 72px;
  --font-title: 'Playfair Display SC', Georgia, serif;
  --font-body: 'Karla', system-ui, sans-serif;
  --radius: 0;
  --transition: 0.22s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--c-dark);
  color: var(--c-white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

body.body-root {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--c-dark);
  filter: saturate(1.1);
}

/* ===== PAGE SHELL ===== */
.page-shell {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDE NAV ===== */
.side-nav {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--nav-w);
  height: 100vh;
  background: var(--c-dark2);
  border-right: 2px solid var(--c-lime);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-details {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-details[open] > .nav-overlay {
  display: flex;
}

.nav-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  height: 100%;
  width: 100%;
  cursor: pointer;
  list-style: none;
  outline: none;
}

.nav-summary::-webkit-details-marker { display: none; }
.nav-summary::marker { display: none; }

.nav-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.site-logo-text {
  font-family: var(--font-title);
  font-size: 11px;
  color: var(--c-lime);
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.3;
  word-break: break-all;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 0;
  align-items: center;
  min-height: 40px;
  justify-content: center;
}

.hamburger-icon span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--c-lime);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-details[open] .hamburger-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-details[open] .hamburger-icon span:nth-child(2) {
  opacity: 0;
}
.nav-details[open] .hamburger-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Fullscreen Overlay Menu */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(31,38,23,0.97);
  z-index: 950;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.nav-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px 24px;
  max-width: 480px;
  width: 100%;
}

.nav-overlay-brand {
  font-family: var(--font-title);
  font-size: clamp(28px, 6vw, 52px);
  color: var(--c-lime);
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow: 0 0 24px var(--c-lime);
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.nav-menu li {
  width: 100%;
  text-align: center;
}

.nav-menu li a {
  display: block;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  color: var(--c-white);
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  letter-spacing: 0.04em;
  min-height: 48px;
  line-height: 1.2;
}

.nav-menu li a:hover,
.nav-menu li a:focus {
  color: var(--c-lime);
  border-color: var(--c-lime);
  background: rgba(128,255,0,0.06);
}

.nav-overlay-close-hint {
  font-size: 13px;
  color: var(--c-muted);
  margin-top: 8px;
  letter-spacing: 0.05em;
}

/* ===== LAYOUT BODY ===== */
.layout-body {
  margin-left: var(--nav-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: var(--c-dark);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scroll-margin-top: 0;
}

/* Grid / dot background */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(128,255,0,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128,255,0,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  padding: 60px 48px 40px;
  gap: 32px;
  min-height: calc(100vh - 60px);
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  max-width: 480px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--c-lime);
  text-transform: uppercase;
  border: 1px solid var(--c-lime);
  padding: 4px 14px;
  display: inline-block;
}

.hero-h1 {
  font-family: var(--font-title);
  font-size: clamp(36px, 7vw, 80px);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-shadow: 0 0 40px rgba(128,255,0,0.3);
}

.hero-sub {
  font-size: 17px;
  color: var(--c-muted);
  line-height: 1.7;
  max-width: 380px;
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-dark);
  background: var(--c-lime);
  padding: 14px 36px;
  text-decoration: none;
  letter-spacing: 0.08em;
  border: 2px solid var(--c-lime);
  transition: background var(--transition), color var(--transition), transform 0.15s;
  min-height: 48px;
  line-height: 1.2;
}

.hero-cta:hover,
.hero-cta:focus {
  background: transparent;
  color: var(--c-lime);
  transform: translate(-2px, -2px);
}

.hero-media {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 480px;
  min-height: 320px;
  position: relative;
}

.hero-img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: cover;
  display: block;
  border: 2px solid var(--c-lime);
  mix-blend-mode: luminosity;
  filter: saturate(1.4) contrast(1.1);
}

.hero-media-placeholder {
  width: 100%;
  min-height: 320px;
  background: var(--c-mid);
  border: 2px solid var(--c-lime);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-glitch {
  font-family: var(--font-title);
  font-size: clamp(48px, 10vw, 100px);
  color: var(--c-lime);
  text-shadow: 2px 0 var(--c-accent), -2px 0 var(--c-green);
  animation: glitch 2.5s infinite;
  letter-spacing: 0.1em;
}

@keyframes glitch {
  0%, 90%, 100% { text-shadow: 2px 0 var(--c-accent), -2px 0 var(--c-green); transform: none; }
  92% { text-shadow: -4px 0 var(--c-accent), 4px 0 var(--c-green); transform: translateX(3px) skewX(-2deg); }
  95% { text-shadow: 4px 2px var(--c-accent), -4px -2px var(--c-green); transform: translateX(-3px); }
}

/* Marquee Bar */
.marquee-bar {
  position: relative;
  z-index: 3;
  width: 100%;
  background: var(--c-lime);
  overflow: hidden;
  padding: 10px 0;
}

.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 18s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-dark);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== SCROLL MARGIN FOR SECTIONS ===== */
div[id] {
  scroll-margin-top: 24px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  padding: 0;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px;
}

.content-section {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
}

.content-article {
  flex: 1;
  min-width: 0;
}

.article-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--c-white);
}

/* Article inner content styles */
.article-body h2 {
  font-family: var(--font-title);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  color: var(--c-lime);
  margin-top: 56px;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-family: var(--font-title);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  color: var(--c-green);
  margin-top: 40px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.article-body hr {
  border: none;
  border-top: 2px solid var(--c-lime);
  margin: 12px 0 24px;
  opacity: 0.5;
}

.article-body p {
  margin-bottom: 18px;
  color: var(--c-white);
}

.article-body ul,
.article-body ol {
  margin: 0 0 18px 20px;
  color: var(--c-white);
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.article-body a {
  color: var(--c-lime);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.article-body a:hover {
  color: var(--c-green);
}

.article-body strong, .article-body b {
  color: var(--c-lime);
  font-weight: 700;
}

.article-body blockquote {
  border-left: 3px solid var(--c-lime);
  margin: 24px 0;
  padding: 12px 20px;
  background: rgba(128,255,0,0.05);
  color: var(--c-muted);
  font-style: italic;
}

/* Section blocks inside article body */
.article-body div {
  margin-bottom: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(128,255,0,0.15);
}

.article-body div:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* ===== ASIDE ===== */
.content-aside {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 32px;
  align-self: flex-start;
}

.aside-block {
  background: var(--c-mid);
  border: 1px solid rgba(128,255,0,0.3);
  padding: 20px;
}

.aside-title {
  font-family: var(--font-title);
  font-size: 16px;
  color: var(--c-lime);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}

.aside-block hr {
  border: none;
  border-top: 1px solid rgba(128,255,0,0.4);
  margin-bottom: 14px;
}

.aside-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aside-links li a {
  display: block;
  font-size: 14px;
  color: var(--c-muted);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid rgba(128,255,0,0.08);
  transition: color var(--transition);
  min-height: 40px;
  line-height: 1.4;
  display: flex;
  align-items: center;
}

.aside-links li a:hover,
.aside-links li a:focus {
  color: var(--c-lime);
}

/* Sticker block */
.aside-sticker {
  background: transparent;
  border: none;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.sticker-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  background: var(--c-lime);
  color: var(--c-dark);
  transform: rotate(-2deg);
  letter-spacing: 0.06em;
  align-self: flex-start;
}

.sticker-alt {
  background: var(--c-accent);
  color: var(--c-white);
  transform: rotate(1.5deg);
  align-self: flex-end;
}

.sticker-rot {
  background: var(--c-green);
  color: var(--c-dark);
  transform: rotate(-1deg);
  align-self: center;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--c-dark2);
  border-top: 2px solid var(--c-lime);
  padding: 48px 32px 24px;
}

.footer-cols {
  display: flex;
  flex-direction: row;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 32px;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-family: var(--font-title);
  font-size: 15px;
  color: var(--c-lime);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  font-weight: 700;
  border-bottom: 1px solid rgba(128,255,0,0.3);
  padding-bottom: 8px;
}

.footer-col dd {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.6;
}

.footer-col dd a {
  color: var(--c-muted);
  text-decoration: none;
  transition: color var(--transition);
  display: inline-block;
  min-height: 40px;
  line-height: 40px;
  font-size: 14px;
}

.footer-col dd a:hover,
.footer-col dd a:focus {
  color: var(--c-lime);
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(128,255,0,0.1);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-sep {
  color: var(--c-lime);
}

/* ===== STAGGER ANIMATION ===== */
@keyframes staggerIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.article-body div {
  animation: staggerIn 0.5s ease both;
}

.article-body div:nth-child(1) { animation-delay: 0.05s; }
.article-body div:nth-child(2) { animation-delay: 0.12s; }
.article-body div:nth-child(3) { animation-delay: 0.19s; }
.article-body div:nth-child(4) { animation-delay: 0.26s; }
.article-body div:nth-child(5) { animation-delay: 0.33s; }
.article-body div:nth-child(6) { animation-delay: 0.40s; }
.article-body div:nth-child(7) { animation-delay: 0.47s; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .marquee-track {
    animation: none;
  }
  .placeholder-glitch {
    animation: none;
    text-shadow: none;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .content-section {
    flex-direction: column;
  }
  .content-aside {
    width: 100%;
    position: static;
  }
  .hero-inner {
    flex-direction: column;
    padding: 40px 24px 32px;
    text-align: center;
    gap: 24px;
    min-height: auto;
  }
  .hero-text {
    max-width: 100%;
  }
  .hero-media {
    max-width: 100%;
    width: 100%;
  }
  .footer-cols {
    flex-direction: column;
    gap: 28px;
  }
}

@media (max-width: 600px) {
  :root {
    --nav-w: 56px;
  }
  .wrap {
    padding: 40px 16px;
  }
  .hero-inner {
    padding: 32px 16px 24px;
  }
  .hero-h1 {
    font-size: clamp(30px, 10vw, 48px);
  }
  .article-body h2 {
    font-size: clamp(22px, 6vw, 32px);
  }
  .nav-menu li a {
    font-size: 18px;
    padding: 12px 16px;
  }
  .site-footer {
    padding: 32px 16px 20px;
  }
  .footer-cols {
    flex-direction: column;
  }
  .content-aside {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .aside-block {
    flex: 1;
    min-width: 140px;
  }
}

@media (max-width: 375px) {
  .hero-h1 {
    font-size: 28px;
  }
  .hero-cta {
    font-size: 15px;
    padding: 12px 24px;
  }
  .nav-overlay-brand {
    font-size: 24px;
  }
}
