/* ============================================================
   The Bakery — brand landing page
   Pink #EE7AAF and cream #FEFADC, the brand's own lettering,
   the baguette B, the cupcake e and the mascot
   ============================================================ */

@font-face {
  font-family: "Big Shoulders Display"; font-style: normal; font-weight: 800; font-display: swap;
  src: url(../assets/fonts/big-shoulders-display-800.woff2) format("woff2");
}
@font-face {
  font-family: "Big Shoulders Display"; font-style: normal; font-weight: 900; font-display: swap;
  src: url(../assets/fonts/big-shoulders-display-900.woff2) format("woff2");
}
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/outfit-400.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/outfit-500.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url(../assets/fonts/outfit-600.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 700; font-display: swap; src: url(../assets/fonts/outfit-700.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", "Avenir Next Condensed", Impact, sans-serif;

  /* the brand's colours, the same in both themes */
  --pink: #ee7aaf;
  --cream: #fefadc;
  --brand-ink: #3a1424;
  --brand-ink-2: #4a1a2e;

  --ground: #fefadc;
  --paper: #fffdf1;
  --blush: #fbdde9;
  --ink: #3a1424;
  --ink-2: #6b3a50;
  --rose: #c2387a;
  --line: rgba(58, 20, 36, 0.14);
  --pattern-alpha: 0.11;
  --shadow: 0 24px 40px -30px rgba(120, 30, 70, 0.55);
  --cut-shadow: drop-shadow(10px 18px 14px rgba(110, 40, 60, 0.28));

  /* The round stickers that close the kraft bags: pink doodles on navy or cream */
  --seal-navy: #262338;
  --seal-cream: #f3f0dd;
  --seal-pink: #ee7aaf;
  --seal-pink-deep: #d9579a; /* the same pink a shade deeper, to read on the cream sticker */
  --seal-edge: transparent;  /* a die-cut cream rim, shown on the dark theme */
  --seal-shadow: 0 1px 1.5px rgba(58, 20, 36, 0.2), 0 10px 18px -10px rgba(58, 20, 36, 0.55);

  --gutter: 20px;
  --wrap: 1200px;
  --radius: 36px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #22101a;
    --paper: #2c1421;
    --blush: #3d1b2c;
    --ink: #fefadc;
    --ink-2: #ecd3dd;
    --rose: #ff9cc8;
    --line: rgba(254, 250, 220, 0.14);
    --pattern-alpha: 0.07;
    --shadow: 0 24px 40px -26px rgba(0, 0, 0, 0.8);
    --cut-shadow: drop-shadow(10px 18px 14px rgba(0, 0, 0, 0.5));
    --seal-edge: #f3f0dd;
    --seal-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.5), 0 10px 18px -9px rgba(0, 0, 0, 0.8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #22101a;
  --paper: #2c1421;
  --blush: #3d1b2c;
  --ink: #fefadc;
  --ink-2: #ecd3dd;
  --rose: #ff9cc8;
  --line: rgba(254, 250, 220, 0.14);
  --pattern-alpha: 0.07;
  --shadow: 0 24px 40px -26px rgba(0, 0, 0, 0.8);
  --cut-shadow: drop-shadow(10px 18px 14px rgba(0, 0, 0, 0.5));
  --seal-edge: #f3f0dd;
  --seal-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.5), 0 10px 18px -9px rgba(0, 0, 0, 0.8);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* The hand-drawn pattern, printed faintly like the bag paper */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--pink); opacity: var(--pattern-alpha);
  -webkit-mask: url(../assets/marks/pattern.svg) 0 0 / 376px auto repeat;
  mask: url(../assets/marks/pattern.svg) 0 0 / 376px auto repeat;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 10px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; z-index: 100; top: 10px; left: 10px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--brand-ink); color: var(--cream); font-weight: 700; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.2s;
}
.skip:focus { transform: none; }

