/* =========================================================================
   HOLISTIKA NUTRITION — design system
   =========================================================================
   Organised in layers, top to bottom:

     1. Tokens ......... colours, type scale, spacing (edit here to restyle)
     2. Reset .......... a small, opinionated normalise
     3. Base ........... bare HTML elements
     4. Layout ......... .container, .band, .split — page scaffolding
     5. Components ..... .btn, .nav, .card, .prose, forms, footer …
     6. Utilities ...... single-purpose helpers, use sparingly

   Breakpoints (mobile-first — plain rules are mobile, media queries add on):
     tablet   >= 48rem  (768px)
     desktop  >= 64rem  (1024px)
     wide     >= 90rem  (1440px)

   If you are an LLM editing this site: prefer reusing the classes below over
   writing new CSS. If a page needs a one-off look, add a component here with
   a clear name rather than inline styles, so the site stays consistent.
   ========================================================================= */

/* ============================ 1. TOKENS ================================= */

:root {
  /* ---- Colour ---- */
  --c-cream: #f8f5f2; /* default page background */
  --c-blush: #f1ebe4; /* alternating band, nav on the home page */
  --c-olive: #3d4435; /* mobile menu overlay, dark bands */
  --c-white: #ffffff;

  --c-ink: #1a1a1a; /* headings, primary text */
  --c-body: #33322f; /* body copy */
  --c-muted: #6b6862; /* dates, captions, helper text */
  --c-line: #d9d2c9; /* hairlines, input borders */
  --c-accent: #7a8467; /* sage — links on dark, small accents */
  --c-error: #a63d2f;
  --c-success: #4a6b45;

  /* ---- Type ---- */
  --f-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Poppins", "Helvetica Neue", Arial, sans-serif;

  /* Fluid scale: min at mobile, max at desktop. */
  --t-hero: clamp(1.75rem, 1.15rem + 2.6vw, 2.75rem);
  --t-h1: clamp(1.5rem, 1.05rem + 2vw, 2.25rem);
  --t-h2: clamp(1.3rem, 1rem + 1.4vw, 1.75rem);
  --t-h3: clamp(1.1rem, 0.95rem + 0.7vw, 1.3rem);
  --t-body: clamp(0.9rem, 0.87rem + 0.15vw, 0.975rem);
  /* Reading text can grow independently of headings and buttons. */
  --t-copy: clamp(1rem, 0.95rem + 0.2vw, 1.075rem);
  --t-copy-small: 0.9375rem;
  --t-small: 0.8125rem;
  --t-tiny: 0.75rem;

  --lh-tight: 1.25;
  --lh-heading: 1.35;
  --lh-body: 1.75;
  --ls-display: 0.06em; /* letter-spacing for uppercase display type */

  /* ---- Space ---- */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* Vertical rhythm of a full-width band. */
  --band-y: clamp(2.5rem, 1.5rem + 5vw, 5.5rem);

  /* ---- Measure ---- */
  --w-wide: 1400px; /* outer content width */
  --w-text: 900px; /* centred text sections */
  --w-prose: 760px; /* blog post body — optimal reading measure */
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* ---- Effects ---- */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 3px rgb(26 26 26 / 8%);
  --shadow-md: 0 6px 24px rgb(26 26 26 / 10%);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 240ms;
  --dur-slow: 420ms;
}

/* ============================= 2. RESET ================================= */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

/* The build wraps every <img> in a <picture> to add WebP sources. Without
   this, that wrapper becomes an extra box between the image and its container,
   which breaks the `height: 100%` + `object-fit: cover` crops used by .media,
   .card__media, .tile and friends. `display: contents` removes the wrapper
   from layout so the <img> is positioned as a direct child again. */
