@charset "UTF-8";

:root {
  color-scheme: dark;
  --surface: #161513;
  --panel: #1b1916;
  --ink: #f7efdf;
  --muted: #c6bbab;
  --gold: #e1b779;
  --line: #4a3d2f;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 1rem/1.6 var(--sans); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid #ffe0a7; outline-offset: 5px; }
code { font-size: .92em; color: #ead1a9; overflow-wrap: anywhere; }
section[id] { scroll-margin-top: 1.75rem; }
.shell { width: min(1152px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; z-index: 3; top: .5rem; left: 1rem; padding: .5rem 1rem; background: #f8d49c; color: #24170c; transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }

.topbar { background: #151411; border-bottom: 1px solid #382e23; }
.topbar-inner { min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .42rem; text-decoration: none; font: 700 1.25rem/1.2 var(--serif); white-space: nowrap; }
.brand-mark { color: var(--gold); font: 1.45rem/1 var(--serif); }
.brand .brand-mark { margin-right: .25rem; }
.brand-accent { font-weight: 400; color: var(--gold); }
nav { display: flex; flex-wrap: wrap; gap: clamp(1rem, 3.4vw, 2.65rem); }
nav a { color: var(--muted); font-size: .95rem; text-decoration: none; }
nav a:hover { color: var(--gold); }

.hero { position: relative; isolation: isolate; display: grid; min-height: clamp(480px, 57vw, 660px); border-bottom: 1px solid #433327; background: #231e19; overflow: clip; }
.hero-art, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art { z-index: -2; object-fit: cover; object-position: 55% 50%; }
.hero::after { content: ""; z-index: -1; background: linear-gradient(90deg, rgba(19,17,15,.97), rgba(19,17,15,.78) 25%, rgba(19,17,15,.25) 57%, transparent 78%), linear-gradient(0deg, #161513 0%, rgba(22,21,19,.08) 29%, transparent 70%); }
.hero-inner { align-self: center; padding-block: 4.2rem; }
.hero-copy { max-width: 520px; }
.eyebrow { display: flex; align-items: center; gap: .7rem; color: #f1c994; font-size: .875rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span { width: 19px; height: 1px; background: var(--gold); flex: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.04; }
h1 { margin-block: 1.2rem 1.5rem; font-size: clamp(4.5rem, 9.2vw, 8.7rem); letter-spacing: -.065em; text-shadow: 0 4px 24px #1c1511a0; }
h1 em { display: block; color: #e8bd7f; font-size: .61em; font-weight: 400; letter-spacing: -.045em; }
.intro { color: #eee1ce; max-width: 345px; font-size: clamp(1.07rem, 1.6vw, 1.24rem); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: .72rem 1.33rem; border: 1px solid transparent; border-radius: 3px; font: 690 .96rem/1.3 var(--sans); text-align: center; text-decoration: none; cursor: pointer; transition: background-color .18s, border-color .18s, color .18s; }
.primary { background: #e1b778; border-color: #edc893; color: #21180f; }
.primary:hover:not(:disabled) { background: #f2ce94; }
.secondary { color: #f2d4a4; border-color: #8d6e49; background: #2a231a; }
.secondary:hover:not(:disabled) { background: #423123; }
.hero .button { margin-top: 1.7rem; }
.availability { margin-top: 1.15rem; color: #d6c9b7; font-size: .91rem; }

.downloads { padding-block: clamp(3.6rem, 7vw, 6.3rem) 0; }
h2 { font-size: clamp(2.3rem, 4vw, 3.6rem); letter-spacing: -.038em; }
.section-intro { color: var(--muted); margin-top: .65rem; }
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.1vw, 1.65rem); margin-top: 1.65rem; }
.download-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.35rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 5px; background: linear-gradient(135deg,#231f19,var(--panel) 72%); }
.download-card::before { content: ""; position: absolute; top: -1px; left: 1.9rem; width: min(25%, 72px); height: 1px; background: #c59a64; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.file-detail { color: #d9c5a8; font-size: .875rem; }
.file-detail span { margin-inline: .3rem; color: #a88e6f; }
.package-icon { display: inline-block; position: relative; width: 36px; height: 34px; color: #e1b778; }
.package-icon::before, .package-icon::after { content: ""; position: absolute; }
.package-icon.full::before { inset: 7px 3px 3px 3px; border: 1px solid currentColor; border-radius: 2px; }
.package-icon.full::after { inset: 12px 3px auto; border-top: 1px solid currentColor; }
.package-icon.patch::before { inset: 5px 11px 8px 3px; transform: rotate(-8deg); border: 1px solid currentColor; border-radius: 2px; }
.package-icon.patch::after { inset: 9px 5px 4px 9px; border: 1px solid currentColor; border-radius: 2px; background: repeating-linear-gradient(0deg, transparent 0px, transparent 5px, #bc915e 6px, transparent 7px) center 4px / 10px 15px no-repeat, #251f17; }
h3 { margin-top: .95rem; font-size: clamp(1.55rem, 2.45vw, 2.16rem); letter-spacing: -.025em; }
h3 code { font: inherit; color: var(--ink); }
.download-card p { margin: .75rem 0 1.5rem; color: var(--muted); max-width: 395px; }
.download-action { margin-top: auto; }
.pending { cursor: not-allowed; }
.pending.primary { background: #3c3021; color: #e3caaa; border-color: #6c5233; }
.pending.secondary { background: #251f18; color: #d3bfa2; border-color: #5f4c37; }
.download-status { color: var(--muted); font-size: .94rem; margin-top: .9rem; }

.guide { padding-block: clamp(3.25rem, 6vw, 5.1rem); }
.guide-panel { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; background: #211c16; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.guide-copy { padding: clamp(1.5rem, 4vw, 3rem); }
.guide-visual { position: relative; min-width: 0; }
.guide-visual img, .guide-visual::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.guide-visual img { object-fit: cover; object-position: 62% center; }
.guide-visual::after { content: ""; background: linear-gradient(90deg,#211c16 1%,transparent 39%); }
ol { list-style: none; margin: 1.6rem 0 0; padding: 0; }
li { display: grid; position: relative; padding: 0 0 1.03rem 2.75rem; }
li:not(:first-child) { padding-top: .85rem; border-top: 1px solid #47392a; }
li:last-child { padding-bottom: 0; }
.step-marker { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border: 1px solid #806340; color: #edc68e; border-radius: 50%; font-size: .88rem; }
li:not(:first-child) .step-marker { top: .85rem; }
li strong { font-size: 1rem; }
li span:not(.step-marker) { color: var(--muted); }
.footer { display: flex; align-items: center; gap: .6rem; min-height: 74px; border-top: 1px solid #46392c; color: #ddd1bf; font: 1.05rem/1.3 var(--serif); }

@media (max-width: 780px) {
  .shell { width: min(100% - 40px, 1152px); }
  .hero-art { object-position: 63% center; }
  .hero::after { background: linear-gradient(90deg,#151210e8 0%,#151210b5 40%,#1512102b 100%), linear-gradient(0deg,#161513,transparent 36%); }
  .guide-panel { grid-template-columns: 1fr; }
  .guide-visual { min-height: 210px; }
  .guide-visual::after { background: linear-gradient(180deg,#211c16,transparent 40%); }
}

@media (max-width: 560px) {
  .topbar-inner { min-height: 62px; gap: .7rem; }
  nav { gap: .8rem; }
  nav a { font-size: .875rem; }
  .brand { font-size: 1.02rem; gap: .3rem; }
  .brand .brand-mark { font-size: 1.25rem; margin-right: .12rem; }
  .hero { min-height: 535px; }
  .hero-inner { align-self: end; padding-block: 3.3rem; }
  .hero-art { object-position: 65% 50%; }
  .hero::after { background: linear-gradient(0deg,#161513 2%,#161513ef 21%,#1615139c 64%,#16151308 94%), linear-gradient(90deg,#16151377,transparent); }
  h1 { font-size: clamp(4.25rem, 15vw, 6.1rem); }
  .eyebrow { font-size: .875rem; letter-spacing: .07em; }
  .download-grid { grid-template-columns: 1fr; }
}

@media (max-width: 355px) {
  .topbar-inner { flex-wrap: wrap; padding-block: .75rem; }
  .hero { min-height: 490px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
