/* Arms & Ammo Log — the one stylesheet (ADR 0003). Design tokens live only in :root below,
   taken from the app's theme (AmmoTracker ui/theme/AmmoColors.kt) and James's picks
   (2026-09-28, 2026-10-03): always the light theme, brass only for the main action,
   brass underlined links, deeper brass on hover, ink outline on card hover, two text shades.
   Every text/background pair below meets WCAG AA. */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/barlow-condensed-700.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #F4F4F1;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --border: #DFE0DC;
  --text: #17191C;
  --text-secondary: #565D65;
  --text-tertiary: #565D65;
  --accent: #86661C;
  --accent-hover: #6F5416;
  --accent-tint: #7A5B15;
  --on-accent: #FFFFFF;
  --loss: #B3261E;
  --gain: #1D6A3A;
  --font-text: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", "Barlow", sans-serif;
  --content-width: 740px;
  --page-width: 1120px;
  --radius: 4px;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.55 var(--font-text); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 64px); }
h2 { font-size: clamp(30px, 4vw, 40px); }
h3 { font-size: 24px; }
p { margin: 0; }
a:not(.store-badge):not(.btn):not(.card-link) { color: var(--accent-tint); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent-tint) 45%, transparent); text-underline-offset: 3px; }
a:not(.store-badge):not(.btn):not(.card-link):hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--page-width); margin: 0 auto; padding-inline: 20px; }
.content { max-width: var(--content-width); margin: 0 auto; padding-inline: 20px; }
.muted { color: var(--text-secondary); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.site-nav { max-width: var(--page-width); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.nav-logo img { width: 36px; height: 36px; border-radius: var(--radius); }
.nav-logo span { font: 700 26px/1 var(--font-display); }
.nav-links { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.store-badge) { color: var(--text); text-decoration: none; font-weight: 600; font-size: 17px; }
.nav-links a:not(.store-badge):hover, .nav-links a.active:not(.store-badge) { color: var(--accent-tint); }
.hamburger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1.5px solid var(--text); border-radius: var(--radius); background: transparent; padding: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text); }
@media (max-width: 960px) {
  .site-nav { flex-wrap: wrap; }
  .hamburger { display: flex; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0; margin: 8px 0 0; border-top: 1.5px solid var(--text); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--border); padding: 12px 0; }
}

/* ── Buttons, store badge ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: var(--radius); font: 600 17px/1 var(--font-text); text-decoration: none; background: var(--accent); color: var(--on-accent); }
.btn:hover { background: var(--accent-hover); }
.btn.outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.btn.outline:hover { background: transparent; box-shadow: inset 0 0 0 2.5px var(--text); }

/* Google Play's badge is Google's brand asset: white lockup on black, never recoloured by a
   link rule (check-content.mjs enforces it). Before launch it shows "Coming soon" with no
   link (ADR 0008). */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; text-decoration: none; border: 1px solid #3a3a3c; border-radius: 8px; padding: 8px 16px 8px 12px; min-height: 52px; }
.store-badge .sb-txt { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge .sb-sm { font-size: 12px; opacity: .85; }
.store-badge .sb-lg { font-size: 19px; font-weight: 600; }
.store-badge[aria-disabled="true"] { opacity: .72; cursor: default; }
a.store-badge:hover { background: #1a1a1c; border-color: #555; }
.store-note { font-size: 15px; color: var(--text-secondary); }

/* ── Sections ─────────────────────────────────────────────────────────── */
section { padding-block: 56px; }
.section-head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 12px; border-bottom: 1.5px solid var(--text); margin-bottom: 8px; }
.lede { font-size: 21px; color: var(--text-secondary); max-width: 60ch; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: 40px 56px; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.hero-proof { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--text-secondary); font-size: 16px; }
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 18px; height: 18px; flex: none; stroke: var(--text); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-shot { justify-self: center; max-width: 340px; }
.phone { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .18)); }

