/* ==========================================================================
   DOSHA — stylesheet
   Colours and fonts live in the :root block below. Change them there.
   ========================================================================== */

:root {
  --burgundy: #691E30;
  --burgundy-deep: #531624;
  --cream: #F2E5C5;
  --ivory: #F8F5EF;
  --ink: #2B201B;
  --muted: #63544B;

  --line: rgba(43, 32, 27, 0.18);
  --line-light: rgba(242, 229, 197, 0.32);

  --font-mark: "Forum", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --header-h: 68px;
  --subnav-h: 56px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --maxw: 1280px;
  --section-pad: clamp(4.5rem, 10vw, 9rem);
}

/* ---------- Base ---------- */

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }

svg { display: block; }

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

[hidden] { display: none !important; }

[tabindex="-1"]:focus { outline: none; }

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--burgundy);
  color: var(--cream);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* On-burgundy surfaces use a cream focus ring */
.order :focus-visible,
.site-footer :focus-visible,
.menu-cat-feature :focus-visible,
.element-fire :focus-visible {
  outline-color: var(--cream);
}

/* ---------- Type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--burgundy);
  text-wrap: balance;
}

.prose p + p { margin-top: 1.1em; }
.prose { max-width: 36rem; }

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

.btn {
  display: inline-block;
  padding: 0.95rem 1.7rem;
  border: 1px solid var(--burgundy);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-small { padding: 0.65rem 1.2rem; font-size: 0.9rem; }

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

.btn-outline { background: transparent; color: var(--burgundy); }
.btn-outline:hover { background: var(--burgundy); color: var(--cream); }

.btn-light { background: var(--cream); color: var(--burgundy); border-color: var(--cream); }
.btn-light:hover { background: transparent; color: var(--cream); }

.btn.is-disabled,
.btn.is-disabled:hover {
  background: transparent;
  color: var(--cream);
  border-color: var(--line-light);
  opacity: 0.85;
  cursor: default;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
}

.wordmark {
  margin-right: auto;
  font-family: var(--font-mark);
  font-size: 1.7rem;
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--burgundy);
  text-decoration: none;
}

.site-nav ul { display: flex; gap: clamp(1.2rem, 2.4vw, 2.4rem); }

.site-nav a,
.footer-nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.97rem;
  letter-spacing: 0.02em;
}

.site-nav a::after,
.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.site-nav a:hover::after,
.footer-nav a:hover::after { transform: scaleX(1); }

.nav-toggle { display: none; }

/* Mobile and tablet navigation (the longer menu titles need the extra room) */
@media (max-width: 1099px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    padding: 2rem var(--gutter) 3rem;
    background: var(--ivory);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
  }
  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.25s ease;
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a {
    display: block;
    padding: 1.1rem 0;
    font-family: var(--font-display);
    font-size: 1.9rem;
    color: var(--burgundy);
  }
  .site-nav a::after { display: none; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0 0.6rem 0.4rem;
    border: 0;
    background: none;
    color: var(--burgundy);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
  }
  .nav-toggle-bars { display: grid; gap: 6px; width: 24px; }
  .nav-toggle-bars span {
    display: block;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.25s ease;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  /* Without JavaScript, show a simple wrapped nav instead */
  html:not(.js) .site-nav {
    position: static; visibility: visible; opacity: 1; padding: 0; overflow: visible;
  }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; gap: 0.5rem 1.2rem; }
  html:not(.js) .site-nav li { border: 0; }
  html:not(.js) .site-nav a { font-family: var(--font-body); font-size: 0.95rem; padding: 0; }
  html:not(.js) .header-inner { height: auto; flex-wrap: wrap; padding-block: 1rem; }
  html:not(.js) .nav-toggle { display: none; }
}

@media (max-width: 1099px) {
  .header-order { margin-left: 0.25rem; }
}

@media (min-width: 1100px) {
  .wordmark { margin-right: 0; }
  .header-inner { gap: 2rem; }
  .site-nav { margin-left: auto; }
}

/* ---------- Hero ---------- */

.hero {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  padding-block: clamp(3rem, 8vw, 6rem);
}

.hero-copy { align-self: center; }

.hero-mark {
  display: block;
  font-family: var(--font-mark);
  font-weight: 400;
  font-size: clamp(4rem, 19vw, 9rem);
  line-height: 0.95;
  letter-spacing: 0.06em;
  color: var(--burgundy);
}

