/* ============================================================
   49 GRIND. "small-town craft donut counter"
   Kraft paper + espresso + bold magenta. Fraunces / Hanken / Caveat.
   ============================================================ */

:root {
  --paper:      #f2e7d4;   /* kraft cream base            */
  --paper-2:    #ecdcc2;   /* deeper kraft for panels     */
  --cream:      #fbf4e8;   /* lightest, cards/text-on-dark*/
  --espresso:   #1c1208;   /* near-black brown            */
  --espresso-2: #2a1c10;   /* dark section secondary      */
  --ink:        #2a1c10;   /* body text on paper          */
  --ink-soft:   #7a6347;   /* muted body                  */
  --magenta:    #e91e8c;   /* brand hot pink              */
  --magenta-dk: #bf1271;   /* pressed/shadow magenta      */
  --gold:       #eda52d;   /* caramel accent              */
  --pink-tint:  #ffd9ec;   /* soft pink wash              */
  --line:       #d8c4a4;   /* hairline on kraft           */

  --font-disp:  'Fraunces', Georgia, serif;
  --font-body:  'Hanken Grotesk', system-ui, sans-serif;
  --font-hand:  'Caveat', 'Hanken Grotesk', cursive;

  --maxw: 1180px;
  --pad: clamp(22px, 6vw, 80px);
  --shadow-pop: 5px 5px 0 var(--espresso);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.ic { width: 1em; height: 1em; display: inline-block; fill: none; vertical-align: -0.12em; }

/* ---------- paper grain overlay ---------- */
.grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%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.07'/%3E%3C/svg%3E");
}

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-disp); font-weight: 900; line-height: 0.98; letter-spacing: -0.015em; }
h1 { font-size: clamp(46px, 8.5vw, 104px); }
h2 { font-size: clamp(32px, 5vw, 56px); }
h3 { font-size: clamp(22px, 3vw, 30px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 800;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--magenta); margin-bottom: 16px;
}
.eyebrow.light { color: var(--gold); }
.eyebrow::before { content:""; width: 26px; height: 2.5px; background: currentColor; border-radius: 2px; }

.sec-head { max-width: 620px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-sub { font-size: clamp(15px, 1.6vw, 18px); color: var(--ink-soft); margin-top: 14px; }

/* ---------- buttons (chunky sticker press) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 800; font-size: 14px;
  letter-spacing: 0.01em; line-height: 1;
  padding: 14px 22px; border-radius: 40px; cursor: pointer;
  border: 2.5px solid var(--espresso);
  transition: transform .14s ease, box-shadow .14s ease, background .2s ease;
}
.btn .ic { width: 17px; height: 17px; stroke: currentColor; }
.btn-cta { background: var(--magenta); color: #fff; box-shadow: var(--shadow-pop); }
.btn-cta:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--espresso); }
.btn-cta:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--espresso); }
.btn-lg { padding: 17px 28px; font-size: 15px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13px; color: var(--ink);
  background: var(--cream); border: 2px dashed var(--line);
  padding: 11px 16px; border-radius: 40px;
}
.badge .ic { width: 18px; height: 18px; stroke: var(--magenta); }

/* ============================================================
   NAV
   ============================================================ */
#nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(242,231,212,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--espresso);
  transition: box-shadow .25s ease;
}
#nav.scrolled { box-shadow: 0 6px 0 -2px rgba(28,18,8,0.12); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 12px var(--pad); height: 70px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand-logo { height: 46px; width: auto; display: block; }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-weight: 700; font-size: 14px; color: var(--ink); position: relative; padding: 4px 0;
}
.nav-links a::after {
  content:""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2.5px;
  background: var(--magenta); border-radius: 2px; transition: width .22s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { padding: 11px 20px; }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto; }
