/* Auntie's Place - shared styles for all pages */
:root {
  --bg: #fbf7fb;
  --surface: #ffffff;
  --ink: #2e1030;
  --plum: #5b1f5e;
  --frost: #f6d3e2;
  --muted: #6c586e;
  --line: #eadbe9;
  --sprinkle: #c8661c;
  --on-plum: #fff7fc;
  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-script: "Yellowtail", "Brush Script MT", cursive;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b0f1c; --surface: #281829; --ink: #f6ecf4; --plum: #dca8df; --frost: #5e2c48;
    --muted: #bba7ba; --line: #3d2a3e; --sprinkle: #f0a15c; --on-plum: #1b0f1c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b0f1c; --surface: #281829; --ink: #f6ecf4; --plum: #dca8df; --frost: #5e2c48;
  --muted: #bba7ba; --line: #3d2a3e; --sprinkle: #f0a15c; --on-plum: #1b0f1c; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
}
img { max-width: 100%; display: block; }
a { color: var(--plum); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sprinkle); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.script { font-family: var(--font-script); color: var(--sprinkle); font-size: 1.6rem; line-height: 1; }
.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
section { padding-block: clamp(56px, 8vw, 96px); }
.section-head { display: grid; gap: 10px; margin-bottom: 36px; max-width: 62ch; }
.lede { color: var(--muted); font-size: 1.1rem; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
header.site {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
/* Logo is line art used as a mask, so it takes the theme's plum in light and dark mode. */
.logo-mark {
  display: block; aspect-ratio: 775 / 690; background: var(--plum);
  -webkit-mask: url(images/logo-mark.png) center / contain no-repeat;
  mask: url(images/logo-mark.png) center / contain no-repeat;
}
.brand { display: block; text-decoration: none; }
.brand .logo-mark { width: 72px; }
nav.main { display: flex; gap: clamp(12px, 3vw, 28px); flex-wrap: wrap; justify-content: flex-end; }
nav.main a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem; }
nav.main a:hover { color: var(--plum); text-decoration: underline; text-underline-offset: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  font: 700 1rem var(--font-body); text-decoration: none; border: 2px solid var(--plum); cursor: pointer;
}
.btn.solid { background: var(--plum); color: var(--on-plum); }
.btn.ghost { background: transparent; color: var(--plum); }
.btn:hover { transform: translateY(-1px); }

/* Hero */
.hero { padding-block: clamp(36px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); }
.hero h1 em { font-style: normal; color: var(--plum); }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { color: var(--muted); font-size: .95rem; display: flex; gap: 6px 18px; flex-wrap: wrap; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: 22px 22px 22px 120px; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.hero-logo { width: clamp(150px, 22vw, 210px); }

/* Menu */
.menu-band { background: var(--surface); border-block: 1px solid var(--line); }
.menu-group { display: grid; gap: 20px; margin-bottom: 48px; }
.menu-group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-bottom: 12px; border-bottom: 2px dotted var(--plum); }
.menu-group-head h2, .menu-group-head h3 { font-size: 1.6rem; }
.price { font-weight: 700; color: var(--plum); font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.treats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 18px; }
.treats li { display: grid; gap: 8px; justify-items: center; text-align: center; min-width: 0; }
.treats img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(46, 16, 48, .16)); transition: transform .2s; }
.treats li:hover img { transform: translateY(-3px) rotate(-2deg); }
.treats span { font-weight: 500; font-size: .98rem; line-height: 1.3; }
.menu-group.fudge { margin-bottom: 32px; }
.menu-foot { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.menu-note { color: var(--muted); font-size: .95rem; max-width: 52ch; }

.favs { margin-top: 72px; display: grid; gap: 24px; padding: clamp(20px, 4vw, 36px); border-radius: 22px; background: var(--frost); }
.fav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fav { display: grid; gap: 10px; min-width: 0; justify-items: center; text-align: center; margin: 0; }
.fav img { width: 100%; max-width: 260px; aspect-ratio: 4 / 3; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(46, 16, 48, .2)); }
.fav span { font-weight: 700; }

/* Past menus */
.past-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.past-grid button { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); cursor: zoom-in; text-align: left; }
.past-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.past-grid span { display: block; padding: 10px 12px; font-size: .92rem; font-weight: 500; color: var(--ink); }