.hero-headline {
  display: block;
  max-width: 15ch;
  margin-top: clamp(1.4rem, 3vw, 2.4rem);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.95rem, 5vw, 3.2rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.hero-lede {
  max-width: 30rem;
  margin-top: 1.6rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.hero-art {
  width: min(78%, 380px);
  justify-self: center;
  align-self: center;
}
.hero-logo { width: 100%; height: auto; fill: var(--burgundy); --a: 360deg; }


@media (min-width: 1000px), (min-width: 700px) and (orientation: landscape) {
  .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    padding-block: clamp(4rem, 8vw, 7rem);
  }
  .hero-mark { font-size: clamp(3.5rem, 11vw, 10.5rem); }
  .hero-art { width: min(100%, 460px); justify-self: end; }
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section-pad);
}

.section[id], .menu-cat[id] { scroll-margin-top: var(--header-h); }

.split {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: start;
  }
}

.section-head { max-width: 42rem; }
.section-intro { margin-top: 1.3rem; max-width: 34rem; color: var(--muted); }

/* ---------- Our Story ---------- */

.story { background: var(--cream); }

.story .section-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

.elements {
  display: grid;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.element {
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.element:last-child { border-bottom: 0; }

.element .glyph { margin-bottom: clamp(1.5rem, 4vw, 3.5rem); }

.element h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.8rem;
  line-height: 1.2;
  color: var(--burgundy);
}
.element p { margin-top: 0.8rem; max-width: 24rem; }

.glyph {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: var(--burgundy);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.glyph-sm { width: 40px; height: 40px; }

.element-fire { background: var(--burgundy); color: var(--cream); }
.element-fire h3 { color: var(--cream); }
.element-fire .glyph { stroke: var(--cream); }

@media (max-width: 899px) {
  /* Fire becomes a full-bleed burgundy band on small screens */
  .element-fire {
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    border-bottom: 0;
  }
}

@media (min-width: 900px) {
  .elements { grid-template-columns: repeat(4, 1fr); }
  .element {
    min-height: 22rem;
    padding: 2.5rem 1.75rem 3rem;
    border-bottom: 0;
    border-left: 1px solid var(--line);
  }
  .element:first-child { border-left: 0; padding-left: 0; }
  .element:last-child { padding-right: 1.75rem; }
  .element-fire { border-left-color: var(--burgundy); }
  .element .glyph { margin-bottom: 7rem; }
}

.philosophy {
  margin-top: clamp(3.5rem, 8vw, 7rem);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 7rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--burgundy);
}

/* ---------- Menu ---------- */

.menu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.menu-head-copy { max-width: 40rem; }

.menu-logo {
  flex: none;
  width: clamp(100px, 17vw, 210px);
  height: auto;
  fill: var(--burgundy);
  --a: 360deg;
}
.menu-note { margin-top: clamp(3rem, 7vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--line); max-width: 38rem; }
.note-title { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; color: var(--burgundy); }
.menu-note p { margin-top: 0.6rem; color: var(--muted); }
.section-intro-2 { margin-top: 0.8rem; }

.menu-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.menu-tab {
  position: relative;
  flex: 1 0 auto;
  min-height: 3.4rem;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.6vw, 1.3rem);
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease;
}
.menu-tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: var(--burgundy);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.menu-tab:hover { color: var(--burgundy); }
.menu-tab[aria-selected="true"] { color: var(--burgundy); background: var(--cream); }
.menu-tab[aria-selected="true"]::after { transform: scaleX(1); }
.menu-tab:focus-visible { outline-offset: -4px; }

/* Without JavaScript every category is simply shown one after another */
html:not(.js) .menu-tabs { display: none; }
html:not(.js) .menu-panel + .menu-panel { margin-top: 4rem; }

.menu-panel { padding-top: clamp(2.5rem, 6vw, 4rem); }
.menu-panel:focus { outline: none; }

.panel-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--burgundy);
}
.panel-intro { margin-top: 1rem; max-width: 34rem; color: var(--muted); }
.panel-title + .product-grid { margin-top: clamp(2rem, 5vw, 3.5rem); }