picture {
  display: contents;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

/* Skip-link target and general focus treatment. */
:focus-visible {
  outline: 2px solid var(--c-ink);
  outline-offset: 3px;
}

/* ============================== 3. BASE ================================= */

body {
  background: var(--c-cream);
  color: var(--c-body);
  font-family: var(--f-body);
  font-size: var(--t-copy);
  font-weight: 300;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

/* Guard against a stray wide element causing sideways scroll. `clip` on the
   root is used rather than `overflow-x: hidden` on <body>, which would turn
   the body into the scroll container and break sticky positioning and
   lazy-loading. */
html {
  overflow-x: clip;
}

/* Headings default to the display face; size comes from the h1–h4 element
   or from an explicit .h-* class. */
h1,
h2,
h3,
h4 {
  color: var(--c-ink);
  font-family: var(--f-display);
  font-weight: 400;
  line-height: var(--lh-heading);
  text-wrap: balance;
}

h1 {
  font-size: var(--t-h1);
}
h2 {
  font-size: var(--t-h2);
}
h3 {
  font-size: var(--t-h3);
}
h4 {
  font-size: var(--t-body);
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: opacity var(--dur) var(--ease);
}

a:hover {
  opacity: 0.65;
}

strong,
b {
  font-weight: 600;
}

hr {
  border: 0;
  border-top: 1px solid var(--c-line);
  margin-block: var(--s-6);
}

/* ============================= 4. LAYOUT ================================ */

/* Horizontal wrapper. Always use one of these rather than raw padding. */
.container {
  width: 100%;
  max-width: var(--w-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--text {
  max-width: calc(var(--w-text) + var(--gutter) * 2);
}

.container--prose {
  max-width: calc(var(--w-prose) + var(--gutter) * 2);
}

/* A full-bleed horizontal stripe of colour. The page is built by stacking
   these, alternating cream / white / blush the way the design does. */
.band {
  padding-block: var(--band-y);
}

.band--cream {
  background: var(--c-cream);
}
.band--white {
  background: var(--c-white);
}
.band--blush {
  background: var(--c-blush);
}
.band--olive {
  background: var(--c-olive);
  color: rgb(255 255 255 / 88%);
}
.band--olive h1,
.band--olive h2,
.band--olive h3,
.band--olive h4 {
  color: var(--c-white);
}

/* Tighter and roomier variants for rhythm control. */
.band--tight {
  padding-block: clamp(1.5rem, 1rem + 2.5vw, 3rem);
}
.band--tall {
  padding-block: clamp(3.5rem, 2rem + 7vw, 7.5rem);
}
.band--flush-top {
  padding-top: 0;
}

/* Two-column text/image row — the workhorse of every page.
   Stacks on mobile, side by side from tablet up. */
.split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

@media (min-width: 48rem) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  /* Text column narrower than the image, and the reverse. */
  .split--text-narrow {
    grid-template-columns: 4fr 5fr;
  }
  .split--text-wide {
    grid-template-columns: 5fr 4fr;
  }

  /* Visually swap the columns without changing source order, so screen
     readers and mobile keep the sensible reading sequence. */
  .split--flip > :first-child {
    order: 2;
  }
}

.split--top {
  align-items: start;
}

/* Equal-width responsive grid, used for service cards and the Instagram row. */
.grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Vertical stack with a consistent gap. */
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.stack--lg {
  gap: var(--s-6);
}
.stack--sm {
  gap: var(--s-2);
}

.center {
  text-align: center;
}
.center-x {
  margin-inline: auto;
}

/* ============================ 5. COMPONENTS ============================= */

/* Compact home introduction: keep the whole guide cover visible, and allow
   the section to grow naturally on small screens or with enlarged text. */
.home-hero {
  padding-block: var(--s-4) var(--s-6);
}

.home-hero .h-hero {
  font-size: clamp(1.65rem, 1rem + 2.3vw, 2.5rem);
}

.home-hero .media {
  justify-self: center;
  max-width: 100%;
}

.home-hero .media img {
  width: auto;
  height: auto;
  max-height: min(32svh, 18rem);
  object-fit: contain;
}

@media (min-width: 48rem) {
  .home-hero {
    padding-block: var(--s-5) var(--s-7);
  }

  .home-hero .media img {
    max-height: min(68svh, 34rem);
  }
}

/* Give laptop and desktop screens a fuller opening without fixing its height. */
@media (min-width: 64rem) {
  .home-hero {
    display: grid;
    align-items: center;
    min-height: calc(92svh - 5rem);
  }
}

/* Keep the welcome portrait in proportion to the adjacent biography. */
.home-welcome-photo {
  width: 100%;
  max-width: 22rem;
  justify-self: center;
}

/* A slightly smaller approach portrait, centred within its column. */
.home-approach-photo {
  width: 85%;
  justify-self: center;
}

/* ---- 5.1 Headings ------------------------------------------------------ */

/* Uppercase, letter-spaced section title: "WAYS TO WORK WITH ME". */
.h-display {
  font-family: var(--f-display);
  font-size: var(--t-h1);
  font-weight: 400;
  letter-spacing: var(--ls-display);
  line-height: var(--lh-heading);
  text-transform: uppercase;
  color: var(--c-ink);
}

.h-hero {
  font-family: var(--f-display);
  font-size: var(--t-hero);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: var(--lh-tight);
  text-transform: uppercase;
  color: var(--c-ink);
}

/* Sentence-case display heading: "Are you ready to transform your life…". */
.h-title {
  font-family: var(--f-display);
  font-size: var(--t-h1);
  font-weight: 400;
  line-height: var(--lh-heading);
  color: var(--c-ink);
}

/* Bold body-face heading, used for punchier sub-sections. */
.h-bold {
  font-family: var(--f-body);
  font-size: var(--t-h2);
  font-weight: 700;
  line-height: var(--lh-heading);
  color: var(--c-ink);
}

.h-sub {
  font-family: var(--f-body);
  font-size: var(--t-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--c-ink);
}

/* Small uppercase label, e.g. above a heading. */
.eyebrow {
  font-family: var(--f-body);
  font-size: var(--t-tiny);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.lead {
  font-size: calc(var(--t-body) * 1.1);
  font-weight: 300;
  line-height: 1.7;
}

.muted {
  color: var(--c-muted);
}

/* ---- 5.2 Buttons ------------------------------------------------------- */

/* Base pill button. Default is the outline style used across the site. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 1em 2em;
  min-height: 48px;
  max-width: 100%;
  border: 1px solid var(--c-ink);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.btn:hover {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-white);
  opacity: 1; /* cancel the global anchor hover */
}

.btn:active {
  transform: translateY(1px);
}

/* Filled variant, for the single most important action on a page. */
.btn--solid {
  background: var(--c-ink);
  color: var(--c-white);
}

.btn--solid:hover {
  background: transparent;
  color: var(--c-ink);
}

/* For use on olive / photographic backgrounds. */
.btn--light {
  border-color: var(--c-white);
  color: var(--c-white);
}

.btn--light:hover {
  background: var(--c-white);
  color: var(--c-ink);
}

.btn--upper {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn--sm {
  padding: 0.85em 1.5em;
  font-size: 0.9375rem;
}

.btn--lg {
  padding: 1.05em 2.4em;
  font-size: 1.125rem;
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* Underlined text link, as used for "Read More". */
.link {
  font-size: var(--t-small);
  text-decoration: underline;
  text-decoration-color: var(--c-ink);
}

/* ---- 5.3 Header & navigation ------------------------------------------ */

/* The header is transparent so it sits on whatever band is beneath it;
   set that colour on the page wrapper with .page-top--blush etc. */
.page-top {
  background: var(--c-cream);
}
.page-top--blush {
  background: var(--c-blush);
}
.page-top--white {
  background: var(--c-white);
}

.site-header {
  position: relative;
  z-index: 20;
  padding-block: var(--s-4);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.nav__logo {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--c-ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav__links {
  display: none; /* desktop nav is hidden on mobile — see .menu */
  list-style: none;
  padding: 0;
  gap: clamp(var(--s-3), 1.6vw, var(--s-5));
}

.nav__link {
  font-size: 1rem;
  font-weight: 400;
  color: var(--c-ink);
  text-decoration: none;
  padding-block: var(--s-1);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}

.nav__link:hover {
  opacity: 1;
  border-bottom-color: var(--c-line);
}

/* Current page. aria-current is set by the nav partial. */
.nav__link[aria-current="page"] {
  border-bottom-color: var(--c-ink);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.nav__social {
  display: none;
  color: var(--c-ink);
}

.nav__social svg {
  width: 20px;
  height: 20px;
}

.nav__cta {
  display: none;
}

@media (min-width: 64rem) {
  .nav__links,
  .nav__social {
    display: flex;
  }
  .nav__cta {
    display: inline-flex;
  }
}

/* ---- 5.4 Mobile menu -------------------------------------------------- */

/* Hamburger / close toggle. Three bars that morph into an X. */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; /* 44px minimum touch target */
  height: 44px;
  padding: 0;
}

@media (min-width: 64rem) {
  .burger {
    display: none;
  }
}

.burger__bar {
  display: block;
  width: 24px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--c-ink);
  border-radius: 2px;
  transition:
    transform var(--dur) var(--ease),
    opacity 150ms var(--ease),
    background-color var(--dur) var(--ease);
}

/* Morph to X while the menu is open. */
.menu-open .burger__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  background: var(--c-white);
}
.menu-open .burger__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.4);
}
.menu-open .burger__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  background: var(--c-white);
}

/* Full-screen overlay panel. Kept in the DOM and animated with opacity +
   visibility so it can transition both ways; `visibility` keeps it out of
   the tab order when closed. */
.menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: var(--s-4) 0 var(--s-7);
  background: var(--c-olive);
  color: var(--c-white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out),
    visibility 0s linear var(--dur-slow);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu__logo {
  font-family: var(--f-display);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  color: var(--c-white);
  text-decoration: none;
}

.menu__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-6);
  padding-block: var(--s-7);
}

