/* gunBOX — design tokens (colours, type scale, button base, logo classes) */
:root {
  /* palette */
  --ink:       #111418;
  --graphite:  #1F2933;
  --steel:     #3A5A7C;
  --steel-ink: #2C455F;
  --rule:      #D9DBDE;
  --rule-ink:  #B7BBC1;
  --paper:     #F7F7F5;
  --paper-2:   #EFEEEA;
  --paper-3:   #E6E5E0;
  --white:     #FFFFFF;
  --success:   #3F6B4E;
  --warn:      #B5803A;
  /* Vorschau band + notices: warm neutral, no hue that competes with the steel
     chrome and no traffic-light meaning. Separation comes from the hard edge to
     the dark nav and the solid tag, not from saturation. */
  --notice-bg:   #E9E4D9;
  --notice-line: #CFC7B6;
  --notice-ink:  #2B2F36;  /* 11:1 on --notice-bg */
  --notice-soft: #4A5058;  /* secondary text on the notice surface — 7:1 */
  --muted:     #545962;

  /* type */
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --brand: "Archivo", "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* scale */
  --fs-xs:  11px;
  --fs-sm:  13px;
  --fs-md:  15px;
  --fs-lg:  17px;
  --fs-xl:  20px;
  --fs-2xl: 26px;
  --fs-3xl: 34px;
  --fs-4xl: 46px;
  --fs-5xl: 62px;
  --fs-6xl: 84px;

  /* layout */
  --maxw: 1240px;
  --gutter: 32px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.tnum { font-variant-numeric: tabular-nums; }
.uc { text-transform: uppercase; letter-spacing: 0.08em; }
.muted { color: var(--muted); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4, h5 { font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

/* visible focus — WCAG 2.1 AA */
:focus-visible { outline: 2px solid var(--steel-deep, var(--steel)); outline-offset: 2px; }
nav.main :focus-visible, .util :focus-visible, footer.site :focus-visible,
.hero :focus-visible, section.s.steel :focus-visible, .cta-card :focus-visible {
  outline-color: var(--paper);
}

/* skip link */
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 300;
  background: var(--graphite); color: var(--paper);
  padding: 10px 16px; font: 500 13px/1 var(--sans);
  transition: top 120ms ease;
}
.skip-link:focus { top: 8px; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.rule { height: 1px; background: var(--rule); width: 100%; }
.rule-ink { height: 1px; background: var(--graphite); width: 100%; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  font: 500 14px/1 var(--brand);
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}
.btn-primary { background: var(--graphite); color: var(--paper); }
.btn-primary:hover { background: var(--ink); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--graphite); border-color: var(--graphite); }
.btn-ghost:hover { background: var(--graphite); color: var(--paper); text-decoration: none; }
.btn-link { background: transparent; color: var(--graphite); padding: 0; height: auto; }
.btn-link:hover { text-decoration: underline; }
.btn .arrow { font-family: var(--mono); font-size: 13px; line-height: 1; transform: translateY(0); transition: transform 160ms ease; }
.btn:hover .arrow { transform: translate(2px, 0); }

/* small chip / tag */
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 24px; padding: 0 10px;
  font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--graphite); border: 1px solid var(--rule); background: var(--white);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

/* form basics */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 400 15px/1.4 var(--sans); color: var(--ink); background: var(--white);
  border: 1px solid var(--rule); border-radius: 0; padding: 12px 14px; outline: none; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--graphite); }
.field .hint { font: 400 12px/1.4 var(--sans); color: #6A6F77; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ─── gunBOX Logo (Bold mark + Barlow Condensed wordmark) ─── */
.gb-logo { display: inline-flex; align-items: center; gap: 10px; line-height: 1; text-decoration: none; }
.gb-logo .gb-mark { flex: 0 0 auto; display: block; }
.gb-logo .gb-word {
  font-family: "Barlow Condensed", var(--brand);
  letter-spacing: 0; display: inline-flex; align-items: baseline; line-height: 1; font-size: 22px;
}
.gb-logo .gb-word .gb-gun { font-weight: 500; }
.gb-logo .gb-word .gb-box { font-weight: 700; }
.gb-logo .gb-word .gb-reg { font-size: 0.42em; font-weight: 600; align-self: flex-start; margin-left: 0.08em; line-height: 1; }
.gb-logo:hover { text-decoration: none; }
