/* Tintan: design tokens ------------------------------------------------ */
:root {
  --cream: #f4ecdd;
  --cream-2: #ede2cc;
  --paper: #fbf7ee;
  --ink: #2a1a13;
  --ink-soft: #6b564a;
  --ink-faint: #9a8576;
  --red: #961b2f;        /* primary colour */
  --red-btn: #961b2f;    /* white text passes AA on this */
  --red-deep: #741220;   /* hover / text on cream */
  --line: rgba(42, 26, 19, 0.14);
  --line-soft: rgba(42, 26, 19, 0.08);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --max: 1200px;
  --radius: 28px;
  --radius-sm: 16px;
  --section: clamp(72px, 10vw, 132px);
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* a whisper of paper grain */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .33  0 0 0 0 .24  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

[hidden] { display: none !important; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--red-btn); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-deep);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-soft); max-width: 52ch; }
em { font-style: italic; }
h1 em, h2 em { color: var(--red); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--red-btn); color: #fff; font-weight: 600; font-size: 16px; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; transition: transform 0.25s var(--ease), background 0.2s, box-shadow 0.25s;
}
.btn:hover { background: var(--red-deep); transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(168, 47, 35, 0.7); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper); box-shadow: none; border-color: var(--ink-faint); }
.btn--light { background: var(--cream); color: var(--red-deep); }
.btn--light:hover { background: #fff; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 15px; }
.link { color: var(--red-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover { color: var(--red-btn); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: saturate(1.2) blur(14px); -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.site-header.is-scrolled { border-color: var(--line-soft); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand span { font-family: var(--serif); font-size: 31px; letter-spacing: -0.01em; line-height: 1; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) { text-decoration: none; font-size: 15.5px; font-weight: 500; color: var(--ink-soft); transition: color 0.2s; position: relative; }
.nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } .brand span { font-size: 27px; } .site-header__in { height: 68px; } }

/* Sections ------------------------------------------------------------------ */
.section { padding: var(--section) 0; }
.section__head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head h2 { font-size: clamp(42px, 5.6vw, 76px); margin: 18px 0 18px; }

/* Calendar ------------------------------------------------------------------ */
.cal-layout { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.cal-side { position: sticky; top: 100px; }
.card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.cal { padding: clamp(20px, 3vw, 32px); }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cal__title { font-family: var(--serif); font-size: 38px; line-height: 1; }
.cal__title span { color: var(--ink-faint); }
.cal__nav { display: flex; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.icon-btn:hover:not([disabled]) { background: var(--cream); border-color: var(--ink-faint); }
.icon-btn[disabled] { opacity: 0.35; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow { text-align: center; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); padding: 6px 0 10px; }
.day {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid transparent; background: transparent;
  font-size: 16px; color: var(--ink-soft); position: relative; padding: 0; cursor: default;
}
.day--out { visibility: hidden; }
.day--past { color: var(--ink-faint); opacity: 0.55; }
.day--today { border-color: var(--line); color: var(--ink); font-weight: 600; }
.day--bake { background: var(--red-btn); color: #fff; font-weight: 600; cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.day--bake:hover { transform: scale(1.08); box-shadow: 0 10px 20px -10px rgba(116, 18, 32, 0.8); }
.day--closed { background: transparent; color: var(--red-deep); border-color: color-mix(in srgb, var(--red) 55%, transparent); border-style: dashed; font-weight: 600; cursor: pointer; }
.day--closed:hover { background: color-mix(in srgb, var(--red) 8%, transparent); }
.day--selected { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.day--selected:hover { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); transform: none; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--ink-soft); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 8px; background: var(--red-btn); }
.legend i.is-closed { background: transparent; border: 1.5px dashed var(--red); }
.upcoming { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 16px; font-size: 14.5px; cursor: pointer; transition: all 0.2s; }
.chip:hover { border-color: var(--ink-faint); background: var(--paper); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Day panel ------------------------------------------------------------------ */
.panel { padding: clamp(22px, 3vw, 36px); min-height: 420px; }
.panel__empty { text-align: center; padding: 60px 10px; color: var(--ink-soft); display: grid; justify-items: center; gap: 14px; }
.panel__empty img { width: 84px; opacity: 0.9; }
.panel__empty h3 { font-size: 32px; color: var(--ink); }
.panel__date { font-family: var(--serif); font-size: clamp(36px, 4vw, 52px); line-height: 1; margin: 12px 0 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-soft); font-size: 15px; }
.meta span { display: inline-flex; align-items: center; gap: 8px; }
.meta svg { width: 17px; height: 17px; color: var(--red-deep); flex: none; }
.panel__note { margin-top: 14px; color: var(--ink-soft); font-style: italic; font-family: var(--serif); font-size: 21px; line-height: 1.3; }
.menu { margin-top: 28px; display: grid; gap: 14px; }

.bread { border: 1px solid var(--line-soft); border-radius: 22px; background: var(--cream); padding: 14px; transition: border-color 0.25s, background 0.25s; }
.bread.has-qty { border-color: color-mix(in srgb, var(--red) 55%, transparent); background: color-mix(in srgb, var(--red) 5%, var(--cream)); }
.bread__row { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; align-items: center; }
.bread__img { width: 92px; height: 92px; border-radius: 16px; object-fit: cover; background: var(--cream-2); }
.bread__name { font-family: var(--serif); font-size: 27px; line-height: 1.05; }
.bread__tag { color: var(--ink-soft); font-size: 14.5px; margin-top: 3px; }
.bread__price { font-weight: 600; margin-top: 8px; font-size: 16px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.bread__left { font-weight: 500; font-size: 13px; color: var(--red-deep); }
.bread__left.is-out { color: var(--ink-faint); }
.stepper { display: inline-flex; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; font-size: 22px; line-height: 1; display: grid; place-items: center; transition: background 0.2s; }
.stepper button:hover:not([disabled]) { background: var(--cream-2); }
.stepper button[disabled] { opacity: 0.3; cursor: default; }
.stepper output { min-width: 30px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.bread__more { margin-top: 10px; padding: 0 2px; }
.bread__more summary { cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--red-deep); list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.bread__more summary::-webkit-details-marker { display: none; }
.bread__more summary svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.bread__more[open] summary svg { transform: rotate(180deg); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; padding: 14px 2px 6px; font-size: 15px; }
.facts p.desc { grid-column: 1 / -1; color: var(--ink-soft); }
.facts h4 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; color: var(--ink); }
.facts li { padding-left: 16px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.facts .wide { grid-column: 1 / -1; }
@media (max-width: 520px) {
  .bread__row { grid-template-columns: 72px 1fr; }
  .bread__img { width: 72px; height: 72px; border-radius: 14px; }
  .stepper { grid-column: 1 / -1; justify-self: end; }
  .facts { grid-template-columns: 1fr; }
}

.cartbar {
  position: sticky; bottom: 14px; margin-top: 22px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 12px 12px 24px; background: var(--ink); color: var(--cream); border-radius: 999px;
  box-shadow: 0 18px 34px -16px rgba(42, 26, 19, 0.7);
}
.cartbar small { display: block; color: color-mix(in srgb, var(--cream) 66%, transparent); font-size: 13px; line-height: 1.2; }
.cartbar strong { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cartbar .btn { min-height: 46px; }

/* Checkout form ---------------------------------------------------------------- */
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.back svg { width: 16px; height: 16px; }
.order-summary { margin: 22px 0 8px; padding: 16px 18px; border-radius: 18px; background: var(--cream); font-size: 15.5px; }
.order-summary div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.order-summary .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-weight: 600; font-size: 17px; }
.form { display: grid; gap: 18px; margin-top: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field > span, .fieldset > legend { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.01em; }
.field input:not([type="checkbox"]):not([type="radio"]), .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--cream); transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red-btn); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 16%, transparent); }
.field small { color: var(--ink-faint); font-size: 13px; }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
.fieldset > legend { padding: 0; margin-bottom: 4px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice__box { display: block; height: 100%; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--cream); transition: all 0.2s; }
.choice__box strong { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.choice__box strong::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--ink-faint); transition: all 0.2s; background: transparent; }
.choice__box small { display: block; margin: 4px 0 0 28px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.4; }
.choice input:checked + .choice__box { border-color: var(--red-btn); background: color-mix(in srgb, var(--red) 6%, var(--cream)); }
.choice input:checked + .choice__box strong::before { border-color: var(--red-btn); background: radial-gradient(circle, var(--red-btn) 0 4.5px, transparent 5.5px); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--red-btn); outline-offset: 2px; }
.choice input:disabled + .choice__box { opacity: 0.5; cursor: not-allowed; }
.choice:has(input:disabled) { cursor: not-allowed; }
.reveal-block { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--cream-2) 60%, transparent); }
.notice { font-size: 14px; color: var(--ink-soft); display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.notice svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--red-deep); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; line-height: 1.45; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--ink-faint); background: var(--cream); margin: 1px 0 0; display: grid; place-items: center; cursor: pointer; transition: all 0.2s; }
.check input:checked { background: var(--red-btn); border-color: var(--red-btn); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.check input:focus-visible { outline: 2px solid var(--red-btn); outline-offset: 2px; }
.check--inline { gap: 10px; }
.optin { display: grid; gap: 10px; padding-top: 6px; }
.error { color: var(--red-deep); font-weight: 500; font-size: 15px; padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--red) 10%, var(--paper)); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done { text-align: center; padding: 28px 8px; display: grid; justify-items: center; gap: 16px; }
.done__tick { width: 68px; height: 68px; border-radius: 50%; background: var(--red-btn); color: #fff; display: grid; place-items: center; animation: pop 0.6s var(--ease); }
.done__tick svg { width: 30px; height: 30px; }
@keyframes pop { 0% { transform: scale(0.5); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.done h3 { font-size: clamp(36px, 4vw, 48px); }
.done .ref { font-family: var(--sans); font-weight: 600; letter-spacing: 0.1em; background: var(--cream); padding: 6px 14px; border-radius: 999px; font-size: 14px; }
.done p { color: var(--ink-soft); max-width: 38ch; }
.done__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }

/* Reveal on scroll ---------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Toast + plain pages ---------------------------------------------------------------- */
.plain { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.plain__card { text-align: center; max-width: 440px; display: grid; justify-items: center; gap: 20px; }
.plain__card h1 { font-size: 40px; }

@media (max-width: 980px) {
  .cal-layout { grid-template-columns: 1fr; }
  .cal-side { position: static; }
}

/* Scroll bars: slim, rounded and in the brand colour ------------------------------------------------ */
html { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--red) 55%, var(--cream-2)) transparent; }
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--red) 55%, var(--cream-2)) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--red) 45%, var(--cream-2)); border-radius: 999px; border: 3px solid var(--cream); }
::-webkit-scrollbar-thumb:hover { background: var(--red); }