.menu__links {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  list-style: none;
  padding: 0;
}

.menu__link {
  display: inline-block;
  padding-block: var(--s-2);
  color: var(--c-white);
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 1.25rem + 3vw, 2.5rem);
  font-weight: 300;
  text-decoration: none;

  /* Each link fades up in sequence once the panel opens. The delay is set
     per item via --i in the markup. */
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 320ms var(--ease-out),
    transform 320ms var(--ease-out);
}

.menu.is-open .menu__link {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(90ms + var(--i, 0) * 55ms);
}

.menu__link[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.menu__foot {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.menu__foot a {
  color: var(--c-white);
}

/* Locks background scrolling while the overlay is open. */
body.has-menu-open {
  overflow: hidden;
}

/* ---- 5.5 Cards -------------------------------------------------------- */

/* Service card: blush panel, inset image, centred text, button at the base. */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--c-blush);
  text-align: center;
}

.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.card:hover .card__media img {
  transform: scale(1.04);
}

.card__title {
  font-family: var(--f-display);
  font-size: var(--t-h3);
  font-weight: 400;
  color: var(--c-ink);
}

.card__body {
  font-size: var(--t-copy-small);
  flex: 1; /* pushes the button to the bottom, so cards align */
}

.card__foot {
  display: flex;
  justify-content: center;
  padding-top: var(--s-2);
}

