/* ==========================================================================
   Roti Home Made Kampung Sg Judah
   Visual direction: kampung print shop / hand-painted signboard.

   You should not need to edit this file to change wording or prices.
   All text lives in assets/js/content.js
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens. Colours sampled from the real ERT banner photograph.
   -------------------------------------------------------------------------- */
:root {
  --paper:      #F1EADA;
  --paper-deep: #E7DCC6;
  --paper-lift: #F8F4EA;
  --ink:        #33271D;
  --ink-soft:   #6B5947;
  --ink-faint:  #A2917C;
  --gold:       #A8853C;
  --red:        #B3452E;
  --green:      #4F5D3A;
  --rule:       #C9B79A;
  --rule-soft:  #DCCFB6;
  --leader:     #B09A75;   /* dot leaders — darker so they read on a projector */

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --text:    "Archivo", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --wonk: "WONK" 1, "SOFT" 22;
  --step: clamp(3.5rem, 8vw, 6.25rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(1rem, 0.35vw + 0.95rem, 1.09rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

/* Paper texture now lives underneath the content: see "Paper texture" at the end of this file. */

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--paper-lift); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
/* Deliberately different widths — sections should not all share one measure. */
.wrap--tight { max-width: 880px; }
.wrap--wide  { max-width: 1400px; }

.skip { position: absolute; left: -9999px; background: var(--ink); color: var(--paper); padding: .75rem 1.25rem; z-index: 1000; }
.skip:focus { left: 1rem; top: 1rem; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: var(--wonk);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 7.2vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 1.7vw, 1.55rem); letter-spacing: -0.01em; }

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

.lede {
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
  line-height: 1.42;
  font-weight: 400;
  font-variation-settings: "WONK" 1, "SOFT" 40;
  color: var(--ink-soft);
  max-width: 42ch;
}

.kicker {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.kicker::after { content: ""; height: 1px; flex: 1; background: var(--rule); max-width: 5rem; }

/* Rubber-stamp badge. Rotated on purpose. */
.stamp {
  display: inline-block;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  border: 2px solid var(--red);
  padding: .55rem .85rem .5rem;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px var(--paper), inset 0 0 0 3px rgba(179,69,46,.28);
  transform: rotate(-4deg);
  line-height: 1;
  background: rgba(241,234,218,.6);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--text);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 1.7rem;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper-lift);
  border-radius: 2px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--red); border-color: var(--red); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper-lift); }
.btn--wa { background: var(--green); border-color: var(--green); }
.btn--wa:hover { background: var(--ink); border-color: var(--ink); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn .arrow { transition: none; }
  .btn:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 500; }
.masthead::before { content: ""; display: block; height: 5px; background: var(--ink); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.05rem; flex-wrap: wrap; }

.wordmark { text-decoration: none; display: block; line-height: 1; }
.wordmark__name {
  font-family: var(--display);
  font-variation-settings: "WONK" 1, "SOFT" 30;
  font-weight: 700;
  font-size: 1.42rem;
  letter-spacing: -0.02em;
  display: block;
}
.wordmark__sub { font-size: .58rem; letter-spacing: .19em; text-transform: uppercase; color: var(--ink-faint); margin-top: .38rem; display: block; font-weight: 600; }

.nav { display: flex; gap: clamp(1rem, 2.4vw, 2.1rem); align-items: center; }
.nav a {
  font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft); padding-block: .35rem;
  border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }

@media (max-width: 720px) {
  .masthead__inner { padding-block: .9rem; }
  .nav { width: 100%; border-top: 1px solid var(--rule-soft); padding-top: .7rem; justify-content: space-between; gap: .5rem; }
  .nav a { font-size: .66rem; letter-spacing: .1em; }
}

/* --------------------------------------------------------------------------
   Bands
   -------------------------------------------------------------------------- */
