/* Yardley Kitchen of Kindness — core system */

:root {
  /* Brand */
  --coral: #F16457;
  --coral-deep: #D84A3D;
  --coral-tint: #FDEAE5;
  --peach: #FAA755;
  --peach-soft: #FCE0B8;
  --burgundy: #7C1D2B;      /* apron / Our Kind Kitchen mark */
  --burgundy-deep: #5C1420;
  --cream: #FBF7E0;
  --paper: #FFFDF4;
  --ink: #2C1810;

  /* Surfaces & lines */
  --rule: rgba(124, 29, 43, 0.16);
  --rule-soft: rgba(124, 29, 43, 0.09);
  --ink-soft: rgba(44, 24, 16, 0.78);
  --ink-mute: rgba(44, 24, 16, 0.58);

  /* Legacy aliases — keep so existing pages keep working */
  --color-primary-maroon: var(--coral);
  --color-peach: var(--peach);
  --color-cream: var(--cream);
  --color-dark: var(--ink);
  --color-white: #FFFFFF;
  --color-background: var(--cream);
  --color-text: var(--ink);
  --color-heading: var(--burgundy);
  --color-accent: var(--peach);

  /* Type */
  --font-display: 'Bogue', 'Iowan Old Style', Georgia, serif;
  --font-heading: var(--font-display);
  --font-body: 'DM Sans', 'Helvetica Neue', system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.125rem, 0.4vw + 1.05rem, 1.3rem);
  --step-2: clamp(1.4rem, 0.8vw + 1.2rem, 1.75rem);
  --step-3: clamp(1.9rem, 2vw + 1.35rem, 2.9rem);
  --step-4: clamp(2.4rem, 3.6vw + 1.4rem, 4.4rem);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --pad-tight: clamp(3rem, 5vw, 4.5rem);
  --pad: clamp(4rem, 7vw, 7rem);
  --pad-loose: clamp(5rem, 9vw, 9rem);

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  /* the bowl silhouette from the logo mark */
  --bowl: var(--radius-md) var(--radius-md) 46% 46% / var(--radius-md) var(--radius-md) 34% 34%;

  /* Shadows — quiet, warm, never coloured neon */
  --shadow-sm: 0 1px 2px rgba(92, 20, 32, 0.06), 0 6px 18px rgba(92, 20, 32, 0.05);
  --shadow-md: 0 2px 4px rgba(92, 20, 32, 0.07), 0 14px 36px rgba(92, 20, 32, 0.09);
  --shadow-lg: 0 4px 8px rgba(92, 20, 32, 0.08), 0 28px 64px rgba(92, 20, 32, 0.13);

  --transition-fast: 0.18s cubic-bezier(0.2, 0, 0.2, 1);
  --transition-normal: 0.32s cubic-bezier(0.2, 0, 0.2, 1);

  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1040px;
  --container-xl: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* the off-canvas mobile nav is position:fixed, so only clipping at the
     document root keeps it from widening the page */
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--ink);
  background-color: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* clip, not hidden — hidden would make body a scroll container and break
     the sticky header. Keeps the off-canvas nav from widening the page. */
  overflow-x: clip;
}

/* ---------- Typography ---------- */

/* Bogue only ships Bold Italic, so it is the display voice — used big and
   sparingly. DM Sans does the working headings. */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  color: var(--burgundy);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); margin-bottom: var(--spacing-sm); }
h2 { font-size: var(--step-3); margin-bottom: var(--spacing-sm); }

h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--burgundy);
  line-height: 1.25;
  letter-spacing: -0.011em;
  text-wrap: balance;
  margin-bottom: 0.5rem;
}

h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p {
  margin-bottom: var(--spacing-sm);
  color: var(--ink-soft);
}

p:last-child { margin-bottom: 0; }

/* Readable measure by default in prose blocks */
.prose p { max-width: 62ch; }

.lead {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 58ch;
}

/* Small caps label — the quiet counterpart to the italic display */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1rem;
}

.eyebrow-mute { color: var(--peach); }

/* Big italic statement line */
.display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--burgundy);
}

a {
  color: var(--burgundy);
  text-decoration-color: var(--rule);
  text-underline-offset: 0.18em;
  transition: color var(--transition-fast);
}

a:hover { color: var(--coral); }

strong { font-weight: 600; color: var(--ink); }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.container-narrow { max-width: var(--container-lg); }
.container-prose { max-width: 720px; }

section { padding: var(--pad) 0; }

