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

/* Self-hosted fonts (OFL) — latin subsets. No third-party request. */
/* Fondamento is the single public-site typeface (headings + body + UI). */
@font-face {
  font-family: 'Fondamento';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/fondamento.woff2') format('woff2');
}
/* Cinzel + Source Sans 3 are kept for the ADMIN portal only (it loads
   styles.css then admin.css, which overrides the --font-* vars back to these).
   The public site no longer references them, so they aren't preloaded there. */
@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);
  /* Split stack: Fondamento for display (identity), Source Sans 3 for
     information (readability). Admin.css overrides both under body.admin. */
  --font-display: 'Fondamento', Georgia, 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 knot divider under section headings (brand ornament) */
.divider {
  display: block;
  width: 120px;
  height: auto;
  margin: 20px auto;
  opacity: .9;
}

/* faint vegvisir watermark behind "The Scents" — background texture only */
.scents-section { position: relative; overflow: hidden; }
.scents-section .wrap { position: relative; }
.section-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 720px;   /* intrinsic size — never upscale/blur */
  height: auto;
  opacity: .06;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
/* keep the real content above the watermark */
.scents-section .center,
.scents-section .scents { position: relative; z-index: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display); /* button labels are display type */
  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);
}
/* gold knot braid replaces the plain bottom border */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: url('/assets/knot-divider-gold.png') repeat-x; background-size: contain;
  opacity: .4; pointer-events: none;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.brand b { font-family: var(--font-display); font-weight: 700; color: var(--gold); white-space: nowrap; }
.wordmark-full { font-size: 15px; letter-spacing: .07em; }
.wordmark-full .rune { color: var(--gold-2); }
.wordmark-mobile { display: none; font-size: 16px; letter-spacing: .06em; }

/* desktop primary nav — links then the Shop button, on the right */
.site-nav { display: flex; align-items: center; gap: 24px; flex: none; }
.site-nav > a:not(.btn) {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.site-nav > a:not(.btn):hover { color: var(--parchment); }
.nav-cta { font-size: 13px; }

/* hamburger — mobile only */
.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0; flex: none;
  background: transparent;
  border: 1px solid var(--gold-2);
  border-radius: 8px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle:hover { background: rgba(201,162,75,.12); }
.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 5px; width: 20px; }
.nav-toggle-bars span { display: block; height: 2px; width: 100%; background: var(--gold); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* slide-down mobile menu */
.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  display: flex; flex-direction: column;
  /* Fully opaque so hero content never bleeds through the links. (A translucent
     bg + backdrop-filter rendered see-through on some mobile GPUs.) */
  background: #0A0805;
  border-top: 1px solid rgba(140,109,47,.35);
  padding: 6px 20px 14px;
  transform: translateY(-10px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .22s ease, opacity .22s ease, visibility .22s;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu a {
  padding: 14px 6px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 16px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(140,109,47,.18);
}
.mobile-menu a:hover, .mobile-menu a:focus-visible { color: var(--parchment); }
/* braid strip at the menu's bottom edge */
.mobile-menu::after {
  content: ""; display: block; height: 8px; margin-top: 12px;
  background: url('/assets/knot-divider-gold.png') repeat-x; background-size: contain;
  opacity: .4;
}

/* anchor landing offset for the sticky header + braid */
#top, #armory, #scents, #about, #wholesale { scroll-margin-top: 78px; }

/* ---------- 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%);
}
/* emblem + vegvisir watermark behind it (texture, not a focal element) —
   the watermark is a CSS background on a pseudo-element (not an <img>) so it
   never becomes the LCP candidate; it reads as texture at ~9% opacity. */
.hero-emblem { position: relative; width: min(200px, 46vw); margin: 0 auto 22px; }
.hero-emblem picture { display: block; width: 100%; }
.hero-emblem::before {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 200%; height: 200%;   /* ~2x the emblem's diameter */
  transform: translate(-50%, -50%);
  background: url('/assets/vegvisir-hero.png') center / contain no-repeat;
  opacity: .09;
  pointer-events: none;
  z-index: 0;
}
.hero-logo { position: relative; z-index: 1; display: block; width: 100%; height: auto; margin: 0; 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-body);
  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-body); 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; }
/* wholesale shot is landscape (821x400) — show it in full, uncropped */
.feature.reverse .feature-media img { aspect-ratio: 821 / 400; }
.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-body); 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 ---------- */
/* header: runic wordmark + right-side nav on desktop, hamburger below 820px */
@media (max-width: 819.98px) {
  .wordmark-full { display: none; }
  .site-nav { display: none; }
  .wordmark-mobile { display: inline; }
  .nav-toggle { display: inline-flex; }
}
@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; }
}

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

/* ---------- policy pages ---------- */
.policy {
  padding: 56px 0 64px;
  max-width: 720px;
}
.policy .section-title { margin-bottom: 8px; }
.policy .divider { display: block; margin: 12px auto 28px; }
.policy-body { color: var(--parchment-2); font-size: 17px; line-height: 1.65; }
.policy-body p { margin: 0 0 18px; }
.policy-body strong { color: var(--parchment); font-weight: 600; }
.policy-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.policy-body a:hover { color: var(--parchment); }
.policy-back { margin-top: 36px; text-align: center; }
.f-policies { margin-top: 4px; font-size: 14px; }
.f-policies a { color: var(--parchment-2); }
.f-policies a:hover { color: var(--gold); }


/* ===== Clearer product card meta ===== */
.card-meta{display:flex;flex-wrap:wrap;gap:0.4rem;margin-bottom:0.55rem;}
.card-type,.card-size{display:inline-block;font-size:0.72rem;font-weight:700;letter-spacing:0.06em;text-transform:uppercase;padding:0.28rem 0.55rem;border-radius:999px;border:1px solid rgba(212,168,67,0.35);color:#E4BE5F;background:rgba(212,168,67,0.08);}
.card-size{color:#C9CDD4;border-color:rgba(255,255,255,0.14);background:rgba(255,255,255,0.04);}
.card-foot .price{font-size:1.35rem;font-weight:800;letter-spacing:-0.02em;}

/* ===== How to use ===== */
.howto-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem;max-width:920px;margin:2rem auto 0;}
.howto-card{background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.08);border-radius:14px;padding:1.5rem 1.35rem;}
.howto-card h3{font-family:var(--font-display, Fondamento, Georgia, serif);font-size:1.35rem;margin:0 0 0.85rem;color:#E4BE5F;}
.howto-card ol{margin:0;padding-left:1.2rem;color:#C9CDD4;line-height:1.65;}
.howto-card li{margin:0.35rem 0;}

/* ===== FAQ ===== */
.faq-list{max-width:760px;margin:2rem auto 0;display:flex;flex-direction:column;gap:0.65rem;}
.faq-item{background:rgba(12,10,7,0.55);border:1px solid rgba(255,255,255,0.08);border-radius:12px;padding:0.15rem 1rem;}
.faq-item summary{cursor:pointer;list-style:none;font-weight:700;padding:0.95rem 0;color:#E8E4DE;}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{content:'+';float:right;color:#E4BE5F;font-weight:800;}
.faq-item[open] summary::after{content:'–';}
.faq-item p{margin:0 0 1rem;color:#C9CDD4;line-height:1.65;}
.faq-item a{color:#E4BE5F;}

@media (max-width:820px){
  .howto-grid{grid-template-columns:1fr;}
}
