/* ============================================================
   Ember & Oat — warm, artisanal coffee-shop demo
   Cream paper, espresso brown, terracotta accent
   ============================================================ */

:root {
  --cream: #f6efe3;
  --cream-2: #efe5d4;
  --paper: #fbf7ef;
  --espresso: #2c1c12;
  --coffee: #3a2418;
  --coffee-soft: #5a4334;
  --terracotta: #c96f43;
  --terracotta-dark: #a8552f;
  --oat: #d8c4a0;
  --ink: #2c1c12;
  --muted: #6b5847;
  --line: rgba(58, 36, 24, 0.16);
  --shadow: 0 18px 40px -22px rgba(44, 28, 18, 0.55);
  --shadow-sm: 0 8px 20px -14px rgba(44, 28, 18, 0.5);
  --radius: 16px;
  --radius-lg: 26px;
  --maxw: 1180px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Grain texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

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

a { color: var(--terracotta-dark); }

h1, h2, h3 { line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 0.4em; }

.container { width: min(var(--maxw), 92%); margin-inline: auto; position: relative; z-index: 1; }

.visually-hidden, .field caption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--coffee); color: var(--cream);
  padding: 10px 16px; border-radius: 10px; z-index: 200;
  text-decoration: none; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---- Focus visibility ---- */
:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--serif); font-weight: 600; font-size: 1rem;
  padding: 0.78em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease), color 0.18s;
}
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--coffee); border-color: var(--line); }
.btn-ghost:hover { background: var(--cream-2); transform: translateY(-2px); border-color: var(--coffee-soft); }
.btn-link { background: none; border: none; color: var(--muted); text-decoration: underline; padding: 0.4em 0.6em; }
.btn-link:hover { color: var(--coffee); }
.btn-block { width: 100%; }

.eyebrow {
  font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; color: var(--terracotta-dark); margin: 0 0 0.6em;
  font-family: var(--serif); font-style: italic;
}

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 239, 227, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--coffee); }
.brand-mark { color: var(--coffee); display: inline-flex; }
.brand-text { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-text em { font-style: italic; color: var(--terracotta); font-weight: 500; }
.brand-steam { animation: brandsteam 3s ease-in-out infinite; transform-origin: center; }
@keyframes brandsteam { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

.primary-nav ul { list-style: none; display: flex; gap: 0.4rem; margin: 0; padding: 0; align-items: center; }
.primary-nav a {
  text-decoration: none; color: var(--coffee); font-weight: 600; font-size: 1rem;
  padding: 0.5em 0.85em; border-radius: 999px; transition: background 0.18s, color 0.18s;
}
.primary-nav a:hover { background: var(--cream-2); }
.nav-cta { background: var(--coffee); color: var(--cream) !important; }
.nav-cta:hover { background: var(--espresso) !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; cursor: pointer;
}
.nav-toggle-bar { width: 22px; height: 2px; background: var(--coffee); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--cream) 0%, var(--cream-2) 60%, var(--oat) 130%); }
.hero-grain { position: absolute; inset: 0; background: radial-gradient(120% 80% at 80% 10%, rgba(201,111,67,0.18), transparent 60%); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem; align-items: center; padding: 3.2rem 0 3.6rem; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -0.02em; }
.lead { font-size: 1.18rem; color: var(--coffee-soft); max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 1.1rem; }
.hero-status { font-size: 0.96rem; font-weight: 600; color: var(--muted); margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.hero-status .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.status-open { color: #2f6b3a; }
.status-closed { color: #9a3b2c; }

.hero-art { position: relative; display: flex; justify-content: center; }
.hero-cup { position: relative; width: min(360px, 84%); border-radius: 240px 240px 30px 30px; overflow: visible; }
.hero-cup img { border-radius: 30px; box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 8/9; }
.hero-bean { position: absolute; width: 26px; height: 38px; background: var(--coffee); border-radius: 50%; box-shadow: inset 0 0 0 2px var(--terracotta-dark); }
.hero-bean::after { content: ""; position: absolute; inset: 6px 11px; border-left: 2px solid var(--terracotta-dark); border-radius: 50%; }
.bean-1 { top: 6%; left: 2%; transform: rotate(-20deg); animation: float 6s ease-in-out infinite; }
.bean-2 { bottom: 8%; right: 4%; transform: rotate(30deg); animation: float 7s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-20deg); } 50% { transform: translateY(-12px) rotate(-12deg); } }

/* Steam */
.steam { position: absolute; top: -38px; left: 50%; transform: translateX(-50%); width: 60px; height: 60px; z-index: 2; }
.steam span {
  position: absolute; bottom: 0; left: 50%; width: 8px; height: 38px;
  background: linear-gradient(to top, rgba(255,255,255,0.7), rgba(255,255,255,0));
  border-radius: 50%; filter: blur(3px); opacity: 0;
  animation: steam 3.4s ease-in-out infinite;
}
.steam span:nth-child(1) { margin-left: -16px; animation-delay: 0s; }
.steam span:nth-child(2) { margin-left: -4px; animation-delay: 0.7s; }
.steam span:nth-child(3) { margin-left: 8px; animation-delay: 1.4s; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(0) scaleX(1); }
  30% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-44px) scaleX(2.2); }
}