.band { padding-block: var(--step); }
.band--tight { padding-block: calc(var(--step) * .62); }
.band--ruled { border-top: 1px solid var(--rule); }
.band--deep  { background: var(--paper-deep); }
.band--ink   { background: var(--ink); color: var(--paper); }
.band--ink .kicker::after { background: rgba(241,234,218,.3); }
.band--ink .lede { color: rgba(241,234,218,.78); }

/* --------------------------------------------------------------------------
   Hero — deliberately asymmetric
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6.5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6.4fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: end; }
.hero__title { margin-bottom: 1.6rem; white-space: pre-line; }
.hero__body { max-width: 34ch; color: var(--ink-soft); margin-bottom: 2.2rem; }
.hero__actions { display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; }

/* Photo in a printed frame */
.plate { position: relative; }
.plate__frame { border: 1px solid var(--rule); padding: .55rem; background: var(--paper-lift); }
.plate__frame img { width: 100%; height: auto; filter: saturate(.92) contrast(1.03); }
.plate__caption { font-size: .7rem; color: var(--ink-faint); margin-top: .8rem; display: flex; gap: .55rem; align-items: baseline; }
.plate__caption::before { content: ""; width: 1.6rem; height: 1px; background: var(--rule); flex: none; transform: translateY(-.28em); }
.plate__stamp { position: absolute; top: -1.1rem; left: -1.1rem; z-index: 2; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .plate__stamp { top: -.9rem; left: auto; right: .4rem; }
}

/* --------------------------------------------------------------------------
   Pillars — hairline-separated columns, like a printed page
   -------------------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.pillar { padding: 2.6rem clamp(1.2rem, 2.4vw, 2.2rem); border-left: 1px solid var(--rule-soft); }
.pillar:first-child { border-left: 0; padding-left: 0; }
.pillar:last-child  { padding-right: 0; }
.pillar__no {
  font-family: var(--display);
  font-variation-settings: "WONK" 1, "SOFT" 60;
  font-size: 2.5rem; font-weight: 400; color: var(--gold);
  line-height: 1; display: block; margin-bottom: .9rem;
}
.pillar h3 { margin-bottom: .6rem; }
.pillar p { color: var(--ink-soft); font-size: .95rem; }

@media (max-width: 800px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-left: 0; border-top: 1px solid var(--rule-soft); padding-inline: 0; padding-block: 2rem; }
  .pillar:first-child { border-top: 0; padding-top: 2.4rem; }
}

/* --------------------------------------------------------------------------
   Price board — the hand-painted signboard
   -------------------------------------------------------------------------- */
.board__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; }

.boardsec { margin-bottom: 3.4rem; }
.boardsec:last-of-type { margin-bottom: 0; }
.boardsec__head { display: flex; align-items: baseline; gap: 1rem; padding-bottom: .8rem; border-bottom: 2.5px solid var(--ink); margin-bottom: .4rem; }
.boardsec__title {
  font-family: var(--display);
  font-variation-settings: "WONK" 1, "SOFT" 45;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1; letter-spacing: -0.015em;
}
.boardsec__note { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-left: auto; white-space: nowrap; }

.row { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1.2rem; align-items: baseline; padding-block: 1.15rem; border-bottom: 1px solid var(--rule-soft); }
.row:last-child { border-bottom: 0; }
.row__line { display: flex; align-items: baseline; gap: .6rem; min-width: 0; }
.row__name {
  font-family: var(--display);
  font-variation-settings: "WONK" 1, "SOFT" 25;
  font-weight: 600;
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  letter-spacing: -0.01em; white-space: nowrap;
}
/* The dot leader running across to the price */
.row__leader { flex: 1 1 auto; min-width: 1.5rem; border-bottom: 2px dotted var(--leader); transform: translateY(-.3em); }
.row__price {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.row__price .cur { font-size: .68em; color: var(--ink-faint); margin-right: .18em; }
.row__unit { font-size: .64rem; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-faint); display: block; text-align: right; margin-top: .3rem; }
.row__desc { grid-column: 1; color: var(--ink-soft); font-size: .9rem; max-width: 52ch; margin-top: .1rem; }