/* ---------- Brand marks (recoloured with masks) ---------- */
.wordmark, .lettering, .mascot, .mark, .wm, .doodle {
  display: block;
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
}
.wordmark { --m: url(../assets/marks/wordmark.svg); height: 30px; aspect-ratio: 1486 / 478; background: var(--pink); }
.lettering { --m: url(../assets/marks/scrumptious.svg); width: 100%; aspect-ratio: 1564 / 776; background: var(--cream); -webkit-mask-position: left center; mask-position: left center; }
.mascot { --m: url(../assets/marks/mascot.svg); aspect-ratio: 1942 / 3155; background: var(--pink); }
.mark--b { --m: url(../assets/marks/monogram.svg); aspect-ratio: 474 / 1373; }
.mark--e { --m: url(../assets/marks/cupcake-e.svg); aspect-ratio: 182 / 455; }
.mark--wheat { --m: url(../assets/marks/wheat.svg); aspect-ratio: 524 / 1165; }

/* The brand's hand-drawn doodles, cut from its pattern */
.doodle { width: 64%; height: 64%; background: currentColor; rotate: var(--tilt, 0deg); }
.doodle--croissant { --m: url(../assets/doodles/croissant.svg); --tilt: -8deg; }
.doodle--cookies { --m: url(../assets/doodles/cookies.svg); --tilt: 4deg; }
.doodle--pretzel { --m: url(../assets/doodles/pretzel.svg); }
.doodle--toast { --m: url(../assets/doodles/toast.svg); --tilt: -6deg; }
.doodle--wheat { --m: url(../assets/doodles/wheat.svg); --tilt: 12deg; }

/* The stickers that close the kraft bags: one doodle or mark in pink on a
   cream or a navy disc */
