/* Rubric & Ruler site stylesheet. SOURCE FILE: 07_PRODUCTS_AND_BRANDS/Website/generator/site.css, copied into
   site/assets/ by build_site.py. Edit here, never in site/. Tokens and layout: SITE_LOOK_SPEC.md v1.0 (Pelle),
   started from mockup/mockup.css. No @import, no external url(); fonts are the unmodified OFL TTFs under /fonts/. */

@font-face { font-family: "Lora"; src: url("/fonts/Lora-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/fonts/Lora-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/fonts/Lora-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("/fonts/JosefinSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/Archivo-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  /* Brand tokens, unchanged from BRAND_IDENTITY_SPEC.md section 4.1 */
  --burgundy: #7A2036;
  --brass:    #A6772C;
  --ink:      #000000;
  --paper:    #FFFFFF;
  --quiet:    #595959;
  /* Derived UI neutrals (SITE_LOOK_SPEC sec. 2): mixes of the tokens above, not new brand colours */
  --tint:     #F8F4F5;
  --rule:     #EBDEE1;

  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-label:   "Josefin Sans", "Trebuchet MS", system-ui, sans-serif;
  --font-body:    "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 70rem;
  --gutter: 1.25rem;
  --cell: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  font-synthesis: none;            /* never fake a bold or italic (spec sec. 3: Archivo is Regular only) */
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--burgundy); }
h1 { font-size: clamp(2rem, 6.2vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.125rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; max-width: 65ch; }
strong { font-family: var(--font-display); font-weight: 700; }
em { font-family: var(--font-display); font-style: italic; }
a  { color: var(--burgundy); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 3px; }

:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 3px; }
.on-burgundy :focus-visible { outline-color: var(--paper); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.eyebrow {
  font: 600 .8125rem/1.2 var(--font-label); letter-spacing: .12em; text-transform: uppercase;
  color: var(--burgundy); margin: 0 0 .75rem;
}
.skip { position: absolute; left: .5rem; top: -4rem; background: var(--ink); color: var(--paper); padding: .75rem 1rem; z-index: 10; }
.skip:focus { top: .5rem; }

/* Logo sprite and lockup (AST-0036; paths generated from Store/src/rr_B_lockup_color_outlined.svg) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.lk-m { fill: var(--lk-main, var(--burgundy)); }
.lk-a { fill: var(--lk-amp, var(--brass)); }
.lockup { display: block; width: 13.75rem; height: auto; aspect-ratio: 370 / 80; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--burgundy); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem; min-height: 4.5rem; padding-top: .5rem; padding-bottom: .5rem; }
.brand { display: inline-block; line-height: 0; padding: .25rem 0; }
.nav { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.nav a { font: 600 .9375rem/1 var(--font-label); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; display: inline-block; padding: .875rem .25rem; min-height: 2.75rem; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

/* Hero: graph grid + brass ruler, CSS only */
.hero { position: relative; color: var(--paper); background-color: var(--burgundy);
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: var(--cell) var(--cell); }
.hero .wrap { padding-top: 3.5rem; padding-bottom: 5rem; }
.hero h1, .hero .eyebrow { color: var(--paper); }
.hero h1 { max-width: 18ch; }
.hero .lead { font-family: var(--font-display); font-size: 1.1875rem; max-width: 52ch; }
.hero .under { max-width: 52ch; }
.ruler { position: absolute; left: 0; right: 0; bottom: 0; height: 1.25rem; pointer-events: none;
  border-top: 2px solid var(--brass);
  background:
    repeating-linear-gradient(90deg, var(--brass) 0 2px, transparent 2px calc(var(--cell) * 2)) top / 100% 100% no-repeat,
    repeating-linear-gradient(90deg, var(--brass) 0 2px, transparent 2px calc(var(--cell) / 4)) top / 100% 45% no-repeat; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .75rem 1.5rem;
  font: 600 .9375rem/1.2 var(--font-label); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; text-align: center;
  border: 2px solid var(--burgundy); background: var(--burgundy); color: var(--paper); }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn--rev { background: var(--paper); color: var(--burgundy); border-color: var(--paper); }
.btn--rev:hover { background: var(--ink); color: var(--paper); border-color: var(--paper); }
.hero .btn { margin-top: .75rem; }

/* Sections */
.section { padding: 3rem 0; }
.section--tint { background: var(--tint); }
.section.section--flush { padding-top: 0; }
.feature { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: center; }
.feature .shot { border: 1.5px solid var(--burgundy); max-width: 30rem; }
.credits-line { font-size: .9375rem; color: var(--quiet); margin: 0; padding: 1.5rem 0; }

/* Product grid and card: a rubric cell */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1.5px solid var(--burgundy); }
.card:focus-within { outline: 3px solid var(--burgundy); outline-offset: 3px; }
.card .thumb { border-bottom: 1.5px solid var(--burgundy); background: var(--tint); }
.card .thumb img { width: 100%; aspect-ratio: 1 / 1; }
.card .body { padding: 1rem 1.125rem 1.25rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.card h3 { margin: 0; }
.card h3 a { color: var(--burgundy); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:focus-visible { outline: none; }
.card:hover h3 a { text-decoration: underline; text-decoration-thickness: 2px; }
.card p { color: var(--quiet); font-size: .96875rem; margin: 0; }
.card .eyebrow { margin: 0 0 .25rem; }
.card .more { margin-top: auto; padding-top: .75rem; font: 600 .875rem/1 var(--font-label); letter-spacing: .1em; text-transform: uppercase; color: var(--burgundy); }

/* Gatsby teaser: an OPEN cell (dashed = not scored yet). Typographic, no image. */
.teaser { border: 2px dashed var(--burgundy); background: var(--paper); padding: 1.5rem; display: grid; gap: 1rem; align-items: center; grid-template-columns: 1fr; }
.teaser h2 { margin: 0 0 .5rem; font-size: 1.5rem; }
.teaser p { margin: 0; color: var(--quiet); }
.pill { display: inline-block; justify-self: start; font: 600 .8125rem/1 var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--paper); background: var(--burgundy); padding: .5rem .75rem; }

/* Product page */
.crumbs { font-size: .9375rem; padding: 1rem 0 0; color: var(--quiet); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--quiet); }
.pp { display: grid; gap: 2rem; grid-template-columns: 1fr; padding: 1.5rem 0 2rem; }
.pp h1 { font-size: clamp(1.75rem, 4.4vw, 2.5rem); }
.media .main { border: 1.5px solid var(--burgundy); background: var(--tint); }
.media .main img { width: 100%; aspect-ratio: 1 / 1; }
.media .strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.media .strip a { display: block; border: 1.5px solid var(--burgundy); background: var(--tint); }
.media .strip img { width: 100%; aspect-ratio: 1 / 1; }
.lead-p { font-family: var(--font-display); font-size: 1.125rem; }
.facts { margin: 1.5rem 0; border-top: 1.5px solid var(--burgundy); }
.facts div { display: grid; grid-template-columns: 8rem 1fr; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font: 600 .8125rem/1.5 var(--font-label); letter-spacing: .1em; text-transform: uppercase; color: var(--burgundy); }
.facts dd { margin: 0; }
.note { font-size: .875rem; color: var(--quiet); margin-top: .75rem; }
.body-sections { max-width: 46rem; }
.body-sections h2 { font: 600 1rem/1.3 var(--font-label); letter-spacing: .1em; text-transform: uppercase; color: var(--burgundy);
  border-top: 1.5px solid var(--burgundy); padding-top: 1rem; margin: 2.25rem 0 1rem; }
