/* Palette and type are specified in docs/brand.md. Fonts are self-hosted (latin subset), see site/fonts/README.md */
@font-face {
  font-family: 'Abril Fatface';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/abril-fatface-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/playfair-display-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/playfair-display-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/nunito-sans-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/nunito-sans-italic.woff2') format('woff2');
}

:root {
  --paper: #fff8ee;
  --blush: #f5e7db;
  --card: #fcf6ee;
  --plate: #fdf1e4;
  --kraft: #f5e0c8;
  --ink: #2e0b05;
  --ink-soft: #5a3326;
  --brown-line: #633923;
  --burgundy: #700002;
  --red-line: #cf4538;
  --caramel: #b65113;
  --caramel-mid: #a84d15;
  --caramel-deep: #8a3a12;
  --ribbon-dark: #6f2a0c;
  --amber: #f2aa6d;
  --gold: #fceb98;
  --gold-deep: #f2b24a;
  --pill-end: #f6dcb4;
  --cocoa: #4e1b07;
  --espresso: #2b1308;
  --leaf: #5e713b;
  --cream: #fff6e5;
  --font-display: 'Abril Fatface', 'Playfair Display', Georgia, serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

a {
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
:focus-visible {
  outline: 3px solid var(--caramel);
  outline-offset: 3px;
}

.svg-defs {
  position: absolute;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--cocoa);
  color: var(--cream);
  font-family: var(--font-serif);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}
.skip-link:focus {
  top: 1rem;
}

/* ---------- vocabulary shared by every section ---------- */
.kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--font-serif);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.84rem;
  color: var(--burgundy);
}
/* tapered double dash either side of the label */
.kicker::before,
.kicker::after {
  content: '';
  flex: 1;
  max-width: 5.5rem;
  height: 6px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 20% 5px / 60% 1.5px no-repeat;
  opacity: 0.8;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.98;
  color: var(--ink);
}
h2 {
  font-size: clamp(2.4rem, 6.2vw, 4.2rem);
  text-align: center;
  margin-top: 0.7rem;
}
.sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--burgundy);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  text-align: center;
  margin-top: 0.7rem;
}

section {
  padding: 5.5rem 1.5rem;
}
.wrap {
  max-width: 1080px;
  margin: 0 auto;
}

/* head flanked by an etched coffee-leaf sprig, mirrored on the right; the artwork is a mask so it takes any colour */
.section-head {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.sprig {
  position: absolute;
  top: 0;
  width: clamp(88px, 11vw, 150px);
  aspect-ratio: 564 / 360;
  background: currentColor;
  mask: url('../assets/sprig.webp') center / contain no-repeat;
  color: var(--brown-line);
  pointer-events: none;
}
.sprig-l {
  left: calc(-1 * clamp(40px, 9vw, 120px));
}
.sprig-r {
  right: calc(-1 * clamp(40px, 9vw, 120px));
  transform: scaleX(-1);
}

/* pale card, thin red outline, blush label plate */
.card {
  background: var(--card);
  border: 1.5px solid var(--red-line);
  border-radius: 14px;
  padding: 0.9rem;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  text-align: center;
  background: var(--blush);
  border-radius: 8px;
  padding: 0.35rem 0.8rem;
}
.card-body {
  text-align: center;
  padding: 1.1rem 0.5rem 0.6rem;
}
.card-link {
  margin-top: 1.2rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.86rem;
  line-height: 1.3;
  padding: 0.85rem 1.5rem;
  text-decoration: none;
  border: 1.5px solid var(--cocoa);
  border-radius: 10px;
  background: var(--cocoa);
  color: var(--cream);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--caramel-deep);
  border-color: var(--caramel-deep);
}
.btn.ghost {
  background: transparent;
  color: var(--cocoa);
}
.btn.ghost:hover {
  background: var(--blush);
  border-color: var(--cocoa);
}

/* boxed label with sparks either side */
.plate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  width: fit-content;
  max-width: 100%;
  margin-top: 1.6rem;
  padding: 0.6rem 1.3rem;
  background: var(--plate);
  border: 1.5px solid var(--amber);
  border-radius: 12px;
  font-family: var(--font-display);
  text-transform: uppercase;
  text-decoration: none;
  font-size: clamp(1.1rem, 3.4vw, 1.5rem);
  line-height: 1.15;
  color: var(--ink);
  transition: background 0.2s ease;
}
.plate:hover {
  background: var(--blush);
}
.plate-spark {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  color: var(--caramel);
}

