@font-face {
  font-family: 'Bodoni Moda';
  src: url('assets/fonts/bodoni-moda-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: 'Bodoni Moda';
  src: url('assets/fonts/bodoni-moda-italic-latin.woff2') format('woff2');
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url('assets/fonts/manrope-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #fffaf3;
  --ink: #34221c;
  --muted: #694f43;
  --line: #d9c6b5;
  --berry: #793d44;
  --brass: #a77a50;
  --wood: #624331;
  --display: 'Bodoni Moda', 'Bodoni MT', Georgia, serif;
  --sans: Manrope, Arial, sans-serif;
  --quartz: url('assets/quartz.svg');
  --store-gutter: max(clamp(18px, 4.6vw, 72px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
}

body { font-family: var(--sans); }
h1, h2, h3, .brand strong, .hero-image .cover-placeholder strong, .admin-summary strong { font-family: var(--display); }
h2 { font-size: clamp(39px, 4.4vw, 63px); line-height: 1.03; letter-spacing: -.025em; font-weight: 500; }
h3 { font-weight: 550; }
.signature { font: italic 520 clamp(20px, 2.1vw, 26px)/1.25 var(--display); color: var(--berry); }
.brand strong { font-weight: 600; letter-spacing: -.035em; }
.brand small, .brand span { font-weight: 700; }

html { scroll-padding-top: calc(110px + env(safe-area-inset-top, 0px)); }
.section { padding-inline: var(--store-gutter); }
button, a[href], summary { touch-action: manipulation; }
.toast { bottom: calc(25px + env(safe-area-inset-bottom, 0px)); }

@media (pointer: coarse) {
  input, select, textarea { font-size: 16px; }
}

.announcement {
  padding: 7px var(--store-gutter);
  padding-top: max(7px, env(safe-area-inset-top, 0px));
  background: var(--ink);
  color: #fff4e8;
  font-size: 12px;
}

.announcement span { margin: 0 8px; }

.store-nav {
  position: sticky;
  z-index: 5;
  top: 0;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.store-nav .header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  padding: 16px var(--store-gutter);
  max-width: 1600px;
}

.store-nav nav { display: flex; flex-wrap: wrap; gap: 4px clamp(12px, 1.6vw, 24px); }
.store-nav nav a, .store-nav .header-right > a { display: inline-flex; align-items: center; min-height: 44px; }
.store-nav nav a:active, .store-nav .header-right > a:active { text-decoration: underline; text-underline-offset: 5px; }
.store-nav .bag { background: #f4e6d8; border-color: #e4cdb8; white-space: nowrap; font-weight: 700; }
.store-nav .bag:active { background: #ead7c5; }
.bag span { font-variant-numeric: tabular-nums; }

.hero {
  max-width: 1600px;
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.19fr);
  align-items: stretch;
  gap: clamp(26px, 4vw, 64px);
  min-height: 0;
  padding: clamp(20px, 3.2vw, 52px) var(--store-gutter) clamp(20px, 3.2vw, 52px);
  background: linear-gradient(105deg, #fffaf37a, #fffaf300 72%), var(--quartz) center / cover no-repeat;
  box-shadow: inset 0 -1px #b99d826b, inset 0 -12px 25px -20px #65463390;
}

.hero-copy { align-self: center; padding: 15px 0; }

.hero-copy .hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--berry);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
}

.hero-kicker::before { content: ''; width: 32px; height: 1px; background: currentColor; }

.hero h1 {
  max-width: 100%;
  font-size: clamp(55px, 7vw, 108px);
  line-height: .98;
  letter-spacing: -.048em;
  font-weight: 500;
  margin: 0 0 26px;
}

.hero h1 em { display: block; color: var(--berry); font-weight: 480; }
.hero-copy > p { max-width: 42ch; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.65; }
.hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero-actions .button { gap: 15px; min-height: 52px; font-weight: 700; }
.button.outline { border: 1px solid #b89b8b; background: transparent; color: var(--ink); }
.button.outline:active { background: #ebdbcc; }

@media (hover: hover) and (pointer: fine) {
  .store-nav nav a:hover, .store-nav .header-right > a:hover { text-decoration: underline; text-underline-offset: 5px; }
  .button.outline:hover { background: #f4e5dc; }
}

.hero-image {
  margin: 0;
  min-height: clamp(420px, 44vw, 670px);
  border: 6px solid var(--wood);
  border-bottom-width: 12px;
  border-radius: 43% 43% 3px 3px / 17% 17% 3px 3px;
  background: #e8d0b8;
  box-shadow: 0 2px 0 #8f6950, 0 13px 32px -16px #4e3028ae;
  isolation: isolate;
}

.hero-image img { inset: 0; object-position: center 54%; }
.hero-image::after {
  content: '';
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  border: 1px solid #e3ba8b9c;
  background: none;
  box-shadow: inset 0 0 25px #4b2b2170;
  pointer-events: none;
}
.hero-image .cover-placeholder { padding: 0 14px; }
.hero-image .cover-placeholder strong { font-size: clamp(59px, 10vw, 152px); }

.hero-image-label {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  right: 18px;
  border-radius: 100px;
  padding: 5px 12px;
  background: var(--paper);
  font-size: 12px;
}

.store-promise {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1460px;
  margin: 0 auto clamp(14px, 2.2vw, 32px);
  padding: 0 var(--store-gutter);
}

.store-promise > span {
  display: flex;
  gap: 11px;
  align-items: center;
  justify-content: center;
  padding: 19px 12px;
  border-block: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.store-promise > span + span { border-left: 1px solid var(--line); }
.store-promise svg { flex: 0 0 21px; width: 21px; height: 21px; stroke: var(--berry); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.custom-section {
  width: calc(100% - 2 * var(--store-gutter));
  max-width: 1450px;
  margin: clamp(44px, 6vw, 90px) auto 0;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  background: #f4e3d9;
}

.custom-section .custom-art {
  min-height: 400px;
  background: radial-gradient(ellipse at 50% 20%, #73503c, #412a21 72%);
  color: #e8c8a4;
  box-shadow: inset 0 0 38px #2d1a164f;
}
.custom-section .custom-art::before, .custom-section .custom-art::after { content: none; }
.cake-sketch { width: min(100%, 390px); height: auto; }
.stop-replay {
  position: relative;
  margin: -32px 16px 24px;
  padding: 9px 16px;
  min-height: 44px;
  border: 1px solid #bd9b7e;
  border-radius: 50px;
  background: #462e24;
  color: #fff1df;
  font-size: 13px;
}
.stop-replay span { margin-right: 5px; font-size: 17px; }
.stop-replay:focus-visible { outline-color: #f2c08d; }
.custom-section .custom-copy { align-self: center; padding: clamp(28px, 5vw, 78px); }
.custom-copy h2 { max-width: 15ch; font-size: clamp(39px, 5.1vw, 74px); line-height: 1; }
.custom-copy > p { max-width: 48ch; font-size: 16px; }
.quote-steps { padding-left: 23px; margin: 22px 0; }
.quote-steps li { padding: 3px 0 3px 5px; }
.quote-steps li::before { content: none; }
.quote-steps li::marker { color: var(--berry); font-weight: 700; }

.visit.section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 7vw, 104px);
  width: calc(100% - 2 * var(--store-gutter));
  max-width: 1450px;
  margin: clamp(30px, 5vw, 76px) auto;
  padding: clamp(26px, 5.8vw, 82px);
  border: 1px solid var(--line);
  background: var(--quartz) center / cover;
}

.visit-intro h2 { font-size: clamp(43px, 5.5vw, 78px); }
.visit-intro > p:not(.signature) { max-width: 37ch; }
.visit-intro .button { font-weight: 700; }
.visit .visit-info {
  padding: clamp(18px, 3.1vw, 40px);
  border: 1px solid #d6bda4;
  border-bottom: 4px solid var(--wood);
  background: var(--paper);
  box-shadow: 0 12px 28px -21px #4e3028ba;
}

.visit-options { margin: 0; }
.visit-options div + div { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.visit-options dt { font: 550 clamp(22px, 2.3vw, 29px)/1.15 var(--display); }
.visit-options dd { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.visit .visit-social { color: var(--berry); margin: 18px 0 0; font-weight: 650; }

.store-footer {
  display: block;
  padding: 30px var(--store-gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--ink);
  color: var(--paper);
}

.store-footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1450px;
  margin: 0 auto 22px;
}

.store-footer p { color: #e5cdb9; }

.store-footer-access {
  text-align: center;
  border-top: 1px solid #8e6a58;
}

.footer-admin-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 18px;
  border: 0;
  background: transparent;
  color: #fff1db;
  font: 600 19px/1.35 var(--display);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-admin-link:focus-visible { outline-color: #f2c08d; outline-offset: -2px; }
.footer-admin-link:active { color: #ffd4aa; }

.setup-key img:not([hidden]) {
  display: block;
  max-width: 100%;
  margin: 14px auto;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.setup-key details { margin-top: 6px; }
.setup-key summary { padding-block: 10px; }

@media (max-width: 900px) {
  html { scroll-padding-top: calc(148px + env(safe-area-inset-top, 0px)); }
  .store-nav .header { grid-template-columns: 1fr auto; gap: 2px 16px; padding-top: 10px; padding-bottom: 0; }
  .store-nav .brand { justify-self: start; }
  .store-nav .header-right { grid-column: 2; grid-row: 1; }
  .store-nav .header-right > a { display: none; }
  .store-nav nav { grid-column: 1 / -1; grid-row: 2; display: flex; }
  .store-nav nav a { font-size: 13px; }
  .store-nav .brand strong { font-size: 34px; }
  .hero { grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr); }
}

@media (max-width: 620px) {
  .announcement { font-size: 11px; }
  .announcement span { display: inline; }
  .store-nav nav { justify-content: space-between; gap: 4px 9px; }
  .store-nav nav a { font-size: clamp(11px, 3.1vw, 13px); }
  .hero { grid-template-columns: 1fr; gap: 18px; padding-top: 18px; }
  .hero-copy { padding: 9px 0 0; }
  .hero-copy .hero-kicker { margin-bottom: 14px; }
  .hero h1 { font-size: clamp(51px, 12.2vw, 76px); margin-bottom: 17px; }
  .hero-actions { margin: 19px 0 0; }
  .hero-actions .button { padding-inline: 13px; gap: 8px; min-height: 48px; font-size: 13px; }
  .hero-image { min-height: clamp(300px, 85vw, 465px); border-width: 4px; border-bottom-width: 9px; }
  .store-promise { padding-inline: 0; }
  .store-promise > span { text-align: center; flex-direction: column; gap: 5px; padding: 12px 4px; font-size: 11px; line-height: 1.4; }
  .custom-section { grid-template-columns: 1fr; }
  .custom-section .custom-art { min-height: 0; }
  .cake-sketch { width: min(76%, 290px); }
  .visit.section { grid-template-columns: 1fr; }
  .store-footer-main { flex-direction: column; text-align: center; }
}
