@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

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

:root {
  --green: #87ff71;
  --yellow: #ffce5c;
  --dark: #192617;
  --dark2: #253d21;
  --dark3: #1a2e18;
  --white: #f7fff4;
  --border: 2px solid var(--dark);
  --border-thick: 3px solid var(--dark);
  --radius: 28px;
  --nav-h: 64px;
  --font-head: 'Bebas Neue', 'Arial Black', sans-serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
}

body.memphis-page {
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + 8px);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== MEMPHIS BACKGROUND ===== */
.memphis-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

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

.shape-tri1 {
  width: 0; height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid var(--yellow);
  top: 8%; left: -20px;
  opacity: 0.35;
  transform: rotate(-12deg);
}

.shape-tri2 {
  width: 0; height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid var(--green);
  bottom: 15%; right: 2%;
  opacity: 0.4;
  transform: rotate(20deg);
}

.shape-dot1 {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 12px dotted var(--yellow);
  top: 35%; right: -30px;
  opacity: 0.3;
}

.shape-dot2 {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--green);
  bottom: 30%; left: 3%;
  opacity: 0.18;
}

.shape-squig {
  width: 90px; height: 18px;
  border: 4px solid var(--dark);
  border-radius: 50% 0 50% 0 / 0 50% 0 50%;
  top: 60%; left: 8%;
  opacity: 0.12;
  transform: rotate(-8deg);
}

.shape-rect1 {
  width: 50px; height: 50px;
  background: var(--yellow);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  top: 20%; right: 10%;
  opacity: 0.25;
  transform: rotate(15deg);
}

.shape-rect2 {
  width: 34px; height: 34px;
  border: 5px dashed var(--dark);
  top: 75%; right: 18%;
  opacity: 0.15;
  transform: rotate(30deg);
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--dark);
  border-bottom: 3px solid var(--green);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 56px;
  gap: 12px;
}

.brand-logo-link, .brand-text-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo { height: 36px; width: auto; display: block; }

.brand-text-link {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--green);
  letter-spacing: 2px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--dark2);
  border: 2px solid var(--green);
  border-radius: 8px;
  overflow: hidden;
}

.search-form input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 6px 12px;
  width: 180px;
  min-height: 40px;
}

.search-form input::placeholder { color: #6a9e60; }

.search-form button {
  background: var(--green);
  border: none;
  cursor: pointer;
  color: var(--dark);
  font-size: 0.9rem;
  padding: 0 12px;
  height: 40px;
  min-width: 40px;
  font-weight: 700;
  transition: background 0.15s;
}

.search-form button:hover { background: var(--yellow); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--dark);
  scroll-margin-top: 56px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.35;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 38px, rgba(135,255,113,0.08) 38px, rgba(135,255,113,0.08) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 38px, rgba(135,255,113,0.08) 38px, rgba(135,255,113,0.08) 40px);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: right;
  padding: 40px 32px 40px 24px;
  max-width: 560px;
  margin-left: auto;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(25,38,23,0.7);
  border: 1px solid var(--yellow);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1;
  color: var(--green);
  text-shadow: 3px 3px 0 var(--dark);
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.hero-desc {
  font-size: 1rem;
  color: var(--white);
  line-height: 1.6;
  margin-bottom: 22px;
  opacity: 0.92;
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  letter-spacing: 2px;
  background: var(--green);
  color: var(--dark);
  border: 3px solid var(--dark);
  border-radius: 8px;
  padding: 10px 28px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  min-height: 44px;
  line-height: 1.2;
}

.hero-cta:hover {
  background: var(--yellow);
  transform: translate(-2px, -2px);
}

.hero-deco {
  position: absolute;
  bottom: 0; left: 0;
  z-index: 1;
  pointer-events: none;
}

.hd-tri {
  display: block;
  width: 0; height: 0;
  border-left: 80px solid transparent;
  border-bottom: 80px solid var(--yellow);
  opacity: 0.6;
}

.hd-circle {
  display: block;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--green);
  position: absolute;
  top: -60px; left: 60px;
  opacity: 0.5;
}

