:root {
  --cream: #f5ebd6;
  --paper: #fbf4e2;
  --ink: #1a1410;
  --ink-soft: #3a2f26;
  --red: #e63946;
  --mustard: #f4b942;
  --teal: #3da5a0;
  --line: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
}

* { box-sizing: border-box; }

html {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-image: radial-gradient(rgba(26, 20, 16, 0.06) 1px, transparent 1px);
  background-size: 3px 3px;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 4px solid var(--teal);
  outline-offset: 4px;
}

.wrap {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
}

.brand {
  font-family: "Archivo Black", Impact, sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 20px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 800;
  font-size: 14px;
}

.nav a {
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav a:hover { border-color: var(--ink); }

.hero {
  padding: 48px 0 26px;
}

.compact-hero { padding-top: 30px; }

.eyebrow {
  display: inline-flex;
  padding: 7px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--mustard);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: "Archivo Black", Impact, sans-serif;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.06em;
}

h1 {
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.94;
  letter-spacing: 0;
  max-width: 900px;
  margin: 22px 0 18px;
  hyphens: auto;
  overflow-wrap: break-word;
}

h2 {
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.05;
}

.lead {
  max-width: 760px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border: var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: white;
  font-family: "Archivo Black", Impact, sans-serif;
  text-decoration: none;
  text-transform: uppercase;
}

.btn.primary {
  background: var(--red);
  color: var(--paper);
}

.btn.alt { background: var(--teal); color: var(--paper); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0;
}

.card {
  background: var(--paper);
  border: var(--line);
  border-radius: 20px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 22px;
}

.card h2,
.section h2 {
  font-family: "Archivo Black", Impact, sans-serif;
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0 0 12px;
}

.card-kicker {
  display: block;
  margin-bottom: 9px;
  color: #9b1c27;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.card p,
.section p,
.section li {
  color: var(--ink-soft);
  line-height: 1.6;
}

.section {
  padding: 34px 0;
}

.section-intro {
  max-width: 720px;
  margin: -2px 0 24px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

.section ul,
.section ol {
  padding-left: 24px;
}

.word-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}

.word-list li {
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: white;
  padding: 10px 12px;
  font-weight: 800;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumbs a:hover { color: var(--red); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 28px 0 42px;
  border: var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--paper);
}

.stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 22px 14px;
  text-align: center;
}

.stats div + div { border-left: 2px solid var(--ink); }

.stats strong {
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(25px, 5vw, 40px);
  line-height: 1;
}

.stats span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prose { max-width: 900px; }

.prose > p {
  max-width: 780px;
  font-size: 17px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.principles div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: white;
}

.principles strong {
  font-family: "Archivo Black", Impact, sans-serif;
  text-transform: uppercase;
}

.principles span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.category-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  padding: 24px;
  border: var(--line);
  border-radius: 20px;
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--paper);
}

.category-card:nth-child(4n + 1) { background: #ffe0d5; }
.category-card:nth-child(4n + 2) { background: #d8eeec; }
.category-card:nth-child(4n + 3) { background: #fae6a7; }
.category-card:nth-child(4n) { background: #e8def5; }

.category-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: white;
  color: var(--ink);
  font-family: "Archivo Black", Impact, sans-serif;
}

.category-card h2 {
  margin: 18px 0 8px;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1;
}

.category-card h2 a { text-decoration-thickness: 3px; text-underline-offset: 4px; }
.category-card h2 a:hover { color: #9b1c27; }

.category-card p {
  min-height: 76px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.sample-words {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0;
}

.sample-words span,
.topic-link {
  padding: 6px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: white;
  font-size: 12px;
  font-weight: 800;
}

.text-link {
  display: inline-block;
  font-weight: 800;
  text-underline-offset: 4px;
}

.creator-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr);
  gap: 24px;
  align-items: center;
  margin: 50px 0 24px;
  padding: clamp(24px, 5vw, 46px);
  border: var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: var(--teal);
}

.creator-feature p {
  color: #102e2c;
  font-weight: 600;
  line-height: 1.65;
}

.topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.topic-link {
  display: inline-flex;
  text-decoration: none;
}

.topic-link:hover { background: var(--mustard); }

.quote-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  padding: 22px;
  border: var(--line);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--paper);
  transform: rotate(1.2deg);
}

.quote-card span {
  align-self: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.quote-card strong {
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 18px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0;
}

.editorial-grid .card { margin: 0; }
.editorial-grid .card:nth-child(2) { background: #fae6a7; }

.table-wrap {
  margin-top: 22px;
  border: var(--line);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--ink);
  overflow-x: auto;
  background: white;
}

.words-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.words-table caption {
  padding: 15px 18px;
  border-bottom: 2px solid var(--ink);
  background: var(--mustard);
  font-weight: 800;
  text-align: left;
}

.words-table th,
.words-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #c7bda9;
  vertical-align: middle;
}

.words-table thead th {
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.words-table tbody th { font-size: 16px; }
.words-table tbody tr:last-child > * { border-bottom: 0; }
.words-table tbody tr:hover { background: #fffaf0; }
.row-number { width: 48px; color: #72685a; font-family: "JetBrains Mono", monospace; }

.hint-chip,
.difficulty {
  display: inline-flex;
  padding: 5px 9px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.hint-chip { background: #e8def5; }
.difficulty.easy { background: #cdebd8; }
.difficulty.medium { background: #fae6a7; }
.difficulty.hard { background: #ffd7cf; }

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 42px 0 22px;
  padding: clamp(24px, 5vw, 42px);
  border: var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  background: #e8def5;
}

.callout h2 { margin-bottom: 8px; }
.callout p { max-width: 680px; margin-bottom: 0; }
.callout .btn { flex: 0 0 auto; }

.faq details {
  max-width: 820px;
  margin-top: 10px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: white;
}

.faq summary {
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 800;
}

.faq details p { margin: 0; padding: 0 18px 18px; }

.footer {
  margin-top: 30px;
  padding: 28px 0 42px;
  border-top: 2px dashed var(--ink-soft);
  color: var(--ink-soft);
  font-size: 14px;
}

.footer-links { float: right; }

@media (max-width: 760px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .hero { padding-top: 26px; }
  .compact-hero h1 { font-size: 34px; line-height: .98; }
  .grid { grid-template-columns: 1fr; }
  .word-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn { width: 100%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div + div { border-left: 0; }
  .stats div:nth-child(even) { border-left: 2px solid var(--ink); }
  .stats div:nth-child(n + 3) { border-top: 2px solid var(--ink); }
  .principles,
  .category-catalog,
  .editorial-grid,
  .creator-feature { grid-template-columns: 1fr; }
  .category-card p { min-height: 0; }
  .callout { align-items: stretch; flex-direction: column; }
  .footer-links { display: block; float: none; margin-top: 8px; }
  .words-table th,
  .words-table td { padding: 11px 10px; }
  .words-table thead th:first-child,
  .words-table .row-number { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
