/* Silencer Surplus — silencersurplus.com
   Single shared stylesheet. No external requests. Mobile-first. */

:root {
  --bg: #f6f4ef;
  --surface: #fffefb;
  --surface-2: #efece3;
  --line: #ddd7c9;
  --text: #23201a;
  --muted: #6e675a;
  --brass: #8a6b22;
  --brass-bright: #7d5f1a;
  --green: #3e7a4a;
  --red: #a4453f;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.wrap { max-width: 47rem; margin: 0 auto; padding: 0 1.125rem; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 5.5vw, 2.75rem); margin: 0.5rem 0 1rem; }
h2 { font-size: clamp(1.35rem, 4vw, 1.75rem); margin: 2.75rem 0 0.9rem; }
h3 { font-size: 1.125rem; margin: 1.75rem 0 0.5rem; font-family: var(--sans); font-weight: 700; }
p, ul, ol { margin: 0 0 1.1rem; }
li { margin-bottom: 0.35rem; }
small, .small { font-size: 0.875rem; }
strong { color: #171410; }

a { color: var(--brass-bright); text-decoration: underline; text-decoration-color: rgba(125, 95, 26, 0.4); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--brass-bright); }

.standfirst { font-size: 1.1875rem; color: var(--muted); line-height: 1.6; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -9999px; top: 0; background: var(--brass); color: #fff; padding: 0.5rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- header / nav ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.nav-row { display: flex; align-items: center; gap: 1.25rem; padding: 0.7rem 1.125rem; }
.brand {
  font-family: var(--serif); font-weight: 700; font-size: 1.1rem;
  color: var(--text); text-decoration: none; white-space: nowrap; letter-spacing: 0.01em;
}
.brand span { color: var(--brass); }
.site-nav {
  display: flex; gap: 1.1rem; margin-left: auto;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  color: var(--muted); text-decoration: none; white-space: nowrap;
  font-size: 0.9375rem; padding: 0.15rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--brass-bright); border-bottom-color: var(--brass); }

main { padding-top: 2.25rem; }

/* ---------- datestamp / updated ---------- */
.updated {
  display: inline-flex; align-items: center; gap: 0.6em; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.04em;
  color: var(--brass-bright); border: 1px solid var(--brass-dim, #96793a);
  border-color: rgba(138, 107, 34, 0.45); background: var(--surface);
  padding: 0.3rem 0.75rem; border-radius: 4px; margin: 0 0 1.25rem;
  text-transform: uppercase;
}
.updated a { color: var(--brass-bright); }

/* ---------- callouts ---------- */
.callout {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--brass); border-radius: 6px;
  padding: 1.1rem 1.25rem; margin: 1.6rem 0;
}
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.callout.plain { border-left-color: var(--line); }
.callout.warn { border-left-color: var(--red); }
.callout h2, .callout h3 { margin-top: 0; }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 1.75rem 0; padding: 0 0 0 0.5rem; }
.timeline li { position: relative; padding: 0 0 1.6rem 1.6rem; border-left: 2px solid var(--line); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0.25rem; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: 0.3rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brass); border: 2px solid var(--bg);
}
.tl-date {
  display: block; font-family: var(--mono); font-size: 0.8125rem;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--brass-bright);
  margin-bottom: 0.2rem;
}
.timeline p { margin-bottom: 0.4rem; }

/* ---------- tables ---------- */
.table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: 6px; margin: 1.5rem 0;
  background: var(--surface);
}
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
.table-scroll table { min-width: 42rem; }
th, td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-family: var(--mono); font-size: 0.71875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted);
  background: var(--surface-2);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgba(35, 32, 26, 0.03); }
td .note { color: var(--muted); font-size: 0.875rem; }

/* status dots + badges for the state table */
.dot { display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%; margin-right: 0.45em; vertical-align: 0.05em; }
.dot.free { background: var(--green); }
.dot.form4 { background: var(--brass); }
.dot.ban { background: var(--red); }
.tier { white-space: nowrap; font-family: var(--mono); font-size: 0.78125rem; letter-spacing: 0.03em; }

