@font-face {
  font-family: Onest;
  src: url("/onest-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #fbf8f3;
  --green: #cfe0b7;
  --forest: #263d32;
  --ink: #20362b;
  --muted: #4b5c51;
  --border: #d7dad0;
  --pink: #f3e5e2;
  --panel-cream: #fffbf5;
  --panel-border: #e8d9c9;
  --panel-shadow: 0 10px 24px #54402b1a;
  --page-gutter: max(clamp(36px, 6%, 104px), calc((100% - 1720px) / 2));
  --rail: calc(100% - var(--page-gutter) * 2);
  font-family: Onest, system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  scroll-padding-block-start: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3, figure, p { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #6d3c4c; outline-offset: 4px; }
[id] { scroll-margin-block-start: 15px; }

.frame { width: var(--rail); margin-inline: auto; }
.site-masthead {
  --header-inset: clamp(12px, 1.5vw, 22px);
  position: sticky;
  top: 0;
  z-index: 10;
  padding-block: 8px;
  pointer-events: none;
}
.site-header {
  width: calc(var(--rail) + 2 * var(--header-inset) + 2px);
  min-height: 72px;
  padding-inline: var(--header-inset);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: clamp(14px, 2vw, 36px);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  background: var(--panel-cream);
  box-shadow: var(--panel-shadow);
  pointer-events: auto;
}
.wordmark {
  display: block;
  justify-self: start;
  width: clamp(150px, 15vw, 188px);
  max-width: 100%;
}
.site-header .wordmark { width: clamp(145px, 14vw, 185px); text-decoration: none; translate: 0 2px; }
.wordmark img { width: 100%; height: auto; }
.wordmark-tagline {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -8px;
  fill: #76374a;
  font-size: 12.2px;
  font-weight: 580;
  letter-spacing: .14px;
}
.header-secondary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 1.4vw, 20px);
}
.header-networks { display: flex; align-items: center; gap: 5px; }
.header-network {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #dfe5d6;
  border-radius: 50%;
  background: #eaf0e2;
}
.header-network img { opacity: .73; }
.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(13px, 2vw, 34px);
  font-size: .91rem;
  font-weight: 580;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
}
.site-footer a { text-decoration: none; }
.site-nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: .26em; }
.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: clamp(8px, 1.3vw, 20px);
}
.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  font-size: .89rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone svg { width: 16px; height: 16px; flex: none; }
.header-phone:hover span { text-decoration: underline; text-underline-offset: .25em; }
.site-masthead .header-order {
  min-height: 44px;
  padding: 8px clamp(13px, 1.5vw, 21px);
  font-size: .88rem;
  white-space: nowrap;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(490px, 41vw, 650px);
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 42%, #faf2e8 0%, #f6ecdf 57%, #efe0cf 100%);
}
.hero-intro {
  width: min(43%, 690px);
  padding: 42px 0 62px;
  text-align: center;
}
.hero-scene {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}
.hero-scene::before, .hero-scene::after {
  content: "";
  position: absolute;
  inset-block: 0;
  width: 41%;
  background: url("/pistachio-dessert-table.webp") no-repeat;
}
.hero-scene::before {
  left: 0;
  background-size: max(217%, 975px) auto;
  background-position: 85% 32%;
  mask-image: radial-gradient(ellipse 100% 105% at 0% 44%, #000 38%, #000e 55%, #0009 70%, #0003 84%, #0001 93%, transparent 100%);
}
.hero-scene::after {
  right: 0;
  background-size: max(275%, 1160px) auto;
  background-position: right 94%;
  mask-image: radial-gradient(ellipse 100% 109% at 100% 61%, #000 39%, #000e 55%, #0009 70%, #0003 84%, #0001 93%, transparent 100%);
}
.hero h1 {
  font-weight: 760;
  font-size: clamp(2.4rem, 5.1vw, 6rem);
  line-height: .96;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.hero h1 span { display: block; color: #44674f; white-space: nowrap; }
.hero-flourish { width: 98px; height: auto; margin: 7px auto 0; }
.hero-order { margin-top: 8px; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.hero-description {
  max-width: 39ch;
  margin: 0 auto 17px;
  line-height: 1.5;
  color: var(--muted);
}
.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 6px 12px 6px 9px;
  border: 1px solid #d9bfb1;
  border-radius: 100px;
  background: #fffaf3;
  color: var(--forest);
  font-size: .9rem;
  font-weight: 620;
  line-height: 1.25;
}
.hero-location svg { flex: none; color: #78384a; }
.button {
  display: inline-flex;
  min-height: 53px;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 680;
  transition: background-color .18s ease, box-shadow .18s ease;
}
.button-main { background: var(--forest); color: #fffdf6; }
.button-main:hover { background: #385645; box-shadow: 0 5px 16px #28433529; }
.hero-actions .button { min-height: 48px; padding: 9px 11px; font-size: .91rem; white-space: nowrap; }
.button-outline { border: 1px solid #c99782; background: #f9eee8; color: #683d31; }
.button-outline:hover { background: #f3ded2; }

.quick-facts {
  --branch-width: clamp(95px, 15vw, 235px);
  --branch-inset: max(0px, calc(var(--page-gutter) - var(--branch-width) * .7));
  position: relative;
  z-index: 1;
  margin-top: -29px;
  isolation: isolate;
  background: linear-gradient(180deg, transparent 29px, #f4e9dc 29px, var(--cream) 100%);
  padding-bottom: 12px;
}
.quick-facts::before,
.quick-facts::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 16px;
  width: var(--branch-width);
  aspect-ratio: 1;
  background: url("/blackberry-sprig.webp") center / contain no-repeat;
  pointer-events: none;
}
.quick-facts::before {
  left: var(--branch-inset);
  background-position: left center;
  opacity: .78;
}
.quick-facts::after {
  top: 62px;
  right: 0;
  width: calc(var(--branch-width) * .74);
  background-size: 127% auto;
  background-position: right center;
  opacity: .52;
  transform: scaleX(-1);
}
.quick-facts-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  background: var(--panel-border);
  box-shadow: var(--panel-shadow);
}
.quick-fact {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  align-items: start;
  row-gap: 4px;
  padding: clamp(13px, 2vw, 22px) clamp(6px, 1.8vw, 24px);
  background: var(--panel-cream);
  text-align: center;
  text-decoration: none;
}
.quick-fact strong {
  font-size: clamp(.94rem, 1.65vw, 1.4rem);
  font-weight: 735;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.quick-fact > span { color: var(--muted); font-size: clamp(.82rem, 1.35vw, .95rem); line-height: 1.28; }
.quick-fact:hover { background: #f1ecde; }
.quick-fact-bakers { color: #78384a; background: #f8ece7; }
.quick-fact-bakers:hover { background: #f1dfd7; }
.baker-offer-free {
  display: inline-block;
  text-decoration: underline;
  text-decoration-thickness: .075em;
  text-underline-offset: .19em;
}
.quick-fact:focus-visible { outline-offset: -4px; }

.cake-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 68px);
  margin-block: clamp(22px, 3vw, 44px) clamp(36px, 5vw, 70px);
  padding: clamp(20px, 3.2vw, 42px);
  border-radius: 32px;
  background: #e8eedf;
}
.cake-preview-photo { display: grid; place-items: center; }
.cake-preview h2 { font-size: clamp(1.9rem, 3.3vw, 3.2rem); max-width: 485px; }
:is(.cake-preview, .paper-copy, .how) h2::after {
  content: "";
  display: block;
  width: 84px;
  aspect-ratio: 130 / 46;
  margin-top: 3px;
  background: url("/sugar-bureau-flourish.svg") left center / contain no-repeat;
}
.preview-intro { margin-top: 12px; color: var(--muted); line-height: 1.45; }
.preview-editor { margin-top: 19px; }
.cake-stage {
  width: min(100%, 335px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  container-type: inline-size;
  background: #d7ddc7;
}
.preview-cake { width: 100%; height: 100%; object-fit: cover; scale: 1.14; }
.cake-lettering {
  --print-color: #842e45;
  --print-scale: .5;
  --line-fit: 1;
  position: absolute;
  top: 48%;
  left: 50%;
  width: calc(91% * var(--print-scale));
  transform: translate(-50%, -50%) rotate(-5deg);
  color: var(--print-color);
  line-height: .92;
  text-align: center;
}
.cake-lettering[data-design="wedding"] { --print-color: #365845; }
.cake-lettering[data-design="custom"] { --print-color: #704534; }
.cake-line {
  display: block;
  font-family: Georgia, serif;
  font-size: calc(17cqw * var(--print-scale) * var(--line-fit));
  font-style: italic;
  letter-spacing: -.075em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.cake-lettering[data-design="wedding"] .cake-line { letter-spacing: -.05em; }
.cake-lettering[data-design="custom"] .cake-line { font-size: calc(15cqw * var(--print-scale) * var(--line-fit)); }
.cake-ornament {
  position: relative;
  display: block;
  width: 31%;
  height: clamp(8px, 1.65cqw, 18px);
  margin: 0 auto clamp(6px, .95cqw, 12px);
}
.cake-ornament i { display: block; position: absolute; top: 50%; left: 50%; }
.cake-lettering[data-design="birthday"] .cake-ornament i {
  width: 20%;
  aspect-ratio: 1;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  transform: translate(-50%, -50%);
}
.cake-lettering[data-design="birthday"] .cake-ornament i:first-child { left: 21%; width: 13%; top: 65%; }
.cake-lettering[data-design="birthday"] .cake-ornament i:last-child { left: 79%; width: 13%; top: 65%; }
.cake-lettering[data-design="wedding"] .cake-ornament i {
  width: 27%;
  aspect-ratio: 1.25;
  border: clamp(1px, .16cqw, 2px) solid currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-24deg);
}
.cake-lettering[data-design="wedding"] .cake-ornament i:first-child { left: 42%; }
.cake-lettering[data-design="wedding"] .cake-ornament i:nth-child(2) { left: 58%; transform: translate(-50%, -50%) rotate(24deg); }
.cake-lettering[data-design="wedding"] .cake-ornament i:last-child { display: none; }
.cake-lettering[data-design="custom"] .cake-ornament {
  width: 19%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.cake-lettering[data-design="custom"] .cake-ornament i { display: none; }
.cake-detail {
  display: block;
  margin-top: calc(5.2cqw * var(--print-scale));
  color: #51332e;
  font-size: calc(6cqw * var(--print-scale));
  font-weight: 660;
  letter-spacing: .035em;
}
.cake-lettering[data-design="custom"] .cake-detail {
  line-height: 1.15;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.cake-lettering[data-design="custom"] .cake-line[hidden] + .cake-detail { margin-top: 0; }
.cake-controls {
  display: grid;
  justify-items: start;
  gap: 13px;
  margin-top: 16px;
}
.occasion-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  padding: 4px;
  background: #eeeae2;
  border-radius: 100px;
}
.occasion-switch button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 100px;
  background: transparent;
  color: var(--ink);
  padding: 8px 9px;
  font-size: .91rem;
  font-weight: 610;
}
.occasion-switch button:hover { background: #e1e9d8; }
.occasion-switch button[aria-pressed="true"] { background: #fffdf7; border-color: #dadfd3; }
.custom-fields { display: grid; gap: 10px; width: min(340px, 100%); }
.custom-field { display: grid; gap: 5px; text-align: left; font-size: .91rem; }
.preview-dimensions {
  display: grid;
  width: min(385px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.preview-dimensions label { display: grid; gap: 5px; font-size: .91rem; }
.preview-dimensions select, .custom-field input {
  min-height: 42px;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid #aebdae;
  padding: 8px 11px;
  color: var(--ink);
  background: #fffdf7;
}
.preview-dimensions select {
  appearance: none;
  font: inherit;
  background: linear-gradient(45deg, transparent 50%, #49624d 50%) right 13px center / 5px 5px no-repeat,
    linear-gradient(135deg, #49624d 50%, transparent 50%) right 8px center / 5px 5px no-repeat #fffdf7;
}
.text-link { font-weight: 680; text-underline-offset: .25em; }
.text-link:hover { color: #754253; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

h2 {
  font-size: clamp(2.15rem, 4.7vw, 4.15rem);
  font-weight: 740;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}
h3 { font-size: clamp(1.22rem, 2.05vw, 1.58rem); font-weight: 740; line-height: 1.13; letter-spacing: -.028em; }
.examples {
  padding-block: clamp(29px, 3vw, 48px) clamp(36px, 4.2vw, 62px);
  text-align: center;
  background: radial-gradient(ellipse at 50% 30%, #fffdf8, #f8efe6);
  border-block-start: 1px solid #e8dfd3;
}
.examples h2 { font-size: clamp(2rem, 4.2vw, 3.9rem); }
.examples-flourish { width: 83px; height: auto; margin: 4px auto 23px; }
.example-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(13px, 2.7vw, 36px);
  max-width: 1160px;
  margin-inline: auto;
}
.example-grid figure {
  display: grid;
  justify-items: center;
  align-content: start;
}
.product-photo {
  position: relative;
  overflow: hidden;
  width: min(88%, 182px);
  aspect-ratio: 1;
  border: 1px solid #c9ab95;
  border-radius: 50%;
  background: #e8eadc;
  box-shadow: 0 0 0 4px #fffaf3, 0 0 0 5px #e6d5c6;
}
.product-photo img {
  position: absolute;
  height: 100%;
  width: 300%;
  max-width: none;
  object-fit: cover;
  object-position: center var(--vertical, 50%);
  left: var(--position, 0%);
}
.product-gingerbread { --position: -100%; --vertical: 54%; background: var(--pink); }
.product-cupcakes { --position: -200%; --vertical: 60%; background: #f0dfc8; }
.product-chocolate { background: #ead6bf; }
.product-chocolate img { width: 100%; }
.example-grid figcaption { position: relative; margin-top: -3px; }
.example-grid h3 {
  width: fit-content;
  min-width: 104px;
  margin-inline: auto;
  padding: 4px 17px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 50%, 100% 100%, 0 100%, 5px 50%);
  background: #78384a;
  color: #fffbf5;
  font-size: clamp(.88rem, 1.35vw, 1.12rem);
  font-weight: 680;
  line-height: 1.25;
}
.example-grid figcaption p {
  max-width: 24ch;
  margin: 9px auto 0;
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.4;
  text-wrap: pretty;
}
.example-grid figcaption small { display: block; margin-top: 3px; color: #78384a; font-size: .82rem; font-weight: 650; }
.steps p { margin-top: 7px; color: var(--muted); line-height: 1.55; }

.paper-section {
  padding: clamp(42px, 5vw, 80px) 0;
  border-radius: 58px 58px 0 0;
  background: radial-gradient(ellipse at 75% 18%, #f3eadc, transparent 62%), linear-gradient(180deg, #f7f0e5, var(--cream));
}
.paper-layout {
  display: grid;
  grid-template-areas: "copy preview" "materials preview";
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: max-content auto;
  gap: 18px clamp(24px, 5vw, 82px);
  align-items: start;
}
.paper-copy { grid-area: copy; }
.paper-copy h2::after { width: 76px; }
.paper-preview {
  grid-area: preview;
  width: min(100%, 570px);
  align-self: center;
  justify-self: center;
  text-align: center;
}
.paper-samples {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 199px));
  justify-content: center;
  align-items: center;
  gap: clamp(7px, 2vw, 32px);
  padding: clamp(18px, 4vw, 52px) clamp(17px, 4vw, 48px);
}
.paper-samples::before, .paper-samples::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.paper-samples::before {
  z-index: -2;
  inset: 9% 2% 5% 2%;
  border-radius: 48% 52% 43% 57% / 52% 42% 58% 48%;
  background: linear-gradient(138deg, #dce5ca, #e9ecd8 62%, #d7e1ca);
}
.paper-samples::after {
  z-index: -1;
  inset: 3% 6% 3% 5%;
  border: 1px solid #b69e85;
  border-radius: 53% 47% 54% 46% / 48% 53% 47% 52%;
}
.paper-preview figcaption { margin-top: 10px; color: var(--muted); font-size: .89rem; }
.paper-sheet {
  display: grid;
  width: 100%;
  aspect-ratio: 210 / 297;
  padding: 9%;
  border: 1px solid #d5c9b9;
  background: #fffcf6;
  box-shadow: 0 12px 25px #3e352030, 0 2px 6px #3e352017;
}
.paper-sheet-single { place-items: center; transform: translateY(-4%) rotate(-7deg); }
.paper-sheet-single .paper-motif { width: 100%; }
.paper-sheet-multiple {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 5%;
  padding: 10%;
  background: #f9f1e2;
  transform: translateY(4%) rotate(7deg);
}
.paper-samples.is-swapped .paper-sheet-multiple { order: -1; }
.paper-motif {
  aspect-ratio: 1;
  border-radius: 50%;
  background: url("/pistachio-sheet.webp") 11.4% 26.1% / 480% auto no-repeat;
  mix-blend-mode: multiply;
}
.paper-copy > p { max-width: 42ch; margin-top: 12px; color: var(--muted); line-height: 1.5; }
.paper-size { width: fit-content; margin-top: 20px; border: 1px solid #b5c4ad; padding: 8px 13px; border-radius: 100px; font-size: .91rem; font-weight: 660; }

.material-list { grid-area: materials; }
.material-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name rate" "description description";
  gap: 5px 12px;
  padding-block: 12px;
  border-top: 1px solid var(--panel-border);
}
.material-item h3 { grid-area: name; align-self: baseline; font-size: clamp(1.05rem, 2vw, 1.27rem); }
.material-item > p:not(.material-rate) { grid-area: description; }
.material-item p { color: var(--muted); line-height: 1.45; }
.material-rate { grid-area: rate; align-self: baseline; text-align: right; white-space: nowrap; }
.material-rate strong { font-size: 1.25rem; line-height: 1.12; color: var(--ink); }
.material-order { display: inline-block; margin-top: 5px; }

.estimate {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr);
  gap: clamp(18px, 3vw, 44px);
  align-items: stretch;
}
.estimate-request {
  min-width: 0;
  padding: clamp(19px, 3.2vw, 42px);
  border: 1px solid #d5deca;
  border-radius: 27px;
  background: linear-gradient(128deg, #e1ead5, #eef2e6 63%, #e8edde);
}
.estimate-request h2 { font-size: clamp(2rem, 3.6vw, 3.35rem); margin-bottom: 18px; }
.estimate-form {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 3vw, 30px);
  border-radius: 22px;
  background: #fffdf7;
  border: 1px solid #d5dece;
}
.estimate-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.estimate-fields > label, .estimate-copy { display: grid; align-content: start; gap: 5px; font-size: .93rem; font-weight: 660; }
.estimate-fields input[type="text"], .estimate-fields input[type="tel"], .estimate-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #b9c9b7;
  border-radius: 12px;
  padding: 8px 10px;
  background: #fffefb;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}
.estimate-layout { grid-column: 1 / -1; display: flex; flex-wrap: wrap; column-gap: 22px; min-width: 0; margin: 0; padding: 0; border: 0; }
.estimate-layout legend { padding: 0; margin-bottom: 5px; font-size: .93rem; font-weight: 660; }
.estimate-layout label { display: flex; align-items: flex-start; gap: 6px; padding: 5px 0; font-size: .91rem; line-height: 1.35; }
.estimate-layout input { accent-color: var(--forest); margin: .25em 0 0; flex: 0 0 auto; }
.estimate-note { font-size: .89rem; line-height: 1.4; color: var(--muted); }
.estimate-note:empty { margin-top: -14px; }
.estimate-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 15px; }
.estimate-actions button { min-height: 48px; border: 0; }
.estimate-actions button:disabled { opacity: .58; cursor: default; }
.estimate-form textarea { resize: vertical; }
.estimate-comment, .estimate-attachment { grid-column: 1 / -1; }
.estimate-attachment[hidden] { display: none; }
.estimate-file-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px 10px;
  flex-wrap: wrap;
  min-height: 48px;
  padding: 8px;
  border: 1px solid #b5c5b0;
  border-radius: 12px;
  background: #fffdfa;
  cursor: pointer;
}
.estimate-fields .estimate-file-control input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.estimate-file-control:focus-within { outline: 2px solid #6d3c4c; outline-offset: 3px; }
.estimate-file-action {
  padding: 6px 10px;
  border-radius: 6px;
  background: #e6ecdc;
  color: var(--forest);
}
.estimate-file-name { min-width: 0; color: var(--muted); font-weight: 500; overflow-wrap: anywhere; }
.estimate-attachment small { font-size: .81rem; font-weight: 400; }
.order-confirmation {
  width: min(460px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: var(--panel-cream);
  color: var(--ink);
  box-shadow: var(--panel-shadow);
  text-align: center;
}
.order-confirmation::backdrop { background: rgb(28 43 34 / .52); }
.order-confirmation h2 { margin: 0 0 10px; font-size: clamp(1.7rem, 5vw, 2.3rem); }
.order-confirmation p { color: var(--muted); line-height: 1.5; }
.order-confirmation form { margin-top: 20px; }
.order-confirmation .button { min-height: 44px; border: 0; }

.how { padding: 76px 0; }
.how h2::after { width: 76px; }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.steps li { border-top: 1px solid var(--panel-border); padding-top: 15px; }
.business-order {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px 28px;
  margin-top: 28px;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid #e6cdc5;
  border-radius: 22px;
  background: linear-gradient(115deg, #f3ded9, #fbf1e8);
  line-height: 1.5;
}
.business-order-copy { flex: 1 1 405px; }
.business-order h3 { font-size: clamp(1.55rem, 3vw, 2.45rem); line-height: 1.1; letter-spacing: -.035em; }
.business-order p { color: var(--muted); }
.business-order p.business-order-offer { margin-block: 8px 4px; color: #76374a; font-weight: 720; }
.business-order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.business-order-actions .button { min-height: 44px; padding: 8px 16px; background: #76374a; color: #fffaf0; }
.business-order-actions .button:hover { background: #5e2738; }
.local-service {
  display: grid;
  gap: clamp(24px, 3.2vw, 46px);
  margin-bottom: 24px;
}
.service-card { padding: clamp(24px, 4vw, 46px); border-radius: 27px; }
.service-card h2 { font-size: clamp(2rem, 3.6vw, 3.35rem); }
.pastry-service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  align-items: start;
  gap: clamp(24px, 5vw, 74px);
  padding-inline: clamp(24px, 5.2vw, 76px);
  background: linear-gradient(115deg, #263d32, #395346);
  color: #fffaf0;
}
.pickup-service { display: flex; flex-direction: column; min-width: 0; container: pickup / inline-size; border: 1px solid var(--panel-border); background: linear-gradient(145deg, #f1e4d7, #f8efe5); }
.service-card p, .service-card dd { color: var(--muted); line-height: 1.5; }
.pastry-service p { max-width: 57ch; margin-top: 12px; color: #edf0e3; }
.baker-offer-title {
  margin-top: 9px;
  color: #e9cbb0;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.15;
}
.baker-offer-title .baker-offer-free {
  color: #fff4d8;
  text-decoration-color: #e7ae98;
}
.baker-offer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 19px;
}
.baker-offer-actions .button { padding-inline: 16px; background: #fff7e8; color: var(--forest); text-align: center; }
.baker-offer-actions .button:hover { background: #efddc4; }
.baker-offer-actions .text-link { color: #fffaf0; }
.baker-offer-actions .text-link:hover { color: #e9cbb0; }
.pastry-service :focus-visible { outline-color: #fff7e8; }
.baker-offer-art {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: min(94%, 415px);
  aspect-ratio: 1.25;
  margin-block: -72px -16px;
}
.baker-offer-art::before, .baker-offer-art::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.baker-offer-art::before {
  z-index: -2;
  inset: 12% -6% -3% 12%;
  border-radius: 57% 43% 38% 62% / 61% 45% 55% 39%;
  background: #9bab86;
}
.baker-offer-art::after {
  z-index: -1;
  inset: -5% 5% 7% -5%;
  border: 1px solid #e3c2a8;
  border-radius: 52% 48% 42% 58% / 55% 51% 49% 45%;
}
.baker-offer-photo {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 52% 48% 40% 60% / 53% 56% 44% 47%;
  object-fit: cover;
  object-position: center 32%;
}
.baker-offer-ribbon {
  position: absolute;
  z-index: 2;
  inset-inline-start: 50%;
  inset-block-end: 6%;
  width: max-content;
  max-width: 100%;
  padding: .5em 1.15em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 50%, 100% 100%, 0 100%, 7px 50%);
  transform: translateX(-50%) rotate(-7deg);
  background: #78384a;
  color: #fffaf0;
  font-size: clamp(.85rem, 1.5vw, 1.08rem);
  font-weight: 720;
  line-height: 1.25;
  text-align: center;
}
.baker-offer-sprig {
  position: absolute;
  top: 34%;
  right: -14%;
  width: 58%;
  height: auto;
  opacity: .76;
  filter: saturate(.72);
  transform: rotate(-12deg);
  pointer-events: none;
}
.pickup-service dl { display: grid; max-width: 76ch; margin: 18px 0 24px; }
.pickup-service dl > div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 14px; padding-block: 10px; border-bottom: 1px solid var(--panel-border); }
.pickup-service dt { font-weight: 680; line-height: 1.5; }
.pickup-service dd { margin: 0; }
.pickup-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name flourish" "phone flourish";
  align-items: center;
  gap: 3px 12px;
  margin-top: auto;
  padding: clamp(13px, 2vw, 22px);
  border: 1px solid var(--panel-border);
  border-radius: 17px;
  background: var(--panel-cream);
}
.pickup-contact p { grid-area: name; color: var(--ink); }
.pickup-contact a { grid-area: phone; justify-self: start; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pickup-contact img { grid-area: flourish; width: clamp(36px, 5vw, 76px); height: auto; }

@container pickup (max-width: 325px) {
  .pickup-service dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

.site-footer {
  position: relative;
  isolation: isolate;
  margin-top: 40px;
  padding-top: clamp(16px, 3vw, 32px);
  background: linear-gradient(180deg, var(--cream), #e8ede0 56%, #e2e8da);
  font-size: .92rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 72px;
  aspect-ratio: 130 / 46;
  translate: -50% 0;
  background: url("/sugar-bureau-flourish.svg") center / contain no-repeat;
  pointer-events: none;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr .95fr 1.2fr;
  gap: 24px clamp(20px, 3vw, 48px);
  align-items: start;
  padding-block: 34px 28px;
}
.footer-brand p { margin-top: 9px; color: var(--muted); }
.footer-nav { display: grid; gap: 8px; justify-items: start; }
.footer-nav a { font-weight: 610; }
.footer-contacts, .footer-details { display: grid; gap: 5px; line-height: 1.4; }
.footer-inner h2 { font-size: 1rem; line-height: 1.25; letter-spacing: -.025em; margin-bottom: 4px; }
.footer-contacts p, .footer-details p, .footer-bottom { color: var(--muted); }
.footer-phone { font-weight: 720; font-variant-numeric: tabular-nums; white-space: nowrap; }
.site-footer .text-link { text-decoration: underline; text-underline-offset: .2em; }
.footer-networks { list-style: none; display: flex; flex-wrap: wrap; gap: 7px 12px; margin: 4px 0 0; padding: 0; }
.footer-networks li { display: inline-flex; gap: 5px; align-items: center; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; border-top: 1px solid #cbd6c5; padding-block: 14px 18px; font-size: .88rem; }
.cookie-notice {
  position: fixed;
  z-index: 20;
  inset: auto auto max(12px, env(safe-area-inset-bottom)) 12px;
  display: flex;
  align-items: center;
  gap: 10px 14px;
  width: min(calc(100% - 24px), 510px);
  padding: 12px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: var(--panel-cream);
  box-shadow: var(--panel-shadow);
  font-size: .9rem;
  line-height: 1.4;
}
.cookie-notice button { min-height: 44px; padding: 7px 14px; border: 0; }
.cookie-details p + p { margin-top: 12px; }

.requisites-page { max-width: 760px; padding-block: clamp(32px, 6vw, 72px); }
.requisites-page h1 { margin-top: 20px; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -.05em; }
.requisites-page .service-card { margin-top: 24px; background: var(--panel-cream); border: 1px solid var(--panel-border); }
.requisites-page:has(.requisites-grid) { max-width: 1120px; }
.requisites-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 18px; margin-top: 24px; align-items: stretch; }
.requisites-grid .service-card { margin-top: 0; }
.requisites-grid .service-card:first-child { background: #e8edde; }
.requisites-grid h2 { margin-bottom: 16px; }
.requisites-grid dl { margin-bottom: 0; }
.requisites-page dl { display: grid; gap: 12px; margin: 0 0 24px; }
.requisites-page dt { font-weight: 680; }
.requisites-page dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.requisites-page .footer-networks { margin-top: 12px; }
.requisites-page .text-link { display: inline-block; }

@media (max-width: 850px) {
  .hero { min-height: 450px; }
  .hero-intro { width: min(60%, 550px); }
  .hero-scene::before, .hero-scene::after { width: 37%; }
  .hero-scene::before { background-size: 840px auto; }
  .hero-scene::after { background-size: 875px auto; }
  .estimate { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .quick-facts { --branch-width: 88px; margin-top: -20px; padding-bottom: 6px; background: linear-gradient(180deg, transparent 20px, #f4e9dc 20px, var(--cream) 100%); }
  .quick-facts-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; border-radius: 16px; }
  .quick-fact { grid-row: auto; grid-template-rows: auto 1fr; }
  .quick-fact strong { min-block-size: 2lh; }
  .quick-facts::before { top: auto; bottom: -16px; opacity: .44; }
  .quick-facts::after { top: auto; bottom: -30px; opacity: .33; }
  .cake-preview { grid-template-columns: minmax(0, 1fr); margin-block: 22px 57px; padding: 17px; border-radius: 24px; }
  .cake-preview { gap: 12px; }
  .cake-preview-copy { display: contents; }
  .cake-preview h2 { order: -3; text-wrap: initial; }
  .preview-intro { order: -2; margin-top: 0; }
  .cake-preview-photo { order: -1; }
  .cake-controls, .preview-editor { margin-top: 0; }
  .preview-editor { justify-self: start; }
  .cake-stage { width: min(100%, 390px); }
  .occasion-switch { gap: 1px; }
  .occasion-switch button { padding: 7px 8px; font-size: .85rem; }
}

@media (max-width: 600px) {
  .hero { min-height: 0; }
  .hero-intro { grid-row: 1; width: 100%; padding: 30px 15px 25px; }
  .hero h1 { font-size: clamp(2.35rem, 10vw, 3.8rem); }
  .hero-description { font-size: .94rem; }
  .hero-actions .button { padding-inline: 9px; }
  .hero-flourish { width: 75px; margin-top: 5px; }
  .hero-scene { position: static; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .hero-scene::before, .hero-scene::after {
    position: static;
    width: 100%;
    height: clamp(136px, 43vw, 225px);
    mask-image: linear-gradient(180deg, transparent, #0009 12px, #000 29px);
  }
  .hero-scene::before { background-size: 275% auto; background-position: 75% 28%; }
  .hero-scene::after { background-size: 300% auto; background-position: right bottom; }
  .quick-facts { margin-top: 0; background: linear-gradient(180deg, #f4e9dc, var(--cream)); }
}

@media (max-width: 960px) {
  .header-phone {
    width: 44px;
    border-radius: 50%;
    background: #eaf0e2;
  }
  .header-phone:hover { background: #dce8d1; }
  .header-phone svg { width: 19px; height: 19px; }
  .header-phone span { display: none; }
}

@media (max-width: 800px) {
  :root { scroll-padding-block-start: 125px; }
  .site-masthead { padding-block: 6px; }
  .site-header {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 8px;
    padding-top: 8px;
    border-radius: 16px;
  }
  .site-header .wordmark { width: min(145px, 100%); }
  .header-actions { grid-column: 2; grid-row: 1; }
  .header-secondary {
    grid-row: 2;
    grid-column: 1 / -1;
    margin-top: 7px;
    border-top: 1px solid var(--panel-border);
  }
  .site-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0 clamp(12px, 5vw, 25px);
    font-size: .85rem;
  }
}

@media (max-width: 690px) {
  .examples-flourish { margin-bottom: 20px; }
  .example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .product-photo { width: min(84%, 140px); }
  .example-grid figcaption p { font-size: .86rem; }
}

@media (max-width: 660px) {
  :root { --page-gutter: 18px; }
  .site-masthead { --header-inset: 10px; }
  .paper-section { padding: 31px 0; border-radius: 34px 34px 0 0; }
  .paper-layout { grid-template-areas: "copy" "preview" "materials"; grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .paper-preview { width: min(100%, 430px); }
  .local-service { gap: 50px; }
  .pastry-service { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .baker-offer-art { width: min(80%, 300px); margin-block: 0 -52px; }
  .baker-offer-sprig { right: -10%; }
  .estimate-request { border-radius: 24px; padding: 16px; }
  .estimate-form { padding: 14px; }
  .estimate-fields { grid-template-columns: 1fr; }
  .how { padding: 51px 0; }
  .steps { grid-template-columns: 1fr; }
  .steps { gap: 15px; margin-top: 17px; }
  .site-footer { margin-top: 30px; }
  .footer-inner { grid-template-columns: 1fr; gap: 19px; padding-block: 24px 21px; }
  .footer-details { border-top: 1px solid #cbd6c5; padding-top: 15px; }
}

@media (max-width: 370px) {
  .header-order-detail { display: none; }
  .site-nav { column-gap: 8px; font-size: .78rem; }
  .header-networks { gap: 4px; }
  .header-network { width: 27px; height: 27px; }
}

@media (max-width: 360px) {
  .quick-fact { padding-inline: 5px; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.header-order, .hero-actions .button-main) {
    position: relative;
    overflow: hidden;
  }
  :is(.header-order, .hero-actions .button-main):hover::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(108deg, transparent 33%, #fff1cd25 50%, transparent 67%);
    animation: order-glint .7s ease-out both;
  }
  @keyframes order-glint {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
  }

  .product-photo img {
    transform-origin: var(--photo-focus, 16.6667%) center;
    transition: scale .28s ease-out;
  }
  .product-gingerbread, .product-chocolate { --photo-focus: 50%; }
  .product-cupcakes { --photo-focus: 83.3333%; }
  .example-grid figure:hover .product-photo img { scale: 1.045; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
