/* Kituwa Vault — Bestiary storefront.
   Type and structure follow the "Savepoint" layout (design.kituwa.com).
   Fonts: Archivo, Inter, JetBrains Mono (OFL, self-hosted). */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/archivo-k3kPo8UDI-1M0wlSV9XAw6lQkqWY8Q82sLydOxI.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPxDcwg.woff2") format("woff2");
}

:root {
  --max: 1240px;
  --bg: #050505;
  --surface: #0b0b0b;
  --surface-2: #131313;
  --ink: #f4f4f4;
  --muted: #a3a3a3;
  --soft: #6f6f6f;
  --line: #242424;
  --line-2: #333;
  --signal: #ff3b2f;
  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.wrap { width: min(var(--max), 100% - 44px); margin-inline: auto; }
.section { padding: 84px 0; border-bottom: 1px solid var(--line); }
.section.alt { background: #080808; }
.mono { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--signal); }
.lede { color: var(--muted); font-size: 15px; max-width: 56ch; margin: 0; }
.h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 900;
  line-height: .88;
  letter-spacing: -.045em;
  text-transform: uppercase;
  margin: 0;
}
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* header */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; background: rgba(5,5,5,.92); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 900; letter-spacing: -.02em; text-transform: uppercase; font-size: 15px; }
.brand-mark { width: 24px; height: 24px; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 900; }
.brand small { font-family: var(--font-mono); font-size: 9px; letter-spacing: .16em; color: var(--soft); display: block; font-weight: 400; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 99; }
.skip:focus { left: 12px; top: 12px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 13px; color: var(--muted); }
.site-nav a:hover { color: var(--ink); }
.site-nav .count { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; color: var(--soft); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 22px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background 140ms, color 140ms, border-color 140ms; }
.btn:hover { border-color: var(--ink); }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn-sm { height: 36px; padding: 0 14px; }
.btn-block { width: 100%; }

/* hero */
.hero { padding: 62px 0 0; border-bottom: 1px solid var(--line); }
.hero .display {
  font-family: var(--font-display);
  font-size: clamp(58px, 11.4vw, 158px);
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.062em;
  text-transform: uppercase;
  margin: 22px 0 0;
  max-width: 13ch;
}
.hero .display .outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.hero-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 30px; padding-bottom: 34px; flex-wrap: wrap; }
.hero-meta .lede { max-width: 46ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-bottom: 26px; }
.tile { position: relative; border: 1px solid var(--line); overflow: hidden; background: #0a0a0a; aspect-ratio: 1 / 1; }
.tile img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.tile .idx { position: absolute; top: 8px; right: 10px; font-family: var(--font-mono); font-size: 8px; letter-spacing: .1em; color: rgba(255,255,255,.65); }
.tile .label { position: absolute; left: 12px; bottom: 10px; font-family: var(--font-mono); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.55); padding: 3px 6px; }
.tile.wide { grid-column: span 1; }

/* facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-left: 0; border-right: 0; }
.fact { padding: 18px 16px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact b { display: block; font-family: var(--font-display); font-size: 34px; letter-spacing: -.05em; line-height: 1; }
.fact span { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }

/* archive rows */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 96px 1.5fr 1fr 90px 120px; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.row-thumb { position: relative; }
.row-thumb img { width: 96px; height: 120px; object-fit: cover; object-position: top center; border: 1px solid var(--line); background: #0a0a0a; }
.row-thumb .n { position: absolute; left: 0; bottom: -14px; }
.row .n { font-family: var(--font-mono); font-size: 10px; color: var(--soft); }
.row h3 { margin: 0; font-family: var(--font-display); font-size: 22px; text-transform: uppercase; letter-spacing: -.02em; }
.row p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.row .col { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.row .price { font-family: var(--font-display); font-size: 22px; letter-spacing: -.02em; text-align: right; }
.row .go { justify-self: end; }
.row.bundle { background: linear-gradient(90deg, rgba(255,59,47,.06), transparent 60%); }
.row.bundle .n { color: var(--signal); }

/* grid of samples */
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.grid figure { margin: 0; border: 1px solid var(--line); background: #070707; aspect-ratio: 1; overflow: hidden; }
.grid img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform 220ms ease; }
.grid figure:hover img { transform: scale(1.03); }

/* license split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: 13px 0 13px 26px; border-bottom: 1px solid var(--line); position: relative; font-size: 14px; color: var(--muted); }
.list li::before { content: "→"; position: absolute; left: 0; color: var(--signal); font-family: var(--font-mono); font-size: 12px; }
.list.no li::before { content: "×"; color: var(--soft); }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-size: 17px; text-transform: uppercase; letter-spacing: -.01em; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--signal); font-family: var(--font-mono); }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); font-size: 14px; max-width: 72ch; }

/* buy band */
.buy { background: var(--ink); color: var(--bg); }
.buy .h2 { color: var(--bg); }
.buy .lede { color: #3c3c3c; }
.buy-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 48px; align-items: start; }
.buy-form { border: 1px solid #d4d4d4; background: #fff; color: #111; padding: 24px; }
.buy-form label { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #555; margin-bottom: 6px; }
.buy-form select, .buy-form input { width: 100%; height: 48px; border: 1px solid #cfcfcf; background: #fff; color: #111; padding: 0 12px; font-family: var(--font-body); font-size: 15px; margin-bottom: 16px; }
.buy-form .btn { width: 100%; height: 52px; }
.buy-form .fine { margin: 12px 0 0; font-size: 11px; color: #666; line-height: 1.5; }
.buy-form .total { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border-top: 1px solid #e2e2e2; margin-top: 4px; padding-top: 12px; }

/* footer */
.site-footer { padding: 44px 0 34px; color: var(--soft); font-size: 12px; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-brand { font-family: var(--font-display); font-size: 26px; text-transform: uppercase; color: var(--ink); letter-spacing: -.03em; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols h4 { font-family: var(--font-mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.footer-cols a { display: block; padding: 3px 0; color: var(--soft); }
.footer-cols a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; flex-wrap: wrap; }
.status-dot { display: inline-block; width: 7px; height: 7px; background: #2bc48a; margin-right: 7px; vertical-align: 1px; }
.status-dot.warn { background: #e8b33a; }
.status-dot.fail { background: var(--signal); }

/* generic pages */
.page { padding: 64px 0 84px; }
.page h1 { font-family: var(--font-display); font-size: clamp(38px, 6vw, 78px); font-weight: 900; text-transform: uppercase; letter-spacing: -.05em; line-height: .9; margin: 10px 0 22px; }
.page h2 { font-family: var(--font-display); font-size: 26px; text-transform: uppercase; letter-spacing: -.02em; margin: 38px 0 10px; }
.prose { max-width: 74ch; color: var(--muted); font-size: 15px; }
.prose strong { color: var(--ink); font-weight: 600; }
.notice { border: 1px solid var(--line); border-left: 2px solid var(--signal); padding: 16px 18px; background: var(--surface); color: var(--muted); font-size: 13px; }
.panel { border: 1px solid var(--line); background: var(--surface); padding: 22px; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 10px 18px; font-size: 13px; }
.kv dt { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); padding-top: 3px; }
.kv dd { margin: 0; color: var(--muted); word-break: break-word; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
table.data td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.badge { display: inline-block; padding: 2px 7px; border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.badge.paid, .badge.pass { border-color: #2bc48a; color: #2bc48a; }
.badge.fail { border-color: var(--signal); color: var(--signal); }
.badge.warn, .badge.pending { border-color: #e8b33a; color: #e8b33a; }

/* responsive */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero-gallery { grid-template-columns: 1fr; }
  .hero-gallery .tile.b, .hero-gallery .tile.c { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .row { grid-template-columns: 40px 1fr 80px; }
  .row .col, .row .price { display: none; }
  .buy-grid, .split { grid-template-columns: 1fr; }
  .row .go { justify-self: start; }
}
@media (max-width: 620px) {
  .site-nav a:not(.btn) { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero .display { font-size: clamp(46px, 16vw, 72px); }
  .hero-gallery { grid-template-columns: 1fr; }
  .hero-gallery .tile.b { display: none; }
  .tile { min-height: 200px; }
  .kv { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
