/* Bear Arms Defense — site styles */
:root {
  --paper: #ffffff;
  --ink: #101418;
  --ink-70: rgba(16, 20, 24, 0.62);
  --ink-60: rgba(16, 20, 24, 0.6);
  --rule: rgba(16, 20, 24, 0.1);
  --stone: #f4f5f6;
  --accent: oklch(0.5 0.11 235);
  --accent-dark: oklch(0.4 0.11 235);
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Junicode, "EB Garamond", Georgia, serif;
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { color: var(--paper); background: var(--accent); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
a:focus-visible,
button:focus-visible,
input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 52px; }
.mono { font-family: var(--mono); font-size: 0.78em; letter-spacing: 0.01em; }
.sc { color: rgba(16, 20, 24, 0.62); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

h1,
h2,
h3 { margin: 0; font-weight: 400; }
h1 { font-size: 40px; line-height: 1.16; letter-spacing: -0.018em; text-wrap: pretty; }
h2 { font-size: 25px; line-height: 1.28; letter-spacing: -0.01em; text-wrap: pretty; }
h3 { font-size: 17px; line-height: 1.35; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }

.top { border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 26px; padding-bottom: 26px; }
.brand { color: var(--ink); font-size: 16px; font-weight: 700; letter-spacing: 0.02em; }
.brand:hover { color: var(--ink); text-decoration: none; }
nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
nav a { color: rgba(16, 20, 24, 0.6); }
nav a:hover,
nav a[aria-current="page"] { color: var(--ink); }
nav a.req { color: var(--accent); font-weight: 700; }

.hero { padding-block: 96px 76px; }
.hero h1 { max-width: 900px; }
.hero p.lede { max-width: 640px; margin-top: 26px; color: var(--ink-70); font-size: 17px; line-height: 1.68; }
.actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 24px; color: var(--paper); background: var(--ink); font-size: 15px; font-weight: 700; }
.btn:hover { color: var(--paper); background: #252b30; text-decoration: none; }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); }
.note { color: rgba(16, 20, 24, 0.5); font-size: 14.5px; }

.facts { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts div { padding: 26px 24px 24px; border-left: 1px solid rgba(16, 20, 24, 0.07); }
.facts div:first-child { border-left: 0; }
.facts dt { color: rgba(16, 20, 24, 0.64); font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; }
.facts dd { margin: 8px 0 0; font-family: var(--mono); font-size: 15px; font-weight: 500; }

.sect { padding: 76px 0 0; }
.sect .grid { display: grid; grid-template-columns: 190px 1fr; gap: 52px; }
.rows > div { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; padding: 24px 0; border-top: 1px solid var(--rule); }
.rows p { color: var(--ink-70); }
.reg { max-width: 720px; }
.reg .row { display: flex; gap: 22px; padding: 16px 0; border-top: 1px solid var(--rule); }
.reg .code { width: 86px; flex: none; color: var(--accent); font-family: var(--mono); font-size: 12.5px; font-weight: 500; }
.reg .row p { color: rgba(16, 20, 24, 0.66); font-size: 15.5px; line-height: 1.62; }
.draft { margin-top: 16px; padding: 11px 13px; color: #3d4247; background: var(--stone); border-left: 2px solid #6b7076; font-size: 13.5px; line-height: 1.55; }

.gate { display: grid; grid-template-columns: 1fr 330px; align-items: center; gap: 52px; margin: 76px 0 0; padding: 44px 48px; background: var(--stone); }
.gate h2 { margin-top: 12px; }
.gate p { max-width: 470px; margin-top: 11px; color: rgba(16, 20, 24, 0.6); font-size: 15.5px; line-height: 1.65; }
form.access { display: flex; flex-direction: column; gap: 10px; }
form.access label { display: block; }
form.access input { width: 100%; height: 40px; padding: 0 12px; color: var(--ink); background: var(--paper); border: 1px solid rgba(16, 20, 24, 0.16); border-radius: 0; font: 400 15.5px/1 Junicode, "EB Garamond", Georgia, serif; }
form.access input::placeholder { color: rgba(16, 20, 24, 0.38); }
form.access button { height: 42px; color: var(--paper); background: var(--accent); border: 0; font: 700 15.5px/1 Junicode, "EB Garamond", Georgia, serif; cursor: pointer; }
form.access button:hover { background: var(--accent-dark); }
.fine { color: rgba(16, 20, 24, 0.55); font-family: var(--mono); font-size: 11px; line-height: 1.5; }

.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.office { padding-top: 21px; border-top: 1px solid var(--rule); }
.office .head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.office .addr { margin-top: 9px; color: rgba(16, 20, 24, 0.62); font-size: 15.5px; line-height: 1.62; white-space: pre-line; }
.office .role { margin-top: 10px; color: rgba(16, 20, 24, 0.6); font-size: 14px; }

.docs { max-width: 720px; border-top: 1px solid var(--rule); }
.doc { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 18px 0; color: var(--ink); border-bottom: 1px solid var(--rule); }
a.doc:hover { color: var(--accent); text-decoration: none; }
.doc .meta { color: var(--ink-60); font-family: var(--mono); font-size: 12px; }

.foot { margin-top: 80px; padding: 52px 0; border-top: 1px solid var(--rule); }
.foot .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot h2 { font-size: 23px; }
.foot p { max-width: 520px; margin-top: 9px; color: rgba(16, 20, 24, 0.6); font-size: 15.5px; line-height: 1.65; }
.foot .contact { margin-top: 14px; color: var(--ink); font-family: var(--mono); font-size: 13px; }
.foot .legal { color: rgba(16, 20, 24, 0.55); font-size: 13px; line-height: 1.7; text-align: right; }

@media (prefers-reduced-motion: no-preference) {
  a,
  button { transition: color 160ms ease, background-color 160ms ease; }
}

@media (max-width: 980px) {
  .wrap { padding: 0 26px; }
  h1 { font-size: 31px; }
  h2 { font-size: 22px; }
  .hero { padding-block: 56px 44px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(odd) { border-left: 0; }
  .sect .grid,
  .rows > div,
  .gate,
  .offices { grid-template-columns: 1fr; gap: 20px; }
  .gate { padding: 28px 26px; }
  .foot .wrap { flex-direction: column; align-items: flex-start; }
  .foot .legal { text-align: left; }
  .top .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  nav { width: 100%; gap: 18px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  nav a { flex: none; }
  nav a.req { margin-left: auto; }
}

@media (max-width: 560px) {
  .wrap { padding-inline: 20px; }
  .top .wrap { padding-top: 20px; padding-bottom: 18px; }
  nav a.req { display: none; }
  .facts { grid-template-columns: 1fr; }
  .facts div,
  .facts div:nth-child(odd) { border-left: 0; border-top: 1px solid var(--rule); }
  .facts div:first-child { border-top: 0; }
  .actions { align-items: flex-start; flex-direction: column; }
  .btn { width: 100%; text-align: center; }
  .reg .row { flex-direction: column; gap: 8px; }
  .gate { margin-top: 58px; padding: 24px 20px; }
  .office .head,
  .doc { align-items: flex-start; }
}
