/*
 * The SHOOTARS brand, at the scale of a page instead of a phone screen.
 *
 * Ported from `concept/ui/shootars.html`, which is the mark's own file: ink,
 * #54FF00, #FF00BC, Archivo Black caps, 2.5 px markers, the hand-drawn wobble
 * and the dot grid. The rule that came with it is the one worth keeping:
 *
 *   Green = you and yours. Pink = damage and threat. Nothing else is ever
 *   coloured, so colour always means something.
 *
 * On a marketing page that reads as: green is the project and the affirmative,
 * pink is the warning and the caveat, and body copy is never either.
 *
 * Dark only (D8). The brand is ink with two accents and the concept file has no
 * light variant; a light mode would be inventing half a palette no other
 * surface uses. So `color-scheme` is declared and the background is painted
 * explicitly rather than borrowed.
 */

:root {
  --ink: #08090a;
  --ink2: #0e1012;
  --green: #54ff00;
  --pink: #ff00bc;

  --line: rgba(255, 255, 255, 0.86);
  --line-soft: rgba(255, 255, 255, 0.2);
  --text: #f4f6f4;
  --dim: rgba(244, 246, 244, 0.56);
  --faint: rgba(244, 246, 244, 0.3);
  --surf: rgba(255, 255, 255, 0.045);
  --surf2: rgba(255, 255, 255, 0.085);

  --marker: 2.5px solid var(--line);

  /* Archivo Black is not loaded — D2 forbids a dependency and a font CDN is a
     third party on every page view. The stack falls through to whatever heavy
     condensed face the device already has, which is what the concept file does. */
  --f-disp: "Archivo Black", Impact, "Haettenschweiler", "Arial Narrow Bold", system-ui, sans-serif;
  --f-ui: -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --measure: 38rem;
  --page: 64rem;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 16px/1.65 var(--f-ui);
  -webkit-font-smoothing: antialiased;
}

/* The dot grid and its wash, lifted from the concept file. Fixed rather than
   scrolling, so it reads as the surface the page sits on. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 20%, #000, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 20%, #000, transparent 78%);
}

/* Everything real sits above the grid. */
header, main, footer { position: relative; z-index: 1; }

/* ============ type ============ */

h1, h2, h3 { font-family: var(--f-disp); text-transform: uppercase; letter-spacing: -0.01em; }

h1 {
  font-size: clamp(2.1rem, 7vw, 4rem);
  line-height: 1.02;
  margin: 0 0 0.6rem;
  /* Nothing in this brand is drawn with a ruler. */
  transform: rotate(-0.7deg);
}

h2 {
  font-size: clamp(1.3rem, 3.4vw, 1.9rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
  transform: rotate(-0.4deg);
}

h3 { font-size: 1rem; line-height: 1.2; margin: 0 0 0.4rem; letter-spacing: 0.02em; }

p { margin: 0 0 1rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--text); }
.dim { color: var(--dim); }

a { color: var(--green); text-underline-offset: 0.2em; }
a:hover { color: var(--text); }

strong { font-weight: 700; }

code, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* The eyebrow above a section title. */
.cap {
  display: block;
  font: 700 0.66rem/1.3 var(--f-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 0.6rem;
}

/* ============ layout ============ */

.page { max-width: var(--page); margin: 0 auto; padding: 0 1.25rem; }

section { padding: 3.5rem 0; border-top: 2.5px solid var(--line-soft); }
section:first-of-type { border-top: 0; }

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 1.75rem;
}

/* ============ marks ============ */