/* Spiral-origin reveal when a category opens (short, never blocks the content) */
@media (prefers-reduced-motion: no-preference) {
  .menu-panel.is-entering { animation: spiral-reveal 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
  @keyframes spiral-reveal {
    from { clip-path: circle(0% at 92% -6rem); opacity: 0.6; }
    to   { clip-path: circle(160% at 92% -6rem); opacity: 1; }
  }
  /* The logo is revealed with a clockwise sweep, following the way the spiral winds. Its shape is never altered. */
  @property --a { syntax: '<angle>'; inherits: false; initial-value: 360deg; }
  .menu-logo {
    -webkit-mask-image: conic-gradient(from 58deg at 50% 50%, #000 var(--a), transparent var(--a));
            mask-image: conic-gradient(from 58deg at 50% 50%, #000 var(--a), transparent var(--a));
  }
  .hero-logo {
    -webkit-mask-image: conic-gradient(from 58deg at 50% 50%, #000 var(--a), transparent var(--a));
            mask-image: conic-gradient(from 58deg at 50% 50%, #000 var(--a), transparent var(--a));
    animation: sweep 2.4s cubic-bezier(0.45, 0, 0.25, 1) 0.25s both;
  }
  .js .menu:not(.is-in) .menu-logo { --a: 0deg; }
  .js .menu.is-in .menu-logo.sweep { animation: sweep 1.5s cubic-bezier(0.45, 0, 0.25, 1) both; }
  @keyframes sweep { from { --a: 0deg; } to { --a: 360deg; } }
}

/* Product photo or placeholder */
.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream);
}
.product-media::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(105, 30, 48, 0.12) 2px, transparent 2.5px);
  background-size: 34px 34px;
  background-position: 6px 8px;
}
.product-spiral {
  position: absolute;
  left: 50%; top: 50%;
  width: 58%;
  height: auto;
  transform: translate(-50%, -50%);
  fill: var(--burgundy);
  fill-opacity: 0.5;
}
.product-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-media.has-photo .product-spiral,
.product-media.has-photo::before { display: none; }

.product-grid { display: grid; gap: 3rem 2rem; }
@media (min-width: 560px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 3.5rem 2.5rem; } }

.product-name {
  position: relative;
  display: inline-block;
  margin: 1.2rem 0 0;
  padding-bottom: 0.45rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--ink);
  transition: color 0.3s ease;
}
.product-name::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--burgundy);
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.45s ease;
}
.product:hover .product-name,
.product:focus-within .product-name { color: var(--burgundy); }
.product:hover .product-name::after,
.product:focus-within .product-name::after { transform: scaleX(1); }
.product:hover .product-img { transform: scale(1.035); }

.product-meta { margin: 0.9rem 0 0; font-size: 0.97rem; }
.product-meta div { display: flex; gap: 0.8rem; padding: 0.35rem 0; border-top: 1px solid var(--line); }
.product-meta dt { flex: none; min-width: 5.2rem; color: var(--muted); }
.product-meta dd { margin: 0; }

.product-order {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--burgundy);
  border-radius: 2px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--burgundy);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.product-order:hover { background: var(--burgundy); color: var(--cream); }
.product-order.is-disabled,
.product-order.is-disabled:hover {
  padding-inline: 0;
  border-color: transparent;
  background: none;
  color: var(--muted);
  font-weight: 400;
  cursor: default;
}

.cat-tag {
  display: inline-block;
  margin-top: 1.4rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--burgundy);
  border-radius: 2px;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--burgundy);
}

/* The Four: the one boxed, burgundy feature */
.feature {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(0rem, 1vw, 0.5rem);
  padding: clamp(1.75rem, 6vw, 5rem);
  background: var(--burgundy);
  color: var(--cream);
}
.feature .panel-title { color: var(--cream); font-size: clamp(3rem, 8vw, 5.5rem); line-height: 1; }
.feature-desc { margin-top: 1.2rem; max-width: 30rem; opacity: 0.92; }
.feature-flavours { margin-top: 2rem; }
.feature-flavours li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line-light);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.35;
}
.feature-flavours li:last-child { border-bottom: 1px solid var(--line-light); }
.feature .product-meta div { border-top-color: var(--line-light); }
.feature .product-meta dt { color: var(--cream); opacity: 0.8; }
.feature .product-order { border-color: var(--cream); color: var(--cream); }
.feature .product-order:hover { background: var(--cream); color: var(--burgundy); }
.feature .product-order.is-disabled,
.feature .product-order.is-disabled:hover { border-color: transparent; background: none; color: var(--cream); opacity: 0.8; }
.feature .product-media { background: var(--burgundy-deep); }
.feature .product-media::before { background-image: radial-gradient(circle, rgba(242, 229, 197, 0.16) 2px, transparent 2.5px); }
.feature .product-spiral { fill: var(--cream); fill-opacity: 0.65; }
.feature-media { aspect-ratio: 4 / 5; }

@media (min-width: 700px) {
  .feature { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(3rem, 6vw, 5rem); align-items: center; }
}

/* ---------- Process ---------- */

.process { background: var(--cream); }
.process .section-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }

.process-statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 30rem;
}