/* ---- 5.6 Blog listing ------------------------------------------------- */

.posts {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .posts {
    grid-template-columns: repeat(2, 1fr);
  }
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.post-card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--c-blush);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.post-card:hover .post-card__media img {
  transform: scale(1.03);
}

.post-card__date {
  font-size: var(--t-tiny);
  color: var(--c-muted);
}

.post-card__title {
  font-family: var(--f-display);
  font-size: var(--t-h3);
  font-weight: 400;
  line-height: var(--lh-heading);
}

.post-card__title a {
  color: var(--c-ink);
  text-decoration: none;
}

.post-card__excerpt {
  font-size: var(--t-copy-small);
  color: var(--c-body);
}

/* ---- 5.7 Prose (blog post bodies, long text) -------------------------- */

/* Everything inside .prose is styled by element, so markdown written by
   Selen renders correctly with no classes needed. */
.prose {
  font-size: var(--t-copy);
  line-height: var(--lh-body);
}

.prose > * + * {
  margin-top: var(--s-4);
}

.prose h2 {
  font-size: var(--t-h2);
  margin-top: var(--s-7);
}

.prose h3 {
  font-size: var(--t-h3);
  margin-top: var(--s-6);
}

.prose h4 {
  font-family: var(--f-body);
  font-size: var(--t-body);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: var(--s-6);
}