/* ---------- reveal on scroll (script adds .reveal, so no script means no hidden content) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1.5px solid var(--brown-line);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1.5rem;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.brand-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 1.7rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s;
}
.nav-links a:hover {
  border-bottom-color: var(--caramel);
}
.nav-toggle {
  display: none;
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 3rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 3rem;
}
.hero-copy .kicker {
  justify-content: flex-start;
}
.hero-copy .kicker::before {
  display: none;
}
.hero h1 {
  font-size: clamp(3.6rem, 9.5vw, 7.4rem);
  margin-top: 1.1rem;
  text-wrap: balance;
}
.hero-sub {
  margin-top: 1.5rem;
  max-width: 30rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.5;
  color: var(--burgundy);
}
.hero-ctas {
  margin-top: 2rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* thick brown frame with a hairline inside, on kraft stock */
.hero-card {
  position: relative;
  background: var(--kraft);
  border: 9px solid var(--brown-line);
  padding: 1.1rem 1.1rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-card::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1.5px solid var(--brown-line);
  pointer-events: none;
}
.cup-stage {
  position: relative;
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: 6px;
}
.cup-stage:focus-visible {
  outline: 4px solid var(--burgundy);
  outline-offset: 2px;
  border-radius: 10px;
}
.cup-stage .foam {
  display: block;
  transform-origin: 50% 55%;
  transition: transform 0.15s ease-out;
}
.cup-stage img {
  width: 100%;
  height: auto;
  /* the crop's paper edge melts into the card stock */
  mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%);
}
.cup-stage .fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.boop-tag {
  margin-top: 0.4rem;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--brown-line);
}
.boop-tag strong {
  font-weight: 600;
  font-variant-numeric: lining-nums;
  color: var(--burgundy);
}

/* boop states */
.booped .foam {
  animation: boopBounce 0.7s ease;
}
@keyframes boopBounce {
  30% {
    transform: translateY(-10px) scale(1.03) rotate(-1.5deg);
  }
  60% {
    transform: translateY(3px) rotate(1deg);
  }
}
.ripple {
  fill: none;
  stroke: var(--caramel);
  stroke-width: 6;
  opacity: 0;
  transform-origin: 500px 400px;
}
.booped .ripple {
  animation: ripple 0.9s ease-out;
}
.booped .ripple.r2 {
  animation-delay: 0.15s;
}
@keyframes ripple {
  0% {
    opacity: 0.6;
    transform: scale(0.5);
  }
  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}
