/* ==========================================================================
   Hunting Gear Supply — base: tokens, reset, typography, layout, utilities
   ========================================================================== */
:root {
  --ink: #0f120d;
  --forest: #1b2419;
  --pine: #26331f;
  --olive: #4b5a36;
  --moss: #6f7d4f;
  --tan: #c9b38a;
  --bone: #f2ede3;
  --paper: #faf8f3;
  --white: #ffffff;
  --blaze: #e0662a;
  --blaze-dark: #c4521b;
  --brass: #b8914f;

  --text: #1d2119;
  --text-muted: #5d6253;
  --text-inv: #ece6d9;
  --text-inv-muted: #a9a594;
  --line: rgba(201, 179, 138, .2);
  --line-dark: rgba(15, 18, 13, .12);

  --success: #4f8a4b;
  --danger: #b94a3b;
  --warning: #c99a2e;

  --f-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-accent: 'Cormorant Garamond', Georgia, serif;

  --fs-hero: clamp(2.7rem, 6.2vw, 5.8rem);
  --fs-h1: clamp(2.5rem, 5.6vw, 5rem);
  --fs-h2: clamp(2.1rem, 4.2vw, 3.6rem);
  --fs-h3: clamp(1.35rem, 2vw, 1.75rem);
  --fs-lead: clamp(1.05rem, 1.3vw, 1.2rem);
  --fs-small: .875rem;

  --gutter: clamp(16px, 4vw, 40px);
  --container: 1320px;
  --section-y: clamp(4.5rem, 10vw, 8.5rem);
  --header-h: 76px;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --sh-1: 0 2px 10px rgba(15, 18, 13, .07);
  --sh-2: 0 24px 60px -18px rgba(15, 18, 13, .35);
  --sh-3: 0 40px 90px -30px rgba(0, 0, 0, .55);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: .25s;
  --t-med: .5s;
  --t-slow: .9s;
}
@media (max-width: 1023px) { :root { --header-h: 64px; } }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0; min-height: 100vh; background: var(--paper); color: var(--text);
  font-family: var(--f-body); font-size: 1rem; line-height: 1.65; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--blaze); color: #fff; }
:focus-visible { outline: 2px solid var(--blaze); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

/* ---------- typography ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--f-display); font-weight: 700; line-height: .98; letter-spacing: -.005em; text-transform: uppercase;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.1; letter-spacing: .01em; }
h4 { font-size: 1.15rem; letter-spacing: .04em; }
p { max-width: 68ch; }
.lead { font-size: var(--fs-lead); color: var(--text-muted); line-height: 1.6; }
.theme-dark .lead, .on-image .lead { color: var(--text-inv-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem;
  font-family: var(--f-accent); font-style: italic; font-size: clamp(1.1rem, 1.4vw, 1.3rem); font-weight: 600;
  color: var(--olive); letter-spacing: .01em;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.theme-dark .eyebrow, .on-image .eyebrow, .page-hero .eyebrow, .hero .eyebrow, .banner .eyebrow { color: var(--tan); }
.text-center .eyebrow { justify-content: center; }
.rich p + p, .rich p + ul, .rich ul + p { margin-top: 1em; }
.rich a { color: var(--blaze); text-decoration: underline; text-underline-offset: 3px; }
.rich ul, .rich ol { padding-left: 1.2em; }
.rich h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 2.2rem 0 .8rem; }
.rich h3 { margin: 1.6rem 0 .6rem; }
.rich strong { font-weight: 600; }

/* ---------- layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2 * var(--gutter), 880px); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section-sm { padding-block: clamp(3rem, 6vw, 5rem); }
.theme-dark { background: var(--ink); color: var(--text-inv); }
.theme-forest { background: var(--forest); color: var(--text-inv); }
.theme-bone { background: var(--bone); }
.theme-paper { background: var(--paper); }
.theme-white { background: #fff; }
.theme-forest .eyebrow { color: var(--tan); }
.theme-forest .lead { color: var(--text-inv-muted); }

.section-head { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: flex-end; justify-content: space-between; margin-bottom: clamp(2.2rem, 4.5vw, 3.8rem); }
.section-head > div { max-width: 720px; }
.section-head h2 + .lead { margin-top: 1rem; }
.section-head.text-center { justify-content: center; text-align: center; }
.section-head.text-center > div { margin-inline: auto; }
.section-head.text-center .lead { margin-inline: auto; }

/* decorative textures */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.topo { position: relative; isolation: isolate; }
.topo::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600' fill='none' stroke='%23c9b38a' stroke-width='1.2'%3E%3Cpath d='M-20 120c80-40 140 30 220 0s120-90 210-50 120 60 210 20'/%3E%3Cpath d='M-20 170c90-40 150 40 230 5s120-80 200-45 130 70 210 30'/%3E%3Cpath d='M-20 230c70-30 160 50 240 10s140-70 210-40 110 60 190 25'/%3E%3Cpath d='M-20 300c100-50 160 40 250 0s110-60 190-30 130 50 200 20'/%3E%3Cpath d='M-20 370c80-20 150 50 240 20s130-80 200-50 120 70 200 30'/%3E%3Cpath d='M-20 440c90-40 140 30 220 5s140-70 210-40 110 60 210 20'/%3E%3Cpath d='M-20 510c100-30 150 40 240 10s120-70 200-40 130 50 200 20'/%3E%3Cellipse cx='420' cy='120' rx='60' ry='30'/%3E%3Cellipse cx='420' cy='120' rx='30' ry='14'/%3E%3Cellipse cx='150' cy='470' rx='70' ry='34'/%3E%3Cellipse cx='150' cy='470' rx='38' ry='17'/%3E%3C/svg%3E");
  background-size: 600px;
}

/* image helpers */
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.media { position: relative; overflow: hidden; background: var(--pine); }
.media > img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- utilities ---------- */
.text-center { text-align: center; }
.text-center p { margin-inline: auto; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-6 { margin-top: 3rem; }
.muted { color: var(--text-muted); }
.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; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--blaze); color: #fff; padding: .7rem 1rem; border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { top: 1rem; }
.no-scroll { overflow: hidden; }

/* ---------- reveal animations ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translate3d(-36px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(36px, 0, 0); }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="clip"] img { transform: scale(1.18); transition: transform 1.6s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="clip"].is-in img { transform: scale(1); }

/* split-line headline reveal */
.split-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.split-line > span { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.is-in .split-line > span, .split-line.is-in > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-reveal="clip"], .js [data-reveal="clip"] img, .split-line > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
