/* ============================================================
   Boots to Benefits — luxury veteran authority
   Palette: warm near-black, bone, stone, restrained brass
   Type: Fraunces (display serif) + Mulish (humanist sans)
   ============================================================ */

:root {
  --ink:        #12120d;
  --ink-2:      #17170f;
  --surface:    #1c1b13;
  --surface-2:  #232116;
  --bone:       #ece6d8;
  --bone-dim:   #d7cfbd;
  --stone:      #a49b86;
  --stone-dim:  #857c69;
  --brass:      #b89968;
  --brass-lit:  #d8b884;
  --line:       rgba(184, 153, 104, 0.22);
  --line-soft:  rgba(236, 230, 216, 0.09);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 3px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--brass-lit); text-decoration: none; }
a:hover { color: var(--bone); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

section[id] { scroll-margin-top: 88px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--brass); color: var(--ink); padding: 0.6rem 1rem; border-radius: var(--radius);
  font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--brass-lit); outline-offset: 3px; }

/* ---------- Shared type ---------- */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.4rem;
}
.eyebrow-center { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--bone);
  margin: 0;
}

.section-sub { color: var(--stone); margin: 0.9rem 0 0; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn-brass {
  background: var(--brass);
  color: #1a1509;
  border-color: var(--brass);
}
.btn-brass:hover { background: var(--brass-lit); border-color: var(--brass-lit); color: #1a1509; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brass); color: var(--bone); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 18, 13, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.wordmark { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--bone); }
.wordmark:hover { color: var(--bone); }
.boot-mark { width: 34px; height: 35px; flex: none; }
.bm-sole { fill: #5a4630; }
.bm-lug { fill: #3a2c1d; }
.bm-upper { fill: #c49b62; }
.bm-seam { fill: none; stroke: #7d5f38; stroke-width: 1.2; stroke-linecap: round; }
.bm-lace { fill: none; stroke: var(--brass-lit); stroke-width: 1.5; stroke-linecap: round; }
.bm-eyelet { fill: #33271a; }

/* Rifles + helmet crest */
.crest { width: 78px; height: 78px; display: block; margin: 0 0 1.6rem; }
.r-metal { fill: #4a4740; }
.r-wood { fill: #c49b62; }
.h-dome { fill: #c49b62; }
.h-brim { fill: #33271a; }
.wordmark-text { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: 0.02em; }
.wordmark-text .amp {
  font-family: var(--font-body); font-weight: 600; font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--brass); padding: 0 0.42em; vertical-align: middle;
}
.header-cta { padding: 0.6rem 1.15rem; font-size: 0.86rem; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 7vw, 6rem); position: relative; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.hero-inner { max-width: 900px; }
.hero-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2.35rem, 5.6vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin: 0 0 1.5rem;
  color: var(--bone);
}
.lede {
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
  line-height: 1.6;
  color: var(--bone-dim);
  max-width: 34ch;
  margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 1.4rem; }
.reassure { color: var(--stone-dim); font-size: 0.9rem; margin: 0; }

/* Hero figure */
.hero-figure { margin: 0; position: relative; }
.figure-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background:
    linear-gradient(160deg, rgba(184,153,104,0.06), rgba(0,0,0,0) 40%),
    var(--ink-2);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.8);
}
.figure-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 72%;
  border-radius: 2px;
  filter: saturate(0.86) contrast(1.03) brightness(0.9);
}
.figure-scrim {
  position: absolute; inset: 10px;
  border-radius: 2px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18,18,13,0.55) 0%, rgba(18,18,13,0) 32%, rgba(18,18,13,0) 55%, rgba(18,18,13,0.72) 100%),
    linear-gradient(90deg, rgba(18,18,13,0.35), rgba(18,18,13,0) 25%, rgba(18,18,13,0) 75%, rgba(18,18,13,0.35));
}
.dogtag {
  position: absolute;
  left: 50%; bottom: 26px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--bone);
  background: rgba(18,18,13,0.6);
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 0.5rem 1.05rem;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.dogtag .dot { color: var(--brass); }

/* ---------- Problem ---------- */
.problem { padding-block: clamp(4rem, 9vw, 7.5rem); }
.problem-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.problem-statement {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(1.55rem, 3.4vw, 2.5rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--bone);
  margin: 0 0 1.5rem;
}
.problem-statement em { font-style: italic; color: var(--brass-lit); }
.problem-sub { color: var(--stone); font-size: 1.08rem; max-width: 56ch; margin: 0 auto; }

/* ---------- Value ---------- */
.value { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line-soft); }
.section-head { max-width: 620px; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 2.6vw, 2.3rem);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--brass), transparent 70%);
  opacity: 0.7;
}
.card:hover { transform: translateY(-4px); border-color: var(--line); background: var(--surface-2); }
.card-eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 0.9rem;
}
.card-title {
  font-family: var(--font-display); font-weight: 500; font-optical-sizing: auto;
  font-size: 1.5rem; line-height: 1.12; letter-spacing: -0.01em;
  color: var(--bone); margin: 0 0 0.7rem;
}
.card-body { color: var(--stone); font-size: 0.99rem; margin: 0; }

