/* Reclaimed Radiance — A Savvy's Company
   Identity: RR-004B Final Approved Visual Identity Package. APPROVED.

   Heritage Navy  #24364A  primary
   Deep Green     #2E4A3F  supporting
   Aged Gold      #B6904E  accent
   Slate Gray     #6D7A86  supporting neutral
   Sage           #8FA793  soft accent
   Stone White    #E8ECE8  field
   Soft Ivory     #F7F7F4  page
   Charcoal       #2B2E31  ink

   Type: Playfair Display (headline) · Source Sans 3 (body) · EB Garamond (accent)

   Contrast, measured against the page (Soft Ivory) and the band (Heritage Navy):

     Navy on ivory      11.5:1   headings, buttons, links
     Charcoal on ivory  12.7:1   body
     Deep Green ivory    9.0:1   body, emphasis
     Slate on ivory      4.1:1   LARGE ONLY — muted text uses a darkened slate instead
     Aged Gold ivory     2.8:1   DECORATIVE ONLY — never a word on the light page
     Aged Gold on navy   4.2:1   large display only; small gold text on navy uses the
                                 lightened #C9A863 (5.4:1), same relationship COC's
                                 masthead gold has to its Brass
     Stone White navy   10.3:1   band body text
     Sage on navy        4.8:1   band labels

   Brand hex is fixed and not theme-reactive. */

:root {
  /* ---- approved palette, verbatim. Do not alias these to anything off-board ---- */
  --rr-navy: #24364A;
  --rr-green: #2E4A3F;
  --rr-gold: #B6904E;
  --rr-slate: #6D7A86;
  --rr-sage: #8FA793;
  --rr-stone: #E8ECE8;
  --rr-ivory: #F7F7F4;
  --rr-charcoal: #2B2E31;

  /* ---- derived, and only where the board's own colours fail a contrast floor ---- */
  --gold-on-dark: #C9A863;   /* lightened Aged Gold, for small text on navy — 5.4:1 */
  --ink-2: #4E5A63;          /* darkened Slate Gray — 6.6:1 on ivory */
  --ink-3: #5F6B77;          /* darkened Slate Gray — 5.1:1 on ivory */
  --line: #DCE1E1;
  --line-soft: #E8ECE8;

  /* ---- applied roles ---- */
  --page: var(--rr-ivory);
  --field: var(--rr-stone);
  --surface: #FFFFFF;
  --ink: var(--rr-charcoal);
  --heading: var(--rr-navy);
  --band: var(--rr-navy);
  --band-ink: var(--rr-stone);
  --accent: var(--rr-navy);
  --accent-ink: var(--rr-ivory);
  --accent-hover: var(--rr-green);
  --freight: var(--rr-green);
  --ok: var(--rr-sage);

  --radius: 4px;
  --wrap: 1240px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --accent-face: "EB Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--page);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; color: var(--heading); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* A gold rule is decorative, never a word. Used the way the board uses it. */
.rule-gold { height: 2px; background: var(--rr-gold); border: 0; margin: 0; }

/* ---------- Header (Heritage Navy band) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--band);
  border-bottom: 2px solid var(--rr-gold);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 72px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.brand-fallback {
  font-family: var(--serif); font-size: 20px; color: var(--rr-ivory);
  letter-spacing: 0.01em; line-height: 1.05;
}

.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav a {
  font-size: 13px; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 600;
  color: var(--rr-stone); padding: 7px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.is-active { color: #FFFFFF; border-bottom-color: var(--rr-gold); }

.header-search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(232, 236, 232, 0.10);
  border: 1px solid rgba(182, 144, 78, 0.5);
  border-radius: 2px; padding: 8px 13px; min-width: 210px;
}
.header-search input {
  background: none; border: 0; color: var(--rr-ivory); font-size: 14px;
  width: 100%; outline: none; font-family: inherit;
}
.header-search input::placeholder { color: #93A0AC; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--rr-gold); color: var(--rr-ivory);
  border-radius: 2px; padding: 7px 11px; cursor: pointer; font-size: 15px;
}

/* ---------- Hero ---------- */
.hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--rr-stone), var(--rr-ivory));
}
.hero-inner {
  display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 52px;
  align-items: center; padding: 58px 22px 52px;
  max-width: var(--wrap); margin: 0 auto;
}
.eyebrow {
  font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 16px; font-weight: 600;
}
.eyebrow::after {
  content: ""; display: block; width: 44px; height: 2px;
  background: var(--rr-gold); margin-top: 12px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.06; letter-spacing: -0.005em;
  margin: 0 0 14px; color: var(--rr-navy); font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--rr-green); }