.sticker {
  --seal: var(--seal-cream);
  --seal-ink: var(--seal-pink-deep);
  display: grid; place-items: center;
  width: 76px; aspect-ratio: 1; border-radius: 50%;
  background: var(--seal); color: var(--seal-ink);
  box-shadow: 0 0 0 2px var(--seal-edge), var(--seal-shadow);
}
.sticker--navy { --seal: var(--seal-navy); --seal-ink: var(--seal-pink); }
.sticker .mark { height: 66%; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 2px solid transparent;
  font-size: 15.5px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn--ink { background: var(--brand-ink); color: var(--cream); }
.btn--pink { background: var(--pink); color: var(--brand-ink); }
.btn--line { border-color: currentColor; }
.btn--line:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: var(--cream); }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow--rose { color: var(--rose); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px;
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
  padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gutter) 12px;
  background: var(--ground);
  transition: box-shadow 0.25s;
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.nav__brand { display: block; border-radius: 6px; }
.nav__links { display: none; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 8px 12px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink-2);
}
.nav__links a:hover { background: var(--blush); color: var(--ink); }
.nav__cta { margin-left: auto; min-height: 44px; padding: 0 18px; font-size: 14.5px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 8px;
  width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin: 6px auto 0;
  padding: 26px 22px 0;
  border-radius: var(--radius);
  background: var(--pink); color: var(--brand-ink);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--cream); opacity: 0.2;
  -webkit-mask: url(../assets/marks/pattern.svg) -60px -80px / 322px auto repeat;
  mask: url(../assets/marks/pattern.svg) -60px -80px / 322px auto repeat;
}
.hero__copy { position: relative; display: grid; gap: 18px; justify-items: start; }
.hero__title { width: min(100%, 560px); }
.hero__lede { max-width: 34ch; font-size: 17px; font-weight: 500; line-height: 1.5; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__status { font-size: 14px; font-weight: 600; }
.hero__status:empty { display: none; }
.dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.dot--open { background: #2c7a49; box-shadow: 0 0 0 3px rgba(254, 250, 220, 0.7); }
.dot--closed { background: var(--brand-ink); }

.hero__art { position: relative; height: 400px; margin-top: 4px; }
.hero__sleeve {
  position: absolute; left: 50%; bottom: -56px; z-index: 2;
  width: 180px; transform: translateX(-50%) rotate(7deg);
  filter: drop-shadow(14px 22px 18px rgba(80, 20, 45, 0.35));
}
.float { position: absolute; z-index: 1; filter: drop-shadow(10px 16px 12px rgba(80, 20, 45, 0.3)); animation: float 6s ease-in-out infinite alternate; }
.float--cookie { width: 150px; left: calc(50% - 205px); top: 70px; animation-delay: -2s; }
.float--cupcake { width: 128px; left: calc(50% + 70px); top: 14px; z-index: 3; animation-delay: -4s; }
.float--pretzel { width: 128px; left: calc(50% + 86px); top: 210px; z-index: 3; }
.hero__mascot {
  position: absolute; left: 0; bottom: -44px; z-index: 1;
  width: 96px; background: var(--cream);
  transform: rotate(8deg); transform-origin: 50% 100%;
  animation: wave 5s ease-in-out infinite;
}

/* ---------- Ticker ---------- */
/* the band is tilted, so its wrapper clips the corners that would widen the page */
.ticker-wrap { overflow: hidden; margin-top: 12px; padding-block: 16px; }
.ticker {
  background: var(--brand-ink); color: var(--cream);
  transform: rotate(-1.4deg);
}
.ticker__track {
  display: flex; align-items: center; gap: 26px; width: max-content;
  padding: 12px 0;
  font-family: var(--display); font-size: 34px; font-weight: 900; line-height: 1; white-space: nowrap;
  animation: ticker 32s linear infinite;
}
.ticker i { flex: none; color: var(--pink); }
.ticker .doodle { width: 46px; height: 40px; }
.ticker .mark--b { height: 32px; background: var(--pink); }

/* ---------- Sections ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gutter) 0; }
.section__head { display: grid; gap: 10px; max-width: 46rem; margin-bottom: 28px; }
.section__title {
  font-family: var(--display); font-size: clamp(42px, 11vw, 76px); font-weight: 900;
  line-height: 0.92; letter-spacing: 0.005em; text-wrap: balance;
}
.section__sub { max-width: 52ch; font-size: 17px; color: var(--ink-2); }

/* Today's bakes */
.bakes__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
  margin: 0; padding: 0; list-style: none;
}
.bake a {
  position: relative; display: grid; height: 100%;
  padding: 10px 12px 14px; border-radius: 24px;
  background: var(--blush); text-decoration: none;
  transition: transform 0.35s var(--ease);
}
.bake a:hover { transform: translateY(-4px); }
.bake img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: var(--cut-shadow); transition: transform 0.6s var(--ease); }
.bake a:hover img { transform: rotate(-6deg) scale(1.05); }
.bake__name { margin-top: 6px; font-family: var(--display); font-size: 24px; font-weight: 800; line-height: 1; letter-spacing: 0.01em; }
.bake__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.bake__price { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.bake__go { font-weight: 600; color: var(--rose); }
.bakes__more { margin-top: 28px; }

/* Our name */
.story__wordmark { position: relative; width: min(100%, 980px); aspect-ratio: 1486 / 478; margin: 6px 0 36px; }
.wm { position: absolute; inset: 0; }
.wm--letters { --m: url(../assets/marks/wordmark-letters.svg); background: var(--ink); }
.wm--accents { --m: url(../assets/marks/wordmark-accents.svg); background: var(--pink); }
.story__cards { display: grid; gap: 14px; }
.story__card {
  display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 18px; align-items: start; align-content: start;
  padding: 18px; border-radius: 26px;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line);
}
.story__card .sticker { grid-row: span 2; }
.story__card h3 { font-family: var(--display); font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: 0.005em; }
.story__card p { margin-top: 6px; color: var(--ink-2); }
.meet {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 20px; align-items: center;
  margin-top: 26px; padding: 22px; border-radius: 26px;
  background: var(--blush);
}
.meet__mascot { width: 84px; animation: wiggle 4s ease-in-out infinite; }
.meet__title { font-family: var(--display); font-size: 30px; font-weight: 900; line-height: 1; }
.meet p { margin-top: 6px; color: var(--ink-2); }

