:root {
  --ink: #071b18;
  --ink-soft: #31443f;
  --night: #061612;
  --pitch: #0d6b48;
  --pitch-bright: #16a66a;
  --lime: #d9ff70;
  --gold: #f4c95d;
  --cream: #f7f4e9;
  --paper: #fffdf6;
  --line: rgba(7, 27, 24, 0.14);
  --white-line: rgba(255, 255, 255, 0.18);
  --danger: #b53131;
  --shadow: 0 20px 60px rgba(3, 25, 18, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: radial-gradient(#071b18 0.7px, transparent 0.7px);
  background-size: 7px 7px;
  z-index: 20;
}

a { color: inherit; }

img, svg { display: block; max-width: 100%; }

button, input, select { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  z-index: 100;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  color: #fff;
  background: rgba(6, 22, 18, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--white-line);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--night);
  background: var(--lime);
  clip-path: polygon(50% 0, 95% 18%, 84% 75%, 50% 100%, 16% 75%, 5% 18%);
  font-size: 18px;
}

.main-nav { display: flex; align-items: center; gap: 6px; }

.main-nav a {
  padding: 10px 12px;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
  border-radius: 999px;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255,255,255,.09);
}

.menu-button {
  display: none;
  border: 1px solid var(--white-line);
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(6,22,18,.96), rgba(6,22,18,.66)),
    linear-gradient(135deg, #0a382b, #0d6b48);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  width: 580px;
  height: 580px;
  right: -180px;
  top: -250px;
  border: 2px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.035), 0 0 0 140px rgba(255,255,255,.025);
}

.hero::after {
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(90deg, transparent 49.8%, #fff 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, #fff 50%, transparent 50.2%);
  background-size: 100% 100%, 100% 100%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 570px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 72px;
  padding-block: 82px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--lime);
  font-size: .77rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.3rem, 7vw, 6.8rem);
  line-height: .91;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.74);
  font-size: 1.1rem;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--night); background: var(--lime); }
.button-secondary { color: #fff; border-color: var(--white-line); background: rgba(255,255,255,.06); }
.button-dark { color: #fff; background: var(--night); }
.button-quiet { color: var(--ink); border-color: var(--line); background: transparent; }

.hero-board {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 420px;
  border: 2px solid rgba(255,255,255,.28);
  border-radius: 20px;
  background: rgba(20, 129, 85, .28);
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.025);
}

.hero-board::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 2px solid rgba(255,255,255,.24);
}

.center-circle {
  position: absolute;
  width: 118px;
  height: 118px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255,255,255,.24);
  border-radius: 50%;
}

.formation-dot {
  position: absolute;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--night);
  background: var(--lime);
  border: 4px solid rgba(255,255,255,.2);
  box-shadow: 0 10px 20px rgba(0,0,0,.16);
  font-weight: 950;
}

.formation-dot:nth-child(2) { left: 50%; bottom: 7%; transform: translateX(-50%); }
.formation-dot:nth-child(3) { left: 17%; bottom: 30%; }
.formation-dot:nth-child(4) { right: 17%; bottom: 30%; }
.formation-dot:nth-child(5) { left: 50%; top: 25%; transform: translateX(-50%); }
.formation-dot:nth-child(6) { left: 50%; top: 6%; transform: translateX(-50%); background: var(--gold); }