.kicker {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3);
  margin: 0 0 18px;
}
.hero p.lede {
  font-family: var(--accent-face); font-style: italic;
  color: var(--ink-2); font-size: 19px; max-width: 44ch; margin: 0 0 26px; line-height: 1.5;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 2px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase; border: 1px solid transparent;
  cursor: pointer; font-family: var(--sans);
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--rr-navy); color: var(--rr-navy); background: transparent; }
.btn-ghost:hover { background: var(--rr-navy); color: var(--accent-ink); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Hero photograph ----------
 * The hero led with type and four live product cards, which read as a marketplace rather
 * than a heritage brand — Mike, 2026-09-07: "liven up the page with some beauty."
 * The lantern is cropped from the RR-004B homepage concept he supplied, so the picture on
 * the page is the picture that was approved. The live inventory has not gone anywhere; it
 * starts one section down, and the freshness stamp moved with it. */
.hero-art {
  margin: 0; position: relative;
  min-height: 420px; height: 100%; max-height: 560px; overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 22px 60px rgba(36, 54, 74, 0.20);
}
.hero-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% center;
  display: block;
}
/* A gold hairline inside the edge rather than a border, so the frame reads as a plate
 * rather than a box and the photo still bleeds to its own corners. */
.hero-art::after {
  content: ""; position: absolute; inset: 9px; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.62);
}
/* The pull-quote sits over the sky, which is the only reliably light, quiet part of the
 * frame. The scrim keeps it legible if the crop is ever changed. */
.hero-art figcaption {
  position: absolute; top: 0; left: 0; right: 0; padding: 30px 34px 52px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 9px;
  font-family: var(--serif); font-size: 12.5px; line-height: 1.6;
  letter-spacing: 0.15em; text-transform: uppercase; text-align: right;
  color: var(--rr-navy);
  background: linear-gradient(180deg, rgba(247, 247, 244, 0.94) 34%, rgba(247, 247, 244, 0));
}
.hero-art figcaption svg { color: var(--rr-gold); opacity: 0.9; }

/* Fleuron + tagline closing the hero copy, as on the identity board. */
.hero-sign { margin-top: 30px; }
.hero-sign .fleuron { display: block; color: var(--rr-gold); opacity: 0.85; }
.hero-sign p {
  margin: 9px 0 0; font-family: var(--serif);
  font-size: 12.5px; letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--ink-3);
}
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Values strip (the board's five values) ----------
 * Centred on ivory with hairline dividers, matching the identity board. It was left-aligned
 * on the stone field, which fought the hero above it. */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--rr-ivory); }
.strip-inner { display: grid; grid-template-columns: repeat(5, 1fr); }
.strip-cell {
  padding: 28px 20px; text-align: center;
  border-left: 1px solid var(--line);
}
.strip-cell:first-child { border-left: 0; }
.strip-cell .icon { color: var(--rr-gold); margin-bottom: 12px; }
.strip-cell h3 {
  margin: 0 0 7px; font-family: var(--serif); font-size: 12.5px; letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--rr-navy); font-weight: 700;
}
.strip-cell p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* Freshness, relocated from the retired hero peek. */
.stamp {
  display: inline-block; margin-left: 6px; padding: 2px 9px;
  font-family: var(--sans); font-size: 11.5px; font-style: normal;
  letter-spacing: 0.04em; color: var(--ink-3);
  background: var(--rr-stone); border-radius: 999px; white-space: nowrap;
}

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 26px; flex-wrap: wrap;
  border-bottom: 2px solid var(--rr-gold); padding-bottom: 13px;
}
.section-head h2 {
  font-family: var(--serif); font-size: 30px; letter-spacing: -0.005em;
  margin: 0; color: var(--rr-navy);
}
.section-head p {
  margin: 5px 0 0; color: var(--ink-3); font-size: 15px;
  font-family: var(--accent-face); font-style: italic;
}
.section-link {
  color: var(--rr-navy); font-size: 12px; font-weight: 600; white-space: nowrap;
  letter-spacing: 0.13em; text-transform: uppercase; border-bottom: 1px solid var(--rr-gold);
  padding-bottom: 2px;
}
.section-link:hover { color: var(--rr-green); }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 13px; }
.cat-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 20px 18px;
  display: flex; flex-direction: column; gap: 7px; min-height: 110px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.cat-card:hover { border-color: var(--rr-navy); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(36,54,74,.09); }
