@font-face { font-family: "Courgette"; src: url("assets/fonts/courgette-regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-semibold.ttf") format("truetype"); font-weight: 600 800; font-display: swap; }

:root {
  --cream: #f5ebdd;
  --paper: #fffaf1;
  --cover-paper: #fbedf2;
  --weight-note-accent: #f7dbe4;
  --green: #34483a;
  --accent: #a45137;
  --wash: #e8decd;
  --brown: #76543d;
  --muted: #686357;
  --line: #d8ccbb;
  --script: "Courgette", "Segoe Print", cursive;
  --sans: "DM Sans", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--green); background: var(--cream) url("assets/bakery-pattern-cream.svg") repeat; background-size: 640px 480px; font-family: var(--sans); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
::selection { color: var(--paper); background: var(--green); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
p, h1, h2, h3, h4, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--script); font-weight: 400; }
h1, h2 { letter-spacing: 0; line-height: 1.15; }
h1 { font-size: clamp(3.1rem, 5vw, 4.75rem); }
h2 { font-size: clamp(2.75rem, 4vw, 3.75rem); }
h3 { font-size: 1.9rem; line-height: 1.3; }
h1, h2, h3, h4, .wordmark, .note-quote, .note-signature { overflow-wrap: anywhere; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
em { color: var(--accent); font-weight: inherit; font-style: normal; }
.container { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.section-space { padding-block: 62px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 16px; padding: 14px 24px; border: 1px solid var(--green); border-radius: 999px; background: var(--green); color: var(--paper); box-shadow: 0 4px 0 rgb(52 72 58 / 13%); font-weight: 600; line-height: 1.4; text-align: center; transition: transform .18s, background .18s; }
.button:hover { transform: translateY(-2px); background: #24392c; }
.button-outline { background: var(--paper); color: var(--green); }
.button-outline:hover { color: var(--paper); }
.skip-link { position: fixed; z-index: 100; left: 20px; top: 12px; max-width: calc(100% - 40px); transform: translateY(calc(-100% - 24px)); clip-path: inset(50%); padding: 12px 20px; background: var(--green); color: var(--paper); }
.skip-link:focus { transform: none; clip-path: none; }
.site-header { border-bottom: 1px dashed var(--line); background: var(--cream); }
.header-inner { min-height: 94px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-block: 16px; }
.brand { display: inline-grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 12px; max-width: 100%; min-width: 0; }
.brand > img { width: 56px; height: 56px; }
.brand > span { max-width: 100%; min-width: 0; }
.wordmark { display: block; font-family: var(--script); font-weight: 400; color: var(--green); font-size: 2.4rem; line-height: 1.1; }
.brand-descriptor { display: block; font-size: 1rem; letter-spacing: .02em; line-height: 1.4; margin-top: 7px; }
#site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
#site-nav > a { display: inline-flex; justify-content: center; align-items: center; padding: 10px 14px; }
#site-nav > a:not(.button):hover { text-decoration: underline; text-underline-offset: 6px; }

.notebook-page {
  --page-tilt-x: 0deg;
  --page-tilt-y: 0deg;
  --page-lift: 0px;
  position: relative;
  isolation: isolate;
  border: 1px solid rgb(118 84 61 / 18%);
  border-radius: 12px 12px 16px 14px;
  background-color: var(--cream);
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0 31px,
    rgb(52 72 58 / 4%) 31px 32px
  );
  box-shadow:
    0 2px 0 #dfd0ba,
    0 5px 0 #eee1cf,
    0 9px 0 #d9c8af,
    0 22px 42px rgb(74 55 35 / 16%),
    inset 20px 0 0 rgb(164 81 55 / 4%),
    inset 22px 0 0 rgb(164 81 55 / 13%);
  transform: perspective(1400px) translateY(var(--page-lift)) rotateX(var(--page-tilt-x)) rotateY(var(--page-tilt-y));
  transform-origin: 50% 18%;
  transition: transform .2s ease-out, box-shadow .2s ease-out;
  will-change: transform;
}
.notebook-page::after {
  content: "";
  position: absolute;
  z-index: 3;
  right: -1px;
  bottom: -1px;
  width: 48px;
  height: 48px;
  border-radius: 0 0 14px;
  background:
    linear-gradient(135deg, transparent 0 46%, rgb(118 84 61 / 15%) 47% 50%, #eadcc8 51% 68%, var(--cream) 69%);
  filter: drop-shadow(-4px -3px 3px rgb(74 55 35 / 12%));
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.notebook-page.is-page-active {
  --page-lift: -3px;
  box-shadow:
    0 2px 0 #dfd0ba,
    0 6px 0 #eee1cf,
    0 11px 0 #d9c8af,
    0 30px 52px rgb(74 55 35 / 20%),
    inset 20px 0 0 rgb(164 81 55 / 4%),
    inset 22px 0 0 rgb(164 81 55 / 13%);
}
.spiral-binding {
  position: absolute;
  z-index: 2;
  top: -20px;
  left: 44px;
  right: 44px;
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='40' viewBox='0 0 34 40'%3E%3Crect x='9' y='28' width='16' height='8' rx='1.5' fill='%2334483a'/%3E%3Cpath d='M11.5 31V14.5C11.5 5.5 22.5 5.5 22.5 14.5V31' fill='none' stroke='%2324392c' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M14 30.5V15C14 10 20 10 20 15V30.5' fill='none' stroke='%23f5ebdd' stroke-opacity='.42' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position: center top;
  background-repeat: repeat-x;
  background-size: 34px 40px;
  pointer-events: none;
}
.hero-section { background-color: var(--cream); color: var(--green); background-image: url("assets/bakery-pattern-cream.svg"); background-size: 640px 480px; background-repeat: repeat; margin-bottom: 36px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-block: 58px 66px; }
.hero-description { margin-top: 22px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-art { position: relative; isolation: isolate; width: min(100%, 470px); justify-self: end; padding: 12px 8px; }
.bakery-shelf { display: none; }
.hero-art::before { content: ""; position: absolute; inset: 7% 0 17%; border-radius: 47% 53% 61% 39% / 54% 40% 60% 46%; background: var(--wash); z-index: -2; transform: rotate(-6deg); }
.hero-art::after { content: ""; position: absolute; inset: -7% -6% 3%; background: url("assets/bakery-doodles.svg") center / 100% 100% no-repeat; z-index: -1; pointer-events: none; }
.hero-photo picture { display: block; }
.hero-photo img { width: 100%; height: auto; object-fit: contain; }
.hero-photo img, .cake-card img { filter: drop-shadow(0 8px 6px rgb(64 42 20 / 15%)); }

.eyebrow { font-weight: 600; letter-spacing: .08em; line-height: 1.5; }
.eyebrow + h2 { margin-top: 22px; }
.story-section { position: relative; background: var(--green); color: var(--cream); padding-block: 72px; margin-block: 18px; }
.story-section::before, .story-section::after { content: ""; position: absolute; left: 0; right: 0; height: 18px; background: radial-gradient(circle at 16px 0, transparent 15px, var(--green) 16px) 0 0 / 32px 18px repeat-x; pointer-events: none; }
.story-section::before { top: -17px; }
.story-section::after { bottom: -17px; transform: rotate(180deg); }
.story-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 72px; }
.hero-copy, .section-heading, .cake-card-info,
.story-copy, .order-layout > div, .order-action {
  position: relative;
  isolation: isolate;
}
.hero-copy::before, .section-heading::before, .cake-card-info::before,
.story-copy::before, .order-layout > div::before, .order-action::before {
  content: "";
  position: absolute;
  inset: -16px -18px;
  z-index: -1;
  border-radius: 22px;
  pointer-events: none;
}
.hero-copy::before, .section-heading::before, .cake-card-info::before {
  background: var(--cream);
  box-shadow: 0 0 24px 14px var(--cream);
}
.story-copy::before, .order-layout > div::before, .order-action::before {
  background: var(--green);
  box-shadow: 0 0 24px 14px var(--green);
}
.story-copy .eyebrow { color: #dfcfb9; }
.story-copy h2 { font-size: clamp(2.9rem, 4.3vw, 4rem); }
.story-copy em, .order-section em { color: #e8baa2; }
.story-section :focus-visible, .order-section :focus-visible { outline-color: var(--cream); }
.story-copy > p:not(.eyebrow) { color: #e2dfd0; margin-top: 23px; max-width: 480px; }
.story-copy .text-link { display: inline-flex; align-items: center; gap: 16px; padding-block: 8px; font-weight: 600; border-bottom: 1px solid currentColor; }
.story-copy .text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.light-link { color: var(--cream); margin-top: 25px; }
.recipe-note { position: relative; width: 100%; max-width: 380px; min-height: 355px; justify-self: end; padding: 37px 30px; border-radius: 24px; background: var(--paper); color: var(--green); text-align: center; transform: rotate(3deg); box-shadow: 8px 10px 0 rgb(0 0 0 / 10%); }
.recipe-note::after { content: ""; position: absolute; inset: 13px; border: 1.5px dashed #d2c5b2; border-radius: 16px; pointer-events: none; }
.note-tape { position: absolute; top: -12px; left: calc(50% - 42px); width: 84px; height: 30px; background: var(--wash); opacity: .9; clip-path: polygon(3% 0, 97% 0, 100% 30%, 97% 55%, 100% 100%, 0 100%, 3% 65%, 0 30%); transform: rotate(-5deg); }
.bowl-drawing { width: 150px; height: 90px; color: var(--brown); margin-block: 24px 11px; }
.note-quote { font-family: var(--script); font-weight: 400; font-size: 2.65rem; line-height: 1.2; }
.note-signature { display: block; font-family: var(--script); font-weight: 400; color: var(--brown); margin-top: 20px; }

.cake-section { margin-block: 46px; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px 32px; margin-bottom: 30px; }
.section-heading > p { color: var(--muted); max-width: 350px; }
.cake-weight-info { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; width: fit-content; max-width: 100%; padding: 20px 26px; background: var(--cream); border: 1px solid #d9adba; border-left: 6px solid var(--weight-note-accent); border-radius: 8px 24px 24px 8px; box-shadow: 0 4px 0 rgb(239 183 200 / 20%); }
.cake-weight-heading { display: flex; align-items: center; gap: 10px; min-width: 0; font: 400 1.6rem/1.3 var(--script); overflow-wrap: anywhere; }
.cake-weight-heading img { flex: 0 0 32px; width: 32px; height: 32px; }
.cake-weight-values { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; min-width: 0; max-width: 100%; margin: 0; padding: 0; list-style: none; }
.cake-weight-values li { display: flex; align-items: center; gap: 9px; color: var(--green); font-size: 1.125rem; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.cake-weight-values li::before { content: ""; flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--weight-note-accent); }
@media (max-width: 600px) {
  .cake-weight-info { width: 100%; padding: 18px 16px; gap: 12px; }
  .cake-weight-heading { width: 100%; }
  .cake-weight-values { column-gap: 16px; }
}
.notebook-cover.notebook-page, .category-notebook.notebook-page {
  border-color: rgb(118 84 61 / 24%);
  border-radius: 2px;
  box-shadow:
    0 1px 0 #c8bba7,
    0 3px 0 var(--cream),
    0 4px 0 #c8bba7,
    0 6px 0 var(--cream),
    0 7px 0 #c8bba7,
    0 11px 0 2px var(--green),
    0 18px 22px rgb(52 72 58 / 14%);
}
.notebook-cover.notebook-page { background-color: var(--cover-paper); background-image: none; }
.notebook-cover.notebook-page::after, .category-notebook.notebook-page::after { content: none; }
.notebook-cover > .spiral-binding, .category-notebook > .spiral-binding {
  left: 18px;
  right: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='40' viewBox='0 0 30 40'%3E%3Cdefs%3E%3ClinearGradient id='wire'%3E%3Cstop stop-color='%2324392c'/%3E%3Cstop offset='.45' stop-color='%2372816b'/%3E%3Cstop offset='.7' stop-color='%2334483a'/%3E%3Cstop offset='1' stop-color='%2324392c'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='7' y='27' width='17' height='10' rx='.6' fill='%2324392c'/%3E%3Cpath d='M7 27h17' stroke='%2376543d' stroke-opacity='.45'/%3E%3Cg fill='none' stroke='url(%23wire)' stroke-width='2.4'%3E%3Cpath d='M12 32C5 32 5 3 12 3s7 29 0 29Z'/%3E%3Cpath d='M17 32C10 32 10 3 17 3s7 29 0 29Z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23f5ebdd' stroke-opacity='.6' stroke-width='.7' stroke-linecap='round'%3E%3Cpath d='M11 29C7 26 7 8 11 5'/%3E%3Cpath d='M16 29C12 26 12 8 16 5'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: space no-repeat;
  background-size: 30px 40px;
}
.category-notebooks { --notebooks-ready: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 34px; margin-top: 54px; }
.notebook-cover { --cover-angle: -1deg; display: flex; flex-direction: column; align-items: center; gap: 14px; width: calc(100% - 32px); margin-right: 32px; min-width: 0; min-height: 460px; padding: 38px 20px 26px; text-align: center; transform: rotate(var(--cover-angle)); will-change: auto; }
.notebook-cover:nth-child(3n + 2) { --cover-angle: 1deg; }
.notebook-cover:nth-child(3n) { --cover-angle: -.5deg; }
.notebook-cover-tabs { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.notebook-cover-tab { position: absolute; top: var(--flag-top); left: 100%; width: var(--flag-out); height: var(--flag-height); border: 1px solid rgb(52 72 58 / 20%); border-radius: 0 2px 2px 0; background: rgb(var(--tab-color)); box-shadow: 1px 3px 3px rgb(52 72 58 / 15%), inset 0 1px 0 rgb(255 250 241 / 65%); pointer-events: none; }
.notebook-cover-tab[data-tab-color="pink"] { --tab-color: var(--tab-pink); }
.notebook-cover-tab[data-tab-color="butter"] { --tab-color: var(--tab-butter); }
.notebook-cover-tab[data-tab-color="blue"] { --tab-color: var(--tab-blue); }
.notebook-cover-tab[data-tab-color="lilac"] { --tab-color: var(--tab-lilac); }
.notebook-cover-tab[data-tab-color="mint"] { --tab-color: var(--tab-mint); }
.notebook-cover h3 { padding: 4px 8px; font-size: 2rem; background: transparent; }
.notebook-cover-art { position: relative; display: grid; place-items: center; width: 100%; min-width: 0; height: 250px; flex: 1; }
.notebook-cover-art picture { display: block; width: 90%; height: 250px; }
.notebook-cover-art picture img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 7px 4px rgb(74 55 35 / 14%)); }
.notebook-cover-placeholder { display: grid; place-items: center; width: 170px; max-width: 90%; aspect-ratio: 1; border: 2px dashed var(--brown); border-radius: 50%; background: var(--cream); }
.notebook-cover-placeholder img { width: 100px; max-width: 65%; }
.notebook-doodle { position: absolute; width: 54px; height: auto; pointer-events: none; filter: drop-shadow(0 3px 2px rgb(74 55 35 / 12%)); }
.notebook-doodle svg { width: 100%; height: auto; }
.notebook-doodle-primary { left: -3px; top: 2px; color: var(--accent); transform: rotate(-14deg); }
.notebook-doodle-secondary { right: -4px; bottom: 4px; width: 62px; color: var(--brown); transform: rotate(12deg); }
.notebook-cover-note { padding: 3px 8px; background: transparent; color: var(--green); font-size: 1rem; }
.notebook-cover-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; min-height: 48px; padding: 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-weight: 600; font-size: 1rem; overflow-wrap: anywhere; }
.notebook-cover:hover .notebook-cover-action, .notebook-cover:focus-visible .notebook-cover-action { text-decoration: underline; text-underline-offset: 5px; }
@media (hover: hover) and (pointer: fine) {
  .notebook-cover:hover { transform: translateY(-4px) rotate(0); }
}
.category-notebook { margin-block: 70px; transform: none; will-change: auto; }
.category-notebook > .spiral-binding { z-index: 5; }
.notebook-heading { padding: 32px 36px 12px; }
.notebook-heading h3 { display: inline-block; padding: 4px 8px; margin-left: -8px; background: var(--cream); font-size: 2rem; }
.notebook-static-back { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 12px; margin-left: 12px; background: var(--cream); text-decoration: underline; text-underline-offset: 5px; }
.notebook-stage { position: relative; perspective: 6000px; }
.notebook-sheet { position: relative; padding: 24px 36px 30px; background: repeating-linear-gradient(0deg, transparent 0 31px, rgb(52 72 58 / 4%) 31px 32px), var(--cream); transform-origin: center top; backface-visibility: hidden; }
.notebook-sheet + .notebook-sheet { border-top: 1px dashed var(--line); }
.notebook-sheet.is-turning-sheet { position: absolute; inset: 0 0 auto; z-index: 3; min-height: 100%; box-shadow: 0 12px 20px rgb(74 55 35 / 15%); }
.notebook-sheet-copy { width: fit-content; max-width: 100%; background: var(--cream); box-shadow: 0 0 0 12px var(--cream); margin-bottom: 24px; }
.notebook-sheet-copy h4 { font-size: 1.6rem; line-height: 1.35; }
.notebook-sheet-copy p { margin-top: 16px; }
.notebook-empty-note { display: table; max-width: 100%; margin-top: 20px; background: var(--cream); box-shadow: 0 0 0 10px var(--cream); }
.notebook-empty-note { color: var(--muted); }
.notebook-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 16px; background: var(--cream); border-top: 1px solid var(--line); border-radius: 0 0 14px 12px; }
.notebook-controls p { text-align: center; color: var(--brown); font-size: 1rem; }
.notebook-controls button, .notebook-dialog-toolbar button { min-height: 48px; padding: 10px 14px; border: 1px solid var(--brown); border-radius: 999px; background: var(--paper); font-weight: 600; font-size: 1rem; line-height: 1.4; }
.notebook-controls button:disabled { color: var(--muted); border-color: var(--line); cursor: default; }
.category-notebook .notebook-controls { border-radius: 0 0 2px 2px; }
.notebook-dialog { width: min(1000px, calc(100% - 40px)); max-width: none; max-height: calc(100dvh - 32px); padding: 18px 24px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--cream); color: var(--green); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scroll-padding-block: 100px 10rem; }
.notebook-dialog::backdrop { background: rgb(22 29 22 / 78%); }
.notebook-dialog-toolbar { position: sticky; top: 0; z-index: 8; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 32px; padding-block: 8px; background: var(--cream); }
.notebook-dialog-toolbar > p { min-width: 0; font-family: var(--script); font-size: 1.6rem; overflow-wrap: anywhere; }
.notebook-dialog-toolbar button { flex-shrink: 0; max-width: 100%; }
.is-open-notebook { margin: 0; }
.is-open-notebook .notebook-static-back { display: none; }
.is-open-notebook .notebook-controls { position: sticky; bottom: -24px; z-index: 6; box-shadow: 0 -7px 12px rgb(74 55 35 / 7%); }
.notebook-keyboard-help { font-size: 1rem; padding: 16px 4px 0; color: var(--brown); }
body.has-notebook-dialog { overflow: hidden; }
body.has-notebook-dialog .mobile-enquire { display: none; }
.cake-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
.cake-card { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
.photo-link { display: block; }
.photo-link::after { content: "View larger photo"; position: relative; z-index: 1; display: flex; justify-content: flex-end; align-items: center; min-height: 48px; padding: 8px 2px; background: var(--cream); color: var(--green); font: 600 1rem/1.5 var(--sans); }
.photo-link:hover::after { text-decoration: underline; text-underline-offset: 5px; }
.category-notebook .photo-link { cursor: zoom-in; }
.category-notebook .photo-link::after { content: none; }
.cake-card picture { display: flex; align-items: center; justify-content: center; height: 270px; }
.cake-card img { width: 100%; height: 100%; object-fit: contain; }
.cake-card-info { display: flex; flex-direction: column; align-items: flex-start; padding: 15px 2px 0; }
.cake-card-info h4 { max-width: 100%; overflow-wrap: anywhere; font-size: 1.6rem; margin-bottom: 16px; }
.order-section { background: var(--green); color: var(--cream); padding-block: 62px; border-block: 2px dashed #7e8b79; }
.story-section, .order-section { background-image: url("assets/bakery-pattern-green.svg"); background-size: 640px 480px; background-repeat: repeat; }
.order-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; align-items: center; }
.order-layout h2 + p { margin-top: 18px; max-width: 420px; }
.order-action .button { width: 100%; color: var(--green); background: var(--paper); border-color: var(--paper); }
.order-action .button:hover { background: var(--cream); }
.order-action .instagram-contact { min-height: 230px; flex-direction: column; gap: 12px; padding: 24px; border-radius: 32px; }
.instagram-logo { display: block; width: 8rem; max-width: 100%; height: auto; aspect-ratio: 1; flex-shrink: 0; }
.contact-button-label { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.instagram-contact .contact-button-label { font-size: 1.125rem; }
.small-note { color: #e2dfd0; margin-top: 13px; }
.order-action .small-note:last-child { margin-top: 18px; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 82px; color: var(--muted); }
.site-footer a { display: inline-flex; align-items: center; gap: 10px; }
.site-footer a:hover { text-decoration: underline; }
.mobile-enquire { display: none; }

.bakery-entrance {
  --parallax-x: 0px;
  --parallax-y: 0px;
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: hidden;
  background: var(--cream);
}
.entrance-art { position: absolute; inset: 0; display: grid; place-items: center; padding: clamp(54px, 8vmin, 108px); }
.entrance-backdrop {
  position: absolute;
  inset: -3%;
  background: var(--cream) url("assets/bakery-pattern-cream.svg") repeat;
  background-size: 640px 480px;
  transform: translate(calc(var(--parallax-x) * -.22), calc(var(--parallax-y) * -.22)) scale(1.06);
  transition: transform .18s ease-out;
}
.entrance-shop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(1120px, calc(100vw - clamp(72px, 12vw, 220px)));
  height: min(820px, calc(100svh - clamp(108px, 16vh, 210px)));
  transform: translate(var(--parallax-x), var(--parallax-y));
  transition: transform .18s ease-out;
}
.entrance-sign { width: min(760px, 72%); padding: 12px 24px; background: var(--paper); border: 4px solid var(--green); border-radius: 18px; box-shadow: 0 7px 0 var(--wash); }
.entrance-sign img { width: 100%; height: auto; }
.entrance-awning { width: 100%; height: 34px; flex-shrink: 0; margin-top: 15px; border: 2px solid var(--green); border-radius: 10px 10px 18px 18px; background: repeating-linear-gradient(90deg, var(--cream) 0 34px, var(--green) 34px 68px); }
.entrance-doorway { position: relative; flex: 1; min-height: 0; width: 88%; margin-top: 55px; }
.entrance-bell-mount { position: absolute; left: calc(50% - 12px); top: -59px; width: 24px; height: 12px; border: 3px solid var(--green); border-radius: 50% 50% 0 0; background: var(--wash); }
.entrance-bell { position: absolute; left: calc(50% - 32px); top: -54px; z-index: 2; transform-origin: 50% 6%; }
.entrance-doorframe { position: absolute; inset: 0; display: flex; border: 10px solid var(--green); border-radius: 12px 12px 0 0; perspective: 1100px; box-shadow: 0 10px 0 var(--wash); }
.entrance-doorframe::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, var(--paper), var(--wash)); }
.entrance-door { position: relative; width: 50%; height: 100%; border: 2px solid var(--wash); background: var(--green); backface-visibility: hidden; transform-style: preserve-3d; }
.entrance-door-left { transform-origin: left center; }
.entrance-door-right { transform-origin: right center; }
.entrance-glass { position: absolute; inset: 15px 12px 32%; display: grid; place-items: center; background: var(--paper); border: 4px double var(--wash); border-radius: 55px 55px 5px 5px; }
.entrance-glass img, .entrance-glass svg { width: min(82px, 70%); height: auto; }
.entrance-door-panel { position: absolute; inset: auto 12px 16px; height: 21%; border: 2px solid #a5ad99; border-radius: 7px; }
.entrance-handle { position: absolute; top: 56%; width: 8px; height: 42px; border: 2px solid var(--brown); border-radius: 8px; background: var(--cream); }
.entrance-door-left .entrance-handle { right: 5px; }
.entrance-door-right .entrance-handle { left: 5px; }
.entrance-enter { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: center; padding: 24px; }
.entrance-enter > span { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 24px; border: 1px solid var(--green); border-radius: 999px; background: var(--paper); color: var(--green); box-shadow: 0 5px 0 rgb(52 72 58 / 13%); font: 600 1rem/1.4 var(--sans); }
.entrance-enter:hover > span { background: var(--wash); }
.entrance-tools { position: absolute; z-index: 4; top: 18px; left: 20px; right: 20px; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: flex-start; gap: 8px; pointer-events: none; }
.entrance-skip, .entrance-motion { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; min-height: 48px; padding: 11px 18px; border: 1px solid var(--green); border-radius: 999px; background: var(--paper); color: var(--green); font: 600 1rem/1.4 var(--sans); pointer-events: auto; }
.entrance-motion { margin-right: auto; }
.entrance-motion[aria-pressed="true"] { background: var(--green); color: var(--paper); }
.entrance-skip:hover, .entrance-motion:not([aria-pressed="true"]):hover { background: var(--wash); }
html:has(:target) .bakery-entrance { display: none; }
.bakery-entrance.is-entering { animation: entrance-dismiss .12s linear 1.68s forwards; }
.bakery-entrance.is-entering .entrance-backdrop { animation: entrance-backdrop-fade .55s ease-out .7s both; }
.bakery-entrance.is-entering .entrance-shop { animation: entrance-approach 1.45s ease-in .18s both; }
.bakery-entrance.is-entering .entrance-bell { animation: entrance-bell-swing .9s ease-out .05s both; }
.bakery-entrance.is-entering .entrance-doorframe::before { animation: entrance-backdrop-fade .5s ease-out .75s both; }
.bakery-entrance.is-entering .entrance-door-left { animation: entrance-open-left .95s cubic-bezier(.4, 0, .2, 1) .08s both; }
.bakery-entrance.is-entering .entrance-door-right { animation: entrance-open-right .95s cubic-bezier(.4, 0, .2, 1) .08s both; }
.bakery-entrance.is-entering .entrance-enter, .bakery-entrance.is-entering .entrance-tools { pointer-events: none; opacity: 0; transition: opacity .12s; }
.bakery-entrance.is-entering .entrance-tools > * { pointer-events: none; }
@keyframes entrance-open-left { from { transform: rotateY(0); } to { transform: rotateY(-106deg); } }
@keyframes entrance-open-right { from { transform: rotateY(0); } to { transform: rotateY(106deg); } }
@keyframes entrance-bell-swing { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(18deg); } 35% { transform: rotate(-15deg); } 55% { transform: rotate(10deg); } 75% { transform: rotate(-5deg); } }
@keyframes entrance-backdrop-fade { from { opacity: 1; } to { opacity: 0; } }
@keyframes entrance-approach {
  0% { transform: translate(var(--parallax-x), var(--parallax-y)) scale(1); opacity: 1; }
  65% { transform: translate(var(--parallax-x), var(--parallax-y)) scale(1.035); opacity: 1; }
  100% { transform: translate(var(--parallax-x), var(--parallax-y)) scale(1.12); opacity: 0; }
}
@keyframes entrance-dismiss { 0% { opacity: 1; } 99%, 100% { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (max-height: 450px), (forced-colors: active) { .bakery-entrance { display: none; } }

.photo-dialog { width: min(920px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); color: var(--green); }
.photo-dialog::backdrop { background: rgb(22 29 22 / 84%); }
.photo-dialog-header, .photo-dialog-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.photo-dialog-header { margin-bottom: 14px; font-family: var(--sans); font-size: 1.25rem; }
.photo-dialog button { min-width: 80px; padding: 8px 14px; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; }
.photo-dialog button:hover { background: var(--cream); }
#photo-image { width: 100%; height: min(67dvh, 720px); object-fit: contain; }
.photo-dialog-controls { margin-top: 14px; gap: 10px; }
#photo-counter { color: var(--muted); text-align: center; }
#photo-error { color: #973d2c; margin-block: 20px; }

@media (max-width: 1100px) {
  .category-notebooks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .container { width: calc(100% - 48px); }
  .hero { gap: 26px; }
  .hero h1 { font-size: 3.2rem; }
  .story-section { padding-block: 64px; }
  .story-layout { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .story-copy > p:not(.eyebrow) { max-width: 650px; }
  .recipe-note { justify-self: center; }
  .cake-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .cake-card picture { height: 270px; }
  .order-layout { gap: 30px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 18px; scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 0; padding-block: 14px; }
  .wordmark { font-size: 2.1rem; }
  .brand { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
  .brand > img { width: 44px; height: 44px; }
  #site-nav { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 5.5rem), 1fr)); gap: 8px; align-items: stretch; }
  #site-nav > a { padding: 10px 6px; border: 1px solid var(--line); border-radius: 999px; text-align: center; line-height: 1.4; }
  #site-nav > .nav-cta { border-color: var(--green); }
  .notebook-page {
    border-radius: 10px 10px 14px 12px;
    box-shadow:
      0 2px 0 #dfd0ba,
      0 5px 0 #eee1cf,
      0 8px 0 #d9c8af,
      0 16px 30px rgb(74 55 35 / 14%),
      inset 12px 0 0 rgb(164 81 55 / 4%),
      inset 14px 0 0 rgb(164 81 55 / 12%);
  }
  .spiral-binding { left: 28px; right: 28px; }
  .hero { display: flex; flex-direction: column; gap: 24px; padding-block: 32px 44px; }
  .hero-art { order: -1; width: min(470px, calc(100% - 18px)); margin-inline: 9px; padding: 10px 4px; }
  .hero h1 { font-size: clamp(2.85rem, 10.5vw, 3.5rem); }
  .hero-description { margin-top: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
  .hero-actions .button { padding-inline: 10px; gap: 8px; }
  .story-section { padding-block: 48px 54px; }
  .story-copy h2 { font-size: 2.75rem; }
  .story-copy > p:not(.eyebrow) { margin-top: 22px; }
  .light-link { margin-top: 21px; }
  .recipe-note { width: min(340px, calc(100% - 26px)); min-height: 300px; padding: 31px 22px; transform: none; }
  .bowl-drawing { margin-top: 20px; }
  .note-quote { font-size: 2.5rem; }
  .section-space { padding-block: 42px; }
  .cake-section { margin-block: 34px; }
  .category-notebooks { grid-template-columns: minmax(0, 1fr); gap: 52px; margin-top: 42px; }
  .notebook-cover { min-height: 430px; }
  .notebook-cover-art, .notebook-cover-art picture { height: 230px; }
  .notebook-heading { padding: 28px 20px 8px; }
  .notebook-sheet { padding: 22px 20px 28px; }
  .notebook-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 10px 10px 20px; }
  .notebook-dialog-toolbar { gap: 10px; margin-bottom: 28px; }
  .notebook-dialog-toolbar > p { font-size: 1.4rem; }
  .notebook-dialog-toolbar button { padding-inline: 12px; }
  .notebook-controls { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); gap: 8px; padding: 12px 8px; }
  .notebook-controls p { grid-column: 1 / -1; grid-row: 1; }
  .notebook-controls button { padding-inline: 8px; }
  .is-open-notebook .notebook-controls { bottom: -20px; }
  .section-heading { gap: 14px; margin-bottom: 26px; }
  .section-heading > p { max-width: none; }
  .cake-grid { grid-template-columns: 1fr; gap: 28px; }
  .cake-card picture { height: auto; }
  .cake-card img { height: auto; }
  .cake-card[data-orientation="portrait"] picture { height: auto; }
  .cake-card[data-orientation="portrait"] img { height: 100%; }
  .cake-card-info { padding-top: 12px; }
  .cake-card-info h4 { font-size: 1.9rem; }
  .order-section { padding-block: 40px; }
  .order-layout { grid-template-columns: 1fr; gap: 26px; }
  .site-footer { padding-block: 14px; }
  .mobile-enquire { position: fixed; display: flex; justify-content: center; align-items: center; gap: 22px; left: 0; right: 0; bottom: 0; min-height: 62px; padding: 15px 22px calc(15px + env(safe-area-inset-bottom)); background: var(--green); color: var(--cream); border-top: 1px solid #7e8b79; font-weight: 600; z-index: 10; }
  .mobile-enquire.is-contextual-hidden { display: none; }
  .photo-dialog { padding: 12px; width: calc(100% - 22px); }
  .photo-dialog-header { align-items: start; font-size: 1.2rem; }
  .photo-dialog-controls { gap: 6px; }
  .photo-dialog button { min-width: 72px; padding-inline: 8px; }
  #photo-image { height: 65dvh; }
  .entrance-art { padding: 76px 20px 86px; }
  .entrance-shop { width: 100%; height: 100%; }
  .entrance-sign { width: min(92%, 520px); padding-inline: 14px; }
  .entrance-doorway { width: 92%; }
  .entrance-enter { padding-bottom: 18px; }
}
.notebook-dialog[open] {
  --book-edge-gutter: 24px;
  --book-tab-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 24px;
  width: min(1120px, calc(100% - 24px));
  height: calc(100dvh - 24px);
  max-height: none;
  padding: 8px calc(12px + var(--book-edge-gutter)) 18px 12px;
  background: var(--wash);
  overflow: hidden;
}
.notebook-dialog-toolbar { position: relative; gap: 8px; margin: 0; padding: 0; flex-wrap: wrap; box-shadow: 1px 1px 0 var(--line); }
.notebook-dialog-toolbar > p { flex: 1 1 8rem; font-size: 1.25rem; line-height: 1.2; }
.notebook-dialog-toolbar button { flex: 0 1 auto; min-width: 0; max-width: 100%; margin-left: auto; margin-right: calc(-1 * var(--book-edge-gutter)); padding: 8px 12px; line-height: 1.2; overflow-wrap: anywhere; }
#notebook-mount { min-width: 0; min-height: 0; }
.is-open-notebook { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: 100%; min-width: 0; min-height: 0; padding: 0; }
.category-notebook.is-open-notebook { border: 0; background: transparent; box-shadow: none; }
.is-open-notebook .notebook-heading { min-height: 10px; padding: 4px 10px; background: var(--cream); }
.is-open-notebook .notebook-heading h3 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.is-open-notebook .notebook-stage { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); min-width: 0; min-height: 0; background: var(--cream); box-shadow: 0 1px 0 #c8bba7, 0 3px 0 var(--cream), 0 4px 0 #c8bba7, 0 6px 0 var(--cream), 0 7px 0 #c8bba7, 0 11px 0 2px var(--green); }
.is-open-notebook .notebook-sheet { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 6px; height: 100%; min-width: 0; min-height: 0; padding: 6px 10px; border: 0; }
.is-open-notebook .notebook-sheet[hidden] { display: none; }
.is-open-notebook .notebook-sheet-copy { margin: 0; box-shadow: none; }
.is-open-notebook .notebook-sheet-copy h4 { font-size: 1.125rem; line-height: 1.2; }
.is-open-notebook .notebook-sheet-copy p { margin-top: 4px; font-size: 1.125rem; line-height: 1.3; }
.is-open-notebook .notebook-empty-note { margin: 0; box-shadow: none; font-size: 1rem; line-height: 1.3; }
.is-open-notebook .cake-grid { min-width: 0; min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); gap: 8px 16px; }
.is-open-notebook .cake-grid:has(.cake-card:nth-child(3)) { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.is-open-notebook .cake-card { min-height: 0; grid-template-rows: minmax(0, 1fr) auto; }
.is-open-notebook .cake-card figure { min-width: 0; min-height: 0; }
.is-open-notebook .photo-link { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100%; min-width: 0; min-height: 48px; }
.is-open-notebook .cake-card picture, .is-open-notebook .cake-card[data-orientation="portrait"] picture { min-height: 0; height: 100%; }
.is-open-notebook .cake-card img, .is-open-notebook .cake-card[data-orientation="portrait"] img { min-height: 0; height: 100%; width: 100%; object-fit: contain; }
.is-open-notebook .cake-card-info { align-items: stretch; padding: 0; background: var(--cream); }
.is-open-notebook .cake-card-info::before { inset: 0; border-radius: 0; box-shadow: none; }
.is-open-notebook .cake-card-info h4 { font-size: 1rem; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.is-open-notebook .notebook-controls { position: absolute; top: clamp(12px, 10%, 64px); right: 0; bottom: auto; width: calc(var(--book-edge-gutter) + 16px); grid-template-columns: minmax(0, 1fr); align-items: start; gap: 8px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.is-open-notebook .notebook-controls button { min-width: 0; min-height: var(--book-tab-height); padding: 4px; font-size: 1rem; line-height: 1.1; overflow-wrap: anywhere; }
.is-open-notebook [data-page-counter] { font-size: 1rem; line-height: 1.1; color: var(--brown); }

/* Index flags overlap the paper edge; the bounded dialog reserves their exposed ends. */
.notebook-cover, .category-notebook, .notebook-dialog-toolbar {
  --tab-pink: 238 180 198;
  --tab-butter: 237 215 148;
  --tab-blue: 182 210 229;
  --tab-lilac: 211 197 227;
  --tab-mint: 196 216 188;
}
.category-notebook .notebook-static-back,
.category-notebook .notebook-controls button,
.notebook-dialog-toolbar button {
  position: relative;
  isolation: isolate;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: rgb(var(--tab-color));
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.category-notebook .notebook-static-back, .notebook-dialog-toolbar button { --tab-color: var(--tab-lilac); }
.category-notebook [data-page-previous] { --tab-color: var(--tab-blue); }
.category-notebook [data-page-next] { --tab-color: var(--tab-pink); }
.notebook-dialog .notebook-dialog-toolbar button { --tab-attachment: calc(100% - var(--book-edge-gutter)); min-height: var(--book-tab-height, 56px); }
.is-open-notebook .notebook-controls button { --tab-direction: 90deg; --tab-attachment: 16px; }
.category-notebook .notebook-static-back::before,
.category-notebook .notebook-controls button::before,
.notebook-dialog-toolbar button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.category-notebook .notebook-static-back::before,
.category-notebook .notebook-controls button::before,
.notebook-dialog-toolbar button::before {
  box-sizing: border-box;
  border: 1px solid rgb(52 72 58 / 18%);
  border-radius: 2px;
  background: rgb(var(--tab-color));
  box-shadow: 1px 2px 2px rgb(52 72 58 / 10%), inset 0 1px 0 rgb(255 255 255 / 55%);
}
.is-open-notebook .notebook-controls button { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 100%; min-width: 0; min-height: var(--book-tab-height); padding: 8px 4px; text-decoration: none; }
.is-open-notebook .notebook-controls [data-page-drag] { touch-action: none; user-select: none; }
.is-open-notebook .notebook-controls [data-page-drag]:enabled { cursor: grab; }
.is-open-notebook .notebook-controls [data-page-drag]:enabled:active { cursor: grabbing; }
.is-open-notebook .notebook-controls .notebook-page-status { grid-column: 1; grid-row: 3; margin: 0; padding: 6px; border: 1px solid var(--line); border-radius: 2px; background: var(--cream); color: var(--green); text-align: center; }
.is-open-notebook [data-page-next] { justify-self: end; }
.is-open-notebook [data-page-counter] { color: inherit; }
.category-notebook .notebook-controls button:disabled { --tab-color: 216 210 198; color: var(--muted); text-decoration: none; }
.category-notebook .notebook-static-back:hover,
.category-notebook .notebook-controls button:enabled:hover,
.notebook-dialog-toolbar button:hover { text-decoration-thickness: 2px; }
.category-notebook :is(.notebook-static-back, .photo-link, .notebook-controls button):focus-visible,
.notebook-dialog-toolbar button:focus-visible { outline-offset: 2px; }
@media (forced-colors: active) {
  .notebook-turn-shadow, .notebook-turn-sheen { display: none !important; }
  .notebook-cover-tab { background: Canvas; border-color: ButtonText; box-shadow: none; }
  .category-notebook .notebook-static-back,
  .category-notebook .notebook-controls button,
  .notebook-dialog-toolbar button { background: Canvas; }
  .category-notebook .notebook-static-back::before,
  .category-notebook .notebook-controls button::before,
  .notebook-dialog-toolbar button::before { background: Canvas; border: 1px solid ButtonText; box-shadow: none; }
}
.photo-dialog[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  width: min(920px, calc(100% - 24px));
  height: min(900px, calc(100dvh - 24px));
  max-width: none;
  max-height: none;
  padding: 12px;
  overflow: hidden;
}
.photo-dialog-header { grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; min-width: 0; margin: 0; align-items: center; }
#photo-title { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.photo-dialog button { min-width: 0; min-height: 48px; max-width: 100%; padding: 6px 10px; line-height: 1.2; overflow-wrap: anywhere; }
#photo-image { grid-row: 2; min-width: 0; min-height: 0; height: 100%; width: 100%; object-fit: contain; }
#photo-error { grid-row: 2; min-width: 0; overflow-wrap: anywhere; align-self: center; }
.photo-dialog-controls { grid-row: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; gap: 8px; margin: 0; }
#photo-counter { min-width: 0; text-align: center; line-height: 1.25; overflow-wrap: anywhere; }
#notebook-fit-note { color: var(--brown); }
@media (max-width: 600px) {
  .notebook-dialog[open] { width: calc(100% - 12px); height: calc(100dvh - 12px); padding: 6px calc(6px + var(--book-edge-gutter)) 14px 6px; gap: 20px; }
  .is-open-notebook .notebook-sheet { padding-inline: 6px; }
  .is-open-notebook .cake-grid { gap: 6px 10px; }
}
@media (max-width: 599px) and (max-height: 540px) {
  .is-open-notebook .notebook-sheet { padding-block: 2px; }
  .is-open-notebook .cake-grid { row-gap: 3px; }
  .is-open-notebook .cake-card { grid-template-rows: minmax(56px, 1fr) auto; }
}
@media (max-height: 540px) {
  .notebook-dialog[open] { --book-tab-height: 48px; }
}
@media (max-width: 400px) {
  .is-open-notebook .notebook-sheet { padding-inline: 4px; }
}
@media (min-width: 600px) and (max-height: 540px) {
  .notebook-dialog[open] { gap: 16px; padding-bottom: 12px; }
  .is-open-notebook .cake-grid, .is-open-notebook .cake-grid:has(.cake-card:nth-child(3)) { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); }
}
/* Only the cream paper is painted; all index-flag gutters remain transparent. */
.notebook-dialog[open] {
  --book-edge-gutter: 6rem;
  --book-left-gutter: 0px;
  --book-sheet-inset: 16px;
  --photo-tab-footer: 0px;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  padding: 22px 8px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.notebook-dialog .notebook-dialog-toolbar {
  position: static;
  display: contents;
  background: transparent;
  box-shadow: none;
}
.notebook-dialog-toolbar::before { content: none; }
.notebook-dialog .notebook-dialog-toolbar button { position: absolute; z-index: 8; top: 24px; right: 0; width: calc(var(--book-edge-gutter) + 16px); max-width: none; margin: 0; padding: 8px 2px; --tab-attachment: 16px; }
.is-open-notebook .notebook-heading { margin-inline: var(--book-left-gutter) var(--book-edge-gutter); padding: 24px 8px 4px; }
.is-open-notebook #notebook-dialog-title { min-width: 0; margin: 0; padding: 4px 0; font: 400 1.25rem/1.2 var(--script); overflow-wrap: anywhere; }
/* Keep keyboard focus rings below the complete coil strip, too. */
.is-open-notebook #notebook-dialog-title:focus-visible,
.is-open-notebook .notebook-dialog-toolbar button:focus-visible { outline-offset: 0; }
.is-open-notebook > .spiral-binding { left: calc(var(--book-left-gutter) + 10px); right: calc(var(--book-edge-gutter) + 10px); }
.is-open-notebook .notebook-stage { position: relative; isolation: isolate; background: transparent; box-shadow: none; }
.is-open-notebook .notebook-stage::before { content: ""; position: absolute; z-index: -1; inset: 0 var(--book-edge-gutter) var(--photo-tab-footer) var(--book-left-gutter); background: var(--cream); box-shadow: 0 2px 0 #c8bba7, 0 4px 0 var(--cream), 0 6px 0 #c8bba7, 0 9px 0 2px var(--green); pointer-events: none; }
.is-open-notebook .notebook-sheet { padding-inline: calc(var(--book-left-gutter) + var(--book-sheet-inset)) calc(var(--book-edge-gutter) + var(--book-sheet-inset)); background: transparent; }
.is-open-notebook .notebook-sheet::before { content: ""; position: absolute; z-index: -1; inset: 0 var(--book-edge-gutter) var(--photo-tab-footer) var(--book-left-gutter); background: repeating-linear-gradient(0deg, transparent 0 31px, rgb(52 72 58 / 4%) 31px 32px), var(--cream); pointer-events: none; }
.is-open-notebook .notebook-sheet.is-turning-sheet { box-shadow: none; }
.is-open-notebook .notebook-sheet.is-turning-sheet::before { box-shadow: 0 1px 0 rgb(74 55 35 / 28%), inset 0 -2px 1px rgb(255 250 241 / 85%); }
.notebook-turn-shadow, .notebook-turn-sheen { position: absolute; inset: 0 var(--book-edge-gutter) var(--photo-tab-footer) var(--book-left-gutter); pointer-events: none; }
/* Only the decorative cast shadow is clipped to its receiving paper surface. */
.notebook-turn-shadow { z-index: 2; overflow: clip; }
.notebook-turn-cast { position: absolute; inset: 0; transform-origin: center top; background: linear-gradient(180deg, rgb(74 55 35 / 35%), rgb(74 55 35 / 85%)); opacity: 0; }
.notebook-turn-contact { position: absolute; inset: 0 0 auto; height: 16px; background: linear-gradient(180deg, #4a3723, transparent); opacity: 0; }
.notebook-turn-sheen { z-index: 4; background: linear-gradient(180deg, transparent 5%, rgb(74 55 35 / 8%) 34%, rgb(255 250 241 / 48%) 58%, rgb(74 55 35 / 20%) 80%, transparent); background-size: 100% 220%; opacity: 0; }
.is-open-notebook .notebook-sheet:has(.cake-grid) { grid-template-rows: minmax(0, 1fr); padding-inline: 0; }
.is-open-notebook .notebook-sheet:has(.cake-grid) > .notebook-sheet-copy { display: none; }
.is-open-notebook .cake-grid { column-gap: 12px; padding-inline: calc(var(--book-left-gutter) + var(--book-sheet-inset)) calc(var(--book-edge-gutter) + var(--book-sheet-inset)); }
.is-open-notebook .cake-grid:has(> .cake-card:only-child) { grid-template-columns: minmax(0, 1fr); }
.is-open-notebook .cake-card { position: relative; min-width: 0; min-height: 0; }
@media (min-width: 600px) and (max-height: 540px) {
  .notebook-dialog[open] { padding-bottom: 12px; }
  .is-open-notebook #notebook-dialog-title { padding-block: 0; }
  .is-open-notebook .cake-grid { column-gap: 8px; }
}
@media print {
  .notebook-turn-shadow, .notebook-turn-sheen { display: none !important; }
  .category-notebooks, .notebook-controls, .notebook-static-back,
  .notebook-dialog-toolbar, .notebook-keyboard-help { display: none !important; }
  #cake-gallery { display: block !important; max-height: none !important; overflow: visible !important; }
  .notebook-sheet[hidden] { display: block !important; }
  .notebook-page { transform: none !important; box-shadow: none !important; }
  .notebook-sheet { break-inside: avoid; }
  body.has-notebook-dialog { overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
  .notebook-turn-shadow, .notebook-turn-sheen { display: none !important; }
  .bakery-entrance { display: none !important; }
  .notebook-page { transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .button:hover { transform: none; }
}