/* Order */
.order .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.order-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
.order-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; counter-increment: s; }
.order-steps li::before {
  content: counter(s); width: 40px; height: 40px; border-radius: 50%; background: var(--frost); color: var(--ink);
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.1rem;
}
.order-card {
  background: var(--plum); color: var(--on-plum); border-radius: 22px; padding: clamp(24px, 4vw, 40px);
  display: grid; gap: 16px; min-width: 0;
}
.order-card .script { color: var(--frost); }
.email-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.email {
  font: 700 clamp(1.05rem, 2.6vw, 1.35rem) var(--font-body); user-select: all; overflow-wrap: anywhere;
  background: color-mix(in srgb, var(--on-plum) 14%, transparent); padding: 8px 14px; border-radius: 10px;
}
.order-card .btn { border-color: var(--on-plum); }
.order-card .btn.solid { background: var(--on-plum); color: var(--plum); }
.order-card .btn.ghost { color: var(--on-plum); }
.order-card small { opacity: .85; }

/* Events */
.events-band { background: var(--surface); border-block: 1px solid var(--line); }
.events-band .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.events-list { display: grid; gap: 14px; margin-top: 24px; }
.event { display: grid; grid-template-columns: 74px 1fr; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.event .date { text-align: center; border-radius: 10px; background: var(--frost); padding: 8px 4px; line-height: 1.1; }
.event .date b { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; }
.event .date small { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .72rem; }
.event p { color: var(--muted); font-size: .95rem; }
.events-empty { margin-top: 24px; padding: 20px; border: 2px dashed var(--line); border-radius: var(--radius); display: grid; gap: 8px; }
.booth-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.booth-photos img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.booth-photos figcaption { grid-column: 1 / -1; color: var(--muted); font-size: .92rem; }

/* About */
.about .wrap { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-logo { width: 100%; max-width: 260px; }
.about-copy { display: grid; gap: 16px; max-width: 62ch; min-width: 0; }
.offer-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.offer-tags span { border: 1px solid var(--plum); color: var(--plum); border-radius: 999px; padding: 4px 14px; font-size: .92rem; font-weight: 500; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 36px; color: var(--muted); font-size: .92rem; }
footer .wrap { display: grid; gap: 14px; }
footer .row { display: flex; gap: 10px 24px; flex-wrap: wrap; justify-content: space-between; }

/* Lightbox */
dialog { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); }
dialog::backdrop { background: rgba(20, 8, 22, .82); }
dialog img { border-radius: 12px; max-height: 86vh; width: auto; margin: 0 auto; }
dialog button { position: absolute; top: 8px; right: 8px; background: #fff; color: #2e1030; border: 0; border-radius: 999px; padding: 8px 14px; font: 700 .95rem var(--font-body); cursor: pointer; }

/* Current page in the nav */
nav.main a[aria-current="page"] { color: var(--plum); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Page title band for inner pages */
.page-head { padding-block: clamp(36px, 6vw, 64px) 0; }
.page-head .wrap { display: grid; gap: 10px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 22ch; }
.page-head .lede { max-width: 60ch; }
.page-head + section { padding-top: clamp(32px, 5vw, 56px); }

/* Home page previews */
.treats.teaser { grid-template-columns: repeat(6, 1fr); }
.teaser-foot { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-top: 32px; }
.teaser-foot .prices { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.home-split .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.panel { border-radius: 22px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; align-content: start; min-width: 0; }
.panel.events-panel { background: var(--surface); border: 1px solid var(--line); }
.panel .events-list, .panel .events-empty { margin-top: 0; }
.panel .btn { justify-self: start; }
.about h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.about-teaser .wrap { display: grid; grid-template-columns: 180px 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.about-teaser .about-logo { max-width: 180px; }

@media (max-width: 820px) {
  .hero .wrap, .order .wrap, .events-band .wrap, .about .wrap, .home-split .wrap { grid-template-columns: 1fr; }
  .fav-grid { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .fav span { font-size: .9rem; }
  .about-logo { max-width: 180px; }
  .treats.teaser { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  nav.main { gap: 12px; }
  nav.main a { font-size: .9rem; }
  .brand .logo-mark { width: 60px; }
  .treats, .treats.teaser { grid-template-columns: repeat(2, 1fr); }
  .about-teaser .wrap { grid-template-columns: 1fr; }
  .about-teaser .about-logo { max-width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
  .treats img { transition: none; }
  .treats li:hover img { transform: none; }
}