.prose a {
  color: var(--c-ink);
  text-decoration: underline;
  text-decoration-color: var(--c-line);
}

.prose a:hover {
  text-decoration-color: var(--c-ink);
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
}

.prose li + li {
  margin-top: var(--s-2);
}

.prose li::marker {
  color: var(--c-muted);
}

.prose img {
  width: 100%;
  border-radius: var(--r-sm);
  margin-block: var(--s-6);
}

.prose blockquote {
  border-left: 2px solid var(--c-line);
  padding-left: var(--s-4);
  font-style: italic;
  color: var(--c-muted);
}

.prose hr {
  margin-block: var(--s-7);
}

/* Reference list at the foot of a post: smaller, hanging indent. */
.prose .references,
.references {
  font-size: var(--t-tiny);
  color: var(--c-muted);
  line-height: 1.6;
}

.references p {
  padding-left: 1.5rem;
  text-indent: -1.5rem;
}

/* Tables can overflow on phones — let them scroll rather than break out. */
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-small);
}

.prose :is(td, th) {
  border-bottom: 1px solid var(--c-line);
  padding: var(--s-2) var(--s-3);
  text-align: left;
}

.table-scroll {
  overflow-x: auto;
}

/* ---- 5.8 Post header / footer ----------------------------------------- */

.post-header {
  text-align: center;
}

.post-header__title {
  font-family: var(--f-display);
  font-size: var(--t-h1);
  font-weight: 400;
  margin-bottom: var(--s-3);
}

.post-header__meta {
  font-size: var(--t-tiny);
  color: var(--c-muted);
  letter-spacing: 0.04em;
}

.post-hero {
  margin-top: var(--s-6);
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Call to action appended to every blog post. */
.post-cta {
  margin-top: var(--s-8);
  padding: var(--s-6);
  background: var(--c-blush);
  border-radius: var(--r-md);
  text-align: center;
}

/* Previous / next navigation. */
.post-nav {
  display: grid;
  gap: var(--s-4);
  border-top: 1px solid var(--c-line);
  padding-top: var(--s-5);
  font-size: var(--t-small);
}

@media (min-width: 48rem) {
  .post-nav {
    grid-template-columns: 1fr 1fr;
  }
  .post-nav__next {
    text-align: right;
  }
}

.post-nav a {
  color: var(--c-ink);
  text-decoration: none;
}

.post-nav__label {
  display: block;
  font-size: var(--t-tiny);
  color: var(--c-muted);
  margin-bottom: var(--s-1);
}

/* ---- 5.9 Testimonials ------------------------------------------------- */

.quote {
  max-width: var(--w-text);
  margin-inline: auto;
  text-align: center;
}

.quote__body {
  font-size: var(--t-copy-small);
  line-height: 1.8;
}

.quote__body > * + * {
  margin-top: var(--s-3);
}

.quote__author {
  margin-top: var(--s-4);
  font-size: var(--t-tiny);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink);
}