.section { padding-block: 96px; }
.section-compact { padding-block: 66px; }
.section-dark { color: #fff; background: var(--night); }
.section-white { background: var(--paper); }

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading h2,
.content-prose h2,
.article-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.section-heading p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.section-dark .section-heading p { color: rgba(255,255,255,.66); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.category-card {
  position: relative;
  min-height: 300px;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 28px;
  color: #fff;
  background: var(--night);
  border-radius: var(--radius-lg);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.category-card:nth-child(4),
.category-card:nth-child(5) { grid-column: span 6; min-height: 260px; }

.category-card::after {
  content: attr(data-number);
  position: absolute;
  right: -6px;
  bottom: -50px;
  color: rgba(255,255,255,.05);
  font-family: Georgia, serif;
  font-size: 13rem;
  font-weight: 900;
  line-height: 1;
}

.category-card:hover .card-arrow { transform: rotate(-18deg) translate(2px, -2px); }
.category-card.green { background: #0d6b48; }
.category-card.gold { color: var(--night); background: var(--gold); }
.category-card.cream { color: var(--night); background: #ded9c8; }

.category-kicker { font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; opacity: .68; }
.category-card h3 { max-width: 330px; margin: 14px 0 10px; font-family: Georgia, serif; font-size: 2.1rem; line-height: 1; letter-spacing: -.04em; }
.category-card p { max-width: 390px; margin: 0; opacity: .7; }
.card-arrow { align-self: flex-end; font-size: 2.4rem; line-height: 1; transition: transform .2s ease; }

.process-grid,
.article-grid,
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.process-card,
.article-link,
.fact-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.58);
}

.step-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
  border-radius: 50%;
  background: var(--lime);
  font-weight: 900;
}

.process-card h3,
.fact-card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.process-card p,
.fact-card p { margin: 0; color: var(--ink-soft); }

.article-link {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  background: var(--paper);
  transition: transform .2s ease, box-shadow .2s ease;
}

.article-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-link span { color: var(--pitch); font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.article-link h3 { margin: 12px 0; font-family: Georgia, serif; font-size: 1.7rem; line-height: 1.08; }
.article-link p { margin: 0; color: var(--ink-soft); }

.theme-directory { position: relative; }
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.theme-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.theme-card:hover { transform: translateY(-4px); border-color: #91a39d; box-shadow: var(--shadow); }
.theme-number { color: var(--pitch); font-size: .72rem; font-weight: 900; letter-spacing: .14em; }
.theme-card h3 { margin: 22px 0 10px; font-family: Georgia, serif; font-size: 1.55rem; line-height: 1.08; letter-spacing: -.025em; }
.theme-card p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.theme-link { margin-top: auto; padding-top: 22px; color: var(--pitch); font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.theme-grid-small .theme-card { min-height: 230px; }
.compact-heading { max-width: 760px; }
.generator-wrap-inline { margin-top: 34px; }
.theme-generator-form { display: flex; flex-direction: column; justify-content: center; }
.theme-context-chip { margin: 6px 0 22px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: .84rem; }
.mini-theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.mini-theme-link { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); background: #fff; text-decoration: none; }
.mini-theme-link span { color: var(--pitch); font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.mini-theme-link strong { line-height: 1.25; }
.section-action { margin: 28px 0 0; }

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 150px;
  color: #fff;
  background: var(--night);
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -100px;
  bottom: -260px;
  border: 2px solid var(--white-line);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.02);
}

.page-hero h1 { max-width: 940px; font-size: clamp(3rem, 7vw, 6.2rem); }
.page-hero p { max-width: 720px; margin: 24px 0 0; color: rgba(255,255,255,.68); font-size: 1.08rem; }
.breadcrumbs { margin-bottom: 28px; color: rgba(255,255,255,.56); font-size: .84rem; }
.breadcrumbs a { color: inherit; }

.generator-wrap {
  position: relative;
  z-index: 2;
  margin-top: -80px;
}

.generator-panel {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.generator-form {
  padding: 34px;
  border-right: 1px solid var(--line);
}

.generator-form h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 2rem; letter-spacing: -.035em; }
.generator-form > p { margin: 0 0 26px; color: var(--ink-soft); }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: .83rem; font-weight: 850; }
.field select,
.field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: #fff;
}

.field-help { display: block; margin-top: 5px; color: #60716c; font-size: .76rem; }
.generator-form .button { width: 100%; margin-top: 6px; }

.result-panel {
  position: relative;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 48px;
  color: #fff;
  background: linear-gradient(145deg, #0b6043, #08271f);
}

.result-panel::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  top: -140px;
  border: 2px solid rgba(255,255,255,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255,255,255,.025);
}

.result-label { position: relative; margin-bottom: 14px; color: var(--lime); font-size: .74rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.result-name { position: relative; margin: 0; font-family: Georgia, serif; font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: .98; letter-spacing: -.055em; text-wrap: balance; }
.result-note { position: relative; max-width: 600px; margin: 18px 0 0; color: rgba(255,255,255,.7); }
.result-meta { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.result-chip { padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: rgba(255,255,255,.8); font-size: .78rem; }
.result-actions { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.result-actions .button { min-height: 44px; font-size: .88rem; }
.copy-status { min-height: 24px; margin-top: 10px; color: var(--lime); font-size: .82rem; }

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px;
}

.content-prose { max-width: 790px; }
.content-prose h2 { margin-top: 68px; font-size: clamp(2rem, 4vw, 3.4rem); }
.content-prose h2:first-child { margin-top: 0; }
.content-prose h3 { margin: 34px 0 10px; font-size: 1.2rem; }
.content-prose p, .content-prose li { color: var(--ink-soft); }
.content-prose ul, .content-prose ol { padding-left: 22px; }
.content-prose strong { color: var(--ink); }
.content-prose .lead { color: var(--ink); font-family: Georgia, serif; font-size: 1.45rem; line-height: 1.45; }

.toc {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.55);
}

.toc strong { display: block; margin-bottom: 10px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.toc a { display: block; padding: 7px 0; color: var(--ink-soft); font-size: .88rem; text-decoration: none; }
.toc a:hover { color: var(--pitch); }

.callout {
  margin: 34px 0;
  padding: 24px 26px;
  border-left: 5px solid var(--pitch-bright);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #e9f4e8;
}

.callout p { margin: 0; }

.examples-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 !important;
  list-style: none;
}

.examples-list li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.62);
}

.article-hero { padding-bottom: 84px; }
.article-shell { max-width: 920px; margin-inline: auto; }
.article-card { margin-top: -40px; padding: clamp(28px, 6vw, 72px); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); }
.article-card .content-prose { max-width: none; }

.legal-card { max-width: 900px; margin: -50px auto 0; padding: clamp(28px, 6vw, 64px); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); }
.legal-card h2 { margin-top: 38px; font-family: Georgia, serif; font-size: 1.7rem; }
.legal-card p, .legal-card li { color: var(--ink-soft); }

