/* Cinnamon & Sugar — single stylesheet for the whole site. */

/* Design tokens */
:root {
  /* Palette — warm bakery: cream, crust, cinnamon, caramel */
  --cream:        #fbf5ec;
  --cream-deep:   #f3e8d8;
  --paper:        #ffffff;
  --ink:          #2c2018;
  --ink-soft:     #6b5a4c;
  --ink-faint:    #9a8878;
  --cinnamon:     #8f4a20;
  --cinnamon-dk:  #6d3716;
  --caramel:      #c98a3c;
  --caramel-soft: #f0d9b5;
  --pistachio:    #6f7c4b;
  --line:         #e6d8c4;

  /* Typography */
  /* "Noto Serif"/"Manrope" cover Greek, which Fraunces and Karla do not ship.
     Fallback is per glyph, so Latin still renders in the brand faces. */
  --font-display: "Fraunces", "Noto Serif", "Iowan Old Style", Georgia, serif;
  --font-body:    "Karla", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --shell:      1180px;
  --shell-slim: 780px;
  --gap:        clamp(1rem, 2.5vw, 2rem);
  --section-y:  clamp(3.5rem, 8vw, 6.5rem);
  --radius:     14px;
  --radius-lg:  24px;

  /* Depth */
  --shadow-rgb:   44, 32, 24;
  --shadow-sm: 0 1px 2px rgba(var(--shadow-rgb), .06), 0 2px 8px rgba(var(--shadow-rgb), .05);
  --shadow-md: 0 4px 12px rgba(var(--shadow-rgb), .08), 0 12px 32px rgba(var(--shadow-rgb), .07);
  --shadow-lg: 0 18px 48px rgba(var(--shadow-rgb), .14);

  /* Surfaces that aren't a plain background/text pair */
  --on-accent:      #ffffff;
  --nav-bg:         rgba(251, 245, 236, .88);
  --nav-bg-solid:   rgba(251, 245, 236, .93);
  --accent-tint:    rgba(143, 74, 32, .08);
  --accent-tint-2:  rgba(143, 74, 32, .11);
  --focus-ring:     rgba(201, 138, 60, .22);
  --stripe:         #eeddc5;
  --glow-1:         rgba(201, 138, 60, .30);
  --glow-2:         rgba(143, 74, 32, .16);
  --glow-3:         rgba(201, 138, 60, .26);
  --cta-bg:         #8f4a20;
  --cta-fg:         #ffffff;
  --cta-fg-soft:    rgba(255, 255, 255, .84);
  --cta-bd:         rgba(255, 255, 255, .5);
  --btn-light-bg:   #ffffff;
  --btn-light-fg:   var(--cinnamon);
  --footer-bg:        #2c2018;
  --footer-fg:        rgba(251, 245, 236, .72);
  --footer-fg-strong: rgba(251, 245, 236, .92);
  --footer-fg-faint:  rgba(251, 245, 236, .5);
  --footer-line:      rgba(251, 245, 236, .16);
  --footer-chip-bd:   rgba(251, 245, 236, .22);
  --footer-chip-fg:   rgba(251, 245, 236, .86);
  --footer-heading:   #fbf5ec;
  --map-filter:       saturate(.9);
  --photo-filter:     none;
  --photo-mat:        #ffffff;

  --nav-h: 88px;
  color-scheme: light;
}

/* Dark theme — warm near-black rather than pure black, easier on the eyes.
   Applied by the inline script in each page's <head> (no flash of light). */
