@import url('https://fonts.googleapis.com/css2?family=Cormorant:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #192617;
  color: #e8f5e4;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #87ff71;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover, a:focus {
  color: #ffce5c;
}

a:focus-visible {
  outline: 2px dashed #ffce5c;
  outline-offset: 3px;
}

ul, menu {
  list-style: none;
}

/* ============================================================
   Memphis Decorative Background Shapes
   ============================================================ */
.memphis-bg-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  display: block;
}

.shape-tri-1 {
  width: 0;
  height: 0;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-bottom: 120px solid rgba(135, 255, 113, 0.07);
  top: 8%;
  left: 220px;
  transform: rotate(22deg);
}

.shape-tri-2 {
  width: 0;
  height: 0;
  border-left: 45px solid transparent;
  border-right: 45px solid transparent;
  border-bottom: 80px solid rgba(255, 206, 92, 0.09);
  bottom: 15%;
  right: 5%;
  transform: rotate(-15deg);
}

.shape-circle-1 {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px dashed rgba(135, 255, 113, 0.12);
  top: 55%;
  left: 240px;
}

.shape-squiggle-1 {
  width: 120px;
  height: 40px;
  border-bottom: 4px dotted rgba(255, 206, 92, 0.18);
  border-radius: 0 0 50% 50%;
  top: 30%;
  right: 8%;
  transform: rotate(8deg);
}