.qty {
  grid-column: 2; grid-row: 2;
  display: flex; align-items: center; gap: .1rem; justify-self: end; margin-top: .35rem;
  border: 1px solid var(--rule); border-radius: 2px; background: var(--paper-lift);
}
.qty button {
  appearance: none; border: 0; background: transparent;
  font-family: var(--text); font-size: 1rem; font-weight: 700; color: var(--ink-soft);
  width: 2.1rem; height: 2.1rem; cursor: pointer; line-height: 1;
  transition: background .14s ease, color .14s ease;
}
.qty button:hover { background: var(--ink); color: var(--paper-lift); }
.qty__n { min-width: 2rem; text-align: center; font-size: .88rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.qty[data-empty="true"] .qty__n { color: var(--ink-faint); }
.qty[data-empty="true"] button[data-act="dec"] { opacity: .35; pointer-events: none; }

.row[data-active="true"] { background: rgba(168,133,60,.07); }
.row[data-active="true"] .row__name { color: var(--red); }

@media (max-width: 620px) {
  .row__name { white-space: normal; }
  .row__leader { display: none; }
}

.board__foot { margin-top: 2.6rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); font-size: .78rem; color: var(--ink-faint); }

/* Featured strip (home) */
.featured__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.8rem; padding-bottom: 1rem; border-bottom: 2.5px solid var(--ink); }
.featured__note { font-size: .72rem; color: var(--ink-faint); }

/* --------------------------------------------------------------------------
   Story
   -------------------------------------------------------------------------- */
.story__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.story__body { max-width: 46ch; color: var(--ink-soft); white-space: pre-line; }
.story__body p:first-of-type::first-letter {
  font-family: var(--display);
  font-variation-settings: "WONK" 1, "SOFT" 60;
  font-size: 3.4em; float: left; line-height: .82;
  padding: .06em .12em 0 0; color: var(--red); font-weight: 600;
}
@media (max-width: 900px) { .story__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Facts strip
   -------------------------------------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.fact { padding: 2.1rem 1rem; border-left: 1px solid var(--rule-soft); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact__figure {
  font-family: var(--display);
  font-variation-settings: "WONK" 1, "SOFT" 40;
  font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1; letter-spacing: -0.03em; display: block; margin-bottom: .5rem;
}
.fact__label { font-size: .66rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
@media (max-width: 700px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact { border-left: 1px solid var(--rule-soft); padding-inline: 1rem; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--rule-soft); }
}

/* --------------------------------------------------------------------------
   About prose
   -------------------------------------------------------------------------- */
.prose__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: 2.6rem; border-top: 1px solid var(--rule-soft); }
.prose__grid:first-of-type { border-top: 0; }
.prose__grid h3 { position: sticky; top: 8rem; }
.prose__body { color: var(--ink-soft); white-space: pre-line; max-width: 58ch; }
@media (max-width: 800px) {
  .prose__grid { grid-template-columns: 1fr; gap: 1rem; }
  .prose__grid h3 { position: static; }
}

.taglist { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.4rem; padding: 0; list-style: none; }
.taglist li { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; border: 1px solid var(--rule); padding: .5rem .8rem; border-radius: 2px; color: var(--ink-soft); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1.4rem, 3vw, 2.4rem); }
.gallery .plate__frame img { aspect-ratio: 4 / 3; object-fit: cover; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

.deets { border-top: 1px solid var(--rule); }
.deet { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding-block: 1.15rem; border-bottom: 1px solid var(--rule-soft); align-items: baseline; }
.deet__k { font-size: .66rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.deet__v { font-size: .98rem; }
.deet__v a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 3px; }
.deet__v a:hover { color: var(--red); }
@media (max-width: 520px) { .deet { grid-template-columns: 1fr; gap: .25rem; } }

.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; align-items: baseline; gap: .6rem; padding-block: .7rem; border-bottom: 1px solid var(--rule-soft); font-size: .92rem; }
.hours li:last-child { border-bottom: 0; }
.hours .leader { flex: 1; border-bottom: 1.5px dotted var(--rule); transform: translateY(-.3em); min-width: 1rem; }
.hours .t { font-variant-numeric: tabular-nums; color: var(--ink-soft); white-space: nowrap; }
.hours li[data-closed="true"] .t { color: var(--red); }

