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

/* ============================================================
   TOKENS & RESET
   ============================================================ */
:root {
  --green: #87ff71;
  --yellow: #ffce5c;
  --ink: #192617;
  --ink-mid: #2e4029;
  --ink-light: #3d5238;
  --surface: #f5fdf2;
  --surface-2: #e8f7e3;
  --aside-w: 240px;
  --radius-pill: 999px;
  --radius-card: 4px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --transition: 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--surface);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Memphis background pattern on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle, var(--green) 1.5px, transparent 1.5px),
    radial-gradient(circle, var(--yellow) 1px, transparent 1px);
  background-size: 40px 40px, 20px 20px;
  background-position: 0 0, 10px 10px;
  opacity: 0.04;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ============================================================
   LAYOUT SHELL: ASIDE + PAGE-WRAP
   ============================================================ */
.site-aside {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--aside-w);
  height: 100vh;
  background: var(--ink-mid);
  border-right: 2px solid var(--green);
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 100;
  overflow-y: auto;
}

.page-wrap {
  margin-left: var(--aside-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* ============================================================
   ASIDE: BRAND
   ============================================================ */
.aside-brand {
  padding: 1.2rem 1rem 1rem;
  border-bottom: 1px dashed var(--ink-light);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.04em;
  line-height: 1.3;
  display: block;
  word-break: break-all;
}

/* ============================================================
   ASIDE: NAV
   ============================================================ */
.main-nav {
  flex: 1;
  padding: 0.8rem 0;
}

.main-nav ul {
  display: flex;
  flex-direction: column;
}

.main-nav li a {
  display: block;
  padding: 0.6rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--surface-2);
  border-left: 3px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  line-height: 1.4;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.main-nav li a:hover {
  background: rgba(135,255,113,0.08);
  color: var(--green);
  border-left-color: var(--green);
}

.main-nav li a[aria-current="page"] {
  background: rgba(135,255,113,0.12);
  color: var(--green);
  border-left-color: var(--green);
  font-weight: 700;
}

/* ============================================================
   ASIDE: SEARCH
   ============================================================ */
.nav-search {
  padding: 0.8rem 1rem 1.2rem;
  border-top: 1px dashed var(--ink-light);
}

.nav-search form {
  display: flex;
  gap: 0.3rem;
}

.nav-search input[type="search"] {
  flex: 1;
  background: var(--ink);
  border: 1.5px solid var(--ink-light);
  color: var(--surface);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.8rem;
  font-family: var(--font);
  font-size: 0.8rem;
  outline: none;
  min-height: 40px;
  transition: border-color var(--transition);
}

.nav-search input[type="search"]:focus {
  border-color: var(--green);
}

.nav-search button {
  background: var(--green);
  color: var(--ink);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  min-width: 40px;
  min-height: 40px;
}

.nav-search button:hover {
  background: var(--yellow);
  transform: rotate(15deg);
}

/* ============================================================
   PILL BUTTONS
   ============================================================ */
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
  min-height: 44px;
  letter-spacing: 0.01em;
}

.pill-btn--primary {
  background: var(--green);
  color: var(--ink);
  border: 2px solid var(--green);
}

.pill-btn--primary:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(135,255,113,0.3);
}

.pill-btn--outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

.pill-btn--outline:hover {
  background: var(--green);
  color: var(--ink);
  transform: translateY(-2px);
}

/* ============================================================
   HERO (HOME)
   ============================================================ */
.hero--home {
  position: relative;
  min-height: 100vh;
  background: var(--ink-mid);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 4rem 4rem 6rem 2rem;
}

.hero-text {
  max-width: 520px;
  text-align: right;
}

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--green);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--surface-2);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Memphis decorative shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.shape {
  position: absolute;
}

.shape--tri {
  width: 0;
  height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 140px solid var(--yellow);
  top: 10%;
  left: 5%;
  transform: rotate(-15deg);
  opacity: 0.7;
}

.shape--circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: transparent;
  border: 12px solid var(--green);
  bottom: 20%;
  left: 12%;
  opacity: 0.4;
}