.steps {
  display: grid;
  gap: 2rem;
  margin-top: clamp(3rem, 7vw, 5.5rem);
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 1.2rem; align-items: start; }
.steps .glyph { grid-row: span 2; margin-top: 0.15rem; }
.steps h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--burgundy);
}
.steps p { color: var(--ink); }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
  .steps li { display: block; }
  .steps .glyph { margin-bottom: 1.4rem; }
  .steps p { margin-top: 0.4rem; max-width: 15rem; }
}

/* ---------- Made to order ---------- */

.order { background: var(--burgundy); color: var(--cream); }
.order .display { color: var(--cream); max-width: 14ch; }
.order-status { color: var(--cream); opacity: 0.88; }
.order .prose p:last-child { margin-top: 1.8rem; }

/* ---------- Contact ---------- */

.contact-list { max-width: 32rem; }
.contact-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:first-child { border-top: 1px solid var(--line); }
.c-label { font-family: var(--font-display); font-size: 1.3rem; color: var(--burgundy); }
.c-value { color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.c-value-plain { color: var(--ink); }
.c-value a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color 0.25s ease; }
.c-value a:hover { color: var(--burgundy); }

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

.site-footer {
  background: var(--burgundy);
  color: var(--cream);
  padding-top: clamp(3.5rem, 8vw, 6rem);
}

.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 4rem; align-items: start; }
}

.footer-mark {
  font-family: var(--font-mark);
  font-size: 2.4rem;
  letter-spacing: 0.14em;
  line-height: 1;
}
.footer-line { margin-top: 0.9rem; opacity: 0.88; }

.footer-nav ul, .footer-social { display: grid; gap: 0.7rem; }
.footer-social a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.footer-social a:hover { text-decoration-thickness: 2px; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-block: 1.6rem 2rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.92rem;
}
.back-to-top { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.back-to-top:hover { text-decoration-thickness: 2px; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Story additions ---------- */
.story-intro { margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.story .story-title { margin-bottom: clamp(2.5rem, 6vw, 4rem); max-width: 22ch; }
.intro-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.15; color: var(--burgundy); max-width: 14ch; }
.story .prose p:last-child { font-family: var(--font-display); font-size: 1.3rem; color: var(--burgundy); }
.element-sub { margin-top: 0.3rem !important; font-family: var(--font-display); font-style: italic; color: var(--muted); }
.element-fire .element-sub { color: var(--cream); opacity: 0.85; }
.element-sub + p { margin-top: 0.9rem; }

.purpose {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--line);
}
.purpose-title { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--burgundy); }
.purpose-item p { margin-top: 1rem; font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.5; max-width: 30rem; }
@media (min-width: 900px) {
  .purpose { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); }
}

/* ---------- Hero photograph ---------- */
.hero-art.has-photo { width: min(100%, 520px); }
.hero-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.menu-tabs::-webkit-scrollbar { display: none; }
.product-desc { margin-top: 0.5rem; max-width: 26rem; color: var(--muted); font-size: 0.97rem; }

.title-sub { display: block; margin-top: 0.6rem; font-size: 0.36em; font-style: italic; letter-spacing: 0; line-height: 1.2; opacity: 0.9; }

.order-details { margin: 1.6rem 0 0; }
.order-details div { display: flex; justify-content: space-between; gap: 1.5rem; padding: 0.8rem 0; border-top: 1px solid var(--line-light); }
.order-details div:last-child { border-bottom: 1px solid var(--line-light); }
.order-details dt { opacity: 0.8; }
.order-details dd { margin: 0; font-family: var(--font-display); font-size: 1.15rem; text-align: right; }
.order .order-status { margin-top: 1.4rem; }

.product-meta div { justify-content: space-between; }
.product-meta dt { min-width: 0; }
.product-meta dd { text-align: right; }
.panel-intro + .product-grid { margin-top: clamp(2rem, 5vw, 3.5rem); }

.feature-media { aspect-ratio: 3 / 4; }

/* Fermentation section with a photograph */
.process-photo { margin: 0; }
.process.has-bg { position: relative; background: var(--burgundy-deep); color: var(--cream); overflow: hidden; padding-top: 0; }
.process.has-bg .display,
.process.has-bg .process-statement,
.process.has-bg .prose { color: var(--cream); }
.process.has-bg .process-photo { aspect-ratio: 4 / 3; margin-bottom: var(--section-pad); }
.process.has-bg .process-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }

