/* =========================================================
   OUSE VALLEY CHARCOAL
   Design System — v1.0
   A place-led, editorial identity for a small artisanal
   charcoal producer on the banks of the River Great Ouse.
   ========================================================= */

/* -----  Fonts  ----- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Work+Sans:wght@300;400;500;600&display=swap');

/* -----  Tokens  ----- */
:root {
  /* Colour — rooted in river, woodland & ember  */
  --ink:        #1a1612;        /* charcoal black (primary) */
  --ink-soft:   #2a241e;        /* softer charcoal */
  --ash:        #7a726a;        /* ash grey */
  --ash-light:  #b8afa4;        /* pale ash */
  --paper:      #f5f0e8;        /* warm oat paper */
  --paper-deep: #ebe3d5;        /* deeper paper */
  --cream:      #fbf8f2;        /* near-white cream */
  --ember:      #c24f20;        /* warm ember orange */
  --ember-deep: #8f3a18;        /* deep ember */
  --moss:       #4a5240;        /* muted woodland moss */
  --moss-deep:  #2d3224;        /* deep forest */
  --bark:       #5c4a36;        /* warm wood tone */

  /* Typography  */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Scale — editorial, generous */
  --step--2: clamp(0.78rem, 0.76rem + 0.10vw, 0.84rem);
  --step--1: clamp(0.88rem, 0.85rem + 0.15vw, 0.96rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.12rem);
  --step-1:  clamp(1.20rem, 1.14rem + 0.30vw, 1.38rem);
  --step-2:  clamp(1.45rem, 1.35rem + 0.50vw, 1.75rem);
  --step-3:  clamp(1.80rem, 1.60rem + 1.00vw, 2.40rem);
  --step-4:  clamp(2.30rem, 1.95rem + 1.75vw, 3.50rem);
  --step-5:  clamp(3.00rem, 2.40rem + 3.00vw, 5.20rem);
  --step-6:  clamp(3.80rem, 2.80rem + 5.00vw, 7.50rem);

  /* Space  */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2.5rem;
  --sp-5: 4rem;
  --sp-6: 6rem;
  --sp-7: 9rem;

  /* Layout  */
  --measure: 62ch;
  --container: 1400px;
  --container-narrow: 880px;

  /* Motion  */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* -----  Reset  ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
a { color: inherit; text-decoration: none; }

/* -----  Base  ----- */
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle paper-grain texture everywhere  */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* -----  Typography  ----- */
h1, h2, h3, h4, .display, .eyebrow, .drop-cap {
  font-family: var(--font-display);
  color: var(--ink);
}

h1, .h1 {
  font-size: var(--step-6);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

h2, .h2 {
  font-size: var(--step-5);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96;
}

h3, .h3 {
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h4, .h4 {
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p { max-width: var(--measure); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  display: inline-block;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: var(--ember);
  vertical-align: middle;
  margin-right: 0.75rem;
  transform: translateY(-2px);
}

.pull-quote {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 300;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 22ch;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.lede {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink-soft);
  max-width: 34ch;
}

/* -----  Layout primitives  ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3.5rem);
  position: relative;
  z-index: 2;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3.5rem);
  position: relative;
  z-index: 2;
}

section { position: relative; }

/* -----  Header / Nav  ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  background: rgba(245, 240, 232, 0.78);
  border-bottom: 1px solid rgba(26, 22, 18, 0.08);
  --header-h: 74px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
  font-variation-settings: "opsz" 96;
  text-decoration: none;
}

.brand:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 4px;
  border-radius: 2px;
}

.brand-mark {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name span:last-child {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s var(--ease);
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--ember);
  transition: width 0.35s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active { color: var(--ember); }

.nav-links a:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 4px;
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  z-index: 60;
  position: relative;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
  border-radius: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
  transform-origin: center;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Overlay behind the mobile menu */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 22, 18, 0.4);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

@media (max-width: 880px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: var(--paper);
    padding: var(--sp-4) var(--sp-3) var(--sp-5);
    gap: var(--sp-2);
    transform: translateY(-105%);
    transition: transform 0.45s var(--ease);
    align-items: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 45;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.is-open { transform: translateY(0); }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(26, 22, 18, 0.08);
  }

  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    display: block;
    width: 100%;
    font-family: var(--font-display);
    font-size: var(--step-3);
    font-weight: 300;
    letter-spacing: -0.01em;
    padding: var(--sp-2) 0;
    line-height: 1.2;
  }

  .nav-links a::after { display: none; }

  .nav-backdrop.is-open {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  /* When menu is open, prevent background scroll */
  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .brand-name span:last-child {
    display: none;
  }
  .site-header { --header-h: 66px; }
}

/* -----  Hero (home)  ----- */
.hero {
  position: relative;
  min-height: min(92vh, 880px);
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  padding-top: var(--sp-5);
  padding-bottom: var(--sp-5);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26,22,18,0.25) 0%, rgba(26,22,18,0) 35%, rgba(26,22,18,0) 55%, rgba(26,22,18,0.55) 100%);
  z-index: 1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: slowZoom 18s ease-out forwards;
}