:root[data-theme="dark"] {
  --cream:        #16110d;
  --cream-deep:   #1e1712;
  --paper:        #241d17;
  --ink:          #f3e8dc;
  --ink-soft:     #c3b2a1;
  --ink-faint:    #8f7f70;
  --cinnamon:     #e29a5f;
  --cinnamon-dk:  #f0b681;
  --caramel:      #d7a25d;
  --caramel-soft: #3b2d20;
  --pistachio:    #a3b573;
  --line:         #382c22;

  --shadow-rgb:   0, 0, 0;
  --shadow-sm: 0 1px 2px rgba(var(--shadow-rgb), .30), 0 2px 8px rgba(var(--shadow-rgb), .22);
  --shadow-md: 0 4px 12px rgba(var(--shadow-rgb), .34), 0 12px 32px rgba(var(--shadow-rgb), .28);
  --shadow-lg: 0 18px 48px rgba(var(--shadow-rgb), .50);

  --on-accent:      #1b1510;
  --nav-bg:         rgba(22, 17, 13, .86);
  --nav-bg-solid:   rgba(22, 17, 13, .94);
  --accent-tint:    rgba(226, 154, 95, .12);
  --accent-tint-2:  rgba(226, 154, 95, .20);
  --focus-ring:     rgba(215, 162, 93, .32);
  --stripe:         #2c2219;
  --glow-1:         rgba(201, 138, 60, .13);
  --glow-2:         rgba(143, 74, 32, .20);
  --glow-3:         rgba(201, 138, 60, .11);
  --cta-bg:         #33200f;
  --cta-fg:         #f3e8dc;
  --cta-fg-soft:    rgba(243, 232, 220, .78);
  --cta-bd:         rgba(243, 232, 220, .42);
  --btn-light-bg:   var(--cinnamon);
  --btn-light-fg:   #1b1510;
  --footer-bg:        #100c09;
  --footer-fg:        rgba(243, 232, 220, .66);
  --footer-fg-strong: rgba(243, 232, 220, .90);
  --footer-fg-faint:  rgba(243, 232, 220, .45);
  --footer-line:      rgba(243, 232, 220, .12);
  --footer-chip-bd:   rgba(243, 232, 220, .18);
  --footer-chip-fg:   rgba(243, 232, 220, .82);
  --footer-heading:   #f6ece0;
  --map-filter:       saturate(.75) brightness(.92) contrast(1.06);
  --photo-filter:     brightness(.92) contrast(1.05);
  --photo-mat:        #ffffff;   /* dimmed by the slot filter, so same value */

  color-scheme: dark;
}

/* Reset & base */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 4.5rem);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--cinnamon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cinnamon-dk); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }

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

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

/* Layout helpers */
.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.shell--slim { max-width: var(--shell-slim); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--paper { background: var(--paper); }
.section--cream { background: var(--cream-deep); }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

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

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cinnamon);
  margin-bottom: .9rem;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-soft);
  line-height: 1.7;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  --btn-bg: var(--cinnamon);
  --btn-fg: var(--on-accent);
  --btn-bd: var(--cinnamon);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.6rem;
  border: 1.5px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 700;
  font-size: .97rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}

.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cinnamon);
  --btn-bd: var(--line);
}
.btn--ghost:hover { --btn-bd: var(--cinnamon); }

.btn--light {
  --btn-bg: var(--btn-light-bg);
  --btn-fg: var(--btn-light-fg);
  --btn-bd: var(--btn-light-bg);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.8rem;
}

/* Sticky navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.nav.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 18px rgba(var(--shadow-rgb), .12);
}

.nav__inner {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex: none;
}


.brand__name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.brand__tag {
  display: block;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: block;
  padding: .55rem .95rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .97rem;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.nav__link:hover {
  background: var(--accent-tint);
  color: var(--cinnamon);
}

.nav__link.is-active {
  color: var(--cinnamon);
  background: var(--accent-tint-2);
}

.nav__cta { margin-left: .5rem; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 19px;
  height: 2px;
  margin-inline: auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .22s ease, opacity .18s ease;
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: relative;
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 4px; }

.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  :root { --nav-h: 76px; }
  .brand__mark { width: 52px; height: 52px; }

  .nav__toggle { display: block; }

  .nav__menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: .75rem 1.25rem 1.5rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  .nav__menu.is-open { display: block; }

  /* Two columns so the language pills and the theme toggle share one row;
     everything else spans the full width. */
  .nav__links {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: .15rem .75rem;
  }

  .nav__links > li { grid-column: 1 / -1; }

  .nav__link {
    padding: .85rem .9rem;
    border-radius: 12px;
    font-size: 1.05rem;
  }

  /* actions sit below a clear gap, aligned to the two edges */
  .nav__links > li.lang {
    grid-column: 1;
    justify-self: start;
    margin: 1.1rem 0 0;
    width: auto;
  }

  .nav__links > li:has(.theme-toggle) {
    grid-column: 2;
    justify-self: end;
    margin-top: 1.1rem;
  }

  /* the call to action reads as the primary target: full width, last */
  .nav__links > li:has(.nav__cta) {
    grid-column: 1 / -1;
    order: 1;
    margin-top: .8rem;
  }

  .nav__cta {
    width: 100%;
    margin: 0;
    justify-content: center;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 460px at 82% -8%, var(--glow-1), transparent 62%),
    radial-gradient(680px 420px at 6% 104%, var(--glow-2), transparent 60%),
    var(--cream);
  padding-block: clamp(3.25rem, 8vw, 6rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__title { margin-bottom: .35em; }

.hero__title em {
  font-style: italic;
  color: var(--cinnamon);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: .93rem;
  color: var(--ink-soft);
}

.hero__meta strong { color: var(--ink); }

.hero__art {
  --photo-ratio: 4 / 5;
  aspect-ratio: var(--photo-ratio);
  border-radius: var(--radius-lg);
  background: var(--caramel-soft);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { --photo-ratio: 16 / 10; max-height: 340px; order: -1; }
}

/* Rating badge */
.rating {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .95rem .45rem .55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  font-size: .9rem;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}

.rating__score {
  display: grid;
  place-items: center;
  min-width: 2.35rem;
  padding: .18rem .45rem;
  border-radius: 999px;
  background: var(--pistachio);
  color: var(--on-accent);
  font-weight: 700;
  font-size: .92rem;
}

/* Page banner (interior pages) */
.banner {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  background:
    radial-gradient(700px 340px at 88% 0%, var(--glow-3), transparent 65%),
    var(--cream);
  border-bottom: 1px solid var(--line);
}

.banner h1 { margin-bottom: .3em; }
.banner .lede { max-width: 46rem; }

/* Cards & feature grids */
.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.6rem);
}