@media (min-width: 900px), (min-width: 700px) and (orientation: landscape) {
  .process.has-bg { padding-top: var(--section-pad); }
  .process.has-bg .process-photo {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 50%; aspect-ratio: auto; margin: 0;
  }
  .process.has-bg .process-photo::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--burgundy-deep) 0%, rgba(83, 22, 36, 0) 20%);
  }
  .process.has-bg .process-inner { position: relative; z-index: 1; }
  .process.has-bg .process-inner > * { max-width: 44%; }
  .process.has-bg .process-split { display: block; max-width: 44%; }
  .process.has-bg .process-split .prose { margin-top: 2rem; }
}


/* ---------- Landscape phones: short screens ---------- */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --header-h: 56px; --section-pad: 3.5rem; }
  .wordmark { font-size: 1.45rem; }
  .hero-grid { padding-block: 1.75rem; gap: 2rem; }
  .hero-headline { margin-top: 0.9rem; font-size: clamp(1.7rem, 4.2vw, 2.4rem); }
  .hero-lede { margin-top: 1rem; font-size: 1.05rem; }
  .hero-actions { margin-top: 1.4rem; }
  .hero-art { width: min(100%, 300px); }
  .feature { padding: 1.75rem; }
  .feature .panel-title { font-size: 3rem; }
  .menu-head { margin-bottom: 1.5rem; }
}

/* Keep photos from becoming huge on wide, short or in-between screens */
.feature-media { max-width: 30rem; width: 100%; justify-self: center; }
.process.has-bg .process-photo img { min-height: 100%; }

/* Dough photo proportions when stacked above the text */
.process.has-bg .process-photo { aspect-ratio: 1 / 1; }
@media (min-width: 560px) { .process.has-bg .process-photo { aspect-ratio: 3 / 2; } }
@media (min-width: 900px), (min-width: 700px) and (orientation: landscape) {
  .process.has-bg .process-photo { aspect-ratio: auto; }
}

/* ---------- Hero on phones and portrait tablets: spiral sits to the right of DOSHA ---------- */
@media (max-width: 699px), (max-width: 999px) and (orientation: portrait) {
  .hero-grid { position: relative; }
  .hero-mark { font-size: min(14vw, 7.5rem); }
  .hero-art {
    position: absolute;
    top: calc(clamp(3rem, 8vw, 6rem) - 5vw);
    right: var(--gutter);
    width: min(30vw, 260px);
    justify-self: auto;
  }
  .hero-art.has-photo { position: static; width: 100%; }
}

/* Very narrow phones (320px): keep the header on one line */
@media (max-width: 359px) {
  .wordmark { font-size: 1.3rem; letter-spacing: 0.1em; }
  .header-inner { gap: 0.5rem; }
  .btn-small { padding: 0.55rem 0.9rem; }
  .header-order { margin-left: 0; }
  .nav-toggle { padding-left: 0.2rem; gap: 0.5rem; }
}

.contact-web { margin-top: 2rem; font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.7rem); color: var(--burgundy); letter-spacing: 0.01em; overflow-wrap: anywhere; }

.process-sub { margin: clamp(2.5rem, 6vw, 4rem) 0 1.5rem; max-width: none; text-wrap: balance; }
.process.has-bg .process-sub { color: var(--cream); }
.order .prose p + p { margin-top: 1.1em; }

.story-intro .display { max-width: 12ch; }

/* Dough photograph, very soft, behind "Baked to order" */
.order { position: relative; overflow: hidden; }
.order > .wrap { position: relative; z-index: 1; }
.order.has-bg-photo::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--order-bg);
  background-size: cover;
  background-position: 50% 72%;
  opacity: 0.13;
  pointer-events: none;
}

/* Fermentation photo is square: keep more of it when stacked on tablets */
@media (min-width: 560px) { .process.has-bg .process-photo { aspect-ratio: 4 / 3; } }
@media (min-width: 900px), (min-width: 700px) and (orientation: landscape) {
  .process.has-bg .process-photo { aspect-ratio: auto; }
}
.process.has-bg .process-photo img { object-position: 50% 58%; }

.loaf-note { margin-top: clamp(2rem, 5vw, 3rem); }

.loaf-soon { display: flex; flex-direction: column; justify-content: center; gap: 0.6rem; padding-top: 0.5rem; }
.loaf-soon p { margin: 0; font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: var(--ink); }
.loaf-soon .cat-tag { align-self: flex-start; margin: 0; font-family: var(--font-body); font-size: 0.9rem; color: var(--burgundy); }
@media (min-width: 900px) {
  .loaf-soon { grid-column: span 2; align-self: start; aspect-ratio: auto; padding: 0 0 0 2.5rem; border-left: 1px solid var(--line); min-height: 14rem; }
}
