/* Another 1 Bitz Donut — hand-drawn sketchbook style */

:root {
  --paper: #f7f1e3;
  --paper-dark: #ece3cf;
  --ink: #2d2620;
  --ink-soft: #6b5f52;
  --glaze: #f08fb0;
  --glaze-dark: #d96a91;
  --choc: #7a4a2e;
  --mustard: #f2c14e;
  --mint: #8fd3c1;
  --radius: 14px;
  --font-display: "Rubik Bubbles", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-hand: "Patrick Hand", "Comic Sans MS", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  /* faint paper grain */
  background-image:
    radial-gradient(rgba(45, 38, 32, 0.035) 1px, transparent 1px),
    radial-gradient(rgba(45, 38, 32, 0.025) 1px, transparent 1px);
  background-size: 18px 18px, 27px 27px;
  background-position: 0 0, 9px 13px;
  color: var(--ink);
  font-family: var(--font-hand);
  font-size: 1.2rem;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--choc); }

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

/* ---------- Sketchy box (pencil-drawn border look) ---------- */
.sketch {
  border: 2.5px solid var(--ink);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  background: #fffdf7;
  box-shadow: 4px 5px 0 rgba(45, 38, 32, 0.12);
}

/* ---------- Header + hamburger ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(247, 241, 227, 0.92);
  backdrop-filter: blur(4px);
  border-bottom: 2px dashed rgba(45, 38, 32, 0.25);
}

.menu-btn {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  border: 2.5px solid var(--ink);
  border-radius: 6px 10px 5px 9px;
  background: #fffdf7;
  box-shadow: 3px 3px 0 rgba(45, 38, 32, 0.15);
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--ink);
  border-radius: 3px;
  position: relative;
  transition: transform 0.25s, background 0.25s;
}
.menu-btn span::before,
.menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -8px; }
.menu-btn span::after { top: 8px; }

.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-8px) rotate(-45deg); }

.header-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* ---------- Slide-out nav (sketch page 1) ---------- */
.site-nav {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(380px, 88vw);
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 5.5rem 1.75rem 2rem;
  background: var(--paper);
  border-right: 2.5px solid var(--ink);
  transform: translateX(-105%);
  transition: transform 0.3s ease;
}
.menu-open .site-nav { transform: translateX(0); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }

.site-nav li a {
  display: block;
  padding: 0.6rem 0.25rem 0.3rem;
  font-size: 2.2rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2.5px solid var(--ink);
  margin-bottom: 1.1rem;
}
.site-nav li a:hover,
.site-nav li a[aria-current="page"] { color: var(--glaze-dark); }

.site-nav .nav-contact {
  margin-top: auto;
  align-self: center;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 0 1.5rem;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(45, 38, 32, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.menu-open .nav-backdrop { opacity: 1; pointer-events: auto; }

/* ---------- Page layout ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* ---------- Hero / title ---------- */
.hero { text-align: center; margin: 0.5rem 0 2rem; }

.brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 7.5vw, 5rem);
  line-height: 1.05;
  margin: 0;
  color: var(--paper);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--glaze);
  word-break: break-word;
}
.brand .one { color: var(--mustard); }

.tagline {
  margin: 0.5rem 0 0;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.since { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }

.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-align: center;
  font-size: clamp(2rem, 6vw, 3.4rem);
  margin: 0.5rem 0 1.75rem;
  color: var(--paper);
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--glaze);
}

/* ---------- Home grid (sketch page 2) ---------- */
.home-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  grid-template-areas:
    "where"
    "pics"
    "doodles";
}

.doodles { grid-area: doodles; min-height: 220px; }
.where   { grid-area: where; padding: 1.5rem; }
.pics    { grid-area: pics; display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; }

@media (min-width: 900px) {
  .home-grid {
    grid-template-columns: 1fr 2.2fr 1.1fr;
    grid-template-areas: "doodles where pics";
    align-items: start;
  }
  .pics { grid-template-columns: 1fr; }
}

.doodles svg { width: 100%; height: 100%; max-height: 520px; }

.where h2,
.where h3 {
  text-align: center;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0 0 0.75rem;
}
.where h2 { font-size: 1.8rem; }
.where h3 { font-size: 1.5rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 2px solid var(--ink); }

.map-frame {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  padding: 0;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.map-note { text-align: center; color: var(--ink-soft); font-size: 1rem; margin: 0.6rem 0 0; }

.confirmed { display: block; text-align: center; font-size: 1rem; color: var(--ink-soft); margin: -0.6rem 0 1rem; text-transform: none; }

.events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .events { grid-template-columns: 1fr 1fr; } }

.events li { display: flex; gap: 0.75rem; align-items: baseline; }
.events .date {
  flex: 0 0 auto;
  min-width: 3.4rem;
  font-weight: 700;
  color: var(--glaze-dark);
}

.photo {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  margin: 0;
  font-size: 1.8rem;
  color: var(--ink-soft);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Menu page ---------- */
.menu-section { margin-bottom: 2.5rem; }
.menu-section h2 {
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.9rem;
  margin: 0 0 1rem;
  border-bottom: 2.5px solid var(--ink);
  display: inline-block;
  padding-right: 1rem;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.menu-item { padding: 1.1rem 1.25rem; }
.menu-item header { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.menu-item h3 { margin: 0; font-size: 1.45rem; font-weight: 400; }
.menu-item .price { font-weight: 700; color: var(--glaze-dark); white-space: nowrap; }
.menu-item p { margin: 0.35rem 0 0; color: var(--ink-soft); font-size: 1.1rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.tag {
  font-size: 0.9rem;
  padding: 0 0.6rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
}
.tag.vg { background: var(--mint); }
.tag.gf { background: var(--mustard); }

/* ---------- Text pages (policies / contact) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose .sketch { padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.prose h2 { font-weight: 400; text-transform: uppercase; font-size: 1.6rem; margin: 0 0 0.5rem; }
.prose p, .prose ul { margin: 0.4rem 0; }

.contact-form { display: grid; gap: 1rem; }
.contact-form label { display: grid; gap: 0.25rem; }
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 1.15rem;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--ink);
  border-radius: 8px 12px 7px 10px;
  background: #fffdf7;
  color: var(--ink);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

.btn {
  justify-self: start;
  font: inherit;
  font-size: 1.3rem;
  padding: 0.5rem 1.6rem;
  cursor: pointer;
  color: var(--ink);
  background: var(--glaze);
  border: 2.5px solid var(--ink);
  border-radius: 12px 8px 14px 9px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.socials { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; padding: 0; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  border-top: 2px dashed rgba(45, 38, 32, 0.25);
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.site-footer a { color: var(--ink); }

/* Placeholder text you still need to fill in */
.todo { background: rgba(242, 193, 78, 0.35); border-radius: 4px; padding: 0 0.2rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