/* The hand-drawn wobble: two radii so adjacent cards never rhyme. */
.card {
  background: var(--surf);
  border: var(--marker);
  border-radius: 16px 22px 14px 20px / 20px 14px 22px 16px;
  padding: 1.15rem 1.25rem;
}
.card:nth-child(even) { border-radius: 22px 14px 20px 16px / 14px 20px 16px 22px; }
.card p { color: var(--dim); font-size: 0.925rem; margin-bottom: 0; }
.card p + p { margin-top: 0.6rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font: 800 0.7rem/1 var(--f-ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 0.7rem;
  border: 2.5px solid var(--line-soft);
  border-radius: 14px 20px 16px 22px / 20px 16px 22px 14px;
  color: var(--dim);
}
.chip.go { color: var(--green); border-color: var(--green); }
.chip.hot { color: var(--pink); border-color: var(--pink); }

/* ============ header and nav ============ */

.site-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 2.5px solid var(--line-soft);
}
.site-head .page { display: flex; align-items: center; gap: 1rem; padding-block: 0.7rem; }
/*
 * The trimmed mark, not the source logo.
 *
 * `shootars-logo.png` is a 1500×1500 field holding 1218×421 of artwork, so this
 * rule applied to it sized the empty frame: the wordmark came out at 0.53rem
 * against a 1.9rem box and read as a stray glyph. `logo-mark.png` is the same
 * artwork cropped to itself by `scripts/trim-logo.swift`, which makes the
 * height here mean the height of the mark.
 */
.site-head img { display: block; height: 1.9rem; width: auto; }
.site-head nav { margin-left: auto; display: flex; gap: 1rem; flex-wrap: wrap; }
.site-head nav a {
  font: 800 0.72rem/1 var(--f-ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dim);
}
.site-head nav a:hover { color: var(--green); }

@media (max-width: 34rem) {
  .site-head nav { display: none; }
}

/* ============ hero ============ */

.hero { padding: 4rem 0 3.5rem; text-align: center; border-top: 0; }
/*
 * Sized for a 3:1 mark, not a square one. The old asset was a 1500×1500 field
 * with 1218×421 of wordmark in it, so `width: 19rem` bought about 3.6rem of
 * artwork and thirteen rem of nothing above and below it.
 */
.hero img.mark { width: min(28rem, 76vw); height: auto; margin: 0 auto 1.75rem; display: block; }
.hero p { margin-inline: auto; }

/* ============ figures ============ */

figure { margin: 1.75rem 0 0; }
figure img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--marker);
  border-radius: 16px 22px 14px 20px / 20px 14px 22px 16px;
}

/*
 * The caption carries the label, and it is a rule rather than a style (D7).
 * Every image that is not a photograph of the thing working says so in its own
 * caption — not in a footnote, not in a disclaimer at the bottom of the page.
 */
figcaption {
  margin-top: 0.7rem;
  font: 700 0.72rem/1.4 var(--f-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
}

/* ============ lists ============ */

ul.plain { list-style: none; padding: 0; margin: 1.25rem 0 0; max-width: var(--measure); }
ul.plain li { padding: 0.7rem 0; border-top: 2.5px solid var(--line-soft); color: var(--dim); }
ul.plain li strong { color: var(--text); }

ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.75rem 0 0; }
ol.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.5rem 3.2rem;
  max-width: var(--measure);
  color: var(--dim);
}
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.15rem;
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  font: 800 1rem/1 var(--f-disp);
  color: var(--green);
  border: 2.5px solid var(--green);
  border-radius: 14px 20px 16px 22px / 20px 16px 22px 14px;
}
ol.steps li strong { color: var(--text); display: block; margin-bottom: 0.2rem; }

/* ============ tables ============ */

.wrap { overflow-x: auto; margin-top: 1.5rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; min-width: 34rem; }
th, td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 2.5px solid var(--line-soft); vertical-align: top; }
th {
  font: 800 0.68rem/1 var(--f-ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
td { color: var(--dim); }
td strong { color: var(--text); }

/* ============ FAQ ============ */

details {
  border-top: 2.5px solid var(--line-soft);
  padding: 0.9rem 0;
  max-width: var(--measure);
}
summary { cursor: pointer; font-weight: 700; color: var(--text); }
summary::marker { color: var(--green); }
details p { margin-top: 0.6rem; color: var(--dim); }

/* ============ footer ============ */

.site-foot {
  border-top: 2.5px solid var(--line-soft);
  margin-top: 2rem;
  padding: 2.5rem 0 3.5rem;
  color: var(--dim);
  font-size: 0.875rem;
}
.site-foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1rem; }
.site-foot a { text-decoration: none; }

/* ============ 404 ============ */

.void { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 1rem; }