.hd-zigzag {
  display: block;
  position: absolute;
  top: -30px; left: 0;
  width: 120px; height: 20px;
  background:
    repeating-linear-gradient(
      135deg,
      var(--dark) 0, var(--dark) 6px,
      transparent 6px, transparent 12px
    ),
    repeating-linear-gradient(
      45deg,
      var(--dark) 0, var(--dark) 6px,
      transparent 6px, transparent 12px
    );
  background-size: 12px 12px;
  opacity: 0.3;
}

/* ===== MAIN CONTENT ===== */
main {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.content-section {
  display: grid;
  grid-template-columns: 1fr 260px;
  grid-template-rows: auto auto;
  gap: 0 28px;
  padding: 40px 0;
  position: relative;
}

.content-figure {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0 0 24px 0;
}

.fig-memphis {
  position: relative;
  width: 80px;
  height: 48px;
}

.fig-tri {
  display: block;
  width: 0; height: 0;
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  border-bottom: 42px solid var(--yellow);
  position: absolute; left: 0; top: 0;
}

.fig-dot {
  display: block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green);
  position: absolute; right: 0; top: 4px;
  border: 2px solid var(--dark);
}

.fig-bar {
  display: block;
  width: 48px; height: 6px;
  background: var(--dark);
  position: absolute; bottom: 0; left: 8px;
  border-radius: 2px;
}

.content-aside {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: start;
  position: sticky;
  top: 72px;
  background: var(--dark);
  border: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 24px 20px;
  overflow: hidden;
}

.aside-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}

.aside-nav ol {
  list-style: none;
  padding: 0;
  counter-reset: aside-counter;
}

.aside-nav li {
  counter-increment: aside-counter;
  border-bottom: 1px dashed rgba(135,255,113,0.25);
}

.aside-nav li:last-child { border-bottom: none; }

.aside-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 0;
  min-height: 40px;
  transition: color 0.15s;
}

.aside-nav a::before {
  content: counter(aside-counter, decimal-leading-zero);
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--green);
  flex-shrink: 0;
  width: 28px;
}

.aside-nav a:hover { color: var(--green); }

.aside-deco {
  position: absolute;
  bottom: -10px; right: -10px;
  pointer-events: none;
}

.aside-shape-tri {
  display: block;
  width: 0; height: 0;
  border-left: 30px solid transparent;
  border-bottom: 52px solid var(--yellow);
  opacity: 0.35;
}

.aside-shape-dot {
  display: block;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.25;
  position: absolute;
  top: -30px; right: 0;
}

.page-content {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

/* ===== PAGE CONTENT INNER STYLES ===== */
.page-content h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 1px;
  color: var(--dark);
  margin: 48px 0 10px;
  line-height: 1.1;
  scroll-margin-top: 72px;
}

.page-content h3 {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: var(--dark2);
  margin: 28px 0 8px;
  scroll-margin-top: 72px;
}

.page-content h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: 20px 0 6px;
}

.page-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--dark);
  margin: 0 0 14px;
}

.page-content ul, .page-content ol {
  padding-left: 1.4em;
  margin: 0 0 16px;
}

.page-content li {
  line-height: 1.7;
  margin-bottom: 6px;
}