/* ============ Value strip ============ */
.strip { background: var(--coffee); color: var(--cream); }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; padding: 2.6rem 0; }
.strip-item h3 { color: var(--cream); font-size: 1.2rem; margin-bottom: 0.3em; }
.strip-item p { color: var(--oat); margin: 0; font-size: 1rem; }
.strip-icon { color: var(--terracotta); display: inline-flex; margin-bottom: 0.6rem; }

/* ============ Sections ============ */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--paper); }
.section-head { max-width: 60ch; margin-bottom: 2.2rem; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.section-sub { color: var(--coffee-soft); font-size: 1.1rem; margin: 0; }

/* ============ Menu ============ */
.menu-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.8rem; border-bottom: 2px solid var(--line); padding-bottom: 0.4rem; }
.menu-tab {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--muted);
  background: none; border: none; padding: 0.55em 1.1em; border-radius: 999px; cursor: pointer;
  position: relative; transition: color 0.2s, background 0.2s;
}
.menu-tab:hover { color: var(--coffee); background: var(--cream-2); }
.menu-tab.is-active { color: #fff; background: var(--terracotta); }

.menu-panel { animation: fadeUp 0.4s var(--ease); }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 2.5rem; }
.menu-row {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0.6rem;
  padding: 0.85rem 0; border-bottom: 1px dashed var(--line);
}
.menu-row-main { display: flex; flex-direction: column; }
.menu-row-name { font-weight: 600; font-size: 1.08rem; }
.menu-row-name .tag { font-size: 0.7rem; font-style: italic; color: var(--terracotta-dark); margin-left: 6px; letter-spacing: 0.04em; }
.menu-row-desc { color: var(--muted); font-size: 0.92rem; line-height: 1.4; }
.menu-row-price { font-weight: 700; color: var(--coffee); font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-note { margin-top: 1.8rem; color: var(--muted); font-style: italic; font-size: 0.96rem; }

/* ============ Visit / hours / map ============ */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: start; }
.status-card {
  display: flex; align-items: center; gap: 0.9rem; background: var(--cream);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem;
  box-shadow: var(--shadow-sm); margin: 1.4rem 0;
}
.status-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--muted); flex-shrink: 0; box-shadow: 0 0 0 0 rgba(47,107,58,0.5); }
.status-dot.open { background: #3a8a4c; animation: pulse 2.2s infinite; }
.status-dot.closed { background: #b14a38; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(58,138,76,0.5);} 70% { box-shadow: 0 0 0 12px rgba(58,138,76,0);} 100% { box-shadow: 0 0 0 0 rgba(58,138,76,0);} }
.status-label { font-weight: 700; font-size: 1.1rem; margin: 0; }
.status-detail { margin: 0; color: var(--muted); font-size: 0.95rem; }

.hours-table { width: 100%; border-collapse: collapse; margin: 0.4rem 0 1.4rem; }
.hours-table th, .hours-table td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
.hours-table th[scope="col"] { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
.hours-table tr.today td { font-weight: 700; color: var(--terracotta-dark); }
.hours-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

.nap { font-style: normal; line-height: 1.7; margin: 0.6rem 0 1.2rem; }
.nap strong { font-size: 1.05rem; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.visit-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--cream); }
.visit-map iframe { width: 100%; height: 440px; border: 0; display: block; }
.map-link { display: block; text-align: center; padding: 0.7rem; background: var(--cream); font-weight: 600; text-decoration: none; }
.map-link:hover { background: var(--cream-2); }

/* ============ Gallery ============ */
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.gallery-grid li:nth-child(1), .gallery-grid li:nth-child(6) { grid-column: span 2; grid-row: span 2; }
.gallery-item { display: block; width: 100%; height: 100%; padding: 0; border: none; cursor: pointer; border-radius: var(--radius); overflow: hidden; background: var(--cream-2); position: relative; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; transition: transform 0.5s var(--ease); }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.08); }
.gallery-item::after { content: "⤢"; position: absolute; right: 10px; bottom: 8px; color: #fff; background: rgba(44,28,18,0.55); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; opacity: 0; transition: opacity 0.25s; }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }

/* ============ Lightbox ============ */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(28,18,12,0.92); display: grid; place-items: center; padding: 4vw; }
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; max-width: 90vw; max-height: 86vh; text-align: center; }
.lightbox-figure img { max-width: 100%; max-height: 78vh; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); margin-inline: auto; }
.lightbox-figure figcaption { color: var(--oat); margin-top: 0.9rem; font-style: italic; }
.lightbox-close, .lightbox-nav { position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: none; cursor: pointer; border-radius: 50%; display: grid; place-items: center; transition: background 0.2s; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.lightbox-close { top: 18px; right: 18px; width: 46px; height: 46px; font-size: 1.8rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; }
.lightbox-prev { left: 2vw; }
.lightbox-next { right: 2vw; }

/* ============ Events ============ */
.events-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.event {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 1.2rem; align-items: center;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm); transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.event:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.event-date { text-align: center; background: var(--coffee); color: var(--cream); border-radius: 12px; padding: 0.5rem; }
.event-date .day { font-size: 1.7rem; font-weight: 800; display: block; line-height: 1; }
.event-date .mon { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--oat); }
.event-body h3 { margin: 0 0 0.2em; font-size: 1.2rem; }
.event-body p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.event-time { font-style: italic; color: var(--terracotta-dark); font-weight: 600; }