/* ---------- Tool band ---------- */
.tool-band { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--line-soft); }
.tool-band-inner {
  max-width: 720px; margin: 0 auto; text-align: center;
  background: linear-gradient(160deg, rgba(184,153,104,0.09), rgba(0,0,0,0) 55%), var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.6rem);
  box-shadow: 0 30px 70px -35px rgba(0,0,0,0.8);
}
.tool-band .eyebrow { text-align: center; }
.tool-band-sub { color: var(--stone); font-size: 1.05rem; line-height: 1.62; max-width: 54ch; margin: 1rem auto 1.9rem; }

/* ---------- Signup ---------- */
.signup { padding-block: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--line-soft); }
.signup-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.signup-sub { color: var(--stone); font-size: 1.08rem; margin: 1rem 0 0; max-width: 42ch; }
.signup-card {
  background: linear-gradient(160deg, rgba(184,153,104,0.08), rgba(0,0,0,0) 45%), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: 0 30px 70px -35px rgba(0,0,0,0.8);
}
.signup-card label {
  display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 0.6rem;
}
.signup-card input {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--bone);
  font-family: var(--font-body); font-size: 1.02rem;
  padding: 0.9rem 1rem;
  margin-bottom: 0.9rem;
}
.signup-card input::placeholder { color: var(--stone-dim); }
.signup-card input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(184,153,104,0.18); }
.form-note { color: var(--stone-dim); font-size: 0.85rem; margin: 0.9rem 0 0; }
.formkit-fields { display: contents; }
.formkit-alert { display: none; margin: 0.9rem 0 0; font-size: 1rem; font-weight: 600; line-height: 1.45; }
.formkit-alert-success { color: var(--brass-lit); }
.formkit-alert-error { color: #e6a980; }
/* Kit removes the fields wrapper on success, so reveal the confirmation then */
#signup-form:not(:has(.formkit-fields)) .formkit-alert-success { display: block; }
#signup-form:not(:has(.formkit-fields)) .form-note { display: none; }
.formkit-alert-error[data-active], .formkit-alert-error:not(:empty) { display: block; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding-block: clamp(2.6rem, 5vw, 4rem); background: var(--ink-2); }
.footer-inner { max-width: 720px; }
.footer-brand { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.02em; color: var(--bone); margin: 0 0 0.4rem; }
.footer-tag { color: var(--brass); font-weight: 600; font-size: 0.95rem; margin: 0 0 1.3rem; }
.footer-disclaimer { color: var(--stone-dim); font-size: 0.86rem; line-height: 1.6; margin: 0 0 1.2rem; }
.footer-contact { color: var(--stone); font-size: 0.92rem; margin: 0 0 0.5rem; }
.footer-copy { color: var(--stone-dim); font-size: 0.82rem; margin: 0; }

/* ---------- Load animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-figure { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.19s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.26s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.33s; }
  .hero-figure { animation-delay: 0.18s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-figure { order: -1; max-width: 460px; }
  .lede { max-width: 46ch; }
  .signup-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .header-cta { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .figure-frame img { aspect-ratio: 4 / 5; }
}

/* ============ ARTICLE / GUIDES ============ */
.article-shell { padding: clamp(1.5rem, 4vw, 3rem) 0 1rem; }
.article-wrap { max-width: 760px; margin: 0 auto; padding-inline: var(--gutter); }
.breadcrumb { font-family: var(--font-body); font-size: 0.82rem; color: var(--stone-dim); margin: 0 0 1.4rem; letter-spacing: 0.01em; }
.breadcrumb a { color: var(--stone); }
.breadcrumb a:hover { color: var(--brass-lit); }
.breadcrumb span { color: var(--stone-dim); margin: 0 0.4rem; }
.article-head { margin-bottom: 1.8rem; }
.article-cat { font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); margin: 0 0 0.7rem; }
.article-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.12; letter-spacing: -0.01em; color: var(--bone); margin: 0; }
.article-meta { font-family: var(--font-body); font-size: 0.85rem; color: var(--stone-dim); margin: 1rem 0 0; }
.article-dek { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.1rem, 2.4vw, 1.35rem); line-height: 1.5; color: var(--bone-dim); margin: 1.2rem 0 0; }

