/* ==========================================================================
   NOURISH — food that fits a real life
   Sustainable eating, gut health and everyday cooking
   ========================================================================== */

:root {
  --paper: #fdf8ef;
  --paper-2: #f8f0e0;
  --paper-3: #f2e6d1;
  --white: #fffdf8;
  --ink: #2c2419;
  --ink-soft: #4a3f31;
  --muted: #7b6c58;
  --line: #e6d9c3;
  --line-strong: #d5c3a6;

  --terracotta: #bf5b34;
  --terracotta-dark: #96422a;
  --terracotta-soft: #f7e3d8;
  --olive: #55603f;
  --olive-soft: #e8eddd;
  --butter: #f0d49c;
  --butter-soft: #fbf0d8;
  --berry: #7c3b46;
  --sage: #c9d5b6;

  --font-display: "DM Serif Display", "Iowan Old Style", Georgia, serif;
  --font-body: "Karla", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;

  --container: 1160px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 26px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --shadow: 0 24px 50px -34px rgba(70, 48, 26, .5);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 96px; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .16vw, 1.06rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: .35;
  background-image: radial-gradient(rgba(120, 96, 60, .16) .5px, transparent .6px);
  background-size: 4px 4px;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.04; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 6.2vw, 4.7rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.12; }
h4 { font-family: var(--font-body); font-size: .92rem; font-weight: 700; letter-spacing: .01em; }

p { text-wrap: pretty; }
a { color: var(--terracotta-dark); text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
ul, ol { padding-left: 1.15rem; }
li + li { margin-top: .4rem; }

:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--butter); color: var(--ink); }

/* ---------- Layout ---------- */
.container { width: min(100% - (var(--gutter) * 2), var(--container)); margin-inline: auto; position: relative; z-index: 1; }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.25rem); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 300;
  background: var(--ink); color: var(--paper); padding: .7rem 1.1rem;
  border-radius: 0 0 8px 8px; text-decoration: none;
}
.skip-link:focus { top: 0; color: var(--paper); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; color: var(--terracotta-dark); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 20px; height: 1.5px; background: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 248, 239, .9);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav-wrap { display: flex; align-items: center; gap: 1rem; min-height: 78px; }

.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50% 50% 50% 8px;
  background: var(--terracotta); color: var(--paper);
  display: grid; place-items: center;
  transform: rotate(-8deg);
}
.brand-mark svg { width: 18px; height: 18px; transform: rotate(8deg); }
.brand-word { font-family: var(--font-display); font-size: 1.55rem; line-height: 1; letter-spacing: -.015em; }
.brand small {
  display: block; font-size: .55rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-top: 3px; font-weight: 600;
}

.nav-links { display: flex; align-items: center; gap: .1rem; margin-left: auto; }
.nav-links a {
  font-size: .84rem; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; padding: .45rem .58rem; border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--terracotta-dark); background: var(--terracotta-soft); font-weight: 700; }

.nav-cta { margin-left: .4rem; }
.icon-btn.menu-btn { display: none; }

@media (max-width: 1000px) {
  .nav-cta { display: none; }
  .icon-btn.menu-btn { display: grid; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: .6rem var(--gutter) 1rem;
    display: none;
  }
  .site-header.nav-open .nav-links { display: flex; }
  .nav-links a { padding: .75rem .2rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: .92rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.35rem; border-radius: 999px;
  background: var(--terracotta); color: #fff; border: 1px solid var(--terracotta);
  font-family: var(--font-body); font-size: .9rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: background .2s, transform .2s var(--ease), box-shadow .2s;
  box-shadow: 0 14px 26px -18px rgba(150, 66, 42, .9);
}
.btn:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); color: #fff; transform: translateY(-2px); }
.btn svg { width: 15px; height: 15px; }

.btn--soft { background: var(--white); color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn--soft:hover { background: var(--paper-2); color: var(--ink); border-color: var(--terracotta); }

.btn--olive { background: var(--olive); border-color: var(--olive); }
.btn--olive:hover { background: #414b30; border-color: #414b30; }

.btn--sm { padding: .5rem .9rem; font-size: .8rem; }
.btn--block { width: 100%; }

.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--line-strong); color: var(--ink);
  border-radius: 50%; cursor: pointer;
}
.icon-btn:hover { border-color: var(--terracotta); color: var(--terracotta); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { margin: 1rem 0 1.35rem; max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--terracotta); }
.hero-lead { color: var(--ink-soft); max-width: 48ch; font-size: 1.06rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.9rem; }

