/* Larkspur Bakery, a design concept by Owner's Copy. The page is the bakery's own printed bake sheet:
   flour-coloured paper on a larkspur-blue counter, each section another piece of the same stationery. */

:root {
  --field: #233f6b;        /* larkspur blue, the counter */
  --field-deep: #1a3054;
  --paper: #f5ecd9;        /* flour paper */
  --paper-2: #e8dcc4;      /* a step darker: bars, chips, the find-us ground */
  --paper-3: #f8f1e3;      /* a step lighter: the folded panel */
  --ink: #2a1c12;          /* burnt crust */
  --muted: #6a5646;
  --crust: #9a4a16;        /* the one warm accent */
  --sky: #c9d4ea;          /* light text on blue */
  --petal: #5b7fc0;
  --f-display: 'Newsreader', 'Iowan Old Style', 'Palatino', Georgia, serif;
  --f-text: 'Public Sans', 'Helvetica Neue', 'Avenir Next', system-ui, sans-serif;
  --s-small: 0.9375rem;
  --s-body: 1.0625rem;
  --s-lead: clamp(1.25rem, 1.05rem + 0.9vw, 1.5rem);
  --s-head: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --s-display: clamp(3.4rem, 1.5rem + 9vw, 7.5rem);
  --gutter: clamp(12px, 2vw, 32px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-press: 140ms;
  --t-hover: 220ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: var(--s-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--ink);
  overflow-x: clip;
}
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 0.16em; text-decoration-thickness: 1.5px; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
::selection { background: var(--petal); color: #fff; }
:focus-visible { outline: 3px solid var(--crust); outline-offset: 3px; }
.sprites { position: absolute; width: 0; height: 0; overflow: hidden; }

/* The banner. Always first, never hidden. */
.notice {
  background: var(--paper-2);
  color: var(--ink);
  font-size: var(--s-small);
  text-align: center;
  padding: 10px var(--gutter);
  position: relative;
  z-index: 3;
}
.notice a { font-weight: 600; }

/* Header on the counter */
.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px var(--gutter) 0;
  background: var(--field) url(flour.svg);
  color: var(--paper);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-size: 1.75rem; line-height: 1;
  text-decoration: none; min-height: 44px;
}
.brand__flower { flex: none; }
.top__nav { display: none; gap: 6px; margin-left: auto; }
.top__nav a { padding: 12px 14px; text-decoration: none; font-weight: 500; font-size: 1rem; min-height: 44px; display: inline-flex; align-items: center; }
.top__cta { margin-left: auto; }

/* Buttons: one shape, square, two fills */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 22px;
  font-family: var(--f-text); font-weight: 600; font-size: 1.0625rem; line-height: 1.1;
  text-decoration: none; border: 0; cursor: pointer; text-align: center;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.button:active { transform: scale(0.98); }
.button--ink { background: var(--ink); color: var(--paper); }
.button--paper { background: var(--paper); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .button--ink:hover { background: var(--crust); transform: translateY(-1px); }
  .button--paper:hover { background: var(--paper-2); transform: translateY(-1px); }
  .top__nav a:hover, .link:hover { text-decoration-thickness: 2.5px; }
}
.link { font-weight: 600; padding: 12px 4px; display: inline-flex; align-items: center; min-height: 44px; }

/* Curtain footer: main rides above, footer waits beneath */
.page { position: relative; z-index: 1; }
.foot { position: sticky; bottom: 0; z-index: 0; }

/* ---------- The counter and the sheet ---------- */
.hero {
  position: relative;
  background: var(--field) url(flour.svg);
  color: var(--ink);
  padding: 20px 12px 140px;
  overflow: clip;
}
.counter { position: absolute; inset: 0; pointer-events: none; display: none; }
.counter__item { position: absolute; will-change: transform; }
.counter__item--boule { left: 4%; top: 170px; width: clamp(200px, 20vw, 300px); height: auto; }
.counter__item--baguette { left: -2%; top: 520px; width: clamp(240px, 26vw, 400px); height: auto; transform: rotate(-14deg); }
.counter__item--cake { right: 5%; top: 120px; width: clamp(170px, 17vw, 260px); height: auto; }
.counter__item--cup { right: 17%; top: 470px; width: clamp(120px, 13vw, 190px); height: auto; }
.counter__item--croissant { right: 3%; top: 620px; width: clamp(180px, 18vw, 270px); height: auto; }
.counter__item--bun { left: 10%; top: 1060px; width: clamp(130px, 13vw, 190px); height: auto; }
.counter__item--rye { right: 6%; top: 1480px; width: clamp(180px, 19vw, 290px); height: auto; }
.counter__item--flower { left: 14%; top: 1680px; width: clamp(60px, 6vw, 90px); height: auto; }

.sheet {
  position: relative;
  container-type: inline-size;
  max-width: 760px;
  margin: 0 auto;
  background: var(--paper) url(paper.svg);
  padding: 48px 20px 60px;
}
.sheet__corner {
  position: absolute; width: 44px; height: 44px; border-radius: 50%;
  background: var(--field); top: -22px;
}
.sheet__corner--tl { left: -22px; }
.sheet__corner--tr { right: -22px; }
.sheet__edge { position: absolute; left: 0; right: 0; bottom: 0; fill: var(--field); }

.sheet__head { text-align: center; }
.sheet__flower { margin: 0 auto 18px; }
.sheet__title {
  font-size: var(--s-display);
  line-height: 0.9;
  letter-spacing: -0.025em;
  display: grid;
}
.sheet__title span { display: block; }
.sheet__what {
  font-family: var(--f-display);
  font-size: var(--s-lead);
  line-height: 1.3;
  max-width: 30ch;
  margin: 28px auto 0;
  text-wrap: balance;
}
.sheet__where {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px;
  margin: 22px auto 0; font-size: var(--s-small); font-weight: 500;
}
.diamond { width: 10px; height: 10px; background: var(--crust); transform: rotate(45deg); flex: none; }
.sheet__today {
  display: inline-block; margin: 18px auto 0;
  background: var(--field); color: var(--paper);
  padding: 8px 14px; font-size: var(--s-small); font-weight: 600;
}
.sheet__today[hidden] { display: none; }
.sheet__actions {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin-top: 28px;
}
.sheet__actions .button { width: 100%; max-width: 360px; min-height: 56px; }

.sheet__row {
  display: flex; justify-content: center; align-items: flex-end; gap: 14px 22px; flex-wrap: wrap;
  margin: 44px auto 0;
}

/* This week's bake sheet: the live thing */
.week { margin-top: 72px; }
.week__title { font-size: var(--s-head); line-height: 1.05; }
.week__intro { margin-top: 14px; max-width: 58ch; }
.week__days { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.day {
  min-width: 56px; min-height: 48px; padding: 0 14px;
  background: var(--paper-2); border: 0; cursor: pointer; font-weight: 600; font-size: 1rem;
  position: relative;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.day:active { transform: scale(0.96); }
.day[aria-selected="true"] { background: var(--field); color: var(--paper); }
.day.is-today::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 4px; background: var(--crust);
}
.day[aria-selected="true"].is-today::after { background: var(--paper); }
@media (hover: hover) and (pointer: fine) { .day:not([aria-selected="true"]):hover { background: #ddcfb2; } }
.week__panels { margin-top: 20px; }
.week__panel { background: var(--paper-2); padding: 22px 20px 24px; }
.week__panel + .week__panel { margin-top: 6px; }
.week__panel h3 { font-size: 1.5rem; line-height: 1.15; }
.week__panel ul { margin: 12px 0 0; padding-left: 20px; }
.week__panel li { margin-top: 8px; }
.week__panel b { font-weight: 600; }
.js .week__panel:not(.is-on) { display: none; }
.js .week__panel.is-on { animation: panel-in 420ms var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* The menu: one giant word, then filled bars */
.menu { margin-top: 88px; }
.menu__word {
  font-size: 40cqw;
  line-height: 0.8;
  letter-spacing: -0.04em;
  margin-left: -0.04em;
}
.menu__intro { margin: 20px 0 24px; max-width: 58ch; }
.bar { background: var(--paper-2); }
.bar + .bar { margin-top: 6px; }
.bar summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 58px; padding: 10px 18px;
  font-family: var(--f-display); font-size: 1.5rem; line-height: 1.1;
  transition: background-color var(--t-hover) ease;
}
.bar summary::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) { .bar summary:hover { background: #ddcfb2; } }
.bar__plus { position: relative; width: 18px; height: 18px; flex: none; transition: transform 320ms var(--ease-out); }
.bar__plus::before, .bar__plus::after { content: ""; position: absolute; background: var(--ink); left: 0; top: 7px; width: 18px; height: 4px; }
.bar__plus::after { transform: rotate(90deg); }
.bar[open] .bar__plus { transform: rotate(45deg); }
.bar__panel { padding: 2px 18px 24px; }
.bar__note { margin: 0 0 18px; font-size: var(--s-small); color: var(--muted); max-width: 60ch; }
.items { margin: 0; display: grid; gap: 14px 24px; }
.items dt { font-weight: 600; }
.items dd { margin: 2px 0 0; color: var(--muted); font-size: var(--s-small); line-height: 1.5; }

/* ---------- The letter and its tear-off stub ---------- */
.story {
  background: var(--ink) url(flour.svg);
  color: var(--ink);
  padding: 110px 12px 130px;
}
.letter {
  max-width: 640px; margin: 0 auto;
  background: var(--paper) url(paper.svg);
  padding: 44px 24px 36px;
  border-bottom: 6px dotted var(--ink);
}
.letter__title { font-size: var(--s-head); line-height: 1.05; margin-bottom: 26px; }
.letter p + p { margin-top: 1.1em; }
.letter mark { background: #e2c79a; color: var(--ink); padding: 0 0.15em; }
.letter__sign { font-family: var(--f-display); font-size: 1.75rem; line-height: 1; margin-top: 28px; }
.letter__role { color: var(--muted); font-size: var(--s-small); margin-top: 6px; }
.stub {
  position: relative;
  max-width: 640px; margin: 0 auto;
  background: var(--paper) url(paper.svg);
  padding: 24px 24px 40px;
  display: grid; gap: 14px;
}
.stub__text { font-size: var(--s-body); }
.stub__text a { font-weight: 600; overflow-wrap: anywhere; }
.stub__edge { position: absolute; left: 0; right: 0; bottom: 0; fill: var(--ink); }

/* ---------- Two places: the folded panel ---------- */
.find {
  background: var(--paper-2) url(paper.svg);
  padding: 96px 12px 110px;
}
.fold {
  max-width: 1200px; margin: 0 auto;
  background: var(--paper-3) url(paper.svg);
  display: grid;
}
.fold__text { padding: 40px 22px 44px; }
.fold__title { font-size: var(--s-head); line-height: 1.05; }
.place { margin-top: 36px; }
.place h3 { font-size: 1.5rem; line-height: 1.15; }
.place__addr { margin: 8px 0 10px; font-weight: 600; }
.place p + p { margin-top: 10px; }
.hours { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 1rem; }
.hours caption { text-align: left; font-weight: 600; padding: 0 0 8px; }
.hours th, .hours td { padding: 10px 12px; text-align: left; vertical-align: top; }
.hours th { font-weight: 400; color: var(--muted); width: 56%; }
.hours td { font-weight: 600; font-variant-numeric: tabular-nums; }
.hours tbody tr:nth-child(odd) { background: var(--paper-2); }
.fold__call { margin-top: 32px; font-size: var(--s-lead); font-family: var(--f-display); }
.fold__call a { font-weight: 500; }
.map { margin: 0; background: var(--field); }
.map svg { width: 100%; height: auto; }
.map figcaption { color: var(--sky); font-size: 0.875rem; padding: 10px 16px 14px; }

/* ---------- Catering: the clip-out coupon ---------- */
.catering {
  background: var(--field) url(flour.svg);
  padding: 110px 12px 140px;
}
.coupon {
  position: relative;
  max-width: 1180px; margin: 0 auto;
  background: var(--crust) url(paper.svg);
  color: var(--paper);
  display: grid;
}
.coupon__left { padding: 40px 22px 36px; position: relative; }
.coupon__title { font-size: var(--s-head); line-height: 1.05; max-width: 14ch; }
.coupon__lead { margin-top: 18px; max-width: 46ch; font-size: var(--s-body); }
.coupon__list { margin: 22px 0 0; padding-left: 20px; list-style: square; max-width: 40ch; }
.coupon__list li { margin-top: 8px; }
.coupon__art { margin-top: 28px; }
.coupon__form {
  position: relative;
  padding: 36px 22px 40px;
  border-top: 5px dotted var(--field);
  display: grid; gap: 18px;
}
.coupon__form::before, .coupon__form::after {
  content: ""; position: absolute; width: 30px; height: 30px; border-radius: 50%; background: var(--field);
  top: -17px;
}
.coupon__form::before { left: -15px; }
.coupon__form::after { right: -15px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: var(--s-small); padding: 0; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--paper); border: 0; border-radius: 0;
  transition: background-color var(--t-hover) ease;
}
.field textarea { resize: vertical; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--paper); outline-offset: 2px; background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--paper); color: var(--ink); font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.chip span:active { transform: scale(0.96); }
.chip input:checked + span { background: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--paper); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .chip input:not(:checked) + span:hover { background: var(--paper-2); } }
.coupon__submit { width: 100%; min-height: 56px; margin-top: 6px; }
.coupon .button--ink:focus-visible { outline-color: var(--paper); }
.coupon .field input:user-invalid { outline: 3px solid var(--ink); }

/* The inline note every demo control shows */
.demo-note { font-size: var(--s-small); font-weight: 600; min-height: 0; }
.demo-note:empty { display: none; }
.demo-note.is-on { animation: panel-in 320ms var(--ease-out); }

/* ---------- Footer: the back of the postcard ---------- */
.foot {
  background: var(--ink) url(flour.svg);
  color: var(--ink);
  padding: 56px 12px 28px;
}
.postcard { position: relative; max-width: 1180px; margin: 0 auto; background: var(--paper) url(paper.svg); padding: 36px 22px 24px; }
.postcard__edge { position: absolute; left: 0; right: 0; top: -26px; fill: var(--paper); }
.postcard__body { display: grid; gap: 36px; }
.postcard__sign { font-family: var(--f-display); font-size: 2rem; line-height: 1.05; margin-bottom: 16px; }
.postcard__message p + p { margin-top: 12px; max-width: 52ch; }
.postcard__address { position: relative; padding-top: 8px; }
.stamp { position: absolute; right: 0; top: 0; transform: rotate(3deg); }
.stamp svg { width: 72px; height: auto; }
address { font-style: normal; display: grid; gap: 12px; padding-right: 96px; font-size: 1.0625rem; }
address a { font-weight: 500; overflow-wrap: anywhere; }
.postcard__imprint { margin-top: 36px; text-align: center; font-size: 0.875rem; color: var(--muted); max-width: 70ch; margin-left: auto; margin-right: auto; }

/* ---------- Reveal and motion (JS adds .rv; nothing is hidden without it) ---------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .sheet__row svg { animation: rise 900ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 300ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(0.96); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .js .sheet__row svg { animation: none; }
  .js .week__panel.is-on, .demo-note.is-on { animation: none; }
  .counter__item { transform: none; }
  .button, .day, .chip span, .bar__plus { transition: none; }
}

/* ---------- Wider screens ---------- */
@media (min-width: 560px) {
  .sheet__actions { flex-direction: row; justify-content: center; gap: 18px; }
  .sheet__actions .button { width: auto; min-width: 220px; }
  .items { grid-template-columns: minmax(150px, 0.8fr) 2fr; gap: 14px 24px; }
  .items dd { margin: 0; }
}
@media (min-width: 768px) {
  .top { padding-top: 24px; }
  .top__nav { display: flex; }
  .top__cta { margin-left: 0; }
  .hero { padding: 60px 24px 180px; }
  .sheet { padding: 64px 56px 72px; }
  .sheet__title span:first-child { justify-self: start; margin-left: 4%; }
  .sheet__title span:last-child { justify-self: end; margin-right: 4%; }
  .letter { padding: 60px 60px 48px; }
  .stub { padding: 28px 60px 44px; grid-template-columns: 1fr auto; align-items: center; }
  .stub .demo-note { grid-column: 1 / -1; }
  .fold { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .fold__text { padding: 56px 48px 60px; }
  .map { display: grid; grid-template-rows: 1fr auto; }
  .map svg { height: 100%; object-fit: cover; }
  .coupon { grid-template-columns: 46fr 54fr; }
  .coupon__left { padding: 56px 48px 52px; }
  .coupon__form { padding: 56px 48px 52px; border-top: 0; border-left: 5px dotted var(--field); }
  .coupon__form::before { left: -17px; top: -15px; }
  .coupon__form::after { left: -17px; right: auto; top: auto; bottom: -15px; }
  .postcard { padding: 56px 56px 28px; }
  .postcard__body { grid-template-columns: 1.15fr 1fr; gap: 56px; }
  .stamp svg { width: 88px; }
  address { padding-right: 120px; }
  .foot { padding: 72px 24px 32px; }
}
@media (min-width: 1100px) {
  .counter { display: block; }
  .hero { padding-bottom: 200px; }
}
