/* ===========================================================================
   High Falls Media — main.css
   Base, tokens, the shared masthead/nav/footer shell. Tokens and shell are
   carried over verbatim from the live Coming Soon page so the shop sits
   seamlessly inside the established identity (Brand Kit v1.0).
   =========================================================================== */

:root {
  /* Surface */
  --cream:    #f5f0e8;
  --cream-lt: #fbf7ee;
  --cream-dk: #efe9dd;
  --paper:    #e8e1d3;
  --white:    #ffffff;

  /* Ink */
  --deep:     #0d1f33;
  --deepest:  #07101d;
  --ink:      #2c2c2a;
  --muted:    #6e6a62;   /* secondary text on cream (4.75:1) */

  /* Brand accents (+ dark variants chosen for AA on light) */
  --genesee:    #378add;
  --genesee-dk: #185fa5;
  --teal:       #1d9e75;
  --teal-dk:    #0f6e56;
  --amber:      #ba7517;
  --amber-dk:   #854f0b;
  --sale:       #a32d2d;

  /* Condition badge backgrounds (dark variants keep white text at AA) */
  --cond-ln:  #0f6e56;   /* Like New   — Falls Teal (dk) */
  --cond-vg:  #185fa5;   /* Very Good  — Genesee Blue (dk) */
  --cond-g:   #5f5d57;   /* Good       — neutral (dk) */
  --cond-ac:  #b4b2a9;   /* Acceptable — light neutral, ink text */

  /* Type */
  --display: 'Oswald', 'Barlow Condensed', sans-serif;
  --body:    'Barlow', 'Inter', system-ui, sans-serif;
  --serif:   'Cormorant Garamond', 'Playfair Display', serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --maxw: 1280px;
  --radius: 6px;
  --card-radius: 8px;
}

/* ── Reset / base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--cream); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh;
  display: flex; flex-direction: column;
  font-family: var(--body);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.6; color: var(--ink);
  background: radial-gradient(120% 90% at 50% 0%, var(--cream-lt) 0%, var(--cream) 46%, var(--cream-dk) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}
body::before {  /* warm paper grain */
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.45;
  background-image: radial-gradient(rgba(13,31,51,0.045) 1px, transparent 1px);
  background-size: 4px 4px;
}
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.06; color: var(--deep); }
a { color: var(--genesee-dk); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ── Utilities ──────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute; 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: 50%; top: -60px; transform: translateX(-50%);
  z-index: 200; background: var(--teal-dk); color: #fff;
  font-family: var(--display); font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; text-decoration: none;
  padding: 0.7rem 1.2rem; border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.18s ease;
}
.skip-link:focus { top: 0; outline: 3px solid var(--genesee); outline-offset: 2px; }
:focus-visible { outline: 3px solid var(--genesee-dk); outline-offset: 3px; border-radius: 2px; }

.hf-wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.hf-eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--body); font-weight: 700;
  font-size: clamp(0.72rem, 1.3vw, 0.85rem);
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--amber-dk);
}
.hf-eyebrow::before { content: ""; width: clamp(22px, 4vw, 38px); height: 2px; background: var(--amber); display: inline-block; }

/* waterfall-bar divider (brand graphic element) */
.hf-falls-rule { display: flex; align-items: flex-end; gap: 5px; height: 26px; }
.hf-falls-rule span { width: 6px; background: var(--genesee); opacity: 0.16; border-radius: 1px; }
.hf-falls-rule span:nth-child(1) { height: 100%; }
.hf-falls-rule span:nth-child(2) { height: 70%; }
.hf-falls-rule span:nth-child(3) { height: 46%; }

/* ── Top announce bar (static, brand voice) ─────────────────────────────── */
.hf-topbar {
  position: relative; z-index: 3; background: var(--deep); color: var(--cream);
  font-family: var(--body); font-weight: 600;
  font-size: clamp(0.66rem, 1.2vw, 0.8rem);
  letter-spacing: 0.08em; text-transform: uppercase;
  text-align: center; padding: 0.5rem var(--gutter);
}
.hf-topbar b { color: #fff; }
.hf-topbar .star { color: var(--amber); }

/* ── Masthead + nav ─────────────────────────────────────────────────────── */
.hf-masthead {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 1rem clamp(1rem, 3vw, 2.2rem);
  flex-wrap: wrap;
  padding: clamp(0.9rem, 2.4vw, 1.5rem) var(--gutter);
  border-bottom: 1px solid rgba(13,31,51,0.1);
}
.hf-logo { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; flex: none; }
.hf-logo__mark { width: clamp(30px, 4vw, 40px); flex: none; }
.hf-logo__mark svg rect:nth-child(1) { fill: var(--genesee-dk); }
.hf-logo__mark svg rect:nth-child(2) { fill: var(--genesee); }
.hf-logo__mark svg rect:nth-child(3) { fill: var(--teal); }
.hf-logo__type { display: flex; flex-direction: column; line-height: 1; }
.hf-logo__name {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem); letter-spacing: 0.01em; color: var(--deep);
}
.hf-logo__sub {
  font-family: var(--body); font-weight: 600;
  font-size: clamp(0.6rem, 1vw, 0.72rem);
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); margin-top: 0.35rem;
}