.shape-dot-grid {
  width: 200px;
  height: 200px;
  background-image: radial-gradient(circle, rgba(135,255,113,0.15) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  bottom: 10%;
  left: 260px;
}

/* ============================================================
   Sidebar Navigation
   ============================================================ */
.sidebar-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: rgba(18, 30, 14, 0.97);
  border-right: 2px solid #87ff71;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 28px 18px 24px;
  overflow-y: auto;
  gap: 20px;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

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

.brand-name {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #87ff71;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.brand-name:hover {
  color: #ffce5c;
}

.sidebar-tagline {
  font-size: 0.7rem;
  color: rgba(232,245,228,0.5);
  line-height: 1.4;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* Nav Details / Summary */
.nav-details {
  flex: 1;
}

.nav-summary {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffce5c;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 0;
  list-style: none;
  user-select: none;
}

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

.nav-summary::after {
  content: '▾';
  float: right;
  transition: transform 0.2s;
}

details[open] .nav-summary::after {
  transform: rotate(180deg);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

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

.nav-pill {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(135, 255, 113, 0.07);
  border: 1.5px solid rgba(135, 255, 113, 0.2);
  color: #e8f5e4;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  min-height: 40px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-pill:hover, .nav-pill:focus {
  background: rgba(135, 255, 113, 0.18);
  border-color: #87ff71;
  color: #87ff71;
  transform: translateX(4px);
}

.sidebar-badge {
  margin-top: auto;
  padding-top: 12px;
}

.badge-neon {
  display: inline-block;
  background: linear-gradient(135deg, #87ff71, #ffce5c);
  color: #192617;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.06em;
}

/* ============================================================
   Page Wrap
   ============================================================ */
.page-wrap {
  margin-left: 240px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* ============================================================
   Top Ticker
   ============================================================ */
.top-ticker {
  background: #87ff71;
  color: #192617;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 7px 0;
  overflow: hidden;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 90;
}

.ticker-inner {
  display: inline-block;
  animation: ticker-scroll 28s linear infinite;
  padding-left: 100%;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-inner {
    animation: none;
    padding-left: 1rem;
  }
}

/* ============================================================
   Main Content
   ============================================================ */
.main-content {
  flex: 1;
  padding: 0;
}

.home-article {
  display: flex;
  flex-direction: column;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 36px;
}

.hero-media {
  position: relative;
  height: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3318 0%, #0d1a0b 100%);
  clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%);
  overflow: visible;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-geo-1 {
  position: absolute;
  width: 260px;
  height: 260px;
  background: rgba(135, 255, 113, 0.1);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  top: 20%;
  left: 15%;
  transform: rotate(10deg);
}

.hero-geo-2 {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 206, 92, 0.12);
  bottom: 25%;
  right: 20%;
}

.hero-geo-3 {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(135, 255, 113, 0.2);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  top: 60%;
  left: 40%;
  transform: rotate(-22deg);
}

.float-tag {
  position: absolute;
  background: #ffce5c;
  color: #192617;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  z-index: 5;
  box-shadow: 0 4px 14px rgba(255,206,92,0.4);
  animation: float-bob 3.5s ease-in-out infinite;
}

.float-tag-1 {
  top: 22%;
  right: 5%;
}

.float-tag-2 {
  bottom: 28%;
  left: 8%;
  background: #87ff71;
  animation-delay: 1.2s;
}

@keyframes float-bob {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .float-tag { animation: none; }
}

.hero-text {
  padding: 60px 48px 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  position: relative;
}

.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #ffce5c;
  text-transform: uppercase;
  background: rgba(255, 206, 92, 0.1);
  border: 1px solid rgba(255, 206, 92, 0.3);
  padding: 4px 14px;
  border-radius: 999px;
}

.hero-h1 {
  font-family: 'Cormorant', Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: #87ff71;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(232,245,228,0.75);
  line-height: 1.7;
  max-width: 420px;
}

.hero-cta {
  display: inline-block;
  padding: 13px 32px;
  background: #87ff71;
  color: #192617;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;
  border: 2px solid #87ff71;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  min-height: 48px;
  line-height: 1.3;
}

.hero-cta:hover, .hero-cta:focus {
  background: transparent;
  color: #87ff71;
  transform: scale(1.04);
}

/* ============================================================
   Content Layout: Aside + Body
   ============================================================ */
.content-aside {
  order: 0;
  width: 220px;
  position: sticky;
  top: 60px;
  align-self: start;
  flex-shrink: 0;
}

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

.home-article {
  display: block;
}

/* Inner layout for aside + content side by side */
.content-aside,
.content-body {
  /* positioned via the wrapper below */
}

.home-article > section.content-body,
.home-article > aside.content-aside {
  display: block;
}

/* Create side-by-side layout */
.home-article {
  display: grid;
  grid-template-areas:
    "hero hero"
    "aside body";
  grid-template-columns: 220px 1fr;
  grid-template-rows: auto 1fr;
  align-items: start;
}

.hero-section {
  grid-area: hero;
}

.content-aside {
  grid-area: aside;
  position: sticky;
  top: 60px;
  align-self: start;
  margin: 0;
  padding: 40px 0 40px 32px;
}

section.content-body {
  grid-area: body;
  padding: 40px 48px 60px 32px;
}

.aside-inner {
  background: rgba(135,255,113,0.05);
  border: 1.5px dashed rgba(135,255,113,0.25);
  border-radius: 18px;
  padding: 22px 18px;
}

.aside-title {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: #ffce5c;
  margin-bottom: 6px;
}

.aside-title + hr,
h2 + hr,
h3 + hr {
  border: none;
  border-top: 2px dashed rgba(135,255,113,0.3);
  margin: 8px 0 14px;
}

.aside-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aside-link {
  display: block;
  font-size: 0.78rem;
  color: rgba(232,245,228,0.75);
  padding: 6px 0;
  border-bottom: 1px dotted rgba(135,255,113,0.15);
  transition: color 0.2s, padding-left 0.2s;
  min-height: 40px;
  line-height: 1.4;
}

.aside-link:hover, .aside-link:focus {
  color: #87ff71;
  padding-left: 8px;
}

/* ============================================================
   Prose / Content
   ============================================================ */
.prose-wrap {
  max-width: 780px;
}

.prose-wrap h2 {
  font-family: 'Cormorant', Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: #87ff71;
  margin-top: 3rem;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.prose-wrap h2 + hr {
  border: none;
  border-top: 2px dashed rgba(135,255,113,0.35);
  margin: 0.5rem 0 1.2rem;
}

.prose-wrap h3 {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffce5c;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.prose-wrap h3 + hr {
  border: none;
  border-top: 1px dotted rgba(255,206,92,0.3);
  margin: 0 0 1rem;
}

.prose-wrap p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(232,245,228,0.88);
}

.prose-wrap ul, .prose-wrap ol {
  margin: 0.8rem 0 1.2rem 1.4rem;
}

.prose-wrap li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(232,245,228,0.85);
}

.prose-wrap strong, .prose-wrap b {
  color: #87ff71;
  font-weight: 600;
}

.prose-wrap em {
  color: #ffce5c;
  font-style: italic;
}

.prose-wrap a {
  color: #87ff71;
  border-bottom: 1px solid rgba(135,255,113,0.35);
  transition: border-color 0.2s, color 0.2s;
}

.prose-wrap a:hover {
  color: #ffce5c;
  border-color: #ffce5c;
}

.prose-wrap blockquote {
  border-left: 4px solid #87ff71;
  padding: 12px 20px;
  margin: 1.5rem 0;
  background: rgba(135,255,113,0.06);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: rgba(232,245,228,0.8);
}

.prose-wrap section {
  scroll-margin-top: 60px;
  padding-top: 20px;
}

/* Section divider decoration */
.prose-wrap section + section {
  border-top: 1px solid rgba(135,255,113,0.1);
  margin-top: 1rem;
}

/* ============================================================
   Scroll Reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: rgba(10, 18, 8, 0.9);
  border-top: 2px solid rgba(135,255,113,0.2);
  padding: 28px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.footer-brand {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: #87ff71;
  letter-spacing: 0.04em;
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(232,245,228,0.4);
  letter-spacing: 0.04em;
}

/* ============================================================
   Glassmorphism Cards (used inside content if any)
   ============================================================ */
.glass-card {
  background: rgba(135,255,113,0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(135,255,113,0.18);
  border-radius: 18px;
  padding: 24px;
  transition: border-color 0.25s, transform 0.25s;
}

.glass-card:hover {
  border-color: rgba(135,255,113,0.4);
  transform: translateY(-3px);
}

/* ============================================================
   Responsive — Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .sidebar-nav {
    width: 200px;
  }

  .page-wrap {
    margin-left: 200px;
  }

  .shape-circle-1,
  .shape-dot-grid {
    left: 210px;
  }

  .home-article {
    grid-template-columns: 200px 1fr;
  }

  .hero-text {
    padding: 48px 32px 48px 28px;
  }

  .content-aside {
    padding: 32px 0 32px 20px;
  }

  section.content-body {
    padding: 32px 32px 48px 24px;
  }
}

/* ============================================================
   Responsive — Mobile
   ============================================================ */
@media (max-width: 768px) {
  .sidebar-nav {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 65vh;
    border-right: none;
    border-top: 2px solid #87ff71;
    flex-direction: column;
    padding: 12px 16px 16px;
    overflow-y: auto;
    z-index: 200;
    gap: 10px;
  }

  .sidebar-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .sidebar-tagline {
    display: none;
  }

  .nav-details {
    flex: none;
  }

  .nav-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
  }

  .nav-pill {
    font-size: 0.72rem;
    padding: 8px 12px;
    white-space: nowrap;
  }

  .sidebar-badge {
    display: none;
  }

  .page-wrap {
    margin-left: 0;
    padding-bottom: 220px;
  }

  .memphis-bg-shapes {
    display: none;
  }

  .hero-section {
    grid-template-columns: 1fr;
    grid-template-rows: 50vh auto;
    min-height: auto;
  }

  .hero-media {
    height: 50vh;
    min-height: auto;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  }

  .hero-text {
    padding: 32px 20px 40px;
    align-items: flex-start;
  }

  .hero-h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .home-article {
    grid-template-areas:
      "hero"
      "aside"
      "body";
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }

  .content-aside {
    position: static;
    padding: 20px 16px;
    border-bottom: 1px solid rgba(135,255,113,0.15);
  }

  .aside-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 14px;
  }

  .aside-title {
    width: 100%;
    margin-bottom: 0;
  }

  .aside-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .aside-link {
    border-bottom: none;
    background: rgba(135,255,113,0.08);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    min-height: 36px;
    border: 1px solid rgba(135,255,113,0.2);
  }

  section.content-body {
    padding: 24px 16px 40px;
  }

  .site-footer {
    padding: 20px 16px;
  }

  .top-ticker {
    top: 0;
  }
}

@media (max-width: 375px) {
  .hero-h1 {
    font-size: 1.7rem;
  }

  .hero-text {
    padding: 24px 14px 32px;
  }

  .hero-cta {
    font-size: 0.82rem;
    padding: 11px 24px;
  }

  .prose-wrap h2 {
    font-size: 1.35rem;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
