/* Toastery House Bakery — brand theme
   Sugar Glaze #FFE6D5 | ChocoCream #732620 | Blueberry Brew #0864BB | Toasted Almond #FD9E5A */

:root {
  --sugar-glaze: #ffe6d5;
  --choco: #732620;
  --blueberry: #0864bb;
  --almond: #fd9e5a;
  --cream: #fff8f2;
  --ink: #4a1f1a;
  --ink-soft: rgba(115, 38, 32, 0.72);
  --white: #ffffff;
  --radius-pill: 999px;
  --radius-box: 1.25rem;
  --shadow-stamp: 4px 6px 0 rgba(115, 38, 32, 0.18);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Nunito", "Trebuchet MS", sans-serif;
  --max: 68rem;
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  width: 100%;
}

html.is-flip-open {
  overflow: hidden;
}

.toastery-page {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body.toastery-body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--sugar-glaze);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(253, 158, 90, 0.22), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(8, 100, 187, 0.12), transparent 38%),
    radial-gradient(circle at 70% 90%, rgba(115, 38, 32, 0.08), transparent 45%);
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 900px) {
  body.toastery-body {
    background-image:
      radial-gradient(circle at 12% 18%, rgba(253, 158, 90, 0.22), transparent 42%),
      radial-gradient(circle at 88% 8%, rgba(8, 100, 187, 0.12), transparent 38%),
      radial-gradient(circle at 70% 90%, rgba(115, 38, 32, 0.08), transparent 45%),
      url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blueberry);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--choco);
}

:focus-visible {
  outline: 3px solid var(--blueberry);
  outline-offset: 3px;
}

.toastery-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blueberry);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.toastery-skip:focus {
  left: 1rem;
  top: 1rem;
}

.toastery-wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.toastery-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 230, 213, 0.96);
  border-bottom: 2px solid rgba(8, 100, 187, 0.12);
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  @media (min-width: 900px) {
    .toastery-header {
      background: rgba(255, 230, 213, 0.88);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }
  }
}

.toastery-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.toastery-logo {
  display: inline-flex;
  transform: rotate(-6deg);
  transition: transform 0.35s var(--ease-bounce);
}

.toastery-logo:hover,
.toastery-logo:focus-visible {
  transform: rotate(-2deg) scale(1.05);
}

.toastery-logo img {
  width: clamp(7.5rem, 28vw, 10.5rem);
  height: auto;
}

.toastery-nav {
  display: none;
  gap: 1.25rem;
  align-items: center;
}

.toastery-nav a,
.toastery-nav__menu-link {
  font-weight: 700;
  color: var(--choco);
  text-decoration: none;
  font-size: 0.95rem;
  font-family: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.toastery-nav a:hover,
.toastery-nav__menu-link:hover {
  color: var(--blueberry);
}

.toastery-menu-btn {
  appearance: none;
  border: 2px solid var(--blueberry);
  background: var(--cream);
  color: var(--blueberry);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.9rem;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: var(--shadow-stamp);
}

.toastery-menu-btn[aria-expanded="true"] {
  background: var(--blueberry);
  color: var(--white);
}

.toastery-nav.is-open {
  display: flex;
  position: absolute;
  inset-inline: 1rem;
  top: calc(100% + 0.35rem);
  flex-direction: column;
  background: var(--cream);
  border: 2px solid var(--blueberry);
  border-radius: var(--radius-box);
  padding: 1rem;
  box-shadow: var(--shadow-stamp);
}

@media (min-width: 768px) {
  .toastery-menu-btn {
    display: none;
  }

  .toastery-nav {
    display: flex;
  }

  .toastery-nav.is-open {
    position: static;
    flex-direction: row;
    border: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }
}

/* —— Hero —— */
.toastery-hero {
  position: relative;
  min-height: auto;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 3.75rem 0 1.5rem;
}

@media (min-width: 900px) {
  .toastery-hero {
    min-height: min(100svh, 52rem);
    padding: 5.5rem 0 4rem;
  }
}

.toastery-hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 80% 35%, rgba(253, 158, 90, 0.28), transparent 60%),
    radial-gradient(ellipse 55% 45% at 12% 70%, rgba(8, 100, 187, 0.14), transparent 55%),
    radial-gradient(circle at 50% 0%, rgba(255, 248, 242, 0.9), transparent 55%);
}

