/* ============================================================
   Viking Recon Beard Gear — public site
   Dark theme only. Warm near-black, brand gold, scent accents.
   ============================================================ */

/* Self-hosted fonts (OFL) — latin variable subsets. No third-party request. */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/cinzel.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/source-sans-3.woff2') format('woff2');
}

:root {
  --ink:        #0C0A07;
  --ink-2:      #17130D;
  --ink-3:      #1F1912;
  --parchment:  #E9DDC4;
  --parchment-2:#B7AB8F;
  --gold:       #C9A24B;
  --gold-2:     #8C6D2F;
  --ironbark:   #B4622D;
  --coldsteel:  #4E8153;
  --odin:       #4A6BB0;
  --danger:     #B84A3E;

  --maxw: 1100px;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0,0,0,.55);
  --font-display: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--ink);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Faint grain overlay — subtle, does not tank load (inline SVG turbulence). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
main, header, footer { position: relative; z-index: 2; }

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--parchment); }

/* ---------- shared layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 68px 0; }
.section-tight { padding: 44px 0; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0; }
h2.section-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  color: var(--parchment);
  letter-spacing: .02em;
}
.section-sub { color: var(--parchment-2); margin: 10px 0 0; font-size: 17px; }
.center { text-align: center; }

/* gold double-rule divider (echoes the menu graphic) */
.rule {
  border: 0;
  height: 6px;
  width: 120px;
  margin: 22px auto;
  background:
    linear-gradient(var(--gold), var(--gold)) center/100% 2px no-repeat,
    linear-gradient(var(--gold-2), var(--gold-2)) center 5px/70% 1px no-repeat;
  position: relative;
}
.rule::before {
  content: "◆";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -55%);
  color: var(--gold);
  font-size: 12px;
  background: var(--ink);
  padding: 0 8px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .12s ease, background .18s ease, box-shadow .18s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #1a1305;
  box-shadow: 0 4px 16px rgba(201,162,75,.28);
}
.btn-primary:hover { color: #1a1305; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(201,162,75,.4); }
.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold-2);
}
.btn-outline:hover { background: rgba(201,162,75,.12); color: var(--parchment); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn:active { transform: translateY(0) scale(.99); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(12,10,7,.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(140,109,47,.35);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand b { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .06em; color: var(--gold); }
.nav-cta { font-size: 13px; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 56px 0 40px; position: relative; }
.hero::after { /* soft gold glow */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 50% at 50% 30%, rgba(201,162,75,.14), transparent 70%);
}
.hero-logo { width: min(200px, 46vw); height: auto; margin: 0 auto 22px; border-radius: 50%; }
.hero h1 {
  font-size: clamp(30px, 7vw, 58px);
  font-weight: 900;
  color: var(--parchment);
  letter-spacing: .015em;
  max-width: 16ch;
  margin: 0 auto;
  text-shadow: 0 2px 20px rgba(0,0,0,.6);
}
.hero .lede { color: var(--parchment-2); font-size: clamp(16px, 2.4vw, 20px); max-width: 46ch; margin: 18px auto 26px; }
.hero-shot {
  margin: 40px auto 0;
  max-width: 620px;
  border: 1px solid var(--gold-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-shot img { width: 100%; height: auto; }

/* ---------- bundle banner ---------- */
.bundle {
  display: block;
  text-align: center;
  margin: 0 auto;
  max-width: var(--maxw);
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(201,162,75,.06), rgba(201,162,75,.14), rgba(201,162,75,.06));
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .14em;
  font-size: clamp(15px, 2.5vw, 20px);
  padding: 14px 18px;
  text-transform: uppercase;
}
a.bundle:hover { color: var(--parchment); border-color: var(--parchment); }

/* ---------- armory / product grid ---------- */
.group-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  font-size: 22px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 40px 0 20px;
  text-align: center;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.card {
  background: var(--ink-2);
  border: 1px solid rgba(140,109,47,.4);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .14s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--gold); }
.card-media { position: relative; aspect-ratio: 1 / 1; background: var(--ink-3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(201,162,75,.10), transparent 70%),
    var(--ink-3);
}
.card-ph img { width: 58%; height: auto; opacity: .55; }
.sold-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--danger); color: #fff;
  font-weight: 600; font-size: 12px; letter-spacing: .06em;
  padding: 6px 10px; border-radius: 6px;
  text-transform: uppercase;
}
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: .02em;
}
.card-format { color: var(--parchment-2); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.card-desc { color: var(--parchment); font-size: 15px; line-height: 1.5; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--parchment); }
.stock { font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.stock.in { color: var(--coldsteel); }
.stock.low { color: var(--danger); }
.stock.out { color: var(--parchment-2); }
.card .btn { margin-top: 12px; }

/* sold-out card treatment */
.card.is-out .card-media img,
.card.is-out .card-ph { filter: saturate(.4) brightness(.8); }
.card.is-out { opacity: .92; }

/* scent accent colors on product names */
.scent-ironbark { color: var(--ironbark); }
.scent-coldsteel { color: var(--coldsteel); }
.scent-odin { color: var(--odin); }

/* ---------- scent guide ---------- */
.scents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.scent-col {
  background: var(--ink-2);
  border: 1px solid rgba(140,109,47,.3);
  border-top: 3px solid var(--gold-2);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.scent-col h3 { font-size: 21px; letter-spacing: .06em; margin-bottom: 10px; }
.scent-col.ironbark { border-top-color: var(--ironbark); }
.scent-col.coldsteel { border-top-color: var(--coldsteel); }
.scent-col.odin { border-top-color: var(--odin); }
.scent-col.ironbark h3 { color: var(--ironbark); }
.scent-col.coldsteel h3 { color: var(--coldsteel); }
.scent-col.odin h3 { color: var(--odin); }
.scent-col p { color: var(--parchment-2); margin: 0; font-size: 15.5px; }

/* ---------- split feature (about / wholesale) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.feature.reverse .feature-media { order: 2; }
.feature-media {
  border: 1px solid var(--gold-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.feature-body h2 { margin-bottom: 8px; }
.feature-body p { color: var(--parchment-2); margin: 16px 0; }
.feature-body p.lead { color: var(--parchment); font-size: 18px; }
.bg-panel { background: var(--ink-2); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid rgba(140,109,47,.35);
  background: var(--ink-2);
  padding: 46px 0 30px;
  text-align: center;
}
.site-footer img.f-logo { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 14px; }
.site-footer .tagline { font-family: var(--font-display); color: var(--gold); letter-spacing: .06em; margin-bottom: 16px; }
.f-links { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin: 14px 0; font-size: 15px; }
.f-meta { color: var(--parchment-2); font-size: 14px; margin-top: 18px; }
.f-legal { color: var(--parchment-2); font-size: 12.5px; margin-top: 10px; }
/* discreet but AA-compliant (4.72:1 on the footer panel) */
.owner-login { color: #8A8066; font-size: 12px; }
.owner-login:hover { color: var(--parchment); }

/* ---------- states ---------- */
.loading, .empty { text-align: center; color: var(--parchment-2); padding: 40px 0; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .scents { grid-template-columns: 1fr; gap: 18px; }
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature.reverse .feature-media { order: 0; }
  .section { padding: 52px 0; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .brand b { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