.heart {
  fill: var(--red-line);
  opacity: 0;
}
.booped .heart.h1,
.booped .heart.h2 {
  animation: floatheart 1.1s ease-out;
}
.booped .heart.h2 {
  animation-delay: 0.18s;
}
/* every 5th boop: a bigger burst */
.boop-burst .heart.b1 {
  animation: floatheart 1s ease-out;
}
.boop-burst .heart.b2 {
  animation: floatheart 1s ease-out 0.12s;
}
.boop-burst .heart.b3 {
  animation: floatheart 1s ease-out 0.22s;
}
@keyframes floatheart {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  25% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translateY(-90px);
  }
}
/* every 10th boop: she has something to say */
#woof {
  opacity: 0;
  transform-origin: 790px 80px;
}
#woof path {
  fill: var(--paper);
  stroke: var(--brown-line);
  stroke-width: 5;
}
#woof text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 56px;
  fill: var(--burgundy);
}
.woofing #woof {
  animation: woofpop 1.5s ease;
}
@keyframes woofpop {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  12% {
    opacity: 1;
    transform: scale(1.08);
  }
  22% {
    transform: scale(1);
  }
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

/* ---------- three boxed facts ---------- */
.chips {
  list-style: none;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.chips li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.2rem;
  background: var(--plate);
  border: 1.5px solid var(--amber);
  border-radius: 14px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.15rem;
  line-height: 1.15;
}
.chips svg {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  color: var(--caramel);
}

/* ---------- about ---------- */
.about {
  background: var(--kraft);
  border-top: 1.5px solid var(--brown-line);
  border-bottom: 1.5px solid var(--brown-line);
}
.about-copy {
  max-width: 34rem;
  margin: 2.6rem auto 0;
  text-align: center;
  font-size: 1.15rem;
}
.about-lead {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.picture {
  margin: 2.6rem auto 0;
  max-width: 760px;
  border: 9px solid var(--brown-line);
  position: relative;
  background: var(--cocoa);
}
.picture::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1.5px solid var(--kraft);
  pointer-events: none;
}
.picture img {
  width: 100%;
  height: auto;
}

/* ---------- people ---------- */
.team-list {
  max-width: 860px;
  margin: 3rem auto 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.team-list li {
  padding: 1rem 1.7rem;
  background: var(--card);
  border: 1.5px solid var(--red-line);
  border-radius: 14px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--burgundy);
}

/* ---------- 3D latte art: dark brown panel ---------- */
.latte {
  padding: 2rem 1.5rem 5rem;
}
.latte-frame {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.7rem;
  border: 1.5px solid var(--amber);
  border-radius: 34px;
}
.latte-panel {
  position: relative;
  overflow: hidden;
  padding: 3.4rem 1.5rem 3rem;
  text-align: center;
  color: var(--cream);
  background:
    radial-gradient(ellipse 70% 55% at 50% 52%, rgba(242, 170, 109, 0.28), transparent 70%),
    linear-gradient(180deg, var(--cocoa), var(--espresso));
  border-radius: 28px;
}
.latte-panel .sprig {
  top: 1.4rem;
  width: clamp(90px, 14vw, 150px);
  color: var(--amber);
  opacity: 0.9;
}
.latte-panel .sprig-l {
  left: 1.4rem;
}
.latte-panel .sprig-r {
  right: 1.4rem;
}
/* brush-stroke tag */
.ribbon {
  position: relative;
  width: fit-content;
  margin: 0 auto;
  padding: 0.3rem 2rem 0.4rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--cream);
  background: linear-gradient(
    100deg,
    var(--caramel-deep),
    var(--ribbon-dark) 60%,
    var(--caramel-deep)
  );
  clip-path: polygon(
    0 18%,
    4% 0,
    12% 12%,
    30% 0,
    52% 10%,
    74% 0,
    92% 12%,
    100% 4%,
    98% 60%,
    100% 100%,
    76% 90%,
    50% 100%,
    26% 92%,
    6% 100%,
    2% 62%
  );
}
.latte-panel h2 {
  margin-top: 1.4rem;
  font-size: clamp(2.7rem, 8vw, 5.6rem);
  color: var(--cream);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
  text-wrap: balance;
}
.latte-pill {
  width: fit-content;
  max-width: 100%;
  margin: 1.2rem auto 0;
  padding: 0.35rem 1.6rem;
  font-family: var(--font-serif);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: clamp(0.95rem, 2.6vw, 1.25rem);
  color: var(--ink);
  background: linear-gradient(var(--cream), var(--pill-end));
  border-radius: 999px;
}
.latte-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.4rem;
  align-items: center;
  max-width: 820px;
  margin: 2.4rem auto 0;
  text-align: left;
}
.medallion {
  width: min(280px, 70vw);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: var(--kraft);
  border: 5px solid var(--cream);
  box-shadow:
    0 0 0 3px var(--amber),
    0 20px 40px -12px rgba(0, 0, 0, 0.6);
}
.medallion img {
  width: 135%;
  height: auto;
  max-width: none;
  margin: 6% 0 0 -20%;
}
.latte-line {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  line-height: 1.1;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.latte-dots {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.86rem;
  color: var(--cream);
}

/* ---------- find us ---------- */
.find-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin: 3rem auto 0;
  max-width: 820px;
  align-items: stretch;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.45rem 1rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--plate);
  border: 1.5px solid var(--amber);
  border-radius: 16px;
}
.status-chip:empty {
  display: none;
} /* no script, no empty pill */
.status-chip .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--leaf);
  flex: none;
}
.status-chip.open .dot {
  animation: pulse 2.2s ease infinite;
}
.status-chip.closed .dot {
  background: var(--ink-soft);
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(94, 113, 59, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(94, 113, 59, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(94, 113, 59, 0);
  }
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
}
.hours-table td {
  padding: 0.35rem 0;
  border-bottom: 1px dotted var(--brown-line);
}
.hours-table td:last-child {
  text-align: right;
  font-weight: 700;
}
.hours-table tr.today td {
  color: var(--burgundy);
  font-weight: 700;
}

/* ---------- contact ---------- */
.contact {
  background: var(--kraft);
  border-top: 1.5px solid var(--brown-line);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
}
.contact .card {
  background: var(--paper);
}
.contact .card-body a {
  color: var(--burgundy);
  text-decoration-color: rgba(112, 0, 2, 0.4);
  overflow-wrap: anywhere;
}

/* ---------- footer ---------- */
footer {
  background: var(--espresso);
  color: rgba(255, 246, 229, 0.85);
  padding: 3rem 1.5rem 2.4rem;
  text-align: center;
}
.foot-card {
  width: min(300px, 100%);
  margin: 0 auto 1.4rem;
  padding: 1rem 1.2rem 0.8rem;
  background: var(--kraft);
  border: 6px solid var(--brown-line);
  outline: 1.5px solid var(--brown-line);
  outline-offset: -11px;
}
.foot-card img {
  width: 100%;
  height: auto;
}
footer .foot-script {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1.3;
}
footer .foot-caps {
  font-family: var(--font-serif);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.8rem;
  margin-top: 0.7rem;
  color: rgba(255, 246, 229, 0.78);
}
footer .foot-links {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.2rem 1.6rem;
  justify-content: center;
  flex-wrap: wrap;
}
footer .foot-links a {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--amber);
  padding: 0.5rem 0;
}
footer .foot-links a:hover {
  color: var(--gold);
}
footer :focus-visible,
.latte :focus-visible {
  outline-color: var(--gold);
}