/* Feature tiles (home): whole tile is a link; ink outline on hover. */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.card-link { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: border-color .15s; }
.card-link:hover { border-color: var(--text); background: var(--bg-card-hover); }
.card-link h3 { font-size: 24px; }
.card-link p { color: var(--text-secondary); font-size: 16px; }
.card-link .more { color: var(--accent-tint); font-weight: 600; font-size: 15px; margin-top: auto; }

/* Privacy claims: the one panel with an outline (the app's privacy panel). */
.promise { border: 1.5px solid var(--text); border-radius: var(--radius); background: var(--bg-card); padding: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
.promise h2 { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.promise h2 svg { width: 30px; height: 30px; stroke: var(--text); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.claim { display: flex; gap: 14px; }
.claim svg { width: 24px; height: 24px; margin-top: 3px; flex: none; stroke: var(--text); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.claim b { display: block; font-weight: 600; }
.claim p { color: var(--text-secondary); font-size: 16px; }
.promise .check { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 16px; color: var(--text-secondary); font-size: 15px; }

/* Free and Pro */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.plan { border-top: 1.5px solid var(--text); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.plan ul { margin: 0; padding-left: 20px; color: var(--text-secondary); font-size: 17px; display: flex; flex-direction: column; gap: 6px; }

/* FAQ */
.faq { margin-top: 8px; }
.faq-item { border-bottom: 1px solid var(--border); padding-block: 18px; }
.faq-q { font: 600 20px/1.3 var(--font-text); margin: 0 0 6px; }
.faq-item p { color: var(--text-secondary); font-size: 17px; }

/* Closing call to action */
.closing { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.closing .store-badges { justify-content: center; }

/* ── Features page ────────────────────────────────────────────────────── */
.breadcrumb { font-size: 15px; color: var(--text-secondary); padding-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.page-head { padding-block: 24px 8px; display: flex; flex-direction: column; gap: 14px; }
.feature { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: center; padding-block: 48px; border-top: 1.5px solid var(--text); }
.feature:nth-of-type(even) { grid-template-columns: 300px 1fr; }
.feature:nth-of-type(even) .feature-shot { order: -1; }
.feature-copy { display: flex; flex-direction: column; gap: 14px; }
.feature-copy ul { margin: 0; padding-left: 20px; color: var(--text-secondary); display: flex; flex-direction: column; gap: 6px; }
.feature-shot { max-width: 300px; justify-self: center; }

/* ── Articles: support, privacy, terms ────────────────────────────────── */
.article { padding-block: 16px 64px; }
.article h1 { margin-bottom: 8px; }
.article h2 { font-size: 30px; margin-top: 40px; padding-bottom: 8px; border-bottom: 1.5px solid var(--text); }
.article p, .article li { color: var(--text); }
.article p + p, .article ul, .article ol { margin-top: 12px; }
.article li + li { margin-top: 6px; }
.updated { color: var(--text-secondary); font-size: 15px; }
.contact { margin-top: 28px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.article .contact-h { font: 600 20px/1.3 var(--font-text); margin: 0 0 6px; border: 0; padding: 0; }

/* 404 */
.not-found { padding-block: 64px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.not-found ul { margin: 0; padding-left: 20px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
footer { border-top: 1.5px solid var(--text); margin-top: 32px; }
.footer-cols { max-width: var(--page-width); margin: 0 auto; padding: 32px 20px 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h2 { font-size: 20px; margin-bottom: 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a:not(.store-badge) { color: var(--text-secondary); text-decoration: none; font-size: 16px; }
.footer-col a:not(.store-badge):hover { color: var(--text); text-decoration: underline; }
.footer-copy { max-width: var(--page-width); margin: 0 auto; padding: 8px 20px 32px; color: var(--text-tertiary); font-size: 14px; }

/* ── Small screens ────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  body { font-size: 17px; }
  section { padding-block: 40px; }
  .hero, .feature, .feature:nth-of-type(even) { grid-template-columns: 1fr; gap: 28px; }
  .feature:nth-of-type(even) .feature-shot { order: 0; }
  .hero-shot { max-width: 280px; }
  .tiles, .plans, .promise, .footer-cols { grid-template-columns: 1fr; }
  .promise { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .card-link { transition: none; } }