.shape--zigzag {
  width: 120px;
  height: 40px;
  top: 30%;
  left: 20%;
  background: var(--green);
  clip-path: polygon(0% 100%, 10% 0%, 20% 100%, 30% 0%, 40% 100%, 50% 0%, 60% 100%, 70% 0%, 80% 100%, 90% 0%, 100% 100%);
  opacity: 0.5;
}

/* Skewed bottom edge */
.hero-skew {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--ink);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 3;
}

/* ============================================================
   PAGE EYEBROW / BREADCRUMB
   ============================================================ */
.page-eyebrow {
  padding: 1rem 2.5rem 0;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--ink-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--green);
  transition: opacity var(--transition);
}

.breadcrumb a:hover { opacity: 0.75; }

.breadcrumb span[aria-hidden] { color: var(--ink-light); }

.page-date, .page-date-mod {
  font-size: 0.78rem;
  color: var(--yellow);
  opacity: 0.8;
}

/* ============================================================
   MAIN CONTENT WRAP
   ============================================================ */
main {
  flex: 1;
}

article {
  width: 100%;
}

.content-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 2.5rem 4rem;
}

/* ============================================================
   PAGE CONTENT (inserted HTML)
   ============================================================ */
.page-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--surface);
}

.page-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
  margin: 2rem 0 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--ink-light);
}

.page-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--yellow);
  margin: 1.5rem 0 0.6rem;
}

.page-content p { margin-bottom: 1rem; }

.page-content ul, .page-content ol {
  margin: 0.8rem 0 1rem 1.4rem;
  display: block;
}

.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }

.page-content li { margin-bottom: 0.4rem; }

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

.page-content a:hover { color: var(--yellow); }

.page-content strong { color: var(--yellow); font-weight: 600; }

.page-content blockquote {
  border-left: 3px solid var(--green);
  padding: 0.6rem 1.2rem;
  margin: 1.2rem 0;
  background: rgba(135,255,113,0.05);
  font-style: italic;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.9rem;
}

.page-content th, .page-content td {
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--ink-light);
  text-align: left;
}

.page-content th {
  background: rgba(135,255,113,0.1);
  color: var(--green);
  font-weight: 600;
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green);
  margin: 2.5rem 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--yellow);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.section-title--sm {
  font-size: 1rem;
  margin: 2rem 0 0.8rem;
}

/* ============================================================
   HOME: TOPIC GRID (dl > dt > a + dd)
   ============================================================ */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}

.topic-grid dt {
  margin-bottom: 0;
}

.topic-grid dt a {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--green);
  padding: 0.7rem 1rem 0.4rem;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  transition: background var(--transition);
  border: 1.5px solid var(--green);
  border-bottom: none;
}

.topic-grid dt a:hover {
  background: var(--yellow);
  border-color: var(--yellow);
}

.topic-grid dd {
  font-size: 0.82rem;
  color: var(--surface-2);
  padding: 0.5rem 1rem 0.8rem;
  background: var(--ink-mid);
  border: 1.5px solid var(--ink-light);
  border-top: none;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  margin-bottom: 0;
  line-height: 1.5;
}

/* ============================================================
   ABOUT: HEADER
   ============================================================ */
.about-header, .faq-header, .contact-header, .privacy-header {
  margin-bottom: 2rem;
}

.about-header h1, .faq-header h1, .contact-header h1, .privacy-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.about-desc, .faq-intro, .contact-intro, .privacy-intro {
  font-size: 1.05rem;
  color: var(--surface-2);
  line-height: 1.6;
}

/* Badges */
.faq-badge, .contact-badge, .privacy-badge {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.8rem;
  background: var(--yellow);
  color: var(--ink);
}

/* ============================================================
   ABOUT: CHILDREN LIST (dl > dt + dd)
   ============================================================ */
.children-section {
  margin-top: 2.5rem;
}

.children-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.children-list dt {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.children-list dt a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green);
  border-bottom: 1px dashed var(--green);
  padding-bottom: 1px;
  transition: color var(--transition);
}

