/* ==========================================================================
   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 */
@media (max-width: 899px) {
  .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: 899px) {
  .header-order { margin-left: 0.25rem; }
}

@media (min-width: 900px) {
  .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-top: clamp(3rem, 8vw, 6rem);
}

.hero-copy { align-self: center; padding-bottom: 1rem; }

.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(100%, 360px);
  justify-self: center;
  align-self: end;
}
.hero-art svg { width: 100%; height: auto; }

.arch-fill { fill: var(--burgundy); }
.arch-lines path { stroke: var(--cream); stroke-width: 1.1; stroke-opacity: 0.6; }
.arch-core { fill: var(--burgundy-deep); }
#dimples circle { fill: #F2E5C5; fill-opacity: 0.3; }

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: stretch;
    padding-top: clamp(4rem, 8vw, 7rem);
  }
  .hero-mark { font-size: clamp(5rem, 11vw, 10.5rem); }
  .hero-copy { padding-bottom: clamp(3rem, 7vw, 6rem); }
  .hero-art { width: min(100%, 420px); justify-self: end; }
}

/* One orchestrated moment: the arch draws itself on load */
@media (prefers-reduced-motion: no-preference) {
  .arch-lines path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    animation-delay: calc(var(--i) * 0.2s + 0.15s);
  }
  .arch-core, .arch-dimples { animation: settle 1.4s ease 0.9s both; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes settle { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- 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); }

/* ---------- Intro ---------- */

.intro { padding-bottom: calc(var(--section-pad) * 0.9); }
.intro .display { max-width: 14ch; }
@media (min-width: 900px) {
  .intro .prose { padding-top: 0.6rem; }
}

/* ---------- 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(3.2rem, 12vw, 9rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--burgundy);
}

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

.menu .section-head { margin-bottom: 2.5rem; }

.menu-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  height: var(--subnav-h);
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  background: var(--ivory);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.menu-nav::-webkit-scrollbar { display: none; }
.menu-nav ul { display: flex; gap: 2rem; height: 100%; align-items: stretch; white-space: nowrap; }
.menu-nav a {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
  text-decoration: none;
  font-size: 0.97rem;
  color: var(--muted);
  transition: color 0.25s ease;
}
.menu-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.menu-nav a:hover,
.menu-nav a[aria-current="true"] { color: var(--burgundy); }
.menu-nav a:hover::after,
.menu-nav a[aria-current="true"]::after { transform: scaleX(1); }

.menu-cat {
  display: grid;
  gap: 2rem;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  scroll-margin-top: calc(var(--header-h) + var(--subnav-h));
}
.menu-cat + .menu-cat { border-top: 1px solid var(--line); }

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

.cat-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);
}
.cat-note { margin-top: 0.8rem; color: var(--muted); }

.cat-photo { margin-top: 2rem; max-width: 26rem; }
.cat-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.flavour-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.35;
}
.flavour-list li:first-child { border-top: 1px solid var(--line); }

/* The Four: a single burgundy block, the only boxed element on the page */
.menu-cat-feature {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(2rem, 6vw, 5rem);
  background: var(--burgundy);
  color: var(--cream);
}
.menu-cat-feature + .menu-cat { border-top: 0; }
.menu-cat-feature .cat-title {
  color: var(--cream);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
}
.menu-cat-feature .cat-note { color: var(--cream); opacity: 0.85; }

.flavour-grid { display: grid; }
.flavour-grid li {
  padding: 1.3rem 0;
  border-bottom: 0;
  border-top: 1px solid var(--line-light);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.35;
}
@media (min-width: 640px) {
  .flavour-grid { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}

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

/* ---------- 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;
  }
}
