/* Big Iron: site styles. One sheet for every page. Colours are lifted from the store art's dusk sky. */

:root {
  --night: #140c10;
  --dusk: #24141c;
  --dusk-2: #2f1a24;
  --line: #4a2b33;
  --sand: #f3e2bf;
  --sand-dim: #cdb894;
  --muted: #a8917a;
  --sun: #f2a345;
  --ember: #e0662a;
  --rust: #8f3a1d;
  --max: 1120px;
  --prose: 70ch;
  --radius: 10px;
  --display: "Rye", Georgia, serif;
  --body: "Bitter", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--sand);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--sun); text-underline-offset: 3px; }
a:hover { color: #ffc177; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: var(--night); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(20, 12, 16, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: var(--sand-dim); text-decoration: none; font-size: 15px;
  padding: 6px 10px; border-radius: 6px;
}
.nav a:hover { color: var(--sand); background: var(--dusk-2); }
.nav a[aria-current="page"] { color: var(--sun); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--night); }
.hero picture img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%;
  background: linear-gradient(to bottom, rgba(20,12,16,0), var(--night));
  pointer-events: none;
}
.hero-cta { position: relative; z-index: 2; margin-top: -72px; text-align: center; }
.tagline { font-family: var(--display); font-size: clamp(22px, 3.4vw, 34px); line-height: 1.25; margin: 0 0 10px; color: var(--sand); text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.sub { color: var(--sand-dim); margin: 0 auto 22px; max-width: 56ch; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, var(--sun), var(--ember));
  color: #2a0f05; font-weight: 700; text-decoration: none;
  padding: 13px 24px; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(224, 102, 42, 0.35), inset 0 -2px 0 rgba(0,0,0,.18);
}
.btn:hover { color: #2a0f05; filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--sand); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { color: var(--sand); background: var(--dusk-2); }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.platform-note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.band { background: var(--dusk); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h1, h2, h3 { line-height: 1.2; color: var(--sand); }
h2.display { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.6vw, 38px); margin: 0 0 12px; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--sun); margin: 0 0 8px; font-weight: 700; }
.lede { color: var(--sand-dim); max-width: 62ch; margin: 0 0 36px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: var(--dusk-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.step img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1px solid var(--line); }
.step-body { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px 20px; }
.step-body::before {
  counter-increment: step; content: counter(step); flex: none;
  font-family: var(--display); font-size: 34px; color: var(--sun); line-height: 1;
}
.step p { margin: 0; font-size: 17px; line-height: 1.55; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.features.four { grid-template-columns: repeat(2, 1fr); }
.showcase { display: grid; gap: 48px; margin-bottom: 56px; }
.show { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; }
.show:nth-child(even) { grid-template-columns: 1fr 1.3fr; }
.show:nth-child(even) > .shot { order: 2; }
.show h3 { margin: 0 0 8px; font-size: 22px; display: flex; gap: 10px; align-items: center; }
.show h3 svg { flex: none; color: var(--sun); }
.show p { margin: 0; color: var(--sand-dim); }
.shot { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.shot img { width: 100%; height: auto; transition: transform .3s ease; }
.shot:hover img { transform: scale(1.03); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.gallery figure { margin: 0; }
.gallery figcaption { font-family: var(--display); font-size: 20px; margin-top: 10px; }
.feature h3 { margin: 0 0 6px; font-size: 19px; display: flex; gap: 10px; align-items: center; }
.feature h3 svg { flex: none; color: var(--sun); }
.feature p { margin: 0; color: var(--sand-dim); font-size: 15.5px; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--radius); border: 1px solid var(--line); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.facts li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { text-align: right; }

/* ---------- prose pages (privacy, support) ---------- */
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4.4vw, 46px); margin: 0 0 8px; }
.page-head .meta { color: var(--muted); margin: 0; }
.prose { max-width: var(--prose); padding: 24px 0 80px; }
.prose h2 { font-size: 23px; margin: 44px 0 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.prose h3 { font-size: 18px; margin: 26px 0 6px; }
.prose p, .prose li { color: #eadbbd; }
.prose ul { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--dusk-2); padding: 1px 6px; border-radius: 4px; }
.callout { background: var(--dusk-2); border: 1px solid var(--line); border-left: 4px solid var(--sun); border-radius: 8px; padding: 16px 18px; margin: 20px 0; }
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }

.table-scroll { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--dusk-2); color: var(--sand); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

.toc { background: var(--dusk); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; margin: 8px 0 8px; }
.toc p { margin: 0 0 6px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { margin: 2px 0; break-inside: avoid; }

details { background: var(--dusk-2); border: 1px solid var(--line); border-radius: 8px; padding: 0 16px; margin: 10px 0; }
summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--sand); }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
details > p, details > ul { margin: 0 0 14px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: #0f080b; padding: 36px 0 44px; font-size: 14.5px; color: var(--muted); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a { color: var(--sand-dim); text-decoration: none; }
.site-foot a:hover { color: var(--sand); }
.site-foot p { margin: 0; }
.fine { margin-top: 6px !important; font-size: 13px; }

/* ---------- 404 ---------- */
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 16px; }
.lost h1 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 6vw, 60px); margin: 0 0 8px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .show, .show:nth-child(even) { grid-template-columns: 1fr; gap: 18px; }
  .show:nth-child(even) > .shot { order: 0; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .steps, .features, .features.four, .gallery { grid-template-columns: 1fr; }
  .hero picture img { aspect-ratio: 1008 / 1440; }
  .hero-cta { margin-top: -40px; }
  .brand img { height: 26px; }
  .nav { flex-wrap: nowrap; gap: 0; }
  .nav a { padding: 6px 7px; font-size: 14px; }
  .nav a[href^="/#"] { display: none; }
  .toc ol { columns: 1; }
  table { min-width: 0; font-size: 14px; }
  th, td { padding: 8px 9px; }
  td:first-child { width: 32%; hyphens: auto; -webkit-hyphens: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