.page-content a {
  color: var(--dark2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content a:hover { color: #3a7a2e; }

.page-content strong { font-weight: 700; color: var(--dark); }

.page-content article {
  scroll-margin-top: 72px;
  border-top: 3px solid var(--dark);
  padding-top: 32px;
  margin-top: 0;
  position: relative;
}

.page-content article:first-child { border-top: none; }

.page-content article::before {
  content: '';
  display: block;
  width: 40px;
  height: 6px;
  background: var(--green);
  border-radius: 3px;
  margin-bottom: 18px;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}

.page-content th {
  background: var(--dark);
  color: var(--green);
  font-family: var(--font-head);
  letter-spacing: 1px;
  padding: 10px 14px;
  text-align: left;
}

.page-content td {
  border-bottom: 1px solid rgba(25,38,23,0.15);
  padding: 9px 14px;
}

.page-content tr:nth-child(even) td { background: rgba(135,255,113,0.06); }

.page-content blockquote {
  border-left: 4px solid var(--yellow);
  padding: 12px 20px;
  margin: 20px 0;
  background: rgba(255,206,92,0.08);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.page-content details {
  border: 2px solid var(--dark);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 0;
}

.page-content summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--dark);
  border-top: 3px solid var(--green);
  text-align: center;
  padding: 20px 16px 16px;
  margin-top: 40px;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1.3rem;
  letter-spacing: 3px;
  color: var(--green);
  margin-bottom: 6px;
}

.footer-copy {
  display: block;
  font-size: 0.8rem;
  color: rgba(247,255,244,0.55);
  line-height: 1.5;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--dark);
  border-top: 3px solid var(--green);
  height: var(--nav-h);
  box-shadow: 0 -4px 20px rgba(25,38,23,0.4);
}

.bottom-nav ol {
  display: flex;
  align-items: stretch;
  justify-content: center;
  list-style: none;
  height: 100%;
  margin: 0;
  padding: 0;
}

.bottom-nav li {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: rgba(247,255,244,0.7);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 4px 4px;
  min-height: 40px;
  width: 100%;
  transition: color 0.15s, background 0.15s;
  border-right: 1px solid rgba(135,255,113,0.12);
  text-align: center;
}

.bottom-nav li:last-child a { border-right: none; }

.bottom-nav a:hover, .bottom-nav a:focus {
  color: var(--green);
  background: rgba(135,255,113,0.07);
}

.nav-icon {
  font-size: 1rem;
  line-height: 1;
  display: block;
}

.nav-label {
  display: block;
  font-size: 0.58rem;
  line-height: 1.2;
  max-width: 52px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bottom-nav-brand {
  flex: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark2);
  border-left: 2px solid var(--green);
  border-right: 2px solid var(--green);
}

.bottom-brand-mark {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--green);
}

.bottom-logo { height: 28px; width: auto; }

/* ===== SECTION SCROLL MARGIN ===== */
article[id] { scroll-margin-top: 72px; }

/* ===== DECORATIVE SHAPES ANIMATION ===== */
@media (prefers-reduced-motion: no-preference) {
  .shape-tri1 { animation: float1 6s ease-in-out infinite; }
  .shape-dot1 { animation: spin1 12s linear infinite; }
  .shape-rect1 { animation: float2 8s ease-in-out infinite; }

  @keyframes float1 {
    0%, 100% { transform: rotate(-12deg) translateY(0); }
    50% { transform: rotate(-12deg) translateY(-14px); }
  }
  @keyframes spin1 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  @keyframes float2 {
    0%, 100% { transform: rotate(15deg) translateY(0); }
    50% { transform: rotate(15deg) translateY(-10px); }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .content-section {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .content-aside {
    grid-column: 1;
    grid-row: 2;
    position: static;
    margin-bottom: 28px;
  }

  .content-figure {
    grid-column: 1;
    grid-row: 1;
  }

  .page-content {
    grid-column: 1;
    grid-row: 3;
  }
}

@media (max-width: 600px) {
  .hero-content {
    padding: 28px 16px 28px 16px;
    max-width: 100%;
  }

  .hero-title { font-size: 2.2rem; }

  .header-inner { padding: 0 10px; gap: 8px; }

  .search-form input { width: 110px; font-size: 0.88rem; }

  .bottom-nav ol { gap: 0; }

  .nav-label { font-size: 0.52rem; max-width: 40px; }

  .nav-icon { font-size: 0.9rem; }

  main { padding: 0 10px; }

  .page-content h2 { font-size: 1.6rem; }
  .page-content h3 { font-size: 1.2rem; }
}

@media (max-width: 400px) {
  .search-form input { width: 80px; }
  .hero { min-height: 42vh; }
  .bottom-nav { height: 60px; }
  body.memphis-page { padding-bottom: 68px; }
}

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