@keyframes slowZoom {
  to { transform: scale(1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--cream);
  max-width: 920px;
  animation: fadeUp 1.2s var(--ease-out) 0.3s both;
}

.hero h1 { color: var(--cream); margin-bottom: var(--sp-3); }

.hero-place {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-2);
  font-weight: 300;
  letter-spacing: -0.005em;
  color: rgba(251, 248, 242, 0.85);
  display: block;
  margin-bottom: var(--sp-3);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251, 248, 242, 0.75);
}

.hero-meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ember); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -----  Section heads  ----- */
.section {
  padding-block: var(--sp-7);
}

.section-head {
  margin-bottom: var(--sp-5);
  max-width: 720px;
}

.section-head .eyebrow { margin-bottom: var(--sp-2); }
.section-head h2 { margin-bottom: var(--sp-3); }

/* -----  Content typography blocks  ----- */
.prose p + p { margin-top: var(--sp-2); }
.prose p { max-width: var(--measure); }

.drop-cap::first-letter {
  font-family: var(--font-display);
  font-size: 4.6em;
  float: left;
  line-height: 0.88;
  padding: 0.05em 0.08em 0 0;
  font-weight: 300;
  color: var(--ember);
  font-variation-settings: "opsz" 144;
}

/* -----  Buttons  ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.6rem;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.35s var(--ease);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ember);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
  z-index: -1;
}

.btn-primary:hover::before { transform: translateY(0); }
.btn-primary:hover { transform: translateY(-2px); }

.btn-ghost {
  color: var(--cream);
  border: 1px solid rgba(251, 248, 242, 0.4);
}

.btn-ghost:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

.btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg { transform: translateX(4px); }

/* -----  Editorial split sections  ----- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.split--reverse .split-media { order: 2; }
.split-copy .eyebrow { margin-bottom: var(--sp-2); }
.split-copy h2 { margin-bottom: var(--sp-3); }

.split-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.8s var(--ease-out);
}

.split-media:hover img { transform: scale(1.03); }

.split-media .caption {
  position: absolute;
  bottom: var(--sp-2);
  left: var(--sp-2);
  right: var(--sp-2);
  color: var(--cream);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  mix-blend-mode: difference;
  opacity: 0.7;
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: var(--sp-4); }
  .split--reverse .split-media { order: 0; }
}

/* -----  Product cards  ----- */
.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--cream);
  border: 1px solid rgba(26,22,18,0.08);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(26,22,18,0.25);
}

.product-card-media {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  position: relative;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.product-card:hover .product-card-media img { transform: scale(1.04); }

.product-card-body {
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.product-card-body h3 { margin-bottom: var(--sp-2); }
.product-card-body .eyebrow { margin-bottom: var(--sp-2); }

.product-card-features {
  list-style: none;
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(26,22,18,0.08);
}

.product-card-features li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.35rem 0;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.product-card-features li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--ember);
  border-radius: 50%;
  transform: translateY(-1px);
}

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

/* -----  Stats / Facts row (editorial)  ----- */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(26,22,18,0.15);
  border-bottom: 1px solid rgba(26,22,18,0.15);
}

.fact {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 3vw, 2.5rem);
  border-right: 1px solid rgba(26,22,18,0.15);
}

.fact:last-child { border-right: 0; }

.fact-number {
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ember);
  display: block;
  margin-bottom: var(--sp-2);
  font-variation-settings: "opsz" 144;
}

.fact-number .unit {
  font-size: 0.4em;
  color: var(--ash);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 0.5rem;
  vertical-align: super;
}

.fact-body p { font-size: var(--step--1); color: var(--ink-soft); }
.fact-body h4 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  margin-bottom: var(--sp-1);
  letter-spacing: -0.01em;
}