.toastery-hero__layout {
  display: grid;
  gap: 1.15rem;
  align-items: center;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.toastery-hero__intro {
  position: relative;
  z-index: 2;
  max-width: 34rem;
}

.toastery-hero__brand {
  display: inline-block;
  margin-bottom: 0.85rem;
  transform: rotate(-5deg);
  animation: toastery-stamp 0.9s var(--ease-bounce) both;
}

@media (min-width: 900px) {
  .toastery-hero__brand {
    filter: drop-shadow(3px 5px 0 rgba(115, 38, 32, 0.2));
  }
}

.toastery-hero__brand img {
  width: clamp(9.5rem, 44vw, 16rem);
  height: auto;
}

.toastery-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 7.5vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--blueberry);
}

.toastery-hero__lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 3.4vw, 1.15rem);
  max-width: 28rem;
}

.toastery-hero__actions {
  position: relative;
  z-index: 2;
}

.toastery-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.toastery-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s var(--ease-out), background 0.2s;
  box-shadow: var(--shadow-stamp);
}

.toastery-btn:hover {
  transform: translateY(-3px) rotate(-1deg);
}

.toastery-btn--primary {
  background: var(--blueberry);
  color: var(--white);
  border-color: var(--blueberry);
}

.toastery-btn--primary:hover,
.toastery-btn--primary:focus-visible {
  color: var(--white);
  background: #06539c;
}

.toastery-btn--ghost {
  background: var(--cream);
  color: var(--choco);
  border-color: var(--choco);
}

.toastery-btn--ghost:hover,
.toastery-btn--ghost:focus-visible {
  color: var(--blueberry);
  border-color: var(--blueberry);
}

/* Hero sticker props */
.toastery-hero__props {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem 0.65rem;
  align-items: end;
  justify-items: center;
  width: 100%;
  max-width: min(22rem, 100%);
  margin: 0.15rem auto 0;
  padding: 0.35rem 0.15rem;
  min-height: 0;
}

.toastery-prop {
  position: relative;
  inset: auto;
  margin: 0;
  width: min(100%, 3.85rem);
  transform: translate3d(0, var(--toastery-parallax, 0px), 0);
}

.toastery-prop__motion {
  animation: toastery-prop-in 0.85s var(--ease-bounce) both;
}

.toastery-prop img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.toastery-prop--toast,
.toastery-prop--coffee,
.toastery-prop--moka,
.toastery-prop--badge {
  width: min(100%, 3.85rem);
  justify-self: center;
}

.toastery-prop--toast .toastery-prop__motion {
  animation-name: toastery-prop-in;
  animation-duration: 0.85s;
  animation-timing-function: var(--ease-bounce);
  animation-iteration-count: 1;
  animation-fill-mode: both;
  animation-delay: 0.05s;
}

.toastery-prop--coffee .toastery-prop__motion {
  animation-name: toastery-prop-in;
  animation-duration: 0.85s;
  animation-timing-function: var(--ease-bounce);
  animation-iteration-count: 1;
  animation-fill-mode: both;
  animation-delay: 0.18s;
}

.toastery-prop--moka .toastery-prop__motion {
  animation-name: toastery-prop-in;
  animation-duration: 0.85s;
  animation-timing-function: var(--ease-bounce);
  animation-iteration-count: 1;
  animation-fill-mode: both;
  animation-delay: 0.3s;
}

.toastery-prop--badge {
  z-index: 2;
}

.toastery-prop--badge .toastery-prop__motion {
  animation-name: toastery-prop-in;
  animation-duration: 0.85s;
  animation-timing-function: var(--ease-bounce);
  animation-iteration-count: 1;
  animation-fill-mode: both;
  animation-delay: 0.4s;
}

