@font-face {
  font-family: DM Sans;
  src: url(assets/dm-sans.woff2) format("woff2");
  font-weight: 400 1000;
  font-display: swap;
}
:root {
  color-scheme: light;
  --green: #123c2c;
  --deep: #102e22;
  --paper: #faf8f0;
  --sage: #e6eddf;
  --muted: #526455;
  --line: #dce1d4;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--green);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; width: 100%; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid #a7742a; outline-offset: 3px; }
.shell { width: min(1192px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; inset: 8px auto auto 8px; transform: translateY(-200%); background: white; padding: 12px; z-index: 2; }
.skip:focus { transform: none; }
.header { background: var(--deep); color: var(--paper); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 750; text-decoration: none; }
.brand img { width: 44px; border-radius: 50%; }
.brand small { display: block; font-size: .6rem; letter-spacing: .14em; font-weight: 500; }
.header-link { text-decoration: none; font-size: .88rem; }
.hero { display: grid; grid-template-columns: 1fr 1.06fr; align-items: center; gap: clamp(24px, 6vw, 86px); padding-block: 62px; }
.eyebrow { font-size: .69rem; letter-spacing: .19em; font-weight: 800; margin: 0 0 15px; }
h1, h2, h3, p { margin-block-start: 0; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(3rem, 6.4vw, 6rem); line-height: .98; letter-spacing: -.064em; margin-bottom: 23px; }
h1 em { font-weight: 400; color: #b47a00; }
.intro > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; max-width: 32ch; margin-bottom: 24px; }
.button { display: inline-flex; align-items: center; gap: 20px; padding: 13px 18px; border-radius: 5px; background: var(--green); color: white; text-decoration: none; font-weight: 650; }
.hero-photo { margin: 0; position: relative; overflow: hidden; border-radius: 50% 50% 12px 12px / 18% 18% 12px 12px; background: var(--sage); }
.hero-photo > img, .hero-photo > .cake-photo { aspect-ratio: 1.2; }
.hero-photo > img { object-fit: cover; }
.hero-photo figcaption { position: absolute; inset: auto 0 0; padding: 32px 20px 16px; color: white; background: linear-gradient(transparent, #0b221ac9); font-family: Georgia, serif; font-size: 1.25rem; }
.hero-photo figcaption span { display: block; font: 650 .58rem "DM Sans", Arial, sans-serif; letter-spacing: .13em; margin-bottom: 4px; }
.catalogue { background: #f2f4eb; padding-block: 50px 72px; }
.catalogue-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.catalogue-heading h2 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 6px; letter-spacing: -.045em; }
.catalogue-heading > p { max-width: 35ch; color: var(--muted); line-height: 1.5; margin: 0 0 9px; }
.categories { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 22px 16px; }
.categories a { padding: 10px 15px; border-radius: 30px; border: 1px solid #b8c8b6; background: var(--paper); text-decoration: none; font-weight: 650; font-size: .84rem; }
.categories a:hover { background: var(--sage); }
.preview-note { font-size: .85rem; color: var(--muted); margin: 0; }
.cake-group { margin-top: 40px; scroll-margin-top: 20px; }
.cake-group h3 { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; font-size: clamp(1.55rem, 3.5vw, 2.35rem); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); text-decoration: none; }
.cake-photo { position: relative; aspect-ratio: 1; background: #d0e8d0; }
.cake-photo > svg, .cake-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cake-photo > img { padding: 9%; }
.cake-photo foreignObject img { height: 100%; }
.gallery-badge, .cake-gallery button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--green);
  min-height: 44px;
  padding: 8px 12px;
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
}
.gallery-button {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.gallery-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-inline: 13px;
  border-color: #fff1cc;
  border-radius: 24px;
  background: var(--green);
  color: #fff1cc;
  font-weight: 700;
  box-shadow: 0 2px 8px #102e2233;
}
.gallery-badge::before {
  content: "";
  width: 17px;
  height: 17px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff1cc' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Ccircle cx='8.5' cy='9' r='1.3'/%3E%3Cpath d='m4 17 5-4 3 2 4-5 5 6'/%3E%3C/svg%3E");
}
.gallery-button:hover .gallery-badge { background: var(--deep); }
.gallery-button:focus-visible { outline: 3px solid var(--green); outline-offset: -4px; }
.cake-gallery button:focus-visible { outline: 3px solid #a7742a; outline-offset: 2px; }
.cake-gallery { width: min(680px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 16px; border: 0; border-radius: 12px; background: var(--paper); color: var(--green); }
.cake-gallery::backdrop { background: #102e22bd; }
.gallery-header, .gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gallery-header h2 { margin: 0; font-size: clamp(1.15rem, 4vw, 1.65rem); }
.gallery-image { height: min(58dvh, 500px); object-fit: contain; margin-block: 12px; border-radius: 6px; background: var(--sage); }
.gallery-stage > .cake-photo { width: 100%; height: min(58dvh, 500px); margin-block: 12px; border-radius: 6px; }
.gallery-count { margin: 0; font-variant-numeric: tabular-nums; }
.card-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 15px; }
.card h4 { margin: 0; font-size: clamp(.92rem, 1.8vw, 1.12rem); line-height: 1.3; }
.description, .card dl, .ingredient-note { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.card summary { cursor: pointer; padding-block: 7px; font-size: .85rem; font-weight: 700; }
.card dt { font-weight: 750; }
.card dd { margin: 0 0 6px; }
.ingredient-note { border-left: 3px solid #a7742a; padding-left: 9px; }
.order-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.back-to-categories { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; font-size: .88rem; text-underline-offset: 3px; }
.order { display: grid; gap: 3px; padding: 8px 10px; border-radius: 5px; text-decoration: none; font-size: .77rem; }
.order-slice { background: #e1efdf; }
.order-whole { background: #fff1cc; }
.order strong { font-size: 1rem; }
button.order { border: 0; color: inherit; font-family: inherit; text-align: left; cursor: pointer; }
button.order:hover { background: var(--green); color: white; }
button.order:focus-visible, .basket-toggle:focus-visible { outline: 3px solid #a7742a; outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.basket-toggle, .basket-checkout {
  padding: 12px 18px;
  border: 0;
  border-radius: 24px;
  background: var(--green);
  color: #fff1cc;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.basket-toggle { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 1; box-shadow: 0 2px 10px #102e2244; }
.basket-items { list-style: none; padding: 0; }
.basket-items li { display: grid; grid-template-columns: minmax(0, 1fr) 4rem auto; align-items: center; gap: 8px; padding-block: 8px; border-bottom: 1px solid var(--line); }
.basket-items input { min-width: 0; width: 100%; min-height: 44px; border: 1px solid var(--line); padding: 6px; font: inherit; color: inherit; }
.basket-total { font-weight: 700; }
.basket-checkout:not([hidden]) { display: inline-block; }
.inquiries { padding-block: 40px; scroll-margin-top: 90px; }
.inquiries h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.inquiries-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 12px; max-width: 680px; margin: 16px 0 0; padding: 0; }
.inquiries-list li { display: grid; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--sage); }
.inquiries-list span { font-size: .88rem; }
.inquiries-list a { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
footer { background: var(--deep); color: var(--paper); font-size: .82rem; }
.footer-inner { padding-block: 22px; }
@media (max-width: 760px) {
  .shell { width: calc(100% - 36px); }
  .hero { grid-template-columns: 1fr; gap: 18px; padding-block: 22px; }
  .hero h1 { font-size: clamp(2.25rem, 9vw, 3.25rem); margin-bottom: 12px; }
  .hero .eyebrow, .intro > p:not(.eyebrow) { margin-bottom: 12px; }
  .hero-photo > img, .hero-photo > .cake-photo { height: clamp(145px, 42vw, 215px); aspect-ratio: auto; }
  .hero-photo figcaption { padding: 18px 14px 8px; font-size: 1rem; }
  .hero-photo figcaption span { display: none; }
  .catalogue { padding-top: 22px; }
  .cake-group { margin-top: 26px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 11px; }
  .order { padding-inline: 7px; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
}
