/* Kestrel Studios site. Themes are CSS variables on <html data-theme="...">. */

:root,
[data-theme="kestrel"] {
  --bg: #0f0e12;
  --bg-2: #141318;
  --surface: #18171c;
  --surface-2: #1f1d24;
  --line: #2a2830;
  --text: #f4f1ea;
  --text-2: #c9c4b8;
  --muted: #8a8577;
  --accent: #e8a33d;
  --accent-ink: #16151a;
  --accent-soft: rgba(232, 163, 61, 0.12);
  --ok: #7ce38b;
  --bad: #ff7a7a;
  color-scheme: dark;
}
[data-theme="ivory"] {
  --bg: #f4f1ea;
  --bg-2: #ece8de;
  --surface: #ffffff;
  --surface-2: #f6f3ec;
  --line: #ddd7ca;
  --text: #1c1a17;
  --text-2: #4a463e;
  --muted: #7d776b;
  --accent: #a8641a;
  --accent-ink: #ffffff;
  --accent-soft: rgba(168, 100, 26, 0.1);
  --ok: #1f8a3b;
  --bad: #c0392b;
  color-scheme: light;
}
[data-theme="midnight"] {
  --bg: #0b0f1a;
  --bg-2: #0f1422;
  --surface: #131a2b;
  --surface-2: #19223a;
  --line: #243049;
  --text: #eaf0ff;
  --text-2: #b8c4e0;
  --muted: #7d8aa8;
  --accent: #5b9dff;
  --accent-ink: #0b0f1a;
  --accent-soft: rgba(91, 157, 255, 0.12);
  --ok: #6fe3a0;
  --bad: #ff7a8a;
  color-scheme: dark;
}
[data-theme="crimson"] {
  --bg: #110c0e;
  --bg-2: #161013;
  --surface: #1b1417;
  --surface-2: #23191d;
  --line: #34252b;
  --text: #f7eef0;
  --text-2: #d6c2c7;
  --muted: #9a8288;
  --accent: #e0475e;
  --accent-ink: #ffffff;
  --accent-soft: rgba(224, 71, 94, 0.12);
  --ok: #7ce38b;
  --bad: #ff8a8a;
  color-scheme: dark;
}
[data-theme="mint"] {
  --bg: #0c1210;
  --bg-2: #101815;
  --surface: #141d1a;
  --surface-2: #1a2622;
  --line: #24352f;
  --text: #ecf7f2;
  --text-2: #bcd6cb;
  --muted: #7f9a8f;
  --accent: #46c59c;
  --accent-ink: #0c1210;
  --accent-soft: rgba(70, 197, 156, 0.12);
  --ok: #7ce38b;
  --bad: #ff7a7a;
  color-scheme: dark;
}
[data-theme="mono"] {
  --bg: #0e0e0f;
  --bg-2: #131314;
  --surface: #18181a;
  --surface-2: #1f1f22;
  --line: #2c2c30;
  --text: #f2f2f2;
  --text-2: #c4c4c8;
  --muted: #86868c;
  --accent: #f2f2f2;
  --accent-ink: #0e0e0f;
  --accent-soft: rgba(242, 242, 242, 0.08);
  --ok: #9be3a6;
  --bad: #ff8a8a;
  color-scheme: dark;
}


/* ==== base ============================================================================ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, Menlo, monospace; font-size: 0.92em; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 780px; }
.hidden, [hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 16px; }

/* ==== type ============================================================================ */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.022em; text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.02; margin: 0 0 20px; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; margin: 0 0 14px; }
h3 { font-size: 18px; line-height: 1.3; margin: 0 0 6px; letter-spacing: -0.01em; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.kicker::before { content: ""; width: 18px; height: 2px; background: var(--accent); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); max-width: 580px; margin: 0 0 30px; }
.soft { color: var(--text-2); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* ==== nav ============================================================================= */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: 0.2em; font-size: 14px; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { text-decoration: none; color: var(--text-2); font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: 6px; transition: color 0.15s, background 0.15s; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; }

.theme-picker { position: relative; }
.theme-btn {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 11px;
  border: 1px solid var(--line); background: transparent; color: var(--text-2);
  border-radius: 7px; font: inherit; font-size: 13px; cursor: pointer;
}
.theme-btn:hover { color: var(--text); border-color: var(--muted); }
.swatch { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.theme-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); display: none;
}
.theme-menu.open { display: block; }
.theme-menu button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: none;
  color: var(--text-2); font: inherit; font-size: 14px; border-radius: 6px; cursor: pointer; text-align: left;
}
.theme-menu button:hover { background: var(--surface-2); color: var(--text); }
.theme-menu button[aria-checked="true"] { color: var(--text); }
.theme-menu button[aria-checked="true"]::after { content: "\2713"; margin-left: auto; color: var(--accent); }
.theme-menu .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; border: 1px solid var(--line); }