/* Infinite float only on desktop — keeps mobile scroll smooth */
@media (min-width: 900px) {
  .toastery-prop {
    filter: drop-shadow(3px 6px 0 rgba(115, 38, 32, 0.1));
  }

  .toastery-prop--toast .toastery-prop__motion {
    animation-name: toastery-prop-in, toastery-float-tilt;
    animation-duration: 0.85s, 4.8s;
    animation-timing-function: var(--ease-bounce), ease-in-out;
    animation-iteration-count: 1, infinite;
    animation-fill-mode: both, none;
    animation-delay: 0.05s, 0.85s;
  }

  .toastery-prop--coffee .toastery-prop__motion {
    animation-name: toastery-prop-in, toastery-float-bob;
    animation-duration: 0.85s, 5.2s;
    animation-timing-function: var(--ease-bounce), ease-in-out;
    animation-iteration-count: 1, infinite;
    animation-fill-mode: both, none;
    animation-delay: 0.18s, 1s;
  }

  .toastery-prop--moka .toastery-prop__motion {
    animation-name: toastery-prop-in, toastery-float-sway;
    animation-duration: 0.85s, 5.6s;
    animation-timing-function: var(--ease-bounce), ease-in-out;
    animation-iteration-count: 1, infinite;
    animation-fill-mode: both, none;
    animation-delay: 0.3s, 1.15s;
  }

  .toastery-prop--badge .toastery-prop__motion {
    animation-name: toastery-prop-in, toastery-badge-wiggle;
    animation-duration: 0.85s, 3.8s;
    animation-timing-function: var(--ease-bounce), ease-in-out;
    animation-iteration-count: 1, infinite;
    animation-fill-mode: both, none;
    animation-delay: 0.4s, 1.25s;
  }
}

/* Softer motion on small screens so props don't collide while floating */
@media (max-width: 899px) {
  @keyframes toastery-float-tilt {
    0%,
    100% {
      transform: translateY(0) rotate(-3deg);
    }
    50% {
      transform: translateY(-4px) rotate(2deg);
    }
  }

  @keyframes toastery-float-bob {
    0%,
    100% {
      transform: translateY(0) rotate(2deg);
    }
    50% {
      transform: translateY(-5px) rotate(-2deg);
    }
  }

  @keyframes toastery-float-sway {
    0%,
    100% {
      transform: translateY(0) rotate(-2deg);
    }
    50% {
      transform: translateY(-4px) rotate(2deg);
    }
  }

  @keyframes toastery-badge-wiggle {
    0%,
    100% {
      transform: rotate(4deg) scale(1);
    }
    50% {
      transform: rotate(7deg) scale(1.02);
    }
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .toastery-hero__props {
    max-width: min(28rem, 100%);
    gap: 0.65rem 0.85rem;
  }

  .toastery-prop,
  .toastery-prop--toast,
  .toastery-prop--coffee,
  .toastery-prop--moka,
  .toastery-prop--badge {
    width: min(100%, 5rem);
  }
}

@media (min-width: 900px) {
  .toastery-hero__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.95fr);
    grid-template-areas:
      "intro props"
      "actions props";
    gap: 1.25rem 2rem;
    align-items: center;
  }

  .toastery-hero__intro {
    grid-area: intro;
  }

  .toastery-hero__actions {
    grid-area: actions;
  }

  .toastery-hero__props {
    grid-area: props;
    display: block;
    position: relative;
    min-height: 26rem;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    justify-self: stretch;
    align-self: stretch;
  }

  .toastery-prop {
    position: absolute;
    width: clamp(6.5rem, 15vw, 10.5rem);
    filter: drop-shadow(4px 8px 0 rgba(115, 38, 32, 0.12));
  }

  .toastery-prop--toast {
    top: 6%;
    left: 8%;
    width: clamp(8rem, 18vw, 12rem);
    justify-self: auto;
  }

  .toastery-prop--coffee {
    top: 4%;
    right: 6%;
    width: clamp(7rem, 16vw, 11rem);
    justify-self: auto;
  }

  .toastery-prop--moka {
    bottom: 8%;
    left: 22%;
    width: clamp(6.5rem, 15vw, 10.5rem);
    justify-self: auto;
  }

  .toastery-prop--badge {
    bottom: 22%;
    right: 10%;
    width: clamp(6rem, 13vw, 9rem);
    justify-self: auto;
  }
}

@media (min-width: 1100px) {
  .toastery-hero__props {
    min-height: 28rem;
  }

  .toastery-prop--toast {
    left: 4%;
  }

  .toastery-prop--coffee {
    right: 2%;
  }
}

/* —— Sections —— */
.toastery-section {
  padding: 3.5rem 0;
  position: relative;
}

@media (max-width: 899px) {
  .toastery-section {
    padding: 2.25rem 0;
  }

  .toastery-hero + .toastery-section {
    padding-top: 1.25rem;
  }

  .toastery-hero__layout {
    gap: 0.85rem;
  }

  .toastery-hero__props {
    margin-top: 0;
    padding-block: 0.15rem;
  }

  .toastery-hero__actions {
    margin-top: 0.15rem;
  }
}