.site-footer {
  padding: 62px 0 28px;
  color: #fff;
  background: var(--night);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 44px;
}

.footer-intro { max-width: 440px; color: rgba(255,255,255,.6); }
.footer-nav strong { display: block; margin-bottom: 12px; color: var(--lime); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-nav a { display: block; width: fit-content; padding: 5px 0; color: rgba(255,255,255,.72); text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid var(--white-line); color: rgba(255,255,255,.48); font-size: .8rem; }

.empty-state { padding: 100px 0; text-align: center; }
.empty-state .score { margin: 0; font-family: Georgia, serif; font-size: clamp(6rem, 20vw, 14rem); line-height: .8; color: var(--pitch); }
.empty-state h1 { margin: 30px 0 8px; font-family: Georgia, serif; font-size: 2.8rem; }
.empty-state p { max-width: 520px; margin: 0 auto 28px; color: var(--ink-soft); }

@media (max-width: 980px) {
  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 22px;
    background: var(--night);
    border-bottom: 1px solid var(--white-line);
  }
  .main-nav[data-open="true"] { display: flex; }
  .menu-button { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-board { display: none; }
  .category-card { grid-column: span 6; }
  .category-card:nth-child(5) { grid-column: span 12; }
  .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .generator-panel { grid-template-columns: 1fr; }
  .generator-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .content-layout { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding-block: 70px; }
  .hero-inner { padding-block: 66px; }
  .hero h1, .page-hero h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .category-card,
  .category-card:nth-child(4),
  .category-card:nth-child(5) { grid-column: span 12; min-height: 240px; }
  .theme-grid, .mini-theme-grid { grid-template-columns: 1fr; }
  .theme-card { min-height: 220px; }
  .process-grid, .article-grid, .facts-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 60px 0 125px; }
  .generator-form, .result-panel { padding: 26px; }
  .result-panel { min-height: 390px; }
  .examples-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
