:root {
  --ground: #062b8a;
  --ground-step: #0a3399;
  --paper: #e6dbc7;
  --paper-step: #ddd0b9;
  --ink: #062b8a;
  --ink-soft: #3a5aa8;
  --display: "Young Serif", "Iowan Old Style", Georgia, serif;
  --text: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --gutter: clamp(16px, 3vw, 40px);
  --gap: clamp(96px, 13vw, 200px);
  --teeth: polygon(0.000% 0, 2.083% 10px, 4.167% 0, 6.250% 10px, 8.333% 0, 10.417% 10px, 12.500% 0, 14.583% 10px, 16.667% 0, 18.750% 10px, 20.833% 0, 22.917% 10px, 25.000% 0, 27.083% 10px, 29.167% 0, 31.250% 10px, 33.333% 0, 35.417% 10px, 37.500% 0, 39.583% 10px, 41.667% 0, 43.750% 10px, 45.833% 0, 47.917% 10px, 50.000% 0, 52.083% 10px, 54.167% 0, 56.250% 10px, 58.333% 0, 60.417% 10px, 62.500% 0, 64.583% 10px, 66.667% 0, 68.750% 10px, 70.833% 0, 72.917% 10px, 75.000% 0, 77.083% 10px, 79.167% 0, 81.250% 10px, 83.333% 0, 85.417% 10px, 87.500% 0, 89.583% 10px, 91.667% 0, 93.750% 10px, 95.833% 0, 97.917% 10px, 100.000% 0, 100.000% 100%, 97.917% calc(100% - 10px), 95.833% 100%, 93.750% calc(100% - 10px), 91.667% 100%, 89.583% calc(100% - 10px), 87.500% 100%, 85.417% calc(100% - 10px), 83.333% 100%, 81.250% calc(100% - 10px), 79.167% 100%, 77.083% calc(100% - 10px), 75.000% 100%, 72.917% calc(100% - 10px), 70.833% 100%, 68.750% calc(100% - 10px), 66.667% 100%, 64.583% calc(100% - 10px), 62.500% 100%, 60.417% calc(100% - 10px), 58.333% 100%, 56.250% calc(100% - 10px), 54.167% 100%, 52.083% calc(100% - 10px), 50.000% 100%, 47.917% calc(100% - 10px), 45.833% 100%, 43.750% calc(100% - 10px), 41.667% 100%, 39.583% calc(100% - 10px), 37.500% 100%, 35.417% calc(100% - 10px), 33.333% 100%, 31.250% calc(100% - 10px), 29.167% 100%, 27.083% calc(100% - 10px), 25.000% 100%, 22.917% calc(100% - 10px), 20.833% 100%, 18.750% calc(100% - 10px), 16.667% 100%, 14.583% calc(100% - 10px), 12.500% 100%, 10.417% calc(100% - 10px), 8.333% 100%, 6.250% calc(100% - 10px), 4.167% 100%, 2.083% calc(100% - 10px), 0.000% 100%);
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* type scale: small, body, lead, heading, title, display */
  --fs-small: 16px;
  --fs-body: 18px;
  --fs-lead: 22px;
  --fs-h3: 30px;
  --fs-h2: clamp(44px, 5.6vw, 84px);
  --fs-h1: clamp(48px, 7.4vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--paper);
  font-family: var(--text);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-optical-sizing: auto;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -0.02em; line-height: 0.98; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
::selection { background: var(--paper); color: var(--ground); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.button:focus-visible { outline-color: var(--ink); }
.bar :focus-visible { outline-color: var(--paper); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); color: var(--ink); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* bar */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  background: var(--ground);
}
.wordmark { font-family: var(--display); font-size: var(--fs-lead); text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.nav a { text-decoration: none; font-size: var(--fs-body); padding: 6px 0; }
.nav a:not(.nav-action) { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 6px; transition: text-decoration-color .25s var(--ease); }
.nav a:not(.nav-action):hover { text-decoration-color: currentColor; }
.nav .nav-action { background: var(--paper); color: var(--ink); padding: 10px 18px; border-radius: 999px; transition: transform .2s var(--ease); }
.nav .nav-action:hover { transform: translateY(-2px); }
.nav .nav-action:active { transform: translateY(1px); }
.menu-toggle { display: none; }

/* buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  background: var(--ink); color: var(--paper);
  font: 600 var(--fs-body)/1 var(--text); text-decoration: none;
  border: 0; border-radius: 999px; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.button:hover { transform: translateY(-2px); background: var(--ink-soft); }
.button:active { transform: translateY(1px); }
.text-link { font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.text-link:hover { text-decoration-thickness: 3px; }

/* paper objects */
.ticket, .sheet, .slip, .week-board {
  background: var(--paper); color: var(--ink);
  clip-path: var(--teeth);
}

/* hero */
.hero {
  position: relative;
  min-height: calc(100svh - 70px);
  display: grid; align-items: end;
  padding: clamp(40px, 6vw, 96px) var(--gutter);
  overflow: hidden;
}
.hero-photo { position: absolute; inset: 0; background: var(--ground-step); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 40%; }
.hero-ticket {
  position: relative;
  width: min(100%, 880px);
  padding: clamp(40px, 5vw, 72px) clamp(24px, 4.5vw, 64px) clamp(44px, 5vw, 72px);
}
.hero h1 { font-size: var(--fs-h1); line-height: 0.92; letter-spacing: -0.035em; max-width: 12ch; }
.lede { margin-top: 36px; font-size: var(--fs-lead); line-height: 1.4; max-width: 34ch; }
.open-line { margin-top: 16px; font-weight: 600; font-size: var(--fs-body); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero-loaf { position: absolute; right: clamp(24px, 4vw, 56px); top: clamp(40px, 5vw, 72px); width: clamp(90px, 14vw, 200px); height: auto; }

/* counter */
.counter { padding: clamp(72px, 9vw, 140px) var(--gutter) 0; }
.sheet { padding: clamp(56px, 6vw, 96px) clamp(24px, 4.5vw, 72px); }
.sheet-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; }
.sheet-head h2 { font-size: var(--fs-h2); }
.sheet-head p { font-size: var(--fs-lead); max-width: 36ch; justify-self: end; }
.menu-grid { margin-top: clamp(56px, 6vw, 96px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); }
.menu-col { padding: 0; }
.menu-art { width: clamp(150px, 14vw, 210px); height: auto; margin-bottom: 28px; }
.menu-col h3 { font-size: var(--fs-h3); margin-bottom: 20px; }
.items { margin: 0; }
.items div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 4px dotted var(--ink-soft); }
.items dt { max-width: 22ch; }
.items dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.note { margin-top: 18px; color: var(--ink); }

/* cakes */
.cakes {
  padding: var(--gap) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start;
}
.cakes-intro { position: sticky; top: 110px; }
.cakes-intro h2 { font-size: var(--fs-h2); max-width: 11ch; }
.cakes-intro p { margin-top: 28px; max-width: 40ch; font-size: var(--fs-body); }
.cakes-intro p + p { margin-top: 16px; }
.slip { padding: clamp(48px, 5vw, 80px) clamp(24px, 4vw, 64px); }
.slip h3 { font-size: var(--fs-h3); margin-bottom: 32px; }
fieldset { border: 0; margin: 0 0 28px; padding: 0; }
legend { font-weight: 600; margin-bottom: 12px; padding: 0; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: block; padding: 18px 16px; background: var(--paper-step); font-weight: 600; font-size: var(--fs-lead); line-height: 1.2; transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.choice small { display: block; margin-top: 6px; font-weight: 400; font-size: var(--fs-small); line-height: 1.35; }
.choice input:checked + span { background: var(--ink); color: var(--paper); }
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.choice:hover span { transform: translateY(-2px); }
.slip-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; margin-bottom: 20px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 400 var(--fs-body)/1.4 var(--text); color: var(--ink);
  background: #f3ece0; border: 2px solid var(--ink); border-radius: 0;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23062b8a' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; padding-right: 40px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder { color: #4a5a8c; }
.slip-status { margin-top: 16px; font-weight: 600; min-height: 1.5em; }
.hint { margin: -8px 0 20px; font-size: var(--fs-small); color: var(--ink-soft); }
.slip-total { display: block; margin: 12px 0 24px; padding: 20px; background: var(--paper-step); font-weight: 600; font-size: var(--fs-body); line-height: 1.45; }

/* week */
.week {
  padding: var(--gap) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; gap: clamp(16px, 2vw, 28px);
}
.week-board { grid-row: span 2; padding: clamp(48px, 5vw, 80px) clamp(24px, 4vw, 64px); }
.week-board h2 { font-size: var(--fs-h2); max-width: 14ch; margin-bottom: 40px; }
.days { list-style: none; margin: 0; padding: 0; }
.days li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; margin: 0 -16px; font-size: var(--fs-lead); }
.days .d { font-weight: 600; }
.days .rest { color: var(--ink-soft); }
.days li.today { background: var(--ink); color: var(--paper); }
.days li.today.rest { background: none; color: var(--ink); outline: 3px solid var(--ink); outline-offset: -3px; }
.find { margin-top: 36px; display: grid; gap: 6px; font-weight: 600; }
.placeholder { background: var(--paper-step); padding: 6px 10px; justify-self: start; }
.week-photo { margin: 0; }
.week-photo img { width: 100%; object-fit: cover; background: var(--ground-step); }
.week-photo.tall { grid-column: 2; }
.week-photo.tall img { aspect-ratio: 16 / 11; }
.week-photo.wide { grid-column: 2; }
.week-photo.wide img { aspect-ratio: 16 / 9; }
figcaption { margin-top: 10px; font-size: var(--fs-small); }

/* contact */
.contact {
  padding: var(--gap) var(--gutter) var(--gap);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: stretch;
}
.contact-photo { margin: 0; display: flex; flex-direction: column; }
.contact-photo img { flex: 1; width: 100%; height: 100%; min-height: 420px; object-fit: cover; background: var(--ground-step); }
.contact-ticket { padding: clamp(48px, 5vw, 80px) clamp(24px, 4vw, 64px); }
.contact-ticket h2 { font-size: var(--fs-h2); margin-bottom: 20px; }
.contact-ticket > p { margin-bottom: 32px; max-width: 40ch; }
.honey { display: none; }

/* footer: the back of the ticket */
.foot { overflow: hidden; background: var(--paper); color: var(--ink); padding: clamp(40px, 5vw, 72px) var(--gutter) 32px; clip-path: polygon(0 10px, 2.083% 0, 4.167% 10px, 6.25% 0, 8.333% 10px, 10.417% 0, 12.5% 10px, 14.583% 0, 16.667% 10px, 18.75% 0, 20.833% 10px, 22.917% 0, 25% 10px, 27.083% 0, 29.167% 10px, 31.25% 0, 33.333% 10px, 35.417% 0, 37.5% 10px, 39.583% 0, 41.667% 10px, 43.75% 0, 45.833% 10px, 47.917% 0, 50% 10px, 52.083% 0, 54.167% 10px, 56.25% 0, 58.333% 10px, 60.417% 0, 62.5% 10px, 64.583% 0, 66.667% 10px, 68.75% 0, 70.833% 10px, 72.917% 0, 75% 10px, 77.083% 0, 79.167% 10px, 81.25% 0, 83.333% 10px, 85.417% 0, 87.5% 10px, 89.583% 0, 91.667% 10px, 93.75% 0, 95.833% 10px, 97.917% 0, 100% 10px, 100% 100%, 0 100%); }
.foot-name { font-family: var(--display); font-size: clamp(56px, 15.2vw, 250px); line-height: 0.85; letter-spacing: -0.045em; white-space: nowrap; }
.foot-row { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: var(--fs-small); }
.foot-row a { font-weight: 600; text-underline-offset: 4px; }

/* motion */
.js .reveal > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in > * { opacity: 1; transform: none; }
.js .reveal.in > *:nth-child(2) { transition-delay: .07s; }
.js .reveal.in > *:nth-child(3) { transition-delay: .14s; }
.js .reveal.in > *:nth-child(4) { transition-delay: .21s; }
.js .reveal.in > *:nth-child(n+5) { transition-delay: .28s; }
.js .hero-photo img { transform: scale(1.08); transition: transform 2.4s var(--ease); }
.js .hero-photo.in img { transform: scale(1); }
.days li { transition: background-color .3s var(--ease), color .3s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal > *, .js .hero-photo img { opacity: 1 !important; transform: none !important; transition: none !important; }
  .button, .choice span, .nav .nav-action { transition: none; }
}

/* tablet */
@media (max-width: 1024px) {
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .menu-col:nth-child(3) { grid-column: 1 / -1; }
  .cakes { grid-template-columns: minmax(0, 1fr); }
  .cakes-intro { position: static; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; align-items: start; }
  .cakes-intro h2 { grid-row: span 2; }
  .cakes-intro p { margin-top: 0; justify-self: end; }
  .cakes-intro p + p { margin-top: 16px; }
  .week { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .week-board { grid-column: 1 / -1; grid-row: auto; }
  .week-photo.tall { grid-column: 1; }
  .week-photo.wide { grid-column: 2; }
  .week-photo.tall img, .week-photo.wide img { aspect-ratio: 4 / 5; }
}

/* phone */
@media (max-width: 720px) {
  .js .menu-toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
    background: var(--paper); color: var(--ink); border: 0; border-radius: 999px;
    font: 600 var(--fs-body)/1 var(--text); cursor: pointer;
  }
  .nav { flex-wrap: wrap; gap: 4px 20px; }
  .js .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ground); padding: 8px var(--gutter) 24px;
  }
  .js .nav.open { display: flex; }
  .js .nav a { font-size: var(--fs-lead); padding: 14px 0; }
  .js .nav .nav-action { margin-top: 12px; text-align: center; padding: 16px; }
  .hero { min-height: auto; padding-top: 28vh; }
  .hero-ticket { padding-top: 48px; }
  .hero-loaf { width: 72px; top: 24px; right: 20px; }
  .lede { margin-top: 32px; }
  .sheet-head { grid-template-columns: 1fr; }
  .cakes-intro { display: block; }
  .cakes-intro p { margin-top: 28px; }
  .sheet-head p { justify-self: start; font-size: var(--fs-body); }
  .menu-grid { grid-template-columns: minmax(0, 1fr); }
  .menu-col:nth-child(3) { grid-column: auto; }
  .choices { grid-template-columns: 1fr; }
  .choice span { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--fs-lead); }
  .choice small { margin-top: 0; text-align: right; }
  .slip-row { grid-template-columns: 1fr; gap: 0; }
  .week { grid-template-columns: minmax(0, 1fr); }
  .week-photo.tall, .week-photo.wide { grid-column: 1; }
  .week-photo.tall img { aspect-ratio: 4 / 5; }
  .week-photo.wide img { aspect-ratio: 3 / 2; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact-photo img { min-height: 0; aspect-ratio: 4 / 3; }
  .contact-ticket { order: -1; }
  .button { width: 100%; }
  .hero-actions .button { width: auto; }
}

/* hero entrance: the ticket slides up once, text stays readable throughout */
@keyframes rise { from { transform: translateY(28px); } to { transform: none; } }
@keyframes bake { from { transform: translateY(14px) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.js .hero-ticket { animation: rise .8s var(--ease) both; }
.js .hero-loaf { animation: bake .9s .25s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .js .hero-ticket, .js .hero-loaf { animation: none; } }
