:root {
  --bg: #0c0c0b;
  --bg-2: #161614;
  --card: #1b1b18;
  --ink: #f3efe6;
  --muted: #b7b1a6;
  --line: rgba(243, 239, 230, 0.14);
  --copper: #e2a15a;
  --copper-2: #f0c08a;
  --danger: #ffb4a8;
  --ok: #b7e2c5;
  --sans: Figtree, "Avenir Next", "Segoe UI", sans-serif;
  --display: Sora, Figtree, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--copper-2); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.1rem, 7vw, 4.4rem); margin: 0 0 0.35em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 0 0 0.45em; }
p { margin: 0 0 0.8em; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(12, 12, 11, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

body.is-home .site-header {
  position: absolute;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  border-bottom: 0;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.brand span {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--copper);
  color: #1a120c;
  text-decoration: none;
  font-weight: 600;
}
.pill.warn { background: #8c3d28; color: #fff6f1; }

.quick-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 0 16px;
}
.quick-nav a,
.quick-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  font: inherit;
  font-weight: 600;
  text-align: center;
}
.quick-nav form { margin: 0; }
.quick-nav button { width: 100%; cursor: pointer; }

.mast {
  position: relative;
  min-height: 68vw;
  height: 52vh;
  max-height: 560px;
  overflow: hidden;
  background: #1a1814;
}
.mast img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 40%;
}
.mast-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: 28px;
  background: linear-gradient(to top, rgba(8, 8, 7, 0.88) 10%, rgba(8, 8, 7, 0.2) 70%, transparent);
  padding-top: 72px;
}
.mast .lede { max-width: 36rem; color: #f6f1e8; font-size: 1.05rem; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--copper);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

main { padding: 8px 0 72px; }
.shelf { padding-top: 8px; }
.section-head, .page-head { margin: 22px 0 16px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.page-head p, .aside, .help, .empty { color: var(--muted); }

.hero-actions { display: grid; gap: 10px; margin-top: 8px; }
.button, button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  background: var(--copper);
  color: #1a120c;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(243, 239, 230, 0.55);
}
.download-panel { display: grid; gap: 10px; }
.download-panel form { margin: 0; }

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.file-card {
  display: grid;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #24221e;
  overflow: hidden;
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: var(--display);
  font-size: 3rem;
}
.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(12, 12, 11, 0.78);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge.inline { position: static; display: inline-block; }
.card-body { display: grid; gap: 6px; padding: 14px 14px 16px; }
.card-body strong {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.vehicle { color: var(--copper-2); font-weight: 600; }
.blurb, .card-body span { color: var(--muted); overflow-wrap: anywhere; }
.cost { color: var(--ink) !important; font-weight: 600; }

.schedule, .panel, .download-panel, .balance-block, .packs form, .log > li {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.schedule, .panel, .download-panel, .balance-block { padding: 18px; margin: 8px 0 22px; }
.schedule ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.schedule li {
  display: grid;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.schedule li:last-child { border-bottom: 0; padding-bottom: 0; }
.schedule small, .rate { color: var(--muted); }
.rate { margin-top: 12px; }

.search { margin-bottom: 18px; }
.search label, .field label { display: block; font-weight: 600; margin-bottom: 6px; }
.search-row, .stack { display: grid; gap: 8px; }
.stack { max-width: 40rem; }
.field { display: grid; gap: 6px; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #10100e;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
textarea { min-height: 140px; resize: vertical; }
input[type="file"] { padding: 10px; }
.errorlist { color: var(--danger); margin: 0; padding-left: 1.1rem; }
.messages { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; }
.messages li { padding: 12px 14px; border-radius: 12px; background: var(--bg-2); }
.messages .error { background: #3a201c; color: var(--danger); }
.messages .success { background: #163024; color: var(--ok); }

.facts { display: grid; gap: 0; margin: 0 0 18px; }
.facts div {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.description { white-space: pre-wrap; overflow-wrap: anywhere; }
.gallery { display: grid; gap: 12px; margin-bottom: 18px; }
.gallery img { width: 100%; border-radius: 18px; }

.packs { display: grid; gap: 12px; }
.packs form { padding: 16px; }
.packs p { color: var(--muted); margin: 8px 0 0; }
.balance-figure {
  font-family: var(--display);
  font-size: 4rem;
  line-height: 0.9;
  margin: 0;
}
.balance-block p:last-child { margin: 0; color: var(--muted); }
.log { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.log > li { padding: 12px 14px; display: grid; gap: 4px; }
.log span, .log li li { overflow-wrap: anywhere; }
.banner { background: #8c3d28; color: #fff8f3; }
.banner .wrap { padding: 12px 0; }
.banner p { margin: 4px 0 0; }
.pager { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.pager a { min-height: 44px; display: inline-flex; align-items: center; }
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 22px 0 40px;
  font-size: 0.95rem;
}

@media (min-width: 840px) {
  .quick-nav { display: flex; flex-wrap: wrap; }
  .quick-nav a, .quick-nav button { width: auto; flex: 0 0 auto; }
  .hero-actions { display: flex; }
  .button, button.button { width: auto; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .mast { height: 62vh; min-height: 420px; }
  .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 839px) {
  .cards { grid-template-columns: 1fr; }
  .mast { height: 78vw; min-height: 320px; max-height: 460px; }
}