/* ---------- 404 ---------- */
.not-found {
  text-align: center;
}
.not-found img {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
}
.not-found h1 {
  font-size: clamp(2.6rem, 8vw, 5rem);
  margin-top: 0.7rem;
}
.not-found-cta {
  margin-top: 2rem;
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .sprig-l {
    left: -1.2rem;
  }
  .sprig-r {
    right: -1.2rem;
  }
}
@media (max-width: 920px) {
  /* phones: headline first, then the picture, then the address and buttons */
  .hero {
    text-align: center;
    padding-top: 2.4rem;
    gap: 1.8rem;
  }
  .hero-copy {
    display: contents;
  }
  .hero-copy > * {
    order: 1;
    grid-column: 1 / -1;
    margin-top: 0;
  }
  .hero h1 {
    margin-top: 0;
  }
  .hero-copy .kicker {
    justify-content: center;
  }
  .hero-copy .kicker::before {
    display: block;
  }
  .hero-sub,
  .plate {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-card {
    order: 2;
    grid-column: 1 / -1;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-copy > .plate,
  .hero-copy > .hero-ctas {
    order: 3;
  }
  .hero-ctas {
    justify-content: center;
    margin-top: 0;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .chips {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  /* small sprigs stay above each heading instead of beside it */
  .section-head {
    padding-top: 2.6rem;
  }
  .sprig {
    width: 72px;
  }
  .sprig-l {
    left: 0;
  }
  .sprig-r {
    right: 0;
  }
  .latte-panel .sprig {
    width: 64px;
    top: 0.9rem;
  }
  .latte-panel .sprig-l {
    left: 0.8rem;
  }
  .latte-panel .sprig-r {
    right: 0.8rem;
  }
  .latte-body {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.6rem;
  }
}
/* the email address is long: it gets a full row before the grid collapses */
@media (max-width: 1000px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid .card:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  .find-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: block;
    background: none;
    border: 1.5px solid var(--brown-line);
    border-radius: 8px;
    font-size: 1.2rem;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem 0.8rem;
    color: var(--ink);
    cursor: pointer;
  }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1.5px solid var(--brown-line);
    padding: 0.8rem 1.5rem 1.2rem;
    gap: 0.2rem;
  }
  .nav-links.open a {
    display: block;
    padding: 0.7rem 0;
  }
}
@media (max-width: 640px) {
  section {
    padding: 4rem 1.25rem;
  }
  .latte {
    padding: 1.5rem 1rem 4rem;
  }
  .latte-panel {
    padding: 3.8rem 1rem 2rem;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .hero-card {
    border-width: 7px;
    padding: 0.8rem 0.8rem 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .booped .foam,
  .booped .ripple,
  .booped .heart,
  .boop-burst .heart,
  .woofing #woof,
  .status-chip.open .dot {
    animation: none;
  }
  .cup-stage .foam,
  .btn,
  .plate {
    transition: none;
  }
}

/* ---------- opening announcement (banner + poster); both hide after their data-hide-after date ---------- */
[hidden] {
  display: none;
}
.announce {
  position: relative;
  overflow: hidden;
  background: var(--cocoa);
  color: var(--cream);
  text-align: center;
}
.announce a {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 0.9rem;
  padding: 0.75rem 1rem;
  color: inherit;
  text-decoration: none;
}
.announce-text {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}
.announce-cta {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.announce a:hover .announce-cta,
.announce a:focus-visible .announce-cta {
  color: var(--cream);
}
.announce a:focus-visible {
  outline-color: var(--gold);
  outline-offset: -4px;
}
.opening {
  padding-bottom: 3.5rem;
}
.picture.poster {
  max-width: 520px;
}

@media (max-width: 560px) {
  .announce a {
    padding: 0.45rem 0.8rem;
  }
  .announce-text {
    font-size: 0.95rem;
  }
  .announce-cta {
    font-size: 0.95rem;
  }
  .picture.poster {
    border-width: 6px;
  }
}

/* snow in the banner: main.js adds the flakes and sets --x, --s, --o, --d, --delay, --drift on each */
.snow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.flake {
  position: absolute;
  top: -8px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #fff;
  opacity: var(--o);
  animation: snowfall var(--d) linear var(--delay) infinite;
}
@keyframes snowfall {
  to {
    transform: translate3d(var(--drift), 90px, 0);
  }
}