.socials { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.socials a {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  text-decoration: none; border: 1px solid var(--rule); padding: .7rem 1rem; border-radius: 2px; color: var(--ink-soft);
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.socials a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper-lift); }

/* Order summary card */
.summary { border: 1.5px solid var(--ink); background: var(--paper-lift); padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 2px; }
.summary__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: .9rem; border-bottom: 2px solid var(--ink); margin-bottom: .4rem; }
.summary__title { font-family: var(--display); font-variation-settings: "WONK" 1, "SOFT" 40; font-weight: 700; font-size: 1.4rem; line-height: 1; }
.summary__list { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.summary__list li { display: flex; align-items: baseline; gap: .6rem; padding-block: .75rem; border-bottom: 1px solid var(--rule-soft); font-size: .92rem; }
.summary__list .n { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 700; min-width: 2.2rem; }
.summary__list .leader { flex: 1; border-bottom: 1.5px dotted var(--rule); transform: translateY(-.3em); min-width: 1rem; }
.summary__list .amt { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-block: 1rem; border-top: 2px solid var(--ink); margin-bottom: 1.4rem; }
.summary__total .k { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.summary__total .v { font-family: var(--display); font-weight: 700; font-size: 1.7rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.summary__empty { color: var(--ink-faint); font-size: .92rem; padding-block: 1.6rem 1.2rem; }
.summary__note { font-size: .74rem; color: var(--ink-faint); margin-top: .9rem; }
.summary .btn { width: 100%; justify-content: center; }

.linkbare {
  background: none; border: 0; padding: 0; font-family: var(--text);
  font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-faint); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.linkbare:hover { color: var(--red); }

/* --------------------------------------------------------------------------
   Sticky order tray
   -------------------------------------------------------------------------- */
.tray {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 600;
  background: var(--ink); color: var(--paper); border-top: 3px solid var(--gold);
  transform: translateY(110%);
  transition: transform .28s cubic-bezier(.22,.8,.3,1);
}
.tray[data-open="true"] { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .tray { transition: none; } }

.tray__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding-block: .95rem; flex-wrap: wrap; }
.tray__count { font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(241,234,218,.62); font-weight: 700; }
.tray__total { font-family: var(--display); font-weight: 700; font-size: 1.5rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.1; }
.tray__actions { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.tray .btn--ghost { color: var(--paper); border-color: rgba(241,234,218,.4); }
.tray .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.tray .linkbare { color: rgba(241,234,218,.55); }
.tray .linkbare:hover { color: var(--paper); }

/* Fallback only — app.js measures the tray and sets the exact padding inline,
   so content is never hidden behind it however the buttons wrap. */
body[data-tray="true"] { padding-bottom: 5.5rem; }

/* On a phone the three actions would stack into a wall. Lay them out instead. */
@media (max-width: 620px) {
  .tray__inner { padding-block: .75rem; gap: .55rem; }
  .tray__total { font-size: 1.25rem; }
  .tray__actions { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: .5rem; align-items: center; }
  .tray__actions .linkbare { grid-column: 1; }
  .tray .btn--ghost { grid-column: 2; }
  .tray .btn--wa { grid-column: 1 / -1; }
  .tray .btn { padding: .85rem .9rem; font-size: .66rem; letter-spacing: .09em; justify-content: center; }
}

/* Order CTA band */
.cta__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .cta__grid { grid-template-columns: 1fr; } }
.cta__num {
  font-family: var(--display); font-variation-settings: "WONK" 1, "SOFT" 40;
  font-weight: 700; font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -0.02em;
  color: var(--gold); text-decoration: none; display: inline-block; margin-bottom: 1.4rem;
}
.cta__num:hover { color: var(--paper); }

/* --------------------------------------------------------------------------
   Partners
   -------------------------------------------------------------------------- */
.partners__intro { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; margin-bottom: 1.8rem; text-align: center; }
.partners__marks { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.mark { padding: 1.9rem 1.2rem; border-left: 1px solid var(--rule-soft); text-align: center; }
.mark:first-child { border-left: 0; }
.mark__name { font-family: var(--display); font-variation-settings: "WONK" 1, "SOFT" 30; font-weight: 600; font-size: 1.02rem; line-height: 1.2; letter-spacing: -0.01em; display: block; margin-bottom: .45rem; }
.mark__sub { font-size: .63rem; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-faint); }
@media (max-width: 760px) {
  .partners__marks { grid-template-columns: 1fr; }
  .mark { border-left: 0; border-top: 1px solid var(--rule-soft); }
  .mark:first-child { border-top: 0; }
}

.sdgs { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-top: 1.9rem; }
.sdg { display: flex; align-items: center; gap: .55rem; padding: .5rem .8rem .5rem .5rem; border: 1px solid var(--rule-soft); border-radius: 2px; }
.sdg__no { width: 1.75rem; height: 1.75rem; display: grid; place-items: center; color: #fff; font-size: .82rem; font-weight: 800; border-radius: 2px; font-variant-numeric: tabular-nums; }
.sdg__label { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.sdgs__note { text-align: center; font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint); margin-top: 1.3rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); color: rgba(241,234,218,.72); padding-block: 3.4rem 2.6rem; }
.footer__top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(241,234,218,.16); }
.footer .wordmark__name { color: var(--paper); }
.footer .wordmark__sub { color: rgba(241,234,218,.5); }
.footer__nav { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start; }
.footer__nav a { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; text-decoration: none; color: rgba(241,234,218,.7); }
.footer__nav a:hover { color: var(--gold); }
.footer__bottom { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-top: 1.6rem; font-size: .68rem; color: rgba(241,234,218,.5); }

/* --------------------------------------------------------------------------
   Views / routing
   -------------------------------------------------------------------------- */
.view { display: none; }
.view.is-active { display: block; }

/* One restrained entrance — price board sections only. */
@media (prefers-reduced-motion: no-preference) {
  .view.is-active .boardsec { animation: rise .42s cubic-bezier(.22,.8,.3,1) both; }
  .view.is-active .boardsec:nth-of-type(2) { animation-delay: .06s; }
  .view.is-active .boardsec:nth-of-type(3) { animation-delay: .12s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   Added 23 Sep 2026 — real products with photographs, bilingual switch,
   project credits. Replaces the photo-less price board, now that we have
   real pictures of the bread.
   ========================================================================== */

/* ---------------------------------------------------------- language switch */
.masthead__right { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); flex-wrap: wrap; }

.langsw { display: flex; border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; flex: none; }
.langsw button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: var(--text); font-size: .66rem; font-weight: 700;
  letter-spacing: .12em; color: var(--ink-faint);
  padding: .5rem .7rem; line-height: 1;
  transition: background .15s ease, color .15s ease;
}
.langsw button + button { border-left: 1px solid var(--rule); }
.langsw button:hover { color: var(--ink); }
.langsw button[aria-pressed="true"] { background: var(--ink); color: var(--paper-lift); }

@media (max-width: 720px) {
  .masthead__right { width: 100%; gap: .6rem; border-top: 1px solid var(--rule-soft); padding-top: .7rem; }
  .masthead__right .nav { flex: 1; border-top: 0; padding-top: 0; }
  .langsw { align-self: center; }
}

/* ------------------------------------------------------------- product card */
.prodlist { display: grid; gap: clamp(1.6rem, 3vw, 2.4rem); }

.prod {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
  align-items: center;
  padding-block: clamp(1.4rem, 2.5vw, 2rem);
  border-top: 1px solid var(--rule);
}
.prod:last-child { border-bottom: 1px solid var(--rule); }

.prod__shot { border: 1px solid var(--rule); padding: .5rem; background: var(--paper-lift); }
.prod__shot img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  filter: saturate(.96) contrast(1.02);
}

