/* Drip and Dough JC — warm café-bakery
   terracotta · butter yellow · cream · DM Serif Display + DM Sans
   polaroid collage hero · chalk menu boards · handwritten-feel accents */
:root {
  --terra: #c2410c;
  --terra-dk: #9a3412;
  --butter: #fcd977;
  --butter-lt: #fff3c9;
  --cream: #fdf6ec;
  --cream-2: #f7ead7;
  --ink: #2b1d16;
  --muted: #6e5a4c;
  --line: #ead9c2;
  --board: #2a2622;
  --chalk: #f4efe6;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--cream); color: var(--ink); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; }

/* Announcement strip */
.strip { background: var(--terra); color: #fff7ed; font-size: 14px; text-align: center; padding: 8px 16px; }
.strip b { color: var(--butter); font-weight: 700; }
.strip a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 50; background: rgba(253,246,236,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow 0.25s; }
header.site.scrolled { box-shadow: 0 8px 26px rgba(43,29,22,0.1); }
header.site .wrap { display: flex; align-items: center; gap: 20px; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo .badge-mark { width: 48px; height: 48px; border-radius: 50%; background: var(--terra); color: var(--butter); font-family: var(--serif); font-size: 18px; display: grid; place-items: center; border: 3px solid var(--butter); box-shadow: 0 0 0 2px var(--terra); transform: rotate(-8deg); transition: transform 0.4s; }
.logo:hover .badge-mark { transform: rotate(8deg); }
.logo .name { font-family: var(--serif); font-size: 25px; line-height: 1; }
.logo .name small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--terra); margin-top: 4px; font-weight: 700; }
nav.main { display: flex; gap: 6px; margin-left: auto; }
nav.main a { font-weight: 700; font-size: 15.5px; padding: 8px 14px; border-radius: 999px; transition: background 0.2s, color 0.2s; }
nav.main a:hover { background: var(--butter-lt); }
nav.main a.active { background: var(--butter); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px dashed var(--line); white-space: nowrap; }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #b3a597; }
.status-pill.open { color: #166534; border-color: #86efac; background: #f0fdf4; }
.status-pill.open::before { background: #16a34a; animation: blink 1.8s ease-in-out infinite; }
.status-pill.closed { color: #9a3412; border-color: #fdba74; background: #fff7ed; }
.status-pill.closed::before { background: var(--terra); }
@keyframes blink { 50% { opacity: 0.3; } }
.call-btn { background: var(--ink); color: var(--cream); font-weight: 700; padding: 11px 18px; border-radius: 999px; font-size: 15px; white-space: nowrap; transition: background 0.2s, transform 0.2s; }
.call-btn:hover { background: var(--terra); transform: rotate(-2deg); }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 42px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; font-size: 18px; cursor: pointer; color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; font-size: 16.5px; padding: 15px 26px; border-radius: 999px; transition: transform 0.25s, box-shadow 0.25s, background 0.25s; }
.btn.primary { background: var(--terra); color: #fff; box-shadow: 0 4px 0 var(--terra-dk); }
.btn.primary:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 6px 0 var(--terra-dk); }
.btn.ghost { border: 2px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--cream); }
.btn.butter { background: var(--butter); color: var(--ink); box-shadow: 0 4px 0 #d9a93b; }
.btn.butter:hover { transform: translateY(-2px) rotate(1deg); }

/* Handwritten-feel accents */
.note { display: inline-block; font-family: var(--serif); font-style: italic; color: var(--terra); font-size: 22px; transform: rotate(-4deg); position: relative; padding: 0 4px; }
.note::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M2 7 C 25 1, 45 9, 65 4 S 105 2, 118 6' fill='none' stroke='%23c2410c' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.scribble { position: relative; white-space: nowrap; }
.scribble::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: -4px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C 50 3, 100 12, 150 5 S 190 6, 197 8' fill='none' stroke='%23fcd977' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; z-index: -1; }
.kicker { font-family: var(--serif); font-style: italic; color: var(--terra); font-size: 21px; margin-bottom: 8px; display: inline-block; transform: rotate(-2deg); }
h2.title { font-size: clamp(34px, 4.4vw, 54px); position: relative; z-index: 0; }
.sub { font-size: 18px; color: var(--muted); max-width: 660px; margin-top: 14px; }
.center { text-align: center; }
.center .sub, .center h2.title { margin-left: auto; margin-right: auto; }

/* Polaroid collage hero */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px; background: radial-gradient(circle at 85% 20%, var(--butter-lt) 0, transparent 45%), var(--cream); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6vw, 80px); letter-spacing: -0.01em; position: relative; z-index: 0; }
.hero h1 em { font-style: italic; color: var(--terra); }
.hero .lead { font-size: 19px; color: var(--muted); margin: 22px 0 30px; max-width: 520px; }
.hero .copy > * { animation: popIn 0.8s cubic-bezier(0.34, 1.4, 0.64, 1) both; }
.hero .copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero .copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero .copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero .copy > *:nth-child(5) { animation-delay: 0.32s; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.rating-chip { display: inline-flex; gap: 8px; align-items: center; margin-top: 26px; font-weight: 700; font-size: 15px; }
.rating-chip b { color: var(--terra); }
.collage { position: relative; height: 540px; }
.polaroid { position: absolute; background: #fff; padding: 12px 12px 46px; box-shadow: 0 18px 40px rgba(43,29,22,0.18); transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1), z-index 0s; }
.polaroid img { width: 100%; height: 100%; object-fit: cover; }
.polaroid .cap { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink); }
.polaroid::before { content: ""; position: absolute; top: -14px; left: 50%; width: 92px; height: 28px; margin-left: -46px; background: rgba(252,217,119,0.75); transform: rotate(-4deg); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.polaroid:hover { transform: rotate(0deg) scale(1.04); z-index: 5; }
.p1 { width: 300px; height: 360px; left: 2%; top: 30px; transform: rotate(-7deg); animation: drop1 0.9s 0.1s cubic-bezier(0.34, 1.4, 0.64, 1) both; }
.p2 { width: 270px; height: 320px; right: 2%; top: 0; transform: rotate(6deg); z-index: 2; animation: drop2 0.9s 0.3s cubic-bezier(0.34, 1.4, 0.64, 1) both; }
.p3 { width: 280px; height: 300px; left: 30%; bottom: 0; transform: rotate(-2deg); z-index: 3; animation: drop3 0.9s 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) both; }
.sticker { position: absolute; right: 6%; bottom: 40px; z-index: 4; width: 124px; height: 124px; border-radius: 50%; background: var(--terra); color: var(--butter); display: grid; place-items: center; text-align: center; font-family: var(--serif); font-size: 21px; line-height: 1.05; transform: rotate(12deg); box-shadow: 0 10px 24px rgba(194,65,12,0.35); animation: spinIn 1s 0.8s cubic-bezier(0.34, 1.4, 0.64, 1) both; }
.sticker small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #fff7ed; margin-top: 4px; }
@keyframes popIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes drop1 { from { opacity: 0; transform: translateY(-40px) rotate(-16deg); } to { opacity: 1; transform: rotate(-7deg); } }
@keyframes drop2 { from { opacity: 0; transform: translateY(-40px) rotate(16deg); } to { opacity: 1; transform: rotate(6deg); } }
@keyframes drop3 { from { opacity: 0; transform: translateY(-40px) rotate(-10deg); } to { opacity: 1; transform: rotate(-2deg); } }
@keyframes spinIn { from { opacity: 0; transform: scale(0.4) rotate(-40deg); } to { opacity: 1; transform: rotate(12deg); } }
.hero.inner { padding: 56px 0 70px; }
.hero.inner .collage { height: 400px; }
.hero.inner .p1 { width: 290px; height: 340px; left: 8%; top: 10px; }
.hero.inner .p2 { width: 250px; height: 290px; right: 4%; top: 60px; }

/* Stats band */
.stats { background: var(--butter); border-top: 2px dashed rgba(43,29,22,0.25); border-bottom: 2px dashed rgba(43,29,22,0.25); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stats .wrap > div { padding: 28px 12px; }
.stats b { display: block; font-family: var(--serif); font-size: 44px; font-weight: 400; line-height: 1; color: var(--ink); }
.stats span { display: block; font-size: 14px; font-weight: 700; color: #6b4a1d; margin-top: 8px; }

/* Sections */
.block { padding: 96px 0; }
.block.warm { background: var(--cream-2); }

/* Chalk menu board */
.board { background: var(--board); color: var(--chalk); border-radius: 18px; padding: 50px 46px 40px; position: relative; border: 14px solid #8a5a3b; box-shadow: inset 0 0 80px rgba(0,0,0,0.5), 0 24px 50px rgba(43,29,22,0.25); background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 7px 7px, 13px 13px; background-position: 0 0, 3px 5px; }
.board .board-title { text-align: center; font-family: var(--serif); font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 6px; }
.board .board-sub { text-align: center; color: #cfc6b6; font-style: italic; margin-bottom: 34px; }
.board-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 54px; }
.board .card { padding: 18px 0; border-bottom: 1px dashed rgba(244,239,230,0.25); }
.board .card h3 { font-size: 25px; color: var(--butter); display: flex; align-items: baseline; gap: 12px; }
.board .card h3::after { content: ""; flex: 1; border-bottom: 2px dotted rgba(244,239,230,0.35); transform: translateY(-6px); }
.board .card h3 .tag { order: 2; font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #fdba74; }
.board .card p { color: #dcd4c6; font-size: 16px; margin-top: 4px; }
.board .chalk-note { text-align: center; margin-top: 26px; font-family: var(--serif); font-style: italic; color: #fdba74; font-size: 19px; }
.board.full .card p { font-size: 16.5px; }
.board.full .board-grid { gap: 8px 60px; }

/* Prose */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.split.top { align-items: start; }
.prose p { margin-bottom: 18px; color: #3d2c22; }
.prose a { color: var(--terra); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.photo-stack { position: relative; padding: 20px; }
.photo-stack .polaroid { position: relative; width: 100%; height: auto; transform: rotate(3deg); animation: none; }
.photo-stack .polaroid img { aspect-ratio: 4 / 5; height: auto; }

/* Sticky-note cards */
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 46px; }
.notes .card { background: var(--butter-lt); padding: 32px 28px 30px; box-shadow: 0 12px 26px rgba(43,29,22,0.12); position: relative; transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1); }
.notes .card:nth-child(3n+1) { transform: rotate(-1.5deg); }
.notes .card:nth-child(3n+2) { transform: rotate(1.2deg); background: #fde4d3; }
.notes .card:nth-child(3n) { transform: rotate(-0.6deg); }
.notes .card.reveal:not(.in) { transform: translateY(24px); }
.notes .card:hover { transform: rotate(0) translateY(-6px); }
.notes .card::before { content: ""; position: absolute; top: -12px; left: 50%; width: 80px; height: 24px; margin-left: -40px; background: rgba(194,65,12,0.25); transform: rotate(-3deg); }
.notes .card h3 { font-size: 26px; margin-bottom: 8px; }
.notes .card p { color: var(--muted); }
.notes .card .big { font-family: var(--serif); font-size: 44px; color: var(--terra); line-height: 1; margin-bottom: 8px; }
.notes.two { grid-template-columns: repeat(2, 1fr); }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin: 46px 0 36px; }
.reviews .quote { background: #fff; padding: 30px 28px 26px; box-shadow: 0 16px 34px rgba(43,29,22,0.12); border-top: 6px solid var(--terra); position: relative; }
.reviews .quote:nth-child(2) { border-top-color: var(--butter); transform: translateY(16px); }
.reviews .quote p { font-family: var(--serif); font-size: 22px; line-height: 1.35; }
.reviews .quote cite { display: block; margin-top: 16px; font-style: normal; font-weight: 700; color: var(--terra); font-size: 14.5px; }
.score-row { display: flex; align-items: center; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.score-row b { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--terra); }
.score-row .stars { color: #e3a008; font-size: 22px; letter-spacing: 3px; }

/* FAQ */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { background: #fff; border-radius: 16px; margin-bottom: 12px; border: 1px solid var(--line); transition: box-shadow 0.25s; }
.faq details[open] { box-shadow: 0 12px 26px rgba(43,29,22,0.08); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 700; font-size: 17.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--butter); display: grid; place-items: center; font-size: 19px; transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--terra); color: #fff; }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* Panels / contact */
.panel { background: #fff; border-radius: 20px; padding: 30px; border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(43,29,22,0.06); }
.panel h3 { font-size: 27px; margin-bottom: 10px; }
.panel .big { display: block; font-family: var(--serif); font-size: 32px; color: var(--terra); }
.panel p { color: var(--muted); }
.hours-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.hours-row:last-child { border-bottom: 0; }
.map-embed { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; }
.map-frame { background: #fff; padding: 14px 14px 50px; box-shadow: 0 18px 40px rgba(43,29,22,0.16); transform: rotate(1deg); position: relative; }
.map-frame .cap { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 19px; }
.ticks { list-style: none; }
.ticks li { padding: 8px 0 8px 30px; position: relative; }
.ticks li::before { content: "✿"; position: absolute; left: 0; color: var(--terra); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 44px; }
.gallery .ph { background: #fff; padding: 10px 10px 12px; box-shadow: 0 14px 30px rgba(43,29,22,0.14); transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1); }
.gallery .ph:nth-child(odd) { transform: rotate(-1.5deg); }
.gallery .ph:nth-child(even) { transform: rotate(1.5deg); }
.gallery .ph.reveal:not(.in) { transform: translateY(24px); }
.gallery .ph:hover { transform: rotate(0) scale(1.03); }
.gallery .ph img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.caption { text-align: center; font-family: var(--serif); font-style: italic; color: var(--muted); margin-top: 26px; font-size: 18px; }

/* CTA */
.cta-band { background: var(--terra); color: #fff7ed; text-align: center; padding: 86px 24px; position: relative; overflow: hidden; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 2px dashed rgba(252,217,119,0.5); }
.cta-band::before { left: -80px; top: -90px; }
.cta-band::after { right: -70px; bottom: -110px; }
.cta-band h2 { font-size: clamp(36px, 5vw, 60px); color: #fff; margin-bottom: 10px; position: relative; }
.cta-band p { max-width: 560px; margin: 0 auto 28px; font-size: 18px; position: relative; }
.cta-band .cta-row { justify-content: center; position: relative; }

/* Footer */
footer.site { background: var(--ink); color: #d6c7b8; padding: 64px 0 0; font-size: 15px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
footer.site h4 { font-size: 24px; color: #fff; margin-bottom: 12px; }
footer.site a { display: block; color: #fff; margin-bottom: 6px; }
footer.site a:hover { color: var(--butter); }
.footnote { border-top: 1px solid #44332a; padding: 20px 0 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.footnote .credit { display: inline; margin: 0; color: var(--butter); font-weight: 700; }

/* Reveal (app.js) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.34, 1.3, 0.64, 1); }
.reveal.in { opacity: 1; }
.reveal.in:not(.card):not(.ph) { transform: none; }
.board .card.reveal.in { transform: none; }
.kicker.reveal.in { transform: rotate(-2deg); }

/* Call bar (app.js) */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(43,29,22,0.96); }
.callbar a { flex: 1; text-align: center; font-weight: 700; padding: 13px 10px; border-radius: 999px; font-size: 16px; }
.callbar .cb-call { background: var(--terra); color: #fff; }
.callbar .cb-dir { background: var(--butter); color: var(--ink); }

@media (max-width: 1040px) {
  .header-pill { position: absolute; top: 100%; left: 0; right: 0; justify-content: center; border-radius: 0; border-width: 0 0 1px; margin-top: 1px; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
  .collage { height: 470px; max-width: 560px; margin: 0 auto; width: 100%; }
  .notes, .reviews { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .reviews .quote:nth-child(2) { transform: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  nav.main { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--cream); flex-direction: column; padding: 10px 18px 18px; border-bottom: 1px solid var(--line); z-index: 3; }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 14px; font-size: 17px; }
  .menu-toggle { display: block; }
  header.site .call-btn { display: none; }
  .board-grid, .notes.two { grid-template-columns: 1fr; }
  .board { padding: 36px 22px 30px; border-width: 10px; }
  footer.site .cols { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .callbar { display: flex; }
  body.has-callbar { padding-bottom: 72px; }
  .block { padding: 66px 0; }
  .hero { padding: 46px 0 60px; }
  .stats b { font-size: 36px; }
  .strip .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .collage, .hero.inner .collage { height: 380px; }
  .p1, .hero.inner .p1 { width: 190px; height: 230px; left: 0; top: 20px; }
  .p2, .hero.inner .p2 { width: 175px; height: 210px; right: 0; top: 0; }
  .p3 { width: 185px; height: 205px; left: 22%; bottom: 0; }
  .polaroid { padding: 8px 8px 34px; }
  .polaroid .cap { font-size: 15px; bottom: 7px; }
  .sticker { width: 96px; height: 96px; font-size: 17px; right: 0; bottom: 24px; }
  .gallery { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .logo .name { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* small fixes */
.rating-chip b { white-space: nowrap; flex-shrink: 0; }
.strip a { white-space: nowrap; }