@media (max-width: 780px) {
  .fact-grid { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid rgba(26,22,18,0.15); }
  .fact:last-child { border-bottom: 0; }
}

/* -----  Feature points (for sustainability / our charcoal)  ----- */
.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.point {
  display: grid;
  gap: var(--sp-2);
}

.point-num {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 300;
  line-height: 1;
  color: var(--ember);
  font-variation-settings: "opsz" 144;
}

.point h4 { font-weight: 500; letter-spacing: -0.01em; }
.point p { font-size: var(--step--1); color: var(--ink-soft); }

/* -----  Dark sections (ember / woodland)  ----- */
.section-dark {
  background: var(--ink);
  color: var(--paper);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--cream); }

.section-dark .eyebrow { color: var(--ember); }
.section-dark .pull-quote { color: var(--cream); }
.section-dark .lede { color: var(--ash-light); }

.section-ember {
  background: var(--ember);
  color: var(--cream);
}

.section-ember .eyebrow { color: var(--ink); }
.section-ember .eyebrow::before { background: var(--ink); }

.section-moss {
  background: var(--moss-deep);
  color: var(--paper);
}

.section-moss h1, .section-moss h2, .section-moss h3 { color: var(--cream); }

/* -----  Full-bleed image (editorial break)  ----- */
.full-bleed {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  position: relative;
}

.full-bleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.full-bleed .caption {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  left: clamp(1rem, 3vw, 2rem);
  color: var(--cream);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(26, 22, 18, 0.5);
  backdrop-filter: blur(4px);
  padding: 0.5rem 0.9rem;
  border-radius: 2px;
}

/* -----  Page header (interior pages)  ----- */
.page-header {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid rgba(26,22,18,0.1);
  position: relative;
}

.page-header .eyebrow { margin-bottom: var(--sp-2); }
.page-header h1 { margin-bottom: var(--sp-3); max-width: 18ch; }
.page-header .lede { margin-top: var(--sp-3); }

/* -----  Article / long-form  ----- */
.article-body {
  max-width: 680px;
  margin-inline: auto;
}

.article-body > * + * { margin-top: var(--sp-3); }
.article-body h2 {
  font-size: var(--step-3);
  margin-top: var(--sp-5) !important;
  margin-bottom: var(--sp-2);
}
.article-body h3 {
  font-size: var(--step-2);
  font-weight: 500;
  margin-top: var(--sp-4) !important;
  margin-bottom: var(--sp-1);
}
.article-body p { font-size: var(--step-0); line-height: 1.7; }

.article-body ul {
  list-style: none;
  padding: 0;
}
.article-body ul li {
  position: relative;
  padding-left: 1.75rem;
  padding-block: 0.4rem;
  font-size: var(--step-0);
  line-height: 1.55;
}
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.9rem;
  height: 1px;
  background: var(--ember);
}

.article-body strong { font-weight: 500; color: var(--ink); }

.article-body blockquote {
  border-left: 2px solid var(--ember);
  padding: var(--sp-2) var(--sp-3);
  margin-block: var(--sp-4);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 300;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
}

/* -----  Callout box  ----- */
.callout {
  background: var(--cream);
  border: 1px solid rgba(26,22,18,0.12);
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-block: var(--sp-4);
  position: relative;
}

.callout-label {
  position: absolute;
  top: -0.7rem;
  left: clamp(1.5rem, 4vw, 3rem);
  background: var(--paper);
  padding: 0 0.75rem;
  font-size: var(--step--2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 600;
}

/* -----  Footer  ----- */
.footer {
  background: var(--ink);
  color: var(--ash-light);
  padding-block: clamp(3rem, 6vw, 5rem);
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid rgba(251, 248, 242, 0.12);
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: var(--sp-2);
  line-height: 1;
  letter-spacing: -0.015em;
}

.footer-brand p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--ash-light);
  max-width: 28ch;
  font-weight: 300;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: var(--sp-2);
}

.footer ul { list-style: none; }
.footer ul li { padding: 0.3rem 0; font-size: var(--step--1); }
.footer ul a { transition: color 0.3s var(--ease); }
.footer ul a:hover { color: var(--ember); }

.footer-bottom {
  padding-top: var(--sp-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  font-size: var(--step--2);
  color: var(--ash);
  letter-spacing: 0.05em;
}

@media (max-width: 780px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* -----  Reveal-on-scroll (progressive enhancement)  ----- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* -----  Utility  ----- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mb-0 { margin-bottom: 0; }
.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;
}

/* -----  Delivery specific  ----- */
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-block: var(--sp-4);
}