.cat-card .icon { color: var(--rr-slate); }
.cat-card:hover .icon { color: var(--rr-gold); }
.cat-card .name { font-family: var(--serif); font-size: 17px; color: var(--rr-navy); }
.cat-card .count { font-size: 12.5px; color: var(--ink-3); letter-spacing: 0.04em; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: var(--rr-navy); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(36, 54, 74, 0.12); }
.card-media { position: relative; aspect-ratio: 1 / 1; background: var(--field); border-bottom: 1px solid var(--line-soft); }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 2px; font-weight: 700;
}
.badge-freight { background: var(--rr-green); color: var(--rr-ivory); }      /* 9.0:1 */
.badge-ship { background: var(--rr-charcoal); color: var(--gold-on-dark); }  /* 5.4:1 */
.card-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title {
  font-size: 14.5px; line-height: 1.4; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.price { font-family: var(--serif); font-weight: 700; font-size: 21px; color: var(--rr-navy); }
.ship-note { font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.03em; }


/* ---------- Catalog layout ---------- */
.catalog { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: start; padding-top: 32px; }
.filters {
  position: sticky; top: 92px;
  border: 1px solid var(--line); border-top: 2px solid var(--rr-gold);
  border-radius: var(--radius); background: var(--surface); padding: 18px;
}
.filter-group + .filter-group { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.filter-group h4 {
  margin: 0 0 11px; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 700;
}
.filter-list { display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow-y: auto; }
.filter-list button {
  text-align: left; background: none; border: 0; color: var(--ink-2);
  font-size: 14px; padding: 7px 9px; border-radius: 2px; cursor: pointer;
  display: flex; justify-content: space-between; gap: 8px; font-family: inherit;
}
.filter-list button:hover { background: var(--field); color: var(--ink); }
.filter-list button.is-active { background: var(--rr-navy); color: var(--rr-ivory); font-weight: 600; }
.filter-list button.is-active .n { color: var(--gold-on-dark); }
.filter-list .n { color: var(--ink-3); font-size: 12.5px; }

.toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid var(--rr-gold);
}
.toolbar .count { color: var(--ink-2); font-size: 14.5px; margin-right: auto; }
select, .input {
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  border-radius: 2px; padding: 9px 12px; font-size: 14px; font-family: inherit; outline: none;
}
select:focus, .input:focus { border-color: var(--rr-navy); box-shadow: 0 0 0 3px rgba(36, 54, 74, 0.13); }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: 2px; padding: 6px 14px; font-size: 13px; cursor: pointer; font-family: inherit;
}
.chip:hover { border-color: var(--rr-navy); color: var(--ink); }
.chip.is-active { background: var(--rr-navy); border-color: var(--rr-navy); color: var(--rr-ivory); font-weight: 600; }