.body-sections ul { padding-left: 1.25rem; max-width: 65ch; }
.body-sections li { margin-bottom: .5rem; }
.faq dt { font-family: var(--font-display); font-weight: 700; color: var(--burgundy); margin-top: 1rem; }
.faq dd { margin: .25rem 0 0; max-width: 65ch; }
.cta { border: 1.5px solid var(--burgundy); background: var(--tint); padding: 1.5rem; margin: 2.5rem 0 0; }
.cta .note { margin-bottom: 0; }
.related ul { padding-left: 1.25rem; }
.related li { margin-bottom: .5rem; }
.credits { font-size: .9375rem; color: var(--quiet); border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 2.5rem; max-width: 65ch; }
.credits p { margin: 0 0 .5rem; }

/* Text pages (about, privacy, gatsby, 404) */
.page { padding: 2.5rem 0 3.5rem; max-width: 46rem; }
.page .disclaimer { font-size: .9375rem; color: var(--quiet); border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 2rem; }
/* Privacy: a sentence that still waits on a check is shown, marked, never hidden */
mark.pending { background: var(--tint); color: var(--ink); outline: 2px dashed var(--burgundy); outline-offset: 1px; padding: 0 .15em; }

/* Footer: the privacy link is the only link */
.site-footer { background: var(--tint); border-top: 1.5px solid var(--burgundy); padding: 1.5rem 0; font-size: .9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; align-items: center; }
.site-footer p { margin: 0; color: var(--quiet); }
.site-footer a { display: inline-block; padding: .75rem 0; min-height: 2.75rem; }

@media (min-width: 37.5rem) {
  :root { --gutter: 2rem; }
  .lockup { width: 16.25rem; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .teaser { grid-template-columns: 1fr auto; padding: 2rem; }
  .hero .wrap { padding-top: 5rem; padding-bottom: 6.5rem; }
  .feature { grid-template-columns: 5fr 7fr; gap: 2.5rem; }
}
@media (min-width: 60rem) {
  :root { --gutter: 2.5rem; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .pp { grid-template-columns: 7fr 5fr; gap: 3rem; }
  .section { padding: 4.5rem 0; }
  .hero .wrap { padding-top: 6.5rem; padding-bottom: 8rem; }
}
@media (max-width: 22.5rem) {
  .lockup { width: 12.5rem; }
  .facts div { grid-template-columns: 1fr; gap: .125rem; }
}
@media (forced-colors: active) {
  .ruler { display: none; }
  .btn, .card, .teaser, .pill, mark.pending { border: 2px solid CanvasText; }
}
@media print { .site-header .nav, .ruler { display: none; } .hero { background: none; color: var(--ink); } .hero h1, .hero .eyebrow { color: var(--ink); } }