.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 16px;
  background: var(--caramel-soft);
  font-size: 1.5rem;
  line-height: 1;
}

.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); font-size: .98rem; }

/* Menu items */

/* Category jump bar */
.menu-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: var(--nav-bg-solid);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.menu-nav__scroll {
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  padding: .7rem 0;
  scrollbar-width: thin;
}

.menu-nav__scroll::-webkit-scrollbar { height: 5px; }
.menu-nav__scroll::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

.menu-nav__link {
  flex: none;
  padding: .45rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.menu-nav__link:hover {
  background: var(--cinnamon);
  border-color: var(--cinnamon);
  color: var(--on-accent);
}

.menu-section { padding-block: clamp(2.25rem, 4vw, 3.25rem); }
.menu-section + .menu-section { border-top: 1px solid var(--line); }

.menu-section__head { margin-bottom: 1.75rem; }
.menu-section__head h2 { margin-bottom: .15em; }
.menu-section__head p { color: var(--ink-soft); font-size: .98rem; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.menu-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}

.menu-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.item-photo {
  position: relative;
  aspect-ratio: var(--photo-ratio, 3 / 2);
  background: var(--cream-deep);
  overflow: hidden;
  /* Most product shots are white-backed and glare on a dark page. Filtering the
     slot (not the img) keeps the mat and the photo in step. */
  filter: var(--photo-filter);
  transition: filter .2s ease;
}

/* Placeholder is the default; the photo fades in over it once it loads. */
.item-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .25s ease;
}

/* Menu shots vary from 2:3 to 16:9. One fixed 4:3 slot keeps every card the
   same shape; the image is contained rather than cropped, and since every photo
   has a near-white background the mat reads as part of the shot. */
.menu-item .item-photo {
  --photo-ratio: 4 / 3;
  background: var(--photo-mat);
}

.menu-item .item-photo img {
  object-fit: contain;
}

.item-photo.has-photo img { opacity: 1; }

.item-photo::after {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  background:
    repeating-linear-gradient(
      45deg,
      var(--cream-deep) 0 12px,
      var(--stripe) 12px 24px
    );
  color: var(--ink-faint);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.item-photo.has-photo::after { display: none; }

.menu-item__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .45rem;
  padding: 1.1rem 1.2rem 1.25rem;
}


.menu-item__name {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.3;
}


.menu-item__desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: .93rem;
  line-height: 1.55;
  white-space: pre-line;
}

.tag {
  align-self: flex-start;
  margin-top: auto;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: var(--caramel-soft);
  color: var(--cinnamon-dk);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Info lists (hours, contact details) */
.hours {
  margin: 0;
  border-top: 1px solid var(--line);
}

.hours__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .98rem;
}

.hours__row dt { color: var(--ink-soft); margin: 0; }
.hours__row dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.hours__row--closed dd { color: var(--ink-faint); font-weight: 500; }

.detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.detail-list li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: .9rem;
  align-items: start;
}

.detail-list .ico {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: var(--caramel-soft);
  font-size: 1.15rem;
}