.delivery-zone {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--cream);
  border: 1px solid rgba(26,22,18,0.12);
  text-align: center;
}

.delivery-zone h3 {
  font-size: var(--step-2);
  font-weight: 400;
  margin-bottom: var(--sp-1);
  letter-spacing: -0.01em;
}

.delivery-zone p {
  font-size: var(--step--1);
  color: var(--ash);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-inline: auto;
}

.schedule {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--sp-3);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--ink);
  color: var(--cream);
  margin-block: var(--sp-4);
}

.schedule-step .eyebrow { color: var(--ember); margin-bottom: var(--sp-1); }
.schedule-step h4 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--cream);
  font-weight: 300;
  letter-spacing: -0.01em;
}
.schedule-step p { font-size: var(--step--1); color: var(--ash-light); margin-top: 0.25rem; }
.schedule-arrow { color: var(--ember); font-size: var(--step-3); opacity: 0.5; }

@media (max-width: 700px) {
  .delivery-grid { grid-template-columns: 1fr; }
  .schedule { grid-template-columns: 1fr; text-align: center; }
  .schedule-arrow { transform: rotate(90deg); }
}

/* -----  Order form  ----- */
.order-form {
  background: var(--cream);
  border: 1px solid rgba(26, 22, 18, 0.1);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  margin-block: var(--sp-4);
  position: relative;
}

.order-form-header {
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid rgba(26, 22, 18, 0.1);
}

.order-form-header .eyebrow {
  color: var(--ember);
  margin-bottom: var(--sp-2);
}

.order-form-header h2 {
  font-size: var(--step-3);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: var(--sp-2);
  font-family: var(--font-display);
}

.order-form-header p {
  color: var(--ash);
  font-size: var(--step--1);
  max-width: 50ch;
  line-height: 1.55;
}

.form-group {
  margin-bottom: var(--sp-4);
}

.form-group:last-of-type {
  margin-bottom: var(--sp-3);
}

.form-section-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: var(--sp-3);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(26, 22, 18, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-section-title::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  background: var(--ember);
  border-radius: 50%;
  flex-shrink: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}

.form-row--triple {
  grid-template-columns: 2fr 1fr 1fr;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: var(--sp-2);
}

.form-field label {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.form-field .req {
  color: var(--ember);
  font-weight: 400;
  margin-left: 0.15em;
}

.form-field .hint {
  font-size: 0.82rem;
  color: var(--ash);
  font-weight: 400;
  letter-spacing: 0.01em;
  font-style: italic;
}

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  padding: 0.75rem 0.9rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(26, 22, 18, 0.15);
  border-radius: 2px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-field input:hover,
.form-field textarea:hover,
.form-field select:hover {
  border-color: rgba(26, 22, 18, 0.3);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--ember);
  background: var(--cream);
  box-shadow: 0 0 0 3px rgba(194, 79, 32, 0.12);
}

.form-field textarea {
  min-height: 7rem;
  resize: vertical;
  line-height: 1.5;
  font-family: var(--font-body);
}

.form-field input[type="number"] {
  max-width: 8rem;
  font-variant-numeric: tabular-nums;
}

.form-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%237a726a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-field select:focus {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23c24f20' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1.5l5 5 5-5'/></svg>");
}

/* Product-line rows */
.product-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid rgba(26, 22, 18, 0.08);
}

.product-line:first-of-type {
  padding-top: 0;
}

.product-line:last-of-type {
  border-bottom: none;
  padding-bottom: var(--sp-2);
}

.product-line-info h4 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
  color: var(--ink);
  line-height: 1.15;
}

.product-line-info p {
  font-size: var(--step--1);
  color: var(--ash);
  line-height: 1.55;
  max-width: 48ch;
  margin-bottom: 0.5rem;
}

.product-line-info p:last-child {
  margin-bottom: 0;
}

.product-line-info .meta {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--ink);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-block;
  padding: 0.35rem 0.65rem;
  background: var(--paper-deep);
  border-radius: 2px;
}

.product-line-qty {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 6.5rem;
}

.product-line-qty label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
  text-align: center;
}