.toastery-section__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5.5vw, 2.6rem);
  line-height: 1.1;
  color: var(--blueberry);
  letter-spacing: -0.02em;
}

.toastery-section__lead {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  color: var(--ink-soft);
}

.toastery-kicker {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--almond);
}

/* About */
.toastery-about {
  display: grid;
  gap: 2rem;
  overflow-x: clip;
  max-width: 100%;
}

.toastery-about__copy p {
  margin: 0 0 1rem;
}

.toastery-about__copy p:last-child {
  margin-bottom: 0;
}

.toastery-blob-frame {
  position: relative;
  justify-self: center;
  width: min(100%, 22rem);
  max-width: 100%;
  overflow: hidden;
  border-radius: 1.5rem;
  isolation: isolate;
}

.toastery-blob {
  position: absolute;
  inset: 0;
  background: var(--blueberry);
  border-radius: 58% 42% 48% 52% / 48% 55% 45% 52%;
  z-index: 0;
}

@media (min-width: 900px) {
  .toastery-blob {
    inset: -6% -8%;
    animation: toastery-blob 8s ease-in-out infinite;
  }

  .toastery-blob-frame {
    overflow: visible;
  }
}

.toastery-blob-frame picture,
.toastery-blob-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 1.5rem;
  background: var(--cream);
}

@media (min-width: 900px) {
  .toastery-blob-frame picture,
  .toastery-blob-frame img {
    transform: rotate(2deg);
    box-shadow: 0 16px 40px rgba(115, 38, 32, 0.18);
  }
}

@media (min-width: 768px) {
  .toastery-about {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 2.5rem;
  }
}

/* Menu highlights — interaction tiles, not decorative cards clutter */
.toastery-menu {
  background: linear-gradient(180deg, transparent, rgba(253, 158, 90, 0.12), transparent);
}

.toastery-menu-grid {
  display: grid;
  gap: 1rem;
}

.toastery-menu-item {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.85rem;
  border: 2px solid rgba(8, 100, 187, 0.28);
  border-radius: var(--radius-box);
  background: rgba(255, 248, 242, 0.85);
  text-decoration: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-stamp);
  transition: transform 0.3s var(--ease-bounce), border-color 0.2s;
  width: 100%;
}

.toastery-menu-item:hover,
.toastery-menu-item:focus-visible {
  border-color: var(--blueberry);
  color: inherit;
}

@media (min-width: 900px) {
  .toastery-menu-item:hover,
  .toastery-menu-item:focus-visible {
    transform: translateY(-4px) rotate(-0.5deg);
  }
}

.toastery-menu-item__thumb {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 1rem;
  object-fit: cover;
  background: var(--cream);
}

.toastery-menu-item h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--blueberry);
}

.toastery-menu-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

@media (min-width: 700px) {
  .toastery-menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .toastery-menu-item {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.1rem;
  }

  .toastery-menu-item__thumb {
    width: 100%;
    height: auto;
    justify-self: center;
  }
}

/* Gallery */
.toastery-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.toastery-gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 1rem;
  border: 2px solid rgba(8, 100, 187, 0.2);
  background: var(--cream);
  content-visibility: auto;
  contain-intrinsic-size: 180px 320px;
}

.toastery-gallery-grid img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (min-width: 900px) {
  .toastery-gallery-grid figure {
    transform: rotate(-1deg);
    transition: transform 0.35s var(--ease-bounce);
  }

  .toastery-gallery-grid figure:nth-child(even) {
    transform: rotate(1.5deg);
  }

  .toastery-gallery-grid figure:hover {
    transform: rotate(0deg) scale(1.02);
    z-index: 1;
  }
}

@media (min-width: 768px) {
  .toastery-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    align-items: start;
  }
}

/* Visit */
.toastery-visit {
  background:
    radial-gradient(circle at 20% 20%, rgba(8, 100, 187, 0.1), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(253, 158, 90, 0.18), transparent 42%);
}

.toastery-visit-panel {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 1.25rem;
  border: 3px solid var(--blueberry);
  border-radius: 1.75rem;
  background: var(--cream);
  box-shadow: 8px 10px 0 rgba(8, 100, 187, 0.15);
  transform: rotate(-0.4deg);
}

.toastery-visit-panel h2 {
  margin: 0;
}

