:root {
  color-scheme: light;
  --paper: #f5f2ea;
  --white: #fffefa;
  --ink: #171717;
  --muted: #686761;
  --line: #1f1f1f;
  --soft-line: #d8d4ca;
  --blue: #3157d5;
  --blue-dark: #213ea7;
  --lemon: #e8f05d;
  --peach: #ff8c66;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, select, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .7rem 1rem;
  border: 2px solid var(--ink);
  background: var(--lemon);
  color: var(--ink);
  font-weight: 800;
}

.skip-link:focus { top: 1rem; }

.container,
.nav-wrap {
  width: min(calc(100% - 3rem), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 2px solid var(--ink);
  background: rgba(255, 254, 250, .96);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 42px;
  max-width: 218px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .1rem;
}

.nav-links a {
  padding: .55rem .7rem;
  color: var(--ink);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { border-bottom-color: var(--ink); }

.nav-links .nav-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5rem .8rem;
  border: 2px solid var(--ink);
  background: var(--white);
}

.nav-links .nav-home:hover,
.nav-links .nav-home[aria-current="page"] {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.nav-links .nav-cta {
  margin-left: .55rem;
  padding: .7rem .9rem;
  color: #fff;
  background: var(--blue);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.nav-links .nav-cta:hover {
  color: #fff;
  border-bottom-color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.menu-toggle {
  display: none;
  padding: .55rem .7rem;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  font-weight: 800;
}

main { overflow: hidden; }

.hero {
  padding: clamp(3rem, 7vw, 6.5rem) 0;
  border-bottom: 2px solid var(--ink);
  background: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 8px;
  background: var(--blue);
}

h1, h2, h3 {
  margin-top: 0;
  line-height: .98;
  overflow-wrap: anywhere;
}

h1, h2 {
  font-weight: 900;
  letter-spacing: -.055em;
}

h1 {
  max-width: 10ch;
  margin: 1.1rem 0 1.4rem;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
}

h2 {
  margin-bottom: .8rem;
  font-size: clamp(2rem, 4vw, 3.75rem);
}

h3 {
  margin-bottom: .55rem;
  font-size: 1.12rem;
  font-weight: 850;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.theme-hero {
  padding-block: clamp(3rem, 6vw, 5.5rem);
  background: var(--blue);
  color: #fff;
}

.theme-hero .eyebrow { color: var(--lemon); }
.theme-hero .eyebrow::before { background: var(--lemon); }
.theme-hero h1 { max-width: 14ch; font-size: clamp(3rem, 7vw, 5.8rem); }
.theme-hero .lead { color: rgba(255,255,255,.84); }
.theme-hero .pill { color: #fff; border-color: rgba(255,255,255,.65); background: transparent; }

.lead {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .72rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.button.primary { color: #fff; background: var(--blue); }
.button.secondary { background: var(--white); }
.button.small { min-height: 38px; padding: .45rem .65rem; font-size: .84rem; }

.aurora-card {
  position: relative;
  min-height: 470px;
  margin: 0;
  border: 2px solid var(--ink);
  background: var(--blue);
  box-shadow: 14px 14px 0 var(--blue);
}

.aurora-card::before {
  content: "KB / 180";
  position: absolute;
  z-index: 3;
  top: -18px;
  right: -18px;
  padding: .55rem .75rem;
  border: 2px solid var(--ink);
  background: var(--lemon);
  color: var(--ink);
  font: 900 .75rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: .08em;
}

.aurora-card::after { display: none; }

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

.aurora-card figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: .72rem 1rem;
  color: #fff;
  background: var(--ink);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.aurora-content {
  position: absolute;
  inset: auto 1rem 1rem;
  z-index: 2;
  padding: 1rem;
  border: 2px solid var(--ink);
  background: var(--white);
}

.aurora-name { font-size: 1.8rem; font-weight: 900; }
.aurora-meta { color: var(--muted); }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section.compact { padding-block: clamp(3rem, 6vw, 5rem); }
.section-alt { border-block: 2px solid var(--ink); background: var(--white); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-head h2 { max-width: 15ch; margin: .7rem 0 0; }
.section-head > .button { justify-self: end; }
.section-head p { max-width: 48ch; margin: 0; color: var(--muted); }
.muted { color: var(--muted); }

.finder {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  color: #fff;
  background: var(--blue);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}

.finder::before {
  content: "01";
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  color: rgba(255,255,255,.24);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
}

.finder-grid,
.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field { display: grid; gap: .42rem; }
.field label { font-size: .78rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }

select,
input[type="search"] {
  width: 100%;
  min-height: 50px;
  padding: .72rem .8rem;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 0;
}

.finder-result {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.5);
}

.finder-result .muted { color: rgba(255,255,255,.72); }
.finder-result strong { display: block; margin-top: .15rem; font-size: 1.4rem; }
.finder-result .button { color: var(--ink); background: var(--lemon); }

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  min-width: 0;
  padding: 1.25rem;
  border: 2px solid var(--ink);
  background: var(--white);
}

a.card {
  position: relative;
  text-decoration: none;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}

a.card:hover {
  z-index: 2;
  transform: translate(-3px, -3px);
  background: var(--lemon);
  box-shadow: 6px 6px 0 var(--ink);
}

.card p { margin: 0; color: var(--muted); font-size: .92rem; }
.card .arrow { margin-top: 1.1rem; color: var(--blue); font-size: .82rem; font-weight: 900; text-transform: uppercase; }

.pill-list { display: flex; flex-wrap: wrap; gap: .55rem; }

.pill {
  display: inline-flex;
  max-width: 100%;
  padding: .45rem .7rem;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 750;
}

a.pill:hover { color: #fff; background: var(--blue); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  padding-block: 1rem;
  color: var(--muted);
  font-size: .82rem;
  border-bottom: 1px solid var(--soft-line);
}

.breadcrumbs a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

.generator-shell {
  display: grid;
  grid-template-columns: minmax(280px, .34fr) minmax(0, .66fr);
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 10px 10px 0 var(--ink);
}

.generator-controls {
  padding: clamp(1.4rem, 3vw, 2rem);
  color: #fff;
  background: var(--blue);
  border-right: 2px solid var(--ink);
}

.generator-controls h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.generator-controls .muted { color: rgba(255,255,255,.78); }
.generator-controls .control-grid { grid-template-columns: 1fr; }
.generator-controls .button-row { margin-top: 1rem; }
.generator-controls .button.primary { color: var(--ink); background: var(--lemon); }

.status {
  min-height: 1.5rem;
  margin: .8rem 0 0;
  color: rgba(255,255,255,.8);
  font-size: .84rem;
}

.name-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  background: var(--ink);
  gap: 2px;
}

.name-card {
  min-width: 0;
  padding: 1rem;
  background: var(--white);
}

.name-card h3 { min-height: 2.3rem; font-size: 1.1rem; }
.name-card p { min-height: 2.7rem; margin: .4rem 0 .8rem; color: var(--muted); font-size: .82rem; }
.name-card .ascii { color: var(--blue); font: 700 .76rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }

.notice {
  padding: 1rem 1.15rem;
  border: 2px solid var(--ink);
  background: var(--lemon);
  color: var(--ink);
  font-size: .9rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(270px, .6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.prose { max-width: 78ch; }
.prose p, .prose li { color: #4f4e49; }
.prose h2 { max-width: 18ch; margin: 3rem 0 1rem; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose a { color: var(--blue-dark); text-underline-offset: 3px; }

.sidebar { position: sticky; top: 98px; }
.sidebar .card + .card { margin-top: 1rem; }
.sidebar .card:nth-child(2) { background: var(--lemon); }
.sidebar ul { margin: .55rem 0 0; padding-left: 1.1rem; color: #4f4e49; }

.theme-tools {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.theme-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.theme-count { margin: .8rem 0 0; font-weight: 850; }

details {
  border-top: 2px solid var(--ink);
  padding: 1rem 0;
}

details:last-of-type { border-bottom: 2px solid var(--ink); }
summary { cursor: pointer; font-weight: 850; }
details p { margin-bottom: 0; }

.site-footer {
  border-top: 2px solid var(--ink);
  padding: 3rem 0 1.5rem;
  color: #fff;
  background: var(--blue);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
}

.site-footer .brand {
  display: inline-flex;
  padding: .35rem .55rem;
  background: var(--white);
}

.site-footer .brand img { height: 42px; max-width: 218px; }
.footer-grid p { max-width: 45ch; color: rgba(255,255,255,.78); }
.footer-links { display: grid; gap: .45rem; align-content: start; }
.footer-links a { color: rgba(255,255,255,.8); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.footer-links a:hover { color: var(--lemon); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.45); color: rgba(255,255,255,.72); font-size: .82rem; }
.empty-state { padding: 2rem; text-align: center; color: var(--muted); }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; position: absolute; right: 1.5rem; flex: 0 0 auto; margin-left: auto; }
  .nav-links {
    display: none;
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    top: 74px;
    padding: .75rem;
    border: 2px solid var(--ink);
    background: var(--white);
    box-shadow: 6px 6px 0 var(--ink);
    align-items: stretch;
    flex-direction: column;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem; border-bottom: 1px solid var(--soft-line); }
  .nav-links .nav-cta { margin: .55rem 0 0; text-align: center; }
}

@media (max-width: 980px) {
  .hero-grid,
  .content-grid,
  .generator-shell { grid-template-columns: 1fr; }
  .generator-controls { border-right: 0; border-bottom: 2px solid var(--ink); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3,
  .theme-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { position: static; }
  .aurora-card { min-height: 520px; }
}

@media (max-width: 760px) {
  .container,
  .nav-wrap { width: min(calc(100% - 2rem), var(--max)); }
  .nav-wrap { min-height: 66px; }
  .brand img { height: 34px; max-width: 174px; }
  .menu-toggle { display: inline-flex; position: absolute; right: 1rem; flex: 0 0 auto; margin-left: auto; }
  .nav-links {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 64px;
    padding: .75rem;
    border: 2px solid var(--ink);
    background: var(--white);
    box-shadow: 6px 6px 0 var(--ink);
    align-items: stretch;
    flex-direction: column;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem; border-bottom: 1px solid var(--soft-line); }
  .nav-links .nav-cta { margin: .55rem 0 0; text-align: center; }
  .hero { padding-block: 3.5rem; }
  h1 { max-width: 11ch; font-size: clamp(3rem, 15vw, 4.4rem); }
  .theme-hero h1 { font-size: clamp(2.7rem, 14vw, 4.1rem); }
  .section-head { grid-template-columns: 1fr; gap: .8rem; align-items: start; }
  .section-head > .button { justify-self: start; }
  .finder-grid,
  .control-grid,
  .theme-tools,
  .footer-grid { grid-template-columns: 1fr; }
  .finder-result { align-items: stretch; flex-direction: column; }
  .grid-2,
  .grid-3,
  .grid-4,
  .theme-list,
  .name-results { grid-template-columns: 1fr; }
  .aurora-card { min-height: 340px; box-shadow: 8px 8px 0 var(--blue); }
  .aurora-card::before { top: -13px; right: -6px; }
  .generator-shell,
  .finder { box-shadow: 6px 6px 0 var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