/* ---------- email capture ---------- */
.capture {
  background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  border-radius: 8px; padding: 1.4rem 1.4rem 1.2rem; margin: 2.5rem 0;
}
.capture h2 { margin: 0 0 0.4rem; font-size: 1.3rem; }
.capture p { color: var(--muted); margin-bottom: 1rem; }
.capture form { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.capture input[type="email"] {
  flex: 1 1 14rem; background: var(--bg); border: 1px solid var(--line);
  color: var(--text); border-radius: 6px; padding: 0.7rem 0.85rem; font-size: 1rem;
}
.capture input[type="email"]:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
.capture button {
  background: var(--brass); color: #fff; border: 0; border-radius: 6px;
  padding: 0.7rem 1.3rem; font-weight: 700; font-size: 1rem; cursor: pointer;
  font-family: var(--sans);
}
.capture button:hover { background: var(--brass-bright); }
.capture button:disabled { opacity: 0.55; cursor: default; }
.form-msg { flex-basis: 100%; margin: 0.2rem 0 0; font-size: 0.9375rem; color: var(--brass-bright); min-height: 1.4em; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- changelog ---------- */
.changelog { list-style: none; margin: 1.25rem 0; padding: 0; }
.changelog li {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line);
}
.changelog li:last-child { border-bottom: 0; }
.cl-date { font-family: var(--mono); font-size: 0.8125rem; color: var(--brass-bright); padding-top: 0.2rem; white-space: nowrap; }

/* ---------- sources ---------- */
.sources { font-size: 0.9375rem; color: var(--muted); }
.sources ul { padding-left: 1.2rem; }
.sources li { margin-bottom: 0.45rem; }

/* ---------- steps (form 4 guide) ---------- */
.steps { list-style: none; counter-reset: step; margin: 1.75rem 0; padding: 0; }
.steps > li {
  counter-increment: step; position: relative;
  padding: 0 0 1.75rem 3rem; border-left: 2px solid var(--line); margin-left: 1rem;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0.5rem; }
.steps > li::before {
  content: counter(step); position: absolute; left: -1.05rem; top: -0.15rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--brass);
  color: var(--brass-bright); font-family: var(--mono); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 0.9375rem;
}
.steps h3 { margin: 0 0 0.4rem; }

/* ---------- FAQ ---------- */
.faq h3 { color: var(--brass-bright); font-family: var(--serif); font-size: 1.15rem; margin-top: 1.9rem; }

/* ---------- two-column facts ---------- */
.changed-grid { display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 680px) { .changed-grid { grid-template-columns: 1fr 1fr; } }
.changed-grid .callout { margin: 0; }
.changed-grid h3 { margin-top: 0; }
.changed-grid ul { margin-bottom: 0; padding-left: 1.2rem; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line); margin-top: 4rem;
  background: var(--surface); padding: 2rem 0 2.5rem;
  font-size: 0.9375rem; color: var(--muted);
}
.site-foot p { margin-bottom: 0.7rem; }
.site-foot a { color: var(--text); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-bottom: 1.25rem; padding: 0; list-style: none; }
.foot-nav a { color: var(--muted); text-decoration: none; }
.foot-nav a:hover { color: var(--text); text-decoration: underline; }
.disclaimer {
  border: 1px solid var(--line); border-radius: 6px; padding: 0.9rem 1.1rem;
  font-size: 0.875rem; margin-bottom: 1.5rem; color: var(--muted); background: var(--bg);
}

/* ---------- 404 ---------- */
.err-wrap { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }
.err-code { font-family: var(--mono); color: var(--brass); font-size: 0.9375rem; letter-spacing: 0.1em; }

/* ---------- homepage hero ---------- */
.kicker {
  font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brass-bright); margin: 0 0 0.25rem;
}
.hero { padding-top: 1.25rem; }
.hero h1 { font-size: clamp(2.25rem, 7vw, 3.4rem); margin: 0.25rem 0 1rem; }
.hero .standfirst { font-size: 1.25rem; max-width: 40rem; }
.hero .capture { margin: 2rem 0 1.1rem; }
.hero-alt { color: var(--muted); }

/* ---------- moment strip ---------- */
.moment {
  background: var(--surface); border: 1px solid rgba(138, 107, 34, 0.45);
  border-radius: 6px; padding: 0.9rem 1.1rem; margin: 2.25rem 0;
  font-size: 0.9375rem;
}
.moment p { margin: 0; }
.moment-date {
  font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--brass-bright); margin-right: 0.7em;
  white-space: nowrap;
}

/* ---------- fact grid (why us) ---------- */
.fact-grid { display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 680px) { .fact-grid { grid-template-columns: 1fr 1fr; } }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.1rem; }
.fact-lead {
  display: block; font-family: var(--mono); font-size: 0.8125rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass-bright);
  margin-bottom: 0.35rem;
}
.fact p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

/* ---------- cards (store + guides + learn index) ---------- */
.card-grid { display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 680px) { .card-grid { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 1.15rem 1.25rem;
}
.card h3 { margin: 0 0 0.45rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
a.card { display: block; text-decoration: none; color: var(--text); }
a.card h3 { color: var(--brass-bright); }
a.card:hover { border-color: var(--brass); }
a.card:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