/* ==== buttons, badges ================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, transform 0.15s, filter 0.15s;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.small { height: 34px; padding: 0 13px; font-size: 14px; border-radius: 7px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn .arrow { transition: transform 0.15s; }
.btn:hover .arrow { transform: translateX(3px); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge.live { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); }
.badge.soon { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }

/* ==== hero ============================================================================ */
.hero { position: relative; padding: 84px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
.release {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 5px 12px 5px 6px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none;
  font-size: 13px; color: var(--text-2); transition: border-color 0.15s;
}
.release:hover { border-color: var(--muted); }
.release b { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 2px 9px; font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.spec { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 34px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.spec b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

.window {
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.55), 0 0 0 1px color-mix(in srgb, var(--text) 3%, transparent);
}
.window-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.window-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.window img { width: 100%; height: auto; }
.hero .window { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }

/* ==== sections ======================================================================== */
section { padding: 96px 0; }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: 44px; }
.section-head p { color: var(--text-2); margin: 0; }
.section-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head.center p { max-width: 620px; }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.card p { color: var(--text-2); margin: 0; }

/* changelog */
.changes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.change { background: var(--surface); padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.change .tag { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.change p { color: var(--text-2); margin: 0; font-size: 15px; }
.change .num { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: auto; padding-top: 10px; }
.change .num small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 6px; }

/* feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 88px; }
.split.flip > :first-child { order: 2; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--text-2); }
.ticks li::before {
  content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 5px;
  background: var(--accent-soft) no-repeat center / 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' fill='none' stroke='%23999' stroke-width='1.8'/%3E%3C/svg%3E");
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
}
.ticks b { color: var(--text); font-weight: 600; }

/* products */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.product { display: flex; flex-direction: column; gap: 18px; padding: 30px; }
.product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.product-top .mark {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 19px;
  background: var(--accent); color: var(--accent-ink);
}
.product.later .mark { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.product h3 { font-size: 24px; margin: 14px 0 4px; }
.product .for { color: var(--muted); font-size: 14px; }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.tier { border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: var(--bg-2); display: flex; flex-direction: column; gap: 10px; }
.tier-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tier-name { font-weight: 700; }
.price { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.price small { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.tier ul { margin: 0; padding: 0; list-style: none; color: var(--text-2); font-size: 14px; display: grid; gap: 4px; }
.tier li::before { content: "\2014"; color: var(--muted); margin-right: 8px; }
.tier .btn { margin-top: auto; }

/* module browser */
.mods-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.search { position: relative; flex: 1 1 260px; max-width: 380px; }
.search input { padding-left: 38px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.chip {
  height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--text-2); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.chip span { color: var(--muted); margin-left: 6px; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--muted); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip[aria-pressed="true"] span { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.mod-count { font-size: 14px; color: var(--muted); margin-left: auto; font-variant-numeric: tabular-nums; }
.mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mod { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--surface); min-width: 0; }
.mod-name { font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.mod-cat { font-size: 12px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.mod p { margin: 4px 0 0; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.mod-more { display: flex; justify-content: center; margin-top: 20px; }
.mod-empty { grid-column: 1 / -1; text-align: center; padding: 40px; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; }

/* gallery */
.shots { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.shot { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.shot figcaption { padding: 12px 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

/* steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.steps li { counter-increment: s; position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-bottom: 26px; color: var(--text-2); }
.steps li::before {
  content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: 14px; position: relative; z-index: 1;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 36px; bottom: 2px; width: 1px; background: var(--line); }
.steps b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }

/* faq */
.faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
details summary {
  cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--text-2); margin: 0 0 20px; max-width: 680px; }

/* cta */
.cta { text-align: center; padding: 64px 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--text-2); margin: 0 auto 26px; max-width: 520px; }
.cta .actions { justify-content: center; }

/* ==== page header (inner pages) ====================================================== */
.page-head { padding: 64px 0 8px; }
.page-head h1 { font-size: clamp(34px, 4.6vw, 52px); margin-bottom: 12px; }
.page-head p { color: var(--text-2); font-size: 18px; max-width: 620px; margin: 0; }

/* ==== download page =================================================================== */
.dl-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 26px; }
.dl-card + .dl-card { margin-top: 12px; }
.dl-card .mark { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 20px; background: var(--accent); color: var(--accent-ink); }
.dl-card.later .mark { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.dl-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.dl-title h3 { margin: 0; font-size: 19px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: 14px; margin: 0; }
.dl-meta b { color: var(--text-2); font-weight: 600; }
.hash { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 12px; color: var(--muted); min-width: 0; }
.hash code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; background: var(--bg-2); }
.copy { flex: none; height: 26px; padding: 0 9px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); border-radius: 6px; font: inherit; font-size: 12px; cursor: pointer; }
.copy:hover { color: var(--text); border-color: var(--muted); }
.group-label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 40px 0 14px; }

/* ==== forms (shared) ================================================================== */
label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font: inherit; font-size: 15px; transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { height: auto; padding: 10px 12px; resize: vertical; }
input:hover, select:hover { border-color: color-mix(in srgb, var(--muted) 60%, var(--line)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input.key { font-family: ui-monospace, Consolas, Menlo, monospace; letter-spacing: 0.04em; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.msg { margin-top: 14px; padding: 10px 12px; border-radius: 8px; font-size: 14px; display: none; }
.msg.show { display: block; }
.msg.err { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.msg.ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.form-actions { margin-top: 20px; display: flex; gap: 10px; }
.form-actions .btn { flex: 1; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; margin-bottom: 20px; }
.tabs button { flex: 1; height: 38px; border: 0; border-radius: 6px; background: none; color: var(--text-2); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.sub-lead { color: var(--text-2); margin: 0 0 24px; }
.empty { color: var(--muted); font-size: 14px; }

/* ==== footer ========================================================================== */
footer { border-top: 1px solid var(--line); padding: 56px 0 36px; color: var(--muted); font-size: 14px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot .brand { margin-bottom: 12px; }
.foot p { max-width: 300px; margin: 0; }
.foot h4 { margin: 0 0 12px; font-size: 13px; color: var(--text); font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }

.legal { max-width: 760px; padding-bottom: 40px; }
.legal h2 { margin-top: 40px; font-size: 22px; }
.legal p, .legal li { color: var(--text-2); }

/* ==== responsive ====================================================================== */
@media (max-width: 1000px) {
  .hero .wrap, .split, .section-head { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .hero .window { transform: none; }
  .changes { grid-template-columns: repeat(2, 1fr); }
  .mod-grid { grid-template-columns: repeat(2, 1fr); }
  .products, .shots { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .grid.three, .grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 14px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .menu-toggle {
    display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 7px;
    border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; font-size: 17px;
  }
  .nav-right > .btn { display: none; }
  .theme-btn .label { display: none; }
  section { padding: 64px 0; }
  .hero { padding: 48px 0 56px; }
  .changes, .mod-grid, .tiers, .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .dl-card { grid-template-columns: auto minmax(0, 1fr); }
  .dl-card > .btn, .dl-card > .dl-actions { grid-column: 1 / -1; }
  .product { padding: 22px; }
  .search { max-width: none; }
  .mod-count { margin-left: 0; width: 100%; }
  .cta { padding: 44px 20px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
}

/* The logo is ivory; on the light theme it sits on a dark tile so it stays visible. */
[data-theme="ivory"] .brand img { background: #1c1a17; border-radius: 6px; padding: 2px; }
[data-theme="ivory"] .window { box-shadow: 0 30px 70px -30px rgba(60, 40, 10, 0.35); }

.mt-16 { margin-top: 16px; }
.pt-0 { padding-top: 24px; }
.dl-info { min-width: 0; }
.hash > span { white-space: nowrap; }