/* ============ Loyalty ============ */
.loyalty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem; align-items: center; }
.loyalty-points { padding-left: 1.1rem; color: var(--coffee-soft); }
.loyalty-points li { margin-bottom: 0.4rem; }
.loyalty-card {
  background: linear-gradient(150deg, var(--coffee), var(--espresso));
  color: var(--cream); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.loyalty-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 90% 0%, rgba(201,111,67,0.35), transparent 55%); }
.loyalty-card-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; position: relative; }
.loyalty-count { background: rgba(255,255,255,0.14); padding: 0.3em 0.8em; border-radius: 999px; font-variant-numeric: tabular-nums; }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.7rem; margin: 1.5rem 0; position: relative; }
.stamp {
  aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(216,196,160,0.5);
  display: grid; place-items: center; color: rgba(216,196,160,0.5); font-size: 1.4rem; transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}
.stamp.filled { background: var(--terracotta); border-style: solid; border-color: var(--terracotta); color: #fff; transform: scale(1); }
.stamp.just-stamped { animation: stampPop 0.45s var(--ease); }
@keyframes stampPop { 0% { transform: scale(0.4) rotate(-25deg); } 60% { transform: scale(1.18) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }
.loyalty-reward { background: rgba(255,255,255,0.16); border-radius: 12px; padding: 0.8rem 1rem; font-weight: 700; text-align: center; position: relative; }
.loyalty-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; position: relative; margin-top: 1rem; }
.loyalty-card .btn-link { color: var(--oat); }
.loyalty-card .btn-link:hover { color: #fff; }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 2.6rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.7rem; }
.contact-list li { display: flex; align-items: center; gap: 0.7rem; }
.contact-form { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.field label { font-weight: 600; margin-bottom: 0.4rem; font-size: 0.98rem; }
.field input, .field select, .field textarea {
  font-family: var(--serif); font-size: 1rem; padding: 0.7em 0.85em; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(201,111,67,0.18); }
.field textarea { resize: vertical; }
.field.invalid input, .field.invalid textarea { border-color: #b14a38; }
.field-error { color: #b14a38; font-size: 0.85rem; min-height: 1em; margin-top: 0.3rem; font-weight: 600; }
.form-success { background: rgba(58,138,76,0.14); color: #2f6b3a; border-radius: 12px; padding: 0.9rem 1rem; font-weight: 600; margin-top: 1rem; text-align: center; }

/* ============ Footer ============ */
.site-footer { background: var(--espresso); color: var(--oat); padding-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.2rem; }
.footer-brand .brand-text { color: var(--cream); }
.footer-brand p { max-width: 32ch; color: var(--oat); }
.footer-col h3 { color: var(--cream); font-size: 1.05rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0 0 0.8rem; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a, .footer-social a { color: var(--oat); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover, .footer-social a:hover { color: var(--terracotta); }
.footer-social { display: flex; gap: 1rem; }
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; font-variant-numeric: tabular-nums; }
.footer-hours .today { color: var(--cream); font-weight: 700; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; border-top: 1px solid rgba(216,196,160,0.22); padding: 1.4rem 0; font-size: 0.92rem; }
.footer-base p { margin: 0; }
.footer-credit a { color: var(--terracotta); font-weight: 700; text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }

/* ============ Scroll reveal ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero-art { order: -1; }
  .hero-cup { width: min(300px, 70%); }
  .visit-grid, .loyalty-grid, .contact-grid { grid-template-columns: 1fr; }
  .menu-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 64px 0 auto 0; background: var(--cream);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); z-index: 99;
  }
  .primary-nav.open { max-height: 80vh; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.6rem 5%; }
  .primary-nav a { padding: 0.85em 0.6em; border-radius: 10px; display: block; }
  .nav-cta { text-align: center; margin-top: 0.4rem; }
  .strip-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid li:nth-child(1), .gallery-grid li:nth-child(6) { grid-column: span 2; grid-row: auto; }
  .event { grid-template-columns: 70px 1fr; }
  .event .btn { grid-column: 1 / -1; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .lightbox-prev { left: 8px; } .lightbox-next { right: 8px; }
}

@media (max-width: 400px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid li:nth-child(1), .gallery-grid li:nth-child(6) { grid-column: auto; }
  .stamps { grid-template-columns: repeat(3, 1fr); }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .steam, .bean-1, .bean-2, .brand-steam, .status-dot.open { animation: none !important; }
}