.detail-list dt,
.detail-list .label {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.detail-list .value {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}

.detail-list .value a { text-decoration: none; }
.detail-list .value a:hover { text-decoration: underline; }

/* Split blocks & map */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

.frame {
  --photo-ratio: 4 / 3;
  aspect-ratio: var(--photo-ratio);
  border-radius: var(--radius-lg);
  background: var(--caramel-soft);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.map {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  filter: var(--map-filter);
}

/* Form */
.form {
  display: grid;
  gap: 1.1rem;
}

.field { display: grid; gap: .4rem; }

.field label {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8rem .95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--caramel);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.field textarea { min-height: 150px; resize: vertical; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}

.form__note {
  font-size: .86rem;
  color: var(--ink-faint);
}

/* Review prompt */
.review-line {
  margin: 1.75rem 0 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: .98rem;
}

/* Theme toggle */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  margin-left: .5rem;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--cinnamon);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease, transform .2s ease;
}

.theme-toggle:hover {
  background: var(--cinnamon);
  border-color: var(--cinnamon);
  color: var(--on-accent);
  transform: rotate(-15deg);
}

@media (max-width: 860px) {
  .theme-toggle { margin: 0; }
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}


/* Language switcher */
.lang {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  margin-left: .35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.lang__btn {
  padding: .3rem .55rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-faint);
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.lang__btn:hover { color: var(--cinnamon); }

.lang__btn.is-active {
  background: var(--cinnamon);
  color: var(--on-accent);
}

@media (max-width: 860px) {
  .lang__btn { padding: .5rem .9rem; font-size: .85rem; }
}

/* Order platforms */
.order-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.order-card:hover {
  transform: translateY(-3px);
  border-color: var(--caramel);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}

.order-card__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  background: var(--caramel-soft);
  font-size: 1.4rem;
}

.order-card__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.order-card__note {
  display: block;
  font-size: .9rem;
  color: var(--ink-soft);
}

.order-card__go {
  margin-left: auto;
  flex: none;
  color: var(--cinnamon);
  font-weight: 700;
}

/* Social links — Instagram is the active channel, so it gets the fill */
.social {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, color .16s ease, background .16s ease;
}

.social a:hover {
  transform: translateY(-2px);
  border-color: var(--cinnamon);
  color: var(--cinnamon);
}

.social svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: currentColor;
}

.social--primary a {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #f9a03f 0%, #d6336c 45%, #8f3fd6 100%);
  box-shadow: var(--shadow-sm);
}

.social--primary a:hover {
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

/* Footer sits on dark ink, so the neutral chips invert.
   `.footer ul` sets display:grid and outranks `.social`, so restate the row. */
.footer .social {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.footer .social a {
  border-color: var(--footer-chip-bd);
  background: transparent;
  color: var(--footer-chip-fg);
}

.footer .social a:hover {
  border-color: var(--footer-fg-strong);
  background: var(--accent-tint);
  color: var(--ink);
}

.footer .social--primary a {
  border-color: transparent;
  background: linear-gradient(135deg, #f9a03f 0%, #d6336c 45%, #8f3fd6 100%);
  color: #fff;
}

/* Call-to-action strip */
.cta {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background: var(--cta-bg);
  color: var(--cta-fg);
  text-align: center;
}

.cta h2 { color: var(--cta-fg); }
.cta p { color: var(--cta-fg-soft); max-width: 40rem; margin-inline: auto; }
.cta .btn-row { justify-content: center; }
.cta .btn--ghost { --btn-fg: var(--cta-fg); --btn-bd: var(--cta-bd); }
.cta .btn--ghost:hover { --btn-bd: var(--cta-fg); }

/* Footer */
.footer {
  padding-block: clamp(2.75rem, 5vw, 4rem) 2rem;
  background: var(--footer-bg);
  color: var(--footer-fg);
  font-size: .95rem;
}

.footer a { color: var(--footer-fg-strong); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }

.footer h4 {
  margin-bottom: .8rem;
  color: var(--footer-heading);
  font-size: .8rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
}

@media (max-width: 1000px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
}

.footer__brand .brand__name { color: var(--footer-heading); }
.footer__brand p { margin-top: .9rem; max-width: 28rem; }
.footer__brand .social { margin-top: 1.2rem; }

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--footer-line);
  font-size: .85rem;
  color: var(--footer-fg-faint);
}

/* Template loader states */
.tpl-error {
  width: min(100% - 2.5rem, 640px);
  margin: 4rem auto;
  padding: 2rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--cinnamon);
  border-radius: var(--radius);
  background: var(--paper);
}

.tpl-error h2 { font-size: 1.4rem; }

.tpl-error code {
  display: block;
  margin: .9rem 0;
  padding: .75rem 1rem;
  border-radius: 8px;
  background: var(--cream-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9rem;
}

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