.toastery-meta {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.toastery-meta div {
  display: grid;
  gap: 0.2rem;
}

.toastery-meta dt {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--almond);
}

.toastery-meta dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--choco);
}

.toastery-meta a {
  font-weight: 800;
  text-decoration: none;
}

.toastery-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.toastery-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--blueberry);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: var(--shadow-stamp);
  transition: transform 0.25s var(--ease-bounce);
}

.toastery-social a:hover,
.toastery-social a:focus-visible {
  color: var(--white);
  transform: translateY(-3px) rotate(2deg);
  background: var(--choco);
}

@media (min-width: 700px) {
  .toastery-visit-panel {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    padding: 2rem;
  }
}

/* Footer */
.toastery-footer {
  padding: 2rem 0 2.5rem;
  border-top: 2px solid rgba(8, 100, 187, 0.15);
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.toastery-footer strong {
  color: var(--blueberry);
  font-family: var(--font-display);
}

/* Reveal on scroll */
.toastery-reveal {
  opacity: 0;
  transform: translateY(1.25rem) scale(0.98);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-bounce);
}

.toastery-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Keyframes */
@keyframes toastery-stamp {
  0% {
    opacity: 0;
    transform: rotate(-18deg) scale(1.35);
  }
  60% {
    opacity: 1;
    transform: rotate(-3deg) scale(0.96);
  }
  100% {
    transform: rotate(-5deg) scale(1);
  }
}

@keyframes toastery-prop-in {
  0% {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.7) rotate(-12deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes toastery-float-tilt {
  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }
  50% {
    transform: translateY(-12px) rotate(4deg);
  }
}

@keyframes toastery-float-bob {
  0%,
  100% {
    transform: translateY(0) rotate(4deg);
  }
  50% {
    transform: translateY(-14px) rotate(-3deg);
  }
}

@keyframes toastery-float-sway {
  0%,
  100% {
    transform: translateX(0) rotate(-3deg);
  }
  50% {
    transform: translateX(10px) rotate(5deg);
  }
}

@keyframes toastery-badge-wiggle {
  0%,
  100% {
    transform: rotate(8deg) scale(1);
  }
  40% {
    transform: rotate(14deg) scale(1.06);
  }
  70% {
    transform: rotate(4deg) scale(0.98);
  }
}

@keyframes toastery-blob {
  0%,
  100% {
    border-radius: 58% 42% 48% 52% / 48% 55% 45% 52%;
    transform: rotate(0deg);
  }
  50% {
    border-radius: 42% 58% 52% 48% / 55% 42% 58% 45%;
    transform: rotate(6deg);
  }
}

/* —— Floating menu viewer —— */
.toastery-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 80;
  min-width: 3.75rem;
  min-height: 3.75rem;
  padding: 0.85rem 1.15rem;
  border: 2px solid var(--blueberry);
  border-radius: var(--radius-pill);
  background: var(--blueberry);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(8, 100, 187, 0.28), var(--shadow-stamp);
  transition: transform 0.25s var(--ease-bounce), background 0.2s;
}

@media (min-width: 900px) {
  .toastery-fab {
    animation: toastery-fab-pulse 3.2s ease-in-out infinite;
  }
}

.toastery-fab:hover,
.toastery-fab:focus-visible {
  transform: translateY(-3px) rotate(-2deg) scale(1.04);
  background: #06539c;
}

.toastery-body.is-flip-open .toastery-fab {
  opacity: 0;
  pointer-events: none;
}

.toastery-flip[hidden] {
  display: none !important;
}

.toastery-flip {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100%;
  padding: 0.65rem;
  padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
  overflow: hidden;
  overscroll-behavior: none;
  pointer-events: none;
  box-sizing: border-box;
}

.toastery-flip.is-open {
  pointer-events: auto;
}

.toastery-flip__scrim {
  position: absolute;
  inset: 0;
  background: rgba(74, 31, 26, 0.42);
  border: 0;
  cursor: pointer;
}

.toastery-flip__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(22rem, calc(100vw - 1.3rem));
  max-height: min(92svh, 56rem);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 3px solid var(--blueberry);
  border-radius: 1.25rem;
  background: var(--cream);
  box-shadow: 0 16px 40px rgba(115, 38, 32, 0.22);
  transform: translateY(1rem) scale(0.96);
  opacity: 0;
  transition: transform 0.28s var(--ease-out), opacity 0.2s var(--ease-out);
  overflow: hidden;
  box-sizing: border-box;
}