.product-line-qty input {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  text-align: center;
  padding: 0.6rem 0.5rem;
  background: var(--paper);
  border: 1px solid rgba(26, 22, 18, 0.2);
  width: 100%;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 2px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.product-line-qty input:hover {
  border-color: rgba(26, 22, 18, 0.35);
}

.product-line-qty input:focus {
  outline: none;
  border-color: var(--ember);
  background: var(--cream);
  box-shadow: 0 0 0 3px rgba(194, 79, 32, 0.12);
}

.form-footnote {
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin-top: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  background: var(--paper);
  border-left: 2px solid var(--ember);
  line-height: 1.55;
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 300;
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding-top: var(--sp-3);
  margin-top: var(--sp-3);
  border-top: 1px solid rgba(26, 22, 18, 0.08);
}

.form-submit-row .btn {
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.form-submit-row .form-note {
  font-size: var(--step--1);
  color: var(--ash);
  font-style: italic;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .form-row,
  .form-row--triple {
    grid-template-columns: 1fr;
  }
  .product-line {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }
  .product-line-qty {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
  }
  .product-line-qty label {
    margin-bottom: 0;
  }
  .product-line-qty input {
    max-width: 6rem;
  }
}

/* -----  Design system page specific  ----- */
.ds-body { background: var(--cream); }
.ds-section { padding-block: var(--sp-5); border-bottom: 1px solid rgba(26,22,18,0.1); }
.ds-section:last-child { border-bottom: 0; }

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--sp-2);
}

.swatch {
  border: 1px solid rgba(26,22,18,0.08);
  overflow: hidden;
  background: var(--cream);
}

.swatch-chip {
  aspect-ratio: 5 / 3;
  width: 100%;
}

.swatch-info {
  padding: 1rem;
  display: grid;
  gap: 0.1rem;
}

.swatch-name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.swatch-hex {
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  font-family: ui-monospace, 'Courier New', monospace;
}

.type-specimen {
  padding: var(--sp-3) 0;
  border-bottom: 1px dashed rgba(26,22,18,0.15);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--sp-3);
  align-items: baseline;
}

.type-specimen:last-child { border-bottom: 0; }
.type-specimen .meta {
  font-size: var(--step--2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ash);
  font-family: var(--font-body);
  padding-top: 0.6em;
}

.spacer-demo { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-2); align-items: center; padding-block: 0.3rem; }
.spacer-demo .bar { background: var(--ember); height: 12px; }
.spacer-demo .label { font-family: ui-monospace, monospace; font-size: var(--step--2); color: var(--ash); }

.ds-toc {
  position: sticky;
  top: 80px;
  font-size: var(--step--1);
}
.ds-toc ul { list-style: none; }
.ds-toc li { padding: 0.35rem 0; }
.ds-toc a { color: var(--ash); transition: color 0.3s var(--ease); }
.ds-toc a:hover { color: var(--ember); }

.ds-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--sp-5);
  align-items: start;
}

@media (max-width: 900px) {
  .ds-layout { grid-template-columns: 1fr; }
  .ds-toc { position: static; border-bottom: 1px solid rgba(26,22,18,0.15); padding-bottom: var(--sp-3); }
}

/* -----  Responsive refinements  ----- */
@media (max-width: 620px) {
  .section { padding-block: var(--sp-5); }
  .hero { min-height: 80vh; }
  .hero-place { font-size: var(--step-1); }
}

/* -----  Cookie banner  ----- */
.cookie-banner {
  position: fixed;
  left: var(--sp-2);
  right: var(--sp-2);
  bottom: var(--sp-2);
  z-index: 200;
  max-width: 640px;
  margin-inline: auto;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 20px 50px -20px rgba(26, 22, 18, 0.5);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}

.cookie-banner[hidden] { display: none; }
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.cookie-banner p {
  font-size: var(--step--1);
  line-height: 1.55;
  color: var(--ash-light);
  max-width: 46ch;
  margin: 0;
}

.cookie-banner a { color: var(--cream); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner a:hover { color: var(--ember); }

.cookie-banner-actions {
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}

.cookie-banner .btn-primary { padding: 0.75rem 1.4rem; }

.cookie-banner-manage {
  font-size: var(--step--2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-manage:hover { color: var(--ember); }

@media (max-width: 560px) {
  .cookie-banner { left: var(--sp-1); right: var(--sp-1); bottom: var(--sp-1); }
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; }
  .cookie-banner-actions { margin-left: 0; }
}

/* -----  Footer legal row  ----- */
.footer-legal a { text-decoration: underline; text-underline-offset: 2px; }
.footer-legal a:hover { color: var(--ember); }