.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.pill {
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: .32rem .7rem; font-size: .7rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.pill--olive { background: var(--olive-soft); border-color: #d3ddc2; color: var(--olive); }
.pill--terracotta { background: var(--terracotta-soft); border-color: #eccdbd; color: var(--terracotta-dark); }

/* CSS "photograph" */
.visual {
  position: relative; border-radius: 120px 20px 120px 20px;
  min-height: 440px; overflow: hidden;
  background:
    radial-gradient(circle at 43% 43%, #e8a06b 0 11%, transparent 11.4%),
    radial-gradient(circle at 58% 45%, #c9552f 0 13.5%, transparent 13.9%),
    radial-gradient(circle at 47% 61%, #7d8a52 0 12.5%, transparent 12.9%),
    radial-gradient(circle at 60% 62%, #e9c98b 0 9%, transparent 9.4%),
    radial-gradient(circle at 50% 52%, #fffdf8 0 33%, #f3e7d2 33% 35.5%, transparent 35.9%),
    linear-gradient(150deg, #f6e3c8, #edd2ab 55%, #e2bd8d);
  box-shadow: var(--shadow);
}
.visual::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 110%, rgba(44, 36, 25, .18), transparent 55%);
}
.visual-caption {
  position: absolute; left: 1.4rem; bottom: 1.4rem; right: 1.4rem; z-index: 2;
  background: rgba(253, 248, 239, .92); border-radius: var(--radius);
  padding: .85rem 1rem; font-size: .78rem; color: var(--ink-soft);
  backdrop-filter: blur(6px);
}
.visual-caption strong { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--ink); font-weight: 400; }

@media (max-width: 900px) { .visual { min-height: 340px; border-radius: 80px 16px 80px 16px; } }

/* ---------- Marquee / band ---------- */
.tagline-band { background: var(--olive); color: var(--paper); }
.tagline-inner { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: center; padding-block: 1.1rem; font-family: var(--font-display); font-size: clamp(1rem, 1.6vw, 1.25rem); }
.tagline-inner span { display: inline-flex; align-items: center; gap: .7rem; }
.tagline-inner span::before { content: "✳"; font-family: var(--font-body); font-size: .7rem; color: var(--butter); }

/* ---------- Sections ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.section-head { max-width: 60ch; margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); margin-top: .8rem; max-width: 56ch; }
.section-head--center p { margin-inline: auto; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.6rem;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { color: var(--muted); font-size: .93rem; }
.card h3 { margin: .55rem 0 .6rem; }

.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card-link:hover { color: inherit; }
.card-go { margin-top: auto; padding-top: 1.2rem; font-size: .8rem; font-weight: 700; color: var(--terracotta-dark); display: inline-flex; align-items: center; gap: .35rem; }
.card-go svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.card-link:hover .card-go svg { transform: translateX(3px); }

.card--cream { background: var(--paper-2); border-color: var(--line); }
.card--olive { background: var(--olive); border-color: var(--olive); color: var(--paper); }
.card--olive p { color: rgba(253, 248, 239, .78); }
.card--olive .card-go { color: var(--butter); }
.card--olive .card-num { color: var(--sage); }
.card--terracotta { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.card--terracotta p { color: rgba(255, 255, 255, .85); }
.card--terracotta .card-go, .card--terracotta .card-num { color: var(--butter); }

.card-num { font-family: var(--font-display); font-size: 1.05rem; color: var(--terracotta); }
.icon-round {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--olive-soft); color: var(--olive);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.icon-round svg { width: 21px; height: 21px; }
.icon-round--terracotta { background: var(--terracotta-soft); color: var(--terracotta-dark); }
.icon-round--butter { background: var(--butter-soft); color: #8a6520; }

/* ---------- Page hero ---------- */
.page-hero { padding: clamp(2.25rem, 4.5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; align-items: center; gap: .45rem; font-size: .76rem; color: var(--muted); margin-bottom: 1.1rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--terracotta-dark); }
.crumbs svg { width: 11px; height: 11px; opacity: .65; }
.crumbs span { color: var(--ink-soft); }
.page-hero h1 { margin: .35rem 0 1rem; max-width: 18ch; }
.page-hero .lede { color: var(--muted); max-width: 58ch; font-size: 1.05rem; }

/* ---------- Article ---------- */
.article { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, .88fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 940px) { .article { grid-template-columns: 1fr; } }

.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2.4rem; font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.7rem; font-size: 1.28rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { display: grid; gap: .35rem; }
.prose blockquote {
  margin: 1.6rem 0; padding: 1.2rem 1.5rem;
  background: var(--butter-soft); border-left: 3px solid var(--butter);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display); font-size: 1.3rem; line-height: 1.3;
  color: var(--ink);
}

.article-side { position: sticky; top: 96px; display: grid; gap: 1rem; }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; }
.side-card h4 { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.side-card p { font-size: .87rem; color: var(--muted); }
.side-card ul { font-size: .87rem; color: var(--ink-soft); }
.side-card--terracotta { background: var(--terracotta-soft); border-color: #eccdbd; }
.side-card--terracotta h4 { color: var(--terracotta-dark); }

/* tick list */
.tick-list { list-style: none; padding: 0; display: grid; gap: .55rem; }
.tick-list li { position: relative; padding-left: 1.6rem; margin: 0; font-size: .89rem; color: var(--ink-soft); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 12px; height: 12px;
  border-radius: 50% 50% 50% 3px;
  background: var(--olive-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355603f' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/8px no-repeat;
}

/* ---------- Callout ---------- */
.callout { display: flex; gap: .9rem; padding: 1.15rem 1.25rem; background: var(--butter-soft); border: 1px solid #efdfbc; border-radius: var(--radius); }
.callout svg { flex: none; width: 19px; height: 19px; margin-top: .25rem; color: #8a6520; }
.callout h4 { margin-bottom: .22rem; }
.callout p { font-size: .88rem; color: var(--ink-soft); }
.callout--olive { background: var(--olive-soft); border-color: #d3ddc2; }
.callout--olive svg { color: var(--olive); }
.callout--terracotta { background: var(--terracotta-soft); border-color: #eccdbd; }
.callout--terracotta svg { color: var(--terracotta-dark); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 500px; }
th, td { text-align: left; padding: .75rem 1rem; vertical-align: top; }
thead th {
  background: var(--paper-2); font-size: .64rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); font-weight: 700;
  border-bottom: 1px solid var(--line);
}
tbody tr + tr { border-top: 1px solid var(--line); }
tbody td { color: var(--ink-soft); }
tbody td:first-child { color: var(--ink); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .55rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.2rem; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.05rem 0; font-weight: 700; font-size: .95rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%;
  background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2396422a' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/10px no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.05rem; font-size: .9rem; color: var(--muted); max-width: 68ch; }

/* ---------- Fibre tool ---------- */
.fibre-tool { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 1.9rem); box-shadow: var(--shadow); }
.fibre-head { display: flex; flex-wrap: wrap; gap: .75rem 1rem; justify-content: space-between; align-items: baseline; margin-bottom: 1.15rem; }
.fibre-head h3 { font-size: 1.5rem; }
.fibre-head span { font-size: .78rem; color: var(--muted); }
.fibre-foods { display: flex; flex-wrap: wrap; gap: .45rem; }
.food-btn {
  border: 1px solid var(--line-strong); background: var(--paper); border-radius: 999px;
  padding: .5rem .8rem; font-family: var(--font-body); font-size: .82rem;
  color: var(--ink-soft); cursor: pointer; transition: background .18s, border-color .18s, transform .18s;
}
.food-btn:hover { border-color: var(--olive); color: var(--olive); transform: translateY(-1px); }
.food-btn b { color: var(--olive); font-weight: 700; }
.fibre-bar { height: 10px; background: var(--paper-3); border-radius: 999px; overflow: hidden; margin-top: 1.35rem; }
.fibre-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--olive), #7d8a52); border-radius: 999px; transition: width .4s var(--ease); }
.fibre-total { display: flex; align-items: baseline; gap: .5rem; margin-top: .9rem; }
.fibre-total b { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--olive); }
.fibre-total span { font-size: .78rem; color: var(--muted); }
.fibre-note { font-size: .78rem; color: var(--muted); margin-top: .35rem; min-height: 1.3em; }

/* ---------- Plate diagram ---------- */
.plate {
  aspect-ratio: 1; width: min(100%, 360px); margin-inline: auto; border-radius: 50%;
  border: 10px solid var(--white);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
  background: conic-gradient(
    var(--sage) 0 50%,
    var(--terracotta) 50% 75%,
    var(--butter) 75% 100%
  );
  position: relative;
}
.plate-legend { display: grid; gap: .55rem; margin-top: 1.5rem; }
.plate-legend div { display: flex; align-items: center; gap: .6rem; font-size: .84rem; color: var(--ink-soft); }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 1.15rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: .9rem; margin: 0; }
.steps li::before {
  content: counter(s); font-family: var(--font-display); font-size: 1.05rem;
  width: 36px; height: 36px; border-radius: 50% 50% 50% 8px;
  background: var(--terracotta-soft); color: var(--terracotta-dark);
  display: grid; place-items: center;
}
.steps h4 { margin-bottom: .2rem; }
.steps p { font-size: .89rem; color: var(--muted); }

/* ---------- Recipe card ---------- */
.recipe { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.recipe-top {
  height: 120px;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .18) 0 8px, transparent 8px 16px), var(--olive);
}
.recipe:nth-child(2) .recipe-top { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .16) 0 8px, transparent 8px 16px), var(--terracotta); }
.recipe:nth-child(3) .recipe-top { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .2) 0 8px, transparent 8px 16px), #a57c2e; }
.recipe-body { padding: 1.35rem; }
.recipe-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.recipe-body h3 { margin-bottom: .5rem; }
.recipe-body p { font-size: .9rem; color: var(--muted); }
.recipe-body ul { font-size: .85rem; color: var(--ink-soft); margin-top: .8rem; }

/* ---------- CTA ---------- */
.cta {
  background: var(--terracotta); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.25rem);
  display: flex; flex-wrap: wrap; gap: 1.75rem; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; right: -60px; bottom: -90px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(240, 212, 156, .18);
}
.cta h2 { max-width: 25ch; color: #fff; }
.cta p { color: rgba(255, 255, 255, .86); margin-top: .7rem; max-width: 48ch; }
.cta .btn { background: var(--butter); border-color: var(--butter); color: var(--ink); box-shadow: none; }
.cta .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-2); margin-top: clamp(3rem, 6vw, 5rem); padding-block: 3rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; margin-bottom: 2.25rem; }
.footer-brand p { color: var(--muted); font-size: .87rem; max-width: 32ch; margin-top: .9rem; }
.footer-col h4 { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .85rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.footer-col li { margin: 0; }
.footer-col a { color: var(--ink-soft); font-size: .87rem; text-decoration: none; }
.footer-col a:hover { color: var(--terracotta-dark); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .74rem; color: var(--muted); }
.footer-bottom .disclaimer { max-width: 70ch; line-height: 1.65; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.small { font-size: .82rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hr { height: 1px; background: var(--line); border: 0; margin-block: 1.75rem; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .65s var(--ease), transform .65s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.error-wrap { min-height: min(70vh, 660px); display: grid; place-items: center; text-align: center; padding-block: clamp(3rem, 7vw, 5rem); }
.error-art {
  width: 130px; height: 130px; border-radius: 50% 50% 50% 16px;
  background: var(--terracotta); color: var(--paper);
  display: grid; place-items: center; margin: 0 auto 1.6rem;
  font-family: var(--font-display); font-size: 2.3rem; transform: rotate(-8deg);
}
.error-art span { transform: rotate(8deg); }
.error-wrap h1 { margin-bottom: .8rem; }
.error-wrap .lede { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.error-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.75rem; }
.error-links a {
  border: 1px solid var(--line-strong); background: var(--white); border-radius: 999px;
  padding: .55rem .95rem; font-size: .82rem; font-weight: 700; color: var(--ink-soft); text-decoration: none;
}
.error-links a:hover { border-color: var(--terracotta); color: var(--terracotta-dark); }

@media print {
  .site-header, .site-footer, .cta, .fibre-tool { display: none !important; }
  body { background: #fff; }
  body::before { display: none; }
}