.prose { font-family: var(--font-body); color: var(--bone-dim); font-size: 1.06rem; line-height: 1.72; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 3vw, 1.75rem); line-height: 1.25; color: var(--bone); margin-top: 2.6rem; margin-bottom: 0.2rem; letter-spacing: -0.01em; }
.prose h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.12rem; color: var(--bone); margin-top: 1.8rem; margin-bottom: 0.1rem; }
.prose p { margin: 1.15rem 0 0; }
.prose strong { color: var(--bone); font-weight: 700; }
.prose a { color: var(--brass-lit); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.prose a:hover { color: var(--bone); text-decoration-color: var(--brass-lit); }
.prose ul, .prose ol { margin: 1.1rem 0 0; padding-left: 1.3rem; }
.prose li { margin: 0.5rem 0; }
.prose li::marker { color: var(--brass); }
.prose blockquote { margin: 1.6rem 0 0; padding: 0.2rem 0 0.2rem 1.2rem; border-left: 2px solid var(--brass); color: var(--bone); font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; }

/* Callout: key point / plain-English box */
.callout { margin: 1.8rem 0 0; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.callout .callout-label { font-family: var(--font-body); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); margin: 0 0 0.4rem; }
.callout p { margin: 0.3rem 0 0; font-size: 1rem; color: var(--bone-dim); }
.callout p:first-of-type { margin-top: 0; }

/* Source / citation note */
.source-note { font-size: 0.9rem; color: var(--stone); }

/* Article table */
.prose .table-wrap { overflow-x: auto; margin: 1.6rem 0 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line-soft); }
.prose th { color: var(--brass); font-family: var(--font-body); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; }
.prose td { color: var(--bone-dim); }

/* In-article CTA to the tools */
.article-cta { margin: 2.4rem 0 0; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--brass); border-radius: 12px; padding: 1.4rem 1.5rem; }
.article-cta h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; color: var(--bone); margin: 0 0 0.4rem; }
.article-cta p { margin: 0 0 1rem; color: var(--stone); font-size: 0.98rem; line-height: 1.55; }
.article-cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* Disclaimer strip in-article */
.article-disclaimer { margin: 2.4rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); font-size: 0.86rem; color: var(--stone-dim); line-height: 1.6; }

/* Related / next reads */
.related { margin: 2.8rem 0 0; }
.related h2 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); margin: 0 0 1rem; }
.related-list { display: grid; gap: 0.7rem; }
.related-list a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.1rem; color: var(--bone-dim); font-weight: 600; }
.related-list a:hover { border-color: var(--brass); color: var(--bone); }

/* Guides index */
.guides-hero { padding: clamp(1.6rem, 4vw, 2.6rem) 0 0.5rem; }
.guides-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.guide-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem 1.3rem; transition: border-color 0.18s ease, transform 0.18s ease; }
.guide-card:hover { border-color: var(--brass); transform: translateY(-2px); }
.guide-card .gc-cat { font-family: var(--font-body); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); margin: 0 0 0.5rem; }
.guide-card .gc-title { font-family: var(--font-display); font-weight: 500; font-size: 1.22rem; line-height: 1.25; color: var(--bone); margin: 0; }
.guide-card .gc-sub { color: var(--stone); font-size: 0.92rem; line-height: 1.5; margin: 0.5rem 0 0; }