.nav-hamburger span { display: block; width: 26px; height: 2.6px; background: var(--espresso); border-radius: 2px; transition: transform .25s, opacity .25s; }
#nav.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
#nav.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
#nav.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
#hero { position: relative; padding: clamp(48px,7vw,92px) var(--pad) clamp(60px,8vw,104px); overflow: hidden; }
.hero-blob {
  position: absolute; z-index: 0; right: -6%; top: 8%;
  width: min(54vw, 620px); aspect-ratio: 1;
  background: radial-gradient(circle at 40% 35%, var(--pink-tint), var(--magenta) 78%);
  border-radius: 47% 53% 62% 38% / 44% 47% 53% 56%;
  opacity: 0.22; filter: blur(6px);
}
.hero-grid {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(28px,4vw,60px); align-items: center;
}
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
}
.kicker-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 0 4px var(--pink-tint); }
.hero-text h1 { margin: 18px 0 0; color: var(--espresso); }
.hero-text h1 em { font-style: italic; font-weight: 900; color: var(--magenta); white-space: nowrap; }
.hero-text > p { font-size: clamp(16px,1.7vw,19px); color: var(--ink-soft); max-width: 430px; margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.scrawl { font-family: var(--font-hand); font-size: 26px; color: var(--magenta); transform: rotate(-3deg); margin-top: 26px; }
.scrawl::before { content:"\21B3  "; }

.hero-media { position: relative; display: grid; place-items: center; }
.photo-tilt {
  position: relative; width: min(86%, 420px); transform: rotate(3deg);
  background: var(--cream); padding: 12px 12px 14px; border: 2.5px solid var(--espresso);
  border-radius: 14px; box-shadow: 10px 12px 0 rgba(28,18,8,0.85);
}
.photo-tilt img { border-radius: 6px; width: 100%; aspect-ratio: 3/3.6; object-fit: cover; object-position: center; }
.stamp {
  position: absolute; left: -34px; bottom: -30px; width: clamp(96px,12vw,128px); z-index: 2;
  background: var(--gold); border-radius: 50%; padding: 6px; border: 2.5px solid var(--espresso);
  box-shadow: var(--shadow-pop); animation: spin 26s linear infinite;
}
.stamp svg { width: 100%; display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   FLAVOR MARQUEE  (replaces the SaaS stat bar)
   ============================================================ */
.marquee {
  background: var(--magenta); color: #fff;
  border-block: 3px solid var(--espresso);
  padding: 16px 0; overflow: hidden; transform: rotate(-1.4deg) scale(1.04);
  margin: 6px 0;
}
.marquee-track { display: flex; width: max-content; animation: slide 26s linear infinite; }
.marquee-track span {
  font-family: var(--font-disp); font-weight: 900; font-style: italic;
  font-size: clamp(22px,3vw,34px); white-space: nowrap; padding-right: 0.3em; display: inline-flex; align-items: center;
}
.marquee .star { width: 0.7em; height: 0.7em; stroke: var(--gold); margin: 0 0.5em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============================================================
   MENU
   ============================================================ */
#menu { max-width: var(--maxw); margin: 0 auto; padding: clamp(64px,9vw,110px) var(--pad) clamp(40px,5vw,60px); }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,56px); }
.menu-card {
  position: relative; background: var(--cream);
  border: 2.5px solid var(--espresso); border-radius: 18px;
  padding: 0 26px 26px; box-shadow: var(--shadow-pop);
}
.menu-card:nth-child(2) { transform: rotate(0.6deg); }
.menu-card:nth-child(1) { transform: rotate(-0.6deg); }
.menu-photo {
  margin: -22px -8px 8px; border: 2.5px solid var(--espresso); border-radius: 12px;
  overflow: hidden; aspect-ratio: 1 / 1; transform: rotate(-1.4deg); background: var(--paper-2);
  box-shadow: 4px 4px 0 rgba(28,18,8,0.5);
}
.menu-card:nth-child(2) .menu-photo { transform: rotate(1.6deg); }
.menu-photo img { width: 100%; height: 100%; object-fit: cover; }
.menu-card h3 { display: flex; align-items: center; gap: 10px; color: var(--espresso); margin: 22px 0 8px; }
.menu-card h3 .ic-lg { width: 30px; height: 30px; stroke: var(--magenta); }
.price-list li {
  padding: 11px 0; border-bottom: 2px dotted var(--line);
  display: flex; flex-direction: column;
}
.price-list li:last-child { border-bottom: none; }
.pl-name { font-weight: 700; font-size: 15.5px; color: var(--ink); }
.pl-note { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.menu-cta { text-align: center; margin-top: clamp(36px,5vw,52px); }

/* ============================================================
   ABOUT
   ============================================================ */
#about {
  background: var(--espresso); color: var(--cream); position: relative;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px,5vw,72px); align-items: center;
  padding: clamp(56px,8vw,104px) var(--pad);
}
.about-media { display: grid; place-items: center; }
.polaroid {
  background: var(--cream); padding: 14px 14px 0; border: 2.5px solid #000;
  border-radius: 6px; transform: rotate(-4deg); box-shadow: 12px 14px 0 rgba(0,0,0,0.5);
  max-width: 380px;
}
.polaroid img { width: 100%; aspect-ratio: 3/3.5; object-fit: cover; object-position: center top; }
.polaroid-cap { display: block; font-family: var(--font-hand); font-size: 25px; color: var(--ink); text-align: center; padding: 6px 0 12px; }
.about-text .eyebrow { color: var(--gold); }
.about-text h2 { color: var(--cream); }
.about-sub { font-family: var(--font-hand); font-size: 27px; color: var(--magenta); margin: 6px 0 22px; }
.about-text blockquote {
  font-family: var(--font-disp); font-style: italic; font-weight: 500;
  font-size: clamp(20px,2.4vw,28px); line-height: 1.4; color: var(--cream);
  padding-left: 26px; border-left: 4px solid var(--magenta); margin-bottom: 22px; position: relative;
}
.about-text p { color: #d8c3a8; max-width: 540px; }
.about-text p + p { margin-top: 13px; }

/* ============================================================
   FEATURES
   ============================================================ */
#features { max-width: var(--maxw); margin: 0 auto; padding: clamp(64px,9vw,110px) var(--pad); }
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(16px,2vw,24px); }
.feature {
  background: var(--cream); border: 2.5px solid var(--espresso); border-radius: 18px;
  padding: 28px 24px; transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translate(-3px,-3px) rotate(-0.6deg); box-shadow: var(--shadow-pop); }
.feature-ic {
  display: inline-grid; place-items: center; width: 54px; height: 54px; margin-bottom: 16px;
  background: var(--pink-tint); border: 2.5px solid var(--espresso); border-radius: 50%;
}
.feature-ic .ic { width: 26px; height: 26px; stroke: var(--magenta); }
.feature:nth-child(3n+2) .feature-ic { background: #ffeccb; }
.feature:nth-child(3n+2) .feature-ic .ic { stroke: var(--gold); }
.feature h4 { font-family: var(--font-disp); font-weight: 900; font-size: 19px; color: var(--espresso); margin-bottom: 7px; line-height: 1.1; }
.feature p { font-size: 14px; color: var(--ink-soft); }

/* ============================================================
   FAQ
   ============================================================ */
#faq { background: var(--paper-2); padding: clamp(64px,9vw,110px) var(--pad); }
#faq .sec-head, .faq-list { max-width: 820px; margin-inline: auto; }
.faq-item { border-top: 2px solid var(--line); }
.faq-item:last-child { border-bottom: 2px solid var(--line); }
.faq-question {
  width: 100%; display: flex; align-items: center; gap: 18px;
  padding: 24px 4px; background: none; border: none; cursor: pointer; text-align: left;
}
.faq-num { font-family: var(--font-disp); font-weight: 900; font-size: 22px; color: var(--magenta); flex-shrink: 0; width: 34px; }
.faq-q { font-family: var(--font-disp); font-weight: 600; font-size: clamp(17px,2vw,21px); color: var(--espresso); flex: 1; line-height: 1.2; }
.faq-icon { position: relative; flex-shrink: 0; width: 22px; height: 22px; }
.faq-icon::before, .faq-icon::after { content:""; position: absolute; background: var(--magenta); border-radius: 2px; }
.faq-icon::before { top: 10px; left: 0; width: 22px; height: 2.6px; }
.faq-icon::after  { left: 10px; top: 0; width: 2.6px; height: 22px; transition: transform .25s ease; }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: rotate(90deg); }
.faq-answer { display: none; padding: 0 4px 24px 56px; }
.faq-answer.is-open { display: block; animation: fadeIn .3s ease; }
.faq-answer p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.7; }
.faq-answer a { color: var(--magenta); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ============================================================
   FIND US
   ============================================================ */
#find {
  display: grid; grid-template-columns: 1fr 1fr; background: var(--espresso-2); min-height: 440px;
}
.find-map { overflow: hidden; border-right: 3px solid var(--espresso); }
.find-map iframe { display: block; width: 100%; height: 100%; min-height: 380px; filter: saturate(0.9) contrast(1.02); }
.find-details { padding: clamp(48px,6vw,80px) var(--pad); display: flex; flex-direction: column; justify-content: center; }
.find-details h2 { color: var(--cream); margin-bottom: 34px; }
.detail-row { display: flex; gap: 16px; margin-bottom: 26px; align-items: flex-start; }
.detail-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; background: var(--magenta); border: 2.5px solid #000; border-radius: 50%; }
.detail-ic .ic { width: 21px; height: 21px; stroke: #fff; }
.detail-text strong { display: block; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 5px; font-weight: 800; }
.detail-text, .detail-text a { font-size: 15.5px; color: #e6d4ba; line-height: 1.6; }
.detail-text a:hover { color: #fff; }
.hours { border-collapse: collapse; font-size: 14.5px; }
.hours td { padding: 3px 18px 3px 0; color: #e6d4ba; }
.hours td:first-child { font-weight: 700; color: var(--cream); min-width: 96px; }
.closed { color: var(--magenta) !important; font-weight: 700; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.social {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--cream);
  background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.18);
  padding: 9px 15px; border-radius: 40px; transition: background .2s, border-color .2s, color .2s;
}
.social .ic { width: 18px; height: 18px; stroke: currentColor; }
.social:hover { background: var(--magenta); border-color: var(--magenta); color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer { background: #150c04; color: var(--cream); padding: clamp(48px,6vw,72px) var(--pad) 28px; }
.footer-top { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 36px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { display: flex; gap: 18px; align-items: center; }
.footer-logo-pill { display: inline-block; background: var(--cream); border-radius: 14px; padding: 13px 18px; flex-shrink: 0; }
.footer-logo-pill img { height: 42px; width: auto; display: block; }
.footer-tag { font-family: var(--font-hand); font-size: 22px; line-height: 1.25; color: #d8c3a8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { font-weight: 600; font-size: 14px; color: #b89e7e; transition: color .2s; }
.footer-links a:hover { color: var(--magenta); }
.footer-bottom {
  max-width: var(--maxw); margin: clamp(36px,5vw,56px) auto 0; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-addr { font-size: 13px; color: #9a8264; letter-spacing: 0.01em; }
.footer-copy { font-size: 12.5px; color: #7d6649; }
.footer-copy a { color: #b89e7e; text-decoration: underline; text-underline-offset: 2px; transition: color .2s; }
.footer-copy a:hover { color: var(--magenta); }

/* ============================================================
   LOAD ANIMATION (hero stagger)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { opacity: 0; animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero-text > *:nth-child(1) { animation-delay: .05s; }
  .hero-text > *:nth-child(2) { animation-delay: .14s; }
  .hero-text > *:nth-child(3) { animation-delay: .23s; }
  .hero-text > *:nth-child(4) { animation-delay: .32s; }
  .hero-text > *:nth-child(5) { animation-delay: .41s; }
  .hero-media { opacity: 0; animation: rise .8s cubic-bezier(.2,.7,.2,1) .3s forwards; }
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .stamp { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 18px; padding: 24px var(--pad) 30px;
    background: var(--paper); border-bottom: 2px solid var(--espresso);
    box-shadow: 0 12px 20px rgba(28,18,8,0.12);
  }
  .nav-links a { font-size: 17px; }
  .nav-cta { display: none; }
  #nav.nav-open .nav-links { display: flex; }

  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { order: -1; }
  .photo-tilt { width: min(74%, 360px); }
  .menu-grid { grid-template-columns: 1fr; gap: 44px; }
  #about { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  #find { grid-template-columns: 1fr; }
  .find-map { border-right: none; border-bottom: 3px solid var(--espresso); min-height: 320px; }
}

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: clamp(42px,13vw,60px); }
  .stamp { left: auto; right: -10px; bottom: -22px; width: 92px; }
  .footer-top { flex-direction: column; gap: 26px; }
  .marquee { transform: rotate(-1.4deg) scale(1.08); }
  .btn-lg { width: 100%; justify-content: center; }
}