/* The bags */
.bags__photo { position: relative; border-radius: var(--radius); background: #f1dce8; box-shadow: var(--shadow); }
.bags__photo img { width: 100%; border-radius: inherit; }
/* stickers slapped on the photos */
.bags__seal { position: absolute; z-index: 1; top: -24px; right: 26px; width: 80px; rotate: 9deg; }
.bags__seal--wheat { top: auto; right: auto; bottom: -20px; left: -8px; rotate: -10deg; }
.bags__row { display: grid; gap: 26px; margin-top: 30px; align-items: center; }
.bags__copy { display: grid; gap: 14px; justify-items: start; }
.bags__copy p:not(.eyebrow) { max-width: 46ch; font-size: 17px; color: var(--ink-2); }
.bags__cookies { position: relative; border-radius: var(--radius); box-shadow: var(--shadow); }
.bags__cookies img { border-radius: inherit; }

/* Visit */
.visit { display: grid; gap: 18px; padding-bottom: 80px; }
.visit__card {
  display: grid; gap: 14px; justify-items: start;
  padding: 26px 22px; border-radius: var(--radius);
  background: var(--pink); color: var(--brand-ink);
}
.visit__addr { font-size: 18px; font-weight: 600; }
.visit__status { font-size: 14.5px; font-weight: 600; }
.visit__status:empty { display: none; }
.hours { width: 100%; max-width: 30rem; border-collapse: collapse; font-size: 15px; }
.hours th { padding: 7px 0; text-align: left; font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr + tr th, .hours tr + tr td { border-top: 1px solid rgba(58, 20, 36, 0.16); }
.hours .is-today th, .hours .is-today td { font-weight: 800; }
.hours th span {
  margin-left: 8px; padding: 2px 9px; border-radius: 999px;
  background: var(--cream); font-size: 11.5px; font-weight: 700; vertical-align: 1px;
}
.visit__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.visit__ctas .btn--line:hover { background: var(--cream); border-color: var(--cream); color: var(--brand-ink); }
.visit__art { position: relative; display: grid; justify-items: center; align-content: end; min-height: 280px; }
.visit__mascot { width: 140px; }
.bubble {
  position: relative; margin-bottom: 16px; padding: 14px 20px;
  border-radius: 24px; background: var(--brand-ink); color: var(--cream);
  font-family: var(--display); font-size: 30px; font-weight: 900; line-height: 1;
  transform: rotate(-3deg);
}
.bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -10px;
  width: 22px; height: 22px; margin-left: -11px;
  background: inherit; border-radius: 4px; transform: rotate(45deg);
}

/* ---------- Footer ---------- */
.foot { background: var(--brand-ink); color: var(--cream); }
.foot__inner {
  display: grid; gap: 20px;
  max-width: var(--wrap); margin: 0 auto;
  padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px));
}
.foot__mark { display: grid; place-items: center; width: 56px; aspect-ratio: 1; border-radius: 16px; background: var(--pink); }
.foot__mark .mark { height: 72%; background: var(--cream); }
.foot__text { display: grid; gap: 8px; max-width: 60ch; font-size: 15px; }
.foot a { text-underline-offset: 3px; }
.credits { max-width: 60rem; font-size: 14px; color: rgba(254, 250, 220, 0.86); }
.credits summary { cursor: pointer; width: max-content; padding: 4px 0; font-weight: 700; color: var(--cream); }
.credits p { margin-top: 8px; }
.credits ul { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.credits li span { color: var(--cream); font-weight: 600; }

/* ---------- Motion ---------- */
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes float {
  from { translate: 0 -6px; rotate: -4deg; }
  to { translate: 0 8px; rotate: 4deg; }
}
@keyframes wave {
  0%, 70%, 100% { transform: rotate(8deg); }
  80% { transform: rotate(2deg); }
  90% { transform: rotate(12deg); }
}
@keyframes wiggle {
  0%, 80%, 100% { transform: rotate(0); }
  86% { transform: rotate(-6deg); }
  93% { transform: rotate(5deg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ---------- Wider screens ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .bakes__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story__card { grid-template-columns: 1fr; row-gap: 14px; }
  .story__card .sticker { grid-row: auto; }
}

@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__cta { margin-left: 8px; }
  .wordmark { height: 36px; }
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center;
    padding: 56px 56px 40px;
    min-height: 600px;
  }
  .hero__lede { font-size: 19px; }
  .hero__art { height: 520px; margin: 0; }
  .hero__sleeve { width: 240px; bottom: -80px; }
  .float--cookie { width: clamp(176px, 44%, 222px); left: max(-4px, calc(50% - 266px)); top: 92px; }
  .float--cupcake { width: 160px; left: calc(50% + 80px); top: 20px; }
  .float--pretzel { width: 160px; left: calc(50% + 100px); top: 270px; }
  .hero__mascot { width: 130px; left: 6px; bottom: -98px; }
  .bags__seal { top: -34px; right: 56px; width: 108px; }
  .bags__seal--wheat { top: auto; right: auto; bottom: -26px; left: -26px; width: 96px; }
  .bakes__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .bags__row { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 48px; }
  .visit { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; }
  .visit__card { padding: 44px; }
  .visit__mascot { width: 190px; }
  .foot__inner { grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: 28px; }
  .credits { grid-column: 2; }
}

