:root {
  --ink: #edf3f8;
  --muted: #93a4b8;
  --navy: #0b1220;
  --navy-2: #101a2b;
  --panel: #142033;
  --panel-2: #1b2b42;
  --line: #2a3d56;
  --mint: #3ddeb0;
  --mint-ink: #073126;
  --cream: #f4efe4;
  --cream-ink: #24180f;
  --paper: #fffaf2;
  --red: #e23d3d;
  --orange: #f08a2a;
  --yellow: #e6c84a;
  --green: #3dbe6e;
  --blue: #3aa0e8;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --sans: "Segoe UI", "Helvetica Neue", sans-serif;
  --display: Bahnschrift, "Segoe UI", sans-serif;
  --serif: Georgia, "Palatino Linotype", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(58, 160, 232, 0.16), transparent 60%),
    radial-gradient(700px 380px at -10% 20%, rgba(61, 222, 176, 0.08), transparent 55%),
    var(--navy);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--mint); }
a:hover { color: #8ff0d4; }
button, input, select { font: inherit; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--mint);
  color: var(--mint-ink);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.stripes {
  height: 7px;
  background: linear-gradient(90deg, var(--red) 0 20%, var(--orange) 20% 40%, var(--yellow) 40% 60%, var(--green) 60% 80%, var(--blue) 80% 100%);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 18, 32, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.header-row, .footer-row, .wrap {
  width: min(1120px, calc(100% - 32px));
  max-width: 100%;
  margin-inline: auto;

.header-row, .footer-row, .wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: white; text-decoration: none; }
.brand img { width: 42px; height: 42px; object-fit: contain; background: var(--cream); border-radius: 50%; }
.brand strong { font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.08em; font-weight: 600; }
.nav { display: flex; gap: 16px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.92rem; }
.nav a[aria-current="page"] { color: var(--mint); }
.nav-toggle { display: none; background: transparent; color: white; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }

.wrap { padding: 48px 0 72px; }
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: center; }
.paper, .panel, .shot {
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.paper { background: var(--cream); color: var(--cream-ink); padding: 28px; }
.paper h1, .paper h2, .paper p { color: var(--cream-ink); }
.paper a { color: #0e6b52; }
.panel { background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%), var(--panel); border: 1px solid var(--line); padding: 24px; }
.kicker, .eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
}
.paper .kicker { color: #8a5a32; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); margin: 0 0 12px; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 12px; }
h3 { margin: 0 0 8px; font-size: 1.2rem; }
.lede { font-size: 1.12rem; color: #d5e0ea; }
.paper .lede { color: #3d2b1f; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.button, button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--mint-ink);
  background: var(--mint);
}
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.paper .button.secondary { color: var(--cream-ink); border-color: #cbbba6; }
.button:disabled { opacity: 0.45; cursor: not-allowed; }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(240, 138, 42, 0.16);
  color: #ffd7ad;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.paper .badge { background: #f3d7b4; color: #6a3d12; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.section { margin-top: 54px; }
.card h3 { text-transform: lowercase; font-weight: 560; }
.card p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.logo-hero { width: min(100%, 760px); margin: 0 auto; }
.shot { overflow: hidden; background: #070d16; border: 1px solid var(--line); }
.shot img { width: 100%; max-height: 560px; object-fit: cover; object-position: top; }
.shot figcaption, .caption { color: var(--muted); font-size: 0.85rem; padding: 10px 12px 12px; }

.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { color: var(--mint); font-weight: 600; }

.recipe { border-top: 1px solid #e4d8c6; padding-top: 16px; }
.recipe h3 { font-family: var(--serif); font-size: 1.45rem; }
.menu-title { font-family: var(--serif); font-weight: 500; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--ink); text-decoration: none; }

.librarian { display: grid; grid-template-columns: 1.35fr 0.8fr; gap: 16px; align-items: start; }
.controls, .bank-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
input, select {
  background: #0d1726;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
}
.paper input, .paper select { background: white; color: var(--cream-ink); }
.list { max-height: 640px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
.patch-row, .picked {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.patch-row:hover, .patch-row.active { background: rgba(61, 222, 176, 0.08); }
.patch-row strong, .picked strong { display: block; }
.meta { color: var(--muted); font-size: 0.82rem; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; }
.tiny { font-size: 0.82rem; }
.status { min-height: 1.4em; }
audio { width: 100%; margin-top: 8px; }
.slots { display: grid; gap: 8px; }
.slot-list { min-height: 120px; border: 1px dashed var(--line); border-radius: 12px; padding: 6px; }
.warn { color: #ffd7ad; }

@media (max-width: 860px) {
  .hero, .grid-3, .grid-2, .librarian { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 79px; left: 0; right: 0; flex-direction: column; align-items: flex-start; padding: 12px 16px 16px; background: #0d1626; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .header-row { position: relative; }
}