.quote + .quote {
  margin-top: var(--s-8);
  padding-top: var(--s-8);
  border-top: 1px solid var(--c-line);
}

/* Large pull quote on a photographic background. */
.pullquote {
  font-family: var(--f-display);
  font-size: var(--t-h1);
  font-weight: 400;
  line-height: 1.4;
  color: var(--c-ink);
  max-width: 22em;
}

.pullquote__cite {
  display: block;
  margin-top: var(--s-4);
  font-family: var(--f-body);
  font-size: var(--t-small);
  font-weight: 600;
  font-style: normal;
}

/* ---- 5.10 Media ------------------------------------------------------- */

.media {
  overflow: hidden;
}

.media--square {
  aspect-ratio: 1;
}
.media--portrait {
  aspect-ratio: 3 / 4;
}
.media--landscape {
  aspect-ratio: 3 / 2;
}

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

.media--round {
  border-radius: var(--r-md);
}

/* Section with a photo behind the text.
   The photo is a real <img> rather than a CSS background, so the build can
   generate responsive versions of it — a phone shouldn't download a 2000px
   wide image. Put the <img class="feature-photo__img"> first inside the
   section, then the content in a .feature-photo__body. */
.feature-photo {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(20rem, 40vw, 32rem);
  overflow: hidden;
  isolation: isolate;
}

.feature-photo__img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-photo__body {
  position: relative;
}

/* Instagram tile row. */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}

@media (min-width: 48rem) {
  .tiles {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--c-blush);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.tile:hover img {
  transform: scale(1.05);
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(26 26 26 / 0%);
  transition: background-color var(--dur) var(--ease);
}

.tile:hover::after {
  background: rgb(26 26 26 / 12%);
}

/* ---- 5.11 Forms ------------------------------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.label {
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--c-ink);
}

.label__hint {
  font-weight: 300;
  color: var(--c-muted);
}

.input,
.textarea {
  width: 100%;
  padding: 0.8em 1em;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  font-size: var(--t-small);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--c-muted);
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--c-ink);
  box-shadow: 0 0 0 3px rgb(26 26 26 / 8%);
}

.textarea {
  min-height: 9rem;
  resize: vertical;
}

.field-row {
  display: grid;
  gap: var(--s-4);
}

@media (min-width: 48rem) {
  .field-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Honeypot — must stay reachable to bots but invisible and unfocusable
   for people. Do not replace with display:none. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Inline email capture: field and button side by side from tablet up. */
.subscribe {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  max-width: 30rem;
}

@media (min-width: 48rem) {
  .subscribe__row {
    display: flex;
    gap: var(--s-3);
    align-items: stretch;
  }
  .subscribe__row .input {
    flex: 1;
  }
  .subscribe__row .btn {
    white-space: nowrap;
  }
}

/* Form status message, revealed by JS after submitting. */
.form-note {
  font-size: var(--t-copy-small);
  min-height: 1.5em;
}

.form-note--ok {
  color: var(--c-success);
}
.form-note--err {
  color: var(--c-error);
}

.form-note:empty {
  min-height: 0;
}

/* ---- 5.12 Search ------------------------------------------------------ */

.search {
  position: relative;
  max-width: 26rem;
  margin-inline: auto;
}

.search .input {
  padding-left: 2.6rem;
  background: var(--c-white);
  border-radius: var(--r-pill);
}

.search__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--c-muted);
  pointer-events: none;
}

.search__count {
  margin-top: var(--s-3);
  font-size: var(--t-tiny);
  color: var(--c-muted);
  text-align: center;
}

/* Hidden by the search script when a post doesn't match. */
.is-hidden {
  display: none !important;
}

/* ---- 5.13 Footer ------------------------------------------------------ */

.site-footer {
  background: var(--c-blush);
  padding-block: var(--band-y);
}