.prod__line { display: flex; align-items: baseline; gap: .7rem; }
.prod__name {
  font-family: var(--display);
  font-variation-settings: "WONK" 1, "SOFT" 30;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.015em;
  margin: 0;
  white-space: nowrap;
}
.prod__leader { flex: 1 1 auto; min-width: 1.5rem; border-bottom: 2px dotted var(--leader); transform: translateY(-.32em); }
.prod__price {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.prod__price .cur { font-size: .62em; color: var(--ink-faint); margin-right: .2em; }

.prod__unit {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600; margin: .5rem 0 0;
}
.prod__tag {
  color: var(--red); border: 1px solid var(--red); border-radius: 2px;
  padding: .25rem .5rem; font-size: .58rem; letter-spacing: .12em;
}

.prod__desc { color: var(--ink-soft); font-size: .97rem; margin: .9rem 0 0; max-width: 48ch; }
.prod .qty { margin-top: 1.3rem; display: inline-flex; }

.prod[data-active="true"] .prod__name { color: var(--red); }
.prod[data-active="true"] .prod__shot { border-color: var(--gold); }

@media (max-width: 720px) {
  .prod { grid-template-columns: 1fr; gap: 1.2rem; }
  .prod__name { white-space: normal; }
  .prod__leader { display: none; }
}

/* ------------------------------------------------------- two phone numbers */
.cta__num { display: block; margin-bottom: 1.1rem; }
.cta__num small {
  display: block; font-family: var(--text); font-size: .62rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(241,234,218,.55); font-weight: 600; margin-top: .3rem;
}
.deet__v em { font-style: normal; font-size: .76rem; color: var(--ink-faint); }

/* ------------------------------------------------------------------ thanks */
.thanks {
  font-family: var(--display);
  font-variation-settings: "WONK" 1, "SOFT" 60;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-weight: 400; font-style: italic;
  text-align: center; color: var(--gold); margin: 0;
}

/* ----------------------------------------------------------------- credits */
.credits__title {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  padding-bottom: .8rem; border-bottom: 2px solid var(--ink); margin-bottom: .4rem;
}
.credits { margin: 0; }
.credits dt {
  font-size: .64rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700; margin-top: 1.4rem;
}
.credits dd { margin: .4rem 0 0; font-size: .98rem; color: var(--ink-soft); }

/* Single partner mark should not stretch across three columns. */
.partners__marks--single { grid-template-columns: 1fr; }


/* ==========================================================================
   Paper texture, wheat stamps and section rhythm  (added 24 Sep 2026)
   The wheat sprig is drawn from the bakery's own poster, which uses wheat.
   Texture sits UNDER the content so photographs stay clean.
   ========================================================================== */
:root {
  --grain:       url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E %3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 .27 0 0 0 0 .19 0 0 0 0 .11 .55 0 0 0 -.19'/%3E%3C/filter%3E %3Crect width='100%' height='100%' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E %3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .92 0 0 0 0 .86 .45 0 0 0 -.17'/%3E%3C/filter%3E %3Crect width='100%' height='100%' filter='url(%23n)'/%3E%3C/svg%3E");
  --wheat:       url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 222' fill='none' stroke='%23A8853C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M40 218 C39 172 41 124 40 44'/%3E%3Cellipse cx='40' cy='30' rx='6' ry='13'/%3E%3Cpath d='M40 17 L40 3'/%3E%3Cellipse cx='31' cy='50' rx='6' ry='13' transform='rotate(-30 31 50)'/%3E%3Cellipse cx='49' cy='50' rx='6' ry='13' transform='rotate(30 49 50)'/%3E%3Cpath d='M24.5 38.7 L16.7 25.2'/%3E%3Cpath d='M55.5 38.7 L63.3 25.2'/%3E%3Cellipse cx='31' cy='72' rx='6' ry='13' transform='rotate(-30 31 72)'/%3E%3Cellipse cx='49' cy='72' rx='6' ry='13' transform='rotate(30 49 72)'/%3E%3Cpath d='M24.5 60.7 L16.7 47.2'/%3E%3Cpath d='M55.5 60.7 L63.3 47.2'/%3E%3Cellipse cx='31' cy='94' rx='6' ry='13' transform='rotate(-30 31 94)'/%3E%3Cellipse cx='49' cy='94' rx='6' ry='13' transform='rotate(30 49 94)'/%3E%3Cpath d='M24.5 82.7 L16.7 69.2'/%3E%3Cpath d='M55.5 82.7 L63.3 69.2'/%3E%3Cellipse cx='32' cy='116' rx='5.5' ry='12' transform='rotate(-28 32 116)'/%3E%3Cellipse cx='48' cy='116' rx='5.5' ry='12' transform='rotate(28 48 116)'/%3E%3Cpath d='M26.4 105.4 L20.8 94.8'/%3E%3Cpath d='M53.6 105.4 L59.2 94.8'/%3E%3Cpath d='M40 176 C30 168 22 156 19 140 C29 146 36 157 40 176'/%3E%3C/svg%3E");
  /* warms the empty side margins on wide screens */
  --vignette: linear-gradient(90deg, rgba(120,88,45,.085) 0, rgba(120,88,45,0) 20%,
                              rgba(120,88,45,0) 80%, rgba(120,88,45,.085) 100%);
}

body            { background-image: var(--grain), var(--vignette); }
.masthead       { background-image: var(--grain), var(--vignette); }
.band--deep     { background-image: var(--grain); }
.band--ink,
.footer         { background-image: var(--grain-light); }

/* Wheat sprigs standing in the empty side margins of each page's opening band */
.sprigs { position: relative; overflow: hidden; }
.sprigs > .wrap { position: relative; z-index: 1; }
.sprigs::before, .sprigs::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none; display: none;
  width: 110px; height: 305px;
  background: var(--wheat) center / contain no-repeat;
}
.sprigs::before { left:  calc((100% - var(--sprig-w, 1180px)) / 4 - 55px); top: 12%;   transform: rotate(-11deg); opacity: .34; }
.sprigs::after  { right: calc((100% - var(--sprig-w, 1180px)) / 4 - 55px); bottom: 8%; transform: rotate(9deg) scaleX(-1); opacity: .24; }
@media (min-width: 1500px) { .sprigs::before, .sprigs::after { display: block; } }
.sprigs--tight { --sprig-w: 880px; }
@media (min-width: 1200px) { .sprigs--tight::before, .sprigs--tight::after { display: block; } }

/* A large gold sprig tucked into the corner of the dark order band */
.band--ink { position: relative; overflow: hidden; }
.band--ink > .wrap { position: relative; z-index: 1; }
.band--ink::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  right: -26px; bottom: -58px; width: 175px; height: 485px;
  background: var(--wheat) center / contain no-repeat;
  transform: rotate(17deg); opacity: .16;
}

/* Printer's ornament: two sprigs between hairlines, marking a section start */
.fleuron { display: flex; align-items: center; gap: 1rem; margin: 0 auto 2.6rem; max-width: 24rem; }
.fleuron::before, .fleuron::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.fleuron span { width: 15px; height: 42px; background: var(--wheat) center / contain no-repeat; opacity: .9; }
.fleuron span:first-of-type { transform: rotate(-24deg); }
.fleuron span:last-of-type  { transform: rotate(24deg) scaleX(-1); margin-left: -.55rem; }