.toastery-flip.is-open .toastery-flip__panel {
  transform: none;
  opacity: 1;
}

.toastery-flip__bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.toastery-flip__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--blueberry);
}

.toastery-flip__controls {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.3rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.toastery-flip__ctrl {
  appearance: none;
  flex: 0 0 auto;
  border: 2px solid var(--blueberry);
  background: var(--sugar-glaze);
  color: var(--blueberry);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.65rem;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.75rem;
  cursor: pointer;
}

.toastery-flip__ctrl:hover,
.toastery-flip__ctrl:focus-visible {
  background: var(--blueberry);
  color: var(--white);
}

.toastery-flip__ctrl--close {
  border-color: var(--choco);
  color: var(--choco);
  margin-left: auto;
}

.toastery-flip__page {
  min-width: 2.75rem;
  text-align: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--choco);
}

.toastery-flip__stage {
  display: block;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border-radius: 0.85rem;
  background: var(--cream);
  min-height: 0;
  max-height: min(62svh, 34rem);
}

.toastery-menu-page {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  background: var(--cream);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-drag: none;
}

.toastery-flip.is-loading-book .toastery-menu-page {
  opacity: 0.55;
}

.toastery-flip__ctrl:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.toastery-flip__hint {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.toastery-body.is-flip-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  touch-action: none;
}

@keyframes toastery-fab-pulse {
  0%,
  100% {
    box-shadow: 0 10px 28px rgba(8, 100, 187, 0.28), var(--shadow-stamp);
  }
  50% {
    box-shadow: 0 14px 34px rgba(8, 100, 187, 0.4), var(--shadow-stamp);
  }
}

@media (min-width: 768px) {
  .toastery-flip__panel {
    max-width: min(28rem, calc(100vw - 2rem));
    padding: 1rem 1.1rem 0.9rem;
  }

  .toastery-flip__bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .toastery-flip__stage {
    max-height: min(72svh, 42rem);
  }
}

@media (min-width: 1024px) {
  .toastery-flip__panel {
    max-width: min(30rem, calc(100vw - 2rem));
  }
}

/* —— Preloader —— */
.toastery-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(253, 158, 90, 0.22), transparent 60%),
    radial-gradient(circle at 85% 15%, rgba(8, 100, 187, 0.12), transparent 40%),
    var(--sugar-glaze);
  transition: opacity 0.45s var(--ease-out), visibility 0.45s var(--ease-out);
}

.toastery-preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.toastery-preloader__inner {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
  max-width: 18rem;
}

.toastery-preloader__logo {
  display: block;
  transform: rotate(-6deg);
  animation: toastery-stamp 0.9s var(--ease-bounce) both;
  filter: drop-shadow(3px 5px 0 rgba(115, 38, 32, 0.16));
}

.toastery-preloader__logo img {
  width: clamp(9rem, 42vw, 12.5rem);
  height: auto;
}

.toastery-preloader__props {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.85rem;
  min-height: 4.5rem;
}

.toastery-preloader__toast,
.toastery-preloader__pot {
  width: clamp(3.25rem, 18vw, 4.5rem);
  height: auto;
  filter: drop-shadow(2px 4px 0 rgba(115, 38, 32, 0.12));
}

.toastery-preloader__toast {
  animation: toastery-preload-bob 1.4s ease-in-out infinite;
}

.toastery-preloader__pot {
  animation: toastery-preload-bob 1.4s ease-in-out 0.25s infinite;
}

.toastery-preloader__text {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--choco);
  letter-spacing: 0.02em;
}

.toastery-preloader__bar {
  width: min(100%, 11rem);
  height: 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(115, 38, 32, 0.12);
  overflow: hidden;
  border: 2px solid rgba(8, 100, 187, 0.2);
}

.toastery-preloader__bar span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blueberry), var(--almond));
  animation: toastery-preload-bar 1.1s ease-in-out infinite;
}

@keyframes toastery-preload-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-10px) rotate(4deg);
  }
}

@keyframes toastery-preload-bar {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .toastery-preloader__toast,
  .toastery-preloader__pot,
  .toastery-preloader__bar span,
  .toastery-preloader__logo {
    animation: none;
  }

  .toastery-preloader__bar span {
    width: 70%;
    transform: none;
  }
}