.section-tight { padding: var(--pad-tight) 0; }
.section-loose { padding: var(--pad-loose) 0; }

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

.section-deep {
  background-color: var(--burgundy);
  color: rgba(255, 255, 255, 0.86);
}

/* Dark surfaces. Element selectors like `p { color: … }` beat an inherited
   colour, so every dark context has to restate it or the body copy goes
   near-black on burgundy. Keep new dark sections on this list. */
.section-deep,
.cta-deep,
.bg-maroon,
.banner-maroon,
.page-hero {
  color: rgba(255, 255, 255, 0.86);
}

.section-deep h1, .section-deep h2, .section-deep h3, .section-deep h4, .section-deep .display,
.cta-deep h1, .cta-deep h2, .cta-deep h3, .cta-deep h4, .cta-deep .display,
.bg-maroon h1, .bg-maroon h2, .bg-maroon h3, .bg-maroon h4, .bg-maroon .display,
.banner-maroon h1, .banner-maroon h2, .banner-maroon h3, .banner-maroon h4,
.page-hero h1, .page-hero h2, .page-hero h3, .page-hero h4 { color: #fff; }

.section-deep p, .section-deep li,
.cta-deep p, .cta-deep li,
.bg-maroon p, .bg-maroon li,
.banner-maroon p, .banner-maroon li,
.page-hero p, .page-hero li { color: rgba(255, 255, 255, 0.82); }

.section-deep strong, .cta-deep strong,
.bg-maroon strong, .banner-maroon strong,
.page-hero strong { color: #fff; }

.section-deep a:not(.btn), .cta-deep a:not(.btn),
.bg-maroon a:not(.btn), .banner-maroon a:not(.btn),
.page-hero a:not(.btn) { color: var(--peach); }

/* Hairline between stacked light sections instead of a hard colour switch */
.rule-top { border-top: 1px solid var(--rule-soft); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast);
}

.btn-primary {
  background-color: var(--coral);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--coral-deep);
  color: #fff;
}

.btn-secondary {
  background-color: var(--peach);
  color: var(--burgundy-deep);
}

.btn-secondary:hover {
  background-color: #F2933B;
  color: var(--burgundy-deep);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--rule);
  color: var(--burgundy);
}

.btn-outline:hover {
  background-color: var(--burgundy);
  border-color: var(--burgundy);
  color: #fff;
}

/* On dark burgundy surfaces */
.btn-on-deep {
  background-color: #fff;
  color: var(--burgundy);
}

.btn-on-deep:hover { background-color: var(--cream); color: var(--burgundy-deep); }

.btn-ghost-light {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-ghost-light:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-lg { padding: 1.05rem 2rem; font-size: 1.0625rem; }
.btn-sm { padding: 0.65rem 1.15rem; font-size: 0.9375rem; }

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

/* Text link with a moving arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--coral);
  text-decoration: none;
}

.link-arrow svg { transition: transform var(--transition-fast); }
.link-arrow:hover { color: var(--coral-deep); }
.link-arrow:hover svg { transform: translateX(4px); }

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

.card {
  background-color: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: border-color var(--transition-fast);
}

.card:hover { border-color: var(--rule); }

.card h3 { margin-bottom: 0.5rem; }

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

/* ---------- Images ---------- */

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

.img-rounded { border-radius: var(--radius-md); }

/* The mark's bowl silhouette, used as a photo crop */
.img-bowl {
  border-radius: var(--bowl);
  overflow: hidden;
}

figure { margin: 0; }

figcaption {
  margin-top: 0.75rem;
  font-size: var(--step--1);
  color: var(--ink-mute);
}

/* ---------- Grid ---------- */

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

/* ---------- Small utilities kept from before ---------- */

.text-center { text-align: center; }
.text-maroon { color: var(--coral); }
.text-peach { color: var(--peach); }
.text-burgundy { color: var(--burgundy); }

.bg-maroon { background-color: var(--burgundy); color: #fff; }
.bg-peach { background-color: var(--peach); color: var(--burgundy-deep); }
.bg-white { background-color: var(--paper); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.py-sm { padding-top: var(--spacing-sm); padding-bottom: var(--spacing-sm); }
.py-md { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-lg { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }

/* ---------- Accessibility ---------- */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
  border-radius: 4px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }

/* ---------- Motion ---------- */

/* Only hide before reveal when JS is actually there to bring it back */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0, 0.2, 1);
}

@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;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
  }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media print {
  .no-print { display: none; }
}