/* ---------- Item detail ---------- */
.item { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; padding-top: 32px; }
.gallery-main {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); aspect-ratio: 4 / 3; overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; margin-top: 10px; }
.thumbs img {
  aspect-ratio: 1/1; object-fit: cover; border-radius: 2px;
  border: 1px solid var(--line); cursor: pointer; background: var(--field);
}
.thumbs img.is-active { border-color: var(--rr-navy); box-shadow: 0 0 0 2px var(--rr-gold); }
.item h1 { font-family: var(--serif); font-size: 31px; line-height: 1.14; margin: 0 0 14px; color: var(--rr-navy); }
.item-price { font-family: var(--serif); font-weight: 700; font-size: 40px; color: var(--rr-navy); }
.buybox {
  border: 1px solid var(--line); border-top: 2px solid var(--rr-gold);
  border-radius: var(--radius); background: var(--surface); padding: 20px; margin-top: 20px;
}
.buybox .line { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--ink-2); padding: 6px 0; }
.buybox .line strong { color: var(--ink); }
.notice {
  border-left: 3px solid var(--rr-green); background: rgba(46, 74, 63, 0.07);
  padding: 12px 15px; border-radius: 0 2px 2px 0; font-size: 14px; color: var(--ink-2); margin: 15px 0;
}
.specs { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 14.5px; }
.specs td { padding: 10px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.specs td:first-child { color: var(--ink-3); width: 40%; }

/* ---------- Forms ---------- */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; }
.field textarea { min-height: 92px; resize: vertical; font-family: inherit; }

dialog {
  border: 1px solid var(--line); border-top: 3px solid var(--rr-gold);
  border-radius: var(--radius); background: var(--surface);
  color: var(--ink); padding: 26px; max-width: 470px; width: calc(100% - 32px);
}
dialog::backdrop { background: rgba(36, 54, 74, 0.62); }
dialog h3 { font-family: var(--serif); font-size: 24px; margin: 0 0 6px; color: var(--rr-navy); }
dialog .sub { color: var(--ink-2); font-size: 14px; margin: 0 0 18px; }
.dialog-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--ink-3); font-size: 22px; cursor: pointer; }

/* ---------- States ---------- */
.skeleton { background: linear-gradient(90deg, var(--field) 25%, #F1F4F3 50%, var(--field) 75%); background-size: 200% 100%; animation: sh 1.3s infinite; }
@keyframes sh { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.empty { text-align: center; padding: 64px 20px; color: var(--ink-2); }
.empty h3 { font-family: var(--serif); color: var(--rr-navy); font-size: 22px; margin: 0 0 8px; }

/* ---------- Footer (Heritage Navy band) ---------- */
.site-footer { border-top: 2px solid var(--rr-gold); background: var(--band); color: var(--rr-stone); padding: 48px 0 30px; margin-top: 44px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
/* Sage, not Aged Gold: gold on navy is 4.2:1, which fails at this size. */
.footer-grid h4 { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rr-sage); margin: 0 0 13px; font-weight: 700; }
.footer-grid p, .footer-grid li { font-size: 14px; color: var(--rr-stone); margin: 0 0 6px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a:hover { color: var(--gold-on-dark); }
.footer-tagline {
  font-family: var(--accent-face); font-style: italic; font-size: 17px;
  color: var(--gold-on-dark); text-align: center; margin: 34px 0 0;
  padding-top: 22px; border-top: 1px solid rgba(182, 144, 78, 0.35);
}
.footer-bottom {
  margin-top: 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: #9DAAB6;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 26px; padding: 30px 22px 36px; }
  /* Photograph first on a phone. It is the fastest way to say what this store sells, and
     the headline is one thumb-flick below it. */
  .hero-art { order: -1; min-height: 260px; max-height: 320px; }
  .hero-art figcaption { padding: 18px 18px 34px; font-size: 11.5px; }
  .hero h1 { font-size: clamp(30px, 7.5vw, 42px); }
  .hero p.lede { font-size: 17px; margin-bottom: 20px; }
  .hero-sign { margin-top: 22px; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .strip-cell:first-child { border-left: 1px solid var(--line); }
  .strip-cell:nth-child(odd) { border-left: 0; }
  .strip-cell { border-top: 1px solid var(--line); padding: 22px 16px; }
  .strip-cell:nth-child(-n+2) { border-top: 0; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .item { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .header-search { display: none; }
  .brand img { height: 40px; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--band); border-bottom: 2px solid var(--rr-gold);
    flex-direction: column; gap: 0; padding: 8px 22px 14px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(182, 144, 78, 0.25); width: 100%; }
  .nav-toggle { display: block; }
}

@media (max-width: 520px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 38px 0; }
  .card-title { font-size: 13px; }
}