.children-list dt a:hover { color: var(--yellow); border-bottom-color: var(--yellow); }

.child-date {
  font-size: 0.75rem;
  color: var(--yellow);
  opacity: 0.7;
}

.children-list dd {
  font-size: 0.85rem;
  color: var(--surface-2);
  padding-left: 0;
  margin-bottom: 0.6rem;
  line-height: 1.55;
}

/* ============================================================
   SIBLINGS
   ============================================================ */
.siblings-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--ink-light);
}

.siblings-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.siblings-links li a {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  border: 1.5px solid var(--ink-light);
  color: var(--surface-2);
  transition: border-color var(--transition), color var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.siblings-links li a:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-content details {
  border: 1.5px solid var(--ink-light);
  border-radius: var(--radius-card);
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-content details[open] {
  border-color: var(--green);
}

.faq-content summary {
  cursor: pointer;
  padding: 0.8rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
}

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

.faq-content summary::before {
  content: '▶';
  font-size: 0.7rem;
  color: var(--yellow);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-content details[open] summary::before {
  transform: rotate(90deg);
}

.faq-content .faq-answer {
  padding: 0 1.1rem 1rem;
  font-size: 0.92rem;
  color: var(--surface-2);
  line-height: 1.7;
  border-top: 1px solid var(--ink-light);
}

.faq-cta-block {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  background: rgba(135,255,113,0.07);
  border: 1.5px dashed var(--green);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.faq-cta-block p {
  flex: 1;
  font-size: 1rem;
  color: var(--surface);
  margin: 0;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.03em;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--ink);
  border: 1.5px solid var(--ink-light);
  color: var(--surface);
  border-radius: var(--radius-card);
  padding: 0.55rem 0.9rem;
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
  min-height: 44px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--green);
}

.form-field textarea { min-height: 120px; resize: vertical; }

.form-field select option {
  background: var(--ink-mid);
}

/* ============================================================
   PRIVACY
   ============================================================ */
.privacy-content h2 { color: var(--green); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink-mid);
  border-top: 2px solid var(--ink-light);
  margin-top: auto;
}

.footer-cta {
  padding: 2.5rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: linear-gradient(90deg, rgba(135,255,113,0.07) 0%, transparent 100%);
  border-bottom: 1px dashed var(--ink-light);
}

.footer-cta-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--surface);
  flex: 1;
}

.footer-bottom {
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--ink-light);
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--surface-2);
  transition: color var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.footer-links a:hover { color: var(--green); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-shapes .shape { animation: none; }
  .pill-btn, .nav-search button { transition: none; }
}

/* ============================================================
   HOVER MICRO-INTERACTIONS
   ============================================================ */
.topic-grid dt a,
.children-list dt a,
.pill-btn,
.main-nav li a {
  will-change: transform;
}

/* ============================================================
   MOBILE: ASIDE TOGGLE
   ============================================================ */
.aside-toggle {
  display: none;
  position: fixed;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 200;
  background: var(--green);
  color: var(--ink);
  border: none;
  border-radius: 6px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1.3rem;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root { --aside-w: 0px; }

  .site-aside {
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .site-aside.open {
    transform: translateX(0);
  }

  .page-wrap {
    margin-left: 0;
  }

  .aside-toggle {
    display: flex;
  }

  .hero-inner {
    padding: 5rem 1.5rem 4rem;
    justify-content: flex-start;
  }

  .hero-text {
    text-align: left;
    max-width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .content-wrap {
    padding: 2rem 1.2rem 3rem;
  }

  .footer-cta {
    padding: 2rem 1.2rem;
  }

  .footer-bottom {
    padding: 1rem 1.2rem;
  }

  .page-eyebrow {
    padding: 0.8rem 1.2rem 0;
  }
}

@media (max-width: 560px) {
  html { font-size: 16px; }

  .hero--home { min-height: 100svh; }

  .hero-text h1 { font-size: 1.7rem; }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .faq-cta-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .siblings-links {
    flex-direction: column;
  }
}