.hf-nav { display: flex; align-items: center; gap: clamp(0.6rem, 1.8vw, 1.6rem); }
.hf-nav__link {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(0.9rem, 1.4vw, 1.02rem);
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--deep); text-decoration: none; padding: 0.3rem 0; position: relative;
}
.hf-nav__link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--teal); transition: right 0.2s ease;
}
.hf-nav__link:hover::after, .hf-nav__link[aria-current="page"]::after { right: 0; }
.hf-nav__link[aria-current="page"] { color: var(--genesee-dk); }

.hf-utils { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; }
.hf-iconbtn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  background: transparent; border: 1px solid rgba(13,31,51,0.18);
  border-radius: var(--radius); color: var(--deep);
}
.hf-iconbtn:hover { border-color: var(--teal-dk); color: var(--teal-dk); }
.hf-iconbtn svg { width: 20px; height: 20px; }
.hf-cart-btn { position: relative; }
.hf-cart-btn__count {
  position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px;
  display: grid; place-items: center; padding: 0 5px;
  background: var(--teal-dk); color: #fff; border-radius: 999px;
  font-family: var(--body); font-weight: 700; font-size: 0.68rem;
  font-feature-settings: "tnum" 1;
}
.hf-cart-btn__count[hidden] { display: none; }

.hf-vet {
  flex: none; font-family: var(--body); font-weight: 600;
  font-size: clamp(0.62rem, 1vw, 0.72rem);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-dk);
  padding: 0.4rem 0.8rem; border: 1px solid rgba(15,110,86,0.4);
  border-radius: 999px; white-space: nowrap;
}
.hf-vet .star { color: var(--teal-dk); margin-right: 0.35em; }

main { position: relative; z-index: 1; flex: 1 1 auto; }

/* ── Page header band ───────────────────────────────────────────────────── */
.hf-pagehead { padding-block: clamp(1.6rem, 4vw, 2.8rem) clamp(1rem, 2.5vw, 1.5rem); }
.hf-pagehead__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.02; color: var(--deep); margin-top: 0.5rem;
}
.hf-pagehead__lede { color: var(--muted); max-width: 54ch; margin-top: 0.6rem; }
.hf-pagehead__lede--full { max-width: none; }
.hf-pagehead__accent {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--teal-dk); margin-top: 0.4rem;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.hf-foot {
  position: relative; z-index: 2; margin-top: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--deep); color: var(--cream);
  padding: clamp(2rem, 5vw, 3.2rem) 0 clamp(1.5rem, 4vw, 2.2rem);
}
.hf-foot a { color: #cfe2f6; text-decoration: none; }
.hf-foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.hf-foot__cols {
  display: grid; gap: 1.8rem clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1.4fr 1fr 1fr 1fr; align-items: start;
}
.hf-foot__cols > * { min-width: 0; }
.hf-foot__brandname {
  font-family: var(--display); font-weight: 600; font-size: 1.4rem; color: #fff;
  display: flex; align-items: center; gap: 0.6rem;
}
.hf-foot__brandname svg { width: 30px; flex: none; }
.hf-foot__brandname svg rect:nth-child(1) { fill: #fff; }
.hf-foot__brandname svg rect:nth-child(2) { fill: var(--genesee); }
.hf-foot__brandname svg rect:nth-child(3) { fill: var(--teal); }
.hf-foot__brand p { color: #b9c6d6; font-size: 0.9rem; margin-top: 0.7rem; max-width: 34ch; }
.hf-foot__tag {
  font-family: var(--serif); font-style: italic; color: #8fe0c6; font-size: 1.05rem; margin-top: 0.8rem;
}
.hf-foot h2 {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.82rem; color: var(--genesee); margin-bottom: 0.8rem;
}
.hf-foot ul { list-style: none; padding: 0; }
.hf-foot li { margin: 0.35rem 0; font-size: 0.92rem; color: #c5d2e1; overflow-wrap: anywhere; }
.hf-foot__bar {
  margin-top: clamp(1.8rem, 4vw, 2.4rem); padding-top: 1.3rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; align-items: center; justify-content: space-between;
  font-size: 0.78rem; color: #9fb0c2;
}
.hf-foot__bar a { color: #cfe2f6; text-decoration: underline; text-underline-offset: 2px; }

/* ── Sitewide announcement banner ───────────────────────────────────────── */
.hf-banner {
  position: relative; z-index: 3;
  background: var(--deep); color: var(--cream);
  font-family: var(--body); text-align: center;
  padding: 0.6rem var(--gutter);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hf-banner__msg {
  margin: 0 auto; max-width: 78ch;
  font-size: clamp(0.82rem, 1.4vw, 0.95rem); line-height: 1.45; font-weight: 500;
}
.hf-banner__link {
  color: #e9b765; font-weight: 700;
  text-decoration: underline; text-underline-offset: 2px;
}
.hf-banner__link:hover, .hf-banner__link:focus-visible { color: #fff; }

/* ── Footer social icon ─────────────────────────────────────────────────── */
.hf-foot__social { display: flex; gap: 0.6rem; margin-top: 0.9rem; }
.hf-foot__social--center { justify-content: center; margin: 0 0 1.2rem; }
.hf-foot .hf-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: #cfe2f6;
  text-decoration: none; transition: background 0.15s ease, color 0.15s ease;
}
.hf-foot .hf-social:hover, .hf-foot .hf-social:focus-visible {
  background: var(--genesee); color: #fff; text-decoration: none;
}
.hf-foot .hf-social svg { width: 20px; height: 20px; fill: currentColor; }