.footer__inner {
  display: grid;
  gap: var(--s-6);
  align-items: start;
}

@media (min-width: 64rem) {
  .footer__inner {
    grid-template-columns: 1.1fr 1fr;
    column-gap: var(--s-8);
    row-gap: 0;
  }

  /* Put the paragraph and signup form on the same row below the heading. */
  .footer__intro {
    display: contents;
  }

  .footer__title {
    grid-column: 1 / -1;
  }
}

.footer__title {
  font-family: var(--f-display);
  font-size: var(--t-h3);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}

.footer__text {
  font-size: var(--t-copy);
  max-width: 34em;
  margin-bottom: var(--s-4);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid rgb(26 26 26 / 10%);
  font-size: 0.875rem;
  color: var(--c-muted);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  list-style: none;
  padding: 0;
}

.footer__links a {
  color: var(--c-muted);
  text-decoration: none;
}

.site-footer .label,
.site-footer .input {
  font-size: var(--t-copy-small);
}

/* ---- 5.14 FAQ accordion ----------------------------------------------- */

/* Uses native <details>/<summary>, so it works with JavaScript disabled. */
.faq {
  border-bottom: 1px solid rgb(26 26 26 / 12%);
  padding-block: var(--s-4);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  cursor: pointer;
  font-family: var(--f-body);
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--c-ink);
  list-style: none; /* hide the default triangle */
}

.faq__q::-webkit-details-marker {
  display: none;
}

/* Plus sign that rotates into a minus when open. */
.faq__q::after {
  content: "+";
  flex: none;
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1;
  transition: transform var(--dur) var(--ease);
}

.faq[open] .faq__q::after {
  transform: rotate(45deg);
}

.faq__a {
  padding-top: var(--s-3);
  font-size: var(--t-copy-small);
}

.faq__a > * + * {
  margin-top: var(--s-3);
}

/* ---- 5.15 Misc -------------------------------------------------------- */

/* Visible only to screen readers. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Keyboard users get a skip link before the nav. */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--s-4);
  z-index: 100;
  padding: var(--s-2) var(--s-4);
  background: var(--c-ink);
  color: var(--c-white);
  font-size: var(--t-small);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--s-2);
}

/* Simple two-column list, as on "What do we eat/do?". */
.compare {
  display: grid;
  gap: var(--s-6);
  text-align: center;
}

@media (min-width: 48rem) {
  .compare {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
  }
}

.compare__title {
  font-family: var(--f-body);
  font-size: var(--t-h3);
  font-weight: 600;
  margin-bottom: var(--s-4);
}

.compare ul {
  list-style: none;
  padding: 0;
  font-size: var(--t-copy-small);
}

.compare li + li {
  margin-top: var(--s-2);
}

/* Plain centred list with generous line spacing. */
.list-plain {
  list-style: none;
  padding: 0;
}

.list-plain li + li {
  margin-top: var(--s-2);
}

/* Bulleted list used inside page sections (not .prose). */
.list-bullet {
  padding-left: 1.35rem;
  font-size: var(--t-copy-small);
}

.list-bullet li + li {
  margin-top: var(--s-2);
}

/* ============================ 6. UTILITIES ============================= */

.mt-0 {
  margin-top: 0;
}
.mt-3 {
  margin-top: var(--s-3);
}
.mt-4 {
  margin-top: var(--s-4);
}
.mt-5 {
  margin-top: var(--s-5);
}
.mt-6 {
  margin-top: var(--s-6);
}
.mt-7 {
  margin-top: var(--s-7);
}

.text-sm {
  font-size: var(--t-small);
}
.text-center {
  text-align: center;
}

@media (min-width: 48rem) {
  .text-left\@tablet {
    text-align: left;
  }
}

.hide-mobile {
  display: none;
}

@media (min-width: 48rem) {
  .hide-mobile {
    display: revert;
  }
  .hide-tablet-up {
    display: none;
  }
}
