/* ============================================================
   FLOUR BARREL — vintage parchment storybook theme
   ============================================================ */
:root {
  --parchment: #f0e2c8;
  --parchment-deep: #e4d0ac;
  --ink: #3a2b1c;
  --ink-soft: #5c4630;
  --amber: #b3762a;
  --amber-deep: #8a5a1e;
  --wood: #2b2017;
  --cream: #f7ecd8;
  --serif: "Playfair Display", Georgia, serif;
  --fell: "IM Fell English", Georgia, serif;
  --body: "Cormorant Garamond", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--wood);
  color: var(--ink);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- nav ---------- */
.topnav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 30px;
  background: linear-gradient(to bottom, rgba(30,22,14,.82), rgba(30,22,14,0));
  color: var(--cream);
  font-family: var(--fell);
  letter-spacing: .04em;
}
.nav-brand { font-size: 1.35rem; }
.amp { color: var(--amber); }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--cream); text-decoration: none; font-size: 1rem; opacity: .85;
  border-bottom: 1px solid transparent; transition: .25s;
}
.nav-links a:hover { opacity: 1; border-bottom-color: var(--amber); }
.nav-est { font-style: italic; font-size: .9rem; opacity: .7; }

/* ---------- cinematic scrub sections ---------- */
.cinematic { position: relative; height: 460vh; }
.cinematic .sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--wood);
}
.cinematic canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(26,18,10,.55) 100%),
    linear-gradient(to bottom, rgba(26,18,10,.35), transparent 18%, transparent 82%, rgba(26,18,10,.5));
}
.overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  text-align: center; pointer-events: none; padding: 0 6vw;
}
.overlay .line {
  grid-area: 1 / 1; opacity: 0; will-change: opacity, transform;
  color: var(--cream);
  text-shadow: 0 2px 22px rgba(20,12,4,.85), 0 0 60px rgba(20,12,4,.6);
}
.overlay h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 3rem); }
.kicker { font-family: var(--fell); font-style: italic; font-size: clamp(1rem, 1.6vw, 1.3rem); letter-spacing: .18em; margin-bottom: 14px; }
.hero-title {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  letter-spacing: .06em; line-height: 1.02;
}
.hero-tag { font-family: var(--fell); font-style: italic; font-size: clamp(1.1rem, 2.2vw, 1.7rem); letter-spacing: .12em; margin-top: 16px; }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: var(--cream); font-family: var(--fell); font-style: italic; letter-spacing: .14em;
  opacity: .8; transition: opacity .4s; animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 7px); } }

/* ---------- parchment sections ---------- */
.pantry, .visit {
  position: relative; z-index: 2; padding: 90px 5vw;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,246,224,.55), transparent 60%),
    radial-gradient(ellipse at 85% 90%, rgba(160,120,70,.25), transparent 55%),
    var(--parchment);
}
.parchment-frame {
  max-width: 1180px; margin: 0 auto; padding: 54px clamp(20px, 4vw, 64px);
  border: 2px solid rgba(90,64,36,.45); outline: 1px solid rgba(90,64,36,.25); outline-offset: 7px;
  background: rgba(247,236,216,.5);
  box-shadow: 0 30px 80px rgba(40,26,12,.25);
}
.section-kicker {
  text-align: center; font-family: var(--fell); font-style: italic;
  color: var(--amber-deep); letter-spacing: .22em; margin-bottom: 10px;
}
.section-title {
  text-align: center; font-family: var(--serif); font-weight: 900;
  font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 14px; color: var(--ink);
}
.section-lede { text-align: center; font-style: italic; color: var(--ink-soft); max-width: 620px; margin: 0 auto 52px; }

/* shelves */
.shelf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.jar {
  background: var(--cream); border: 1.5px solid rgba(90,64,36,.4);
  padding: 0 0 22px; box-shadow: 0 12px 30px rgba(40,26,12,.18);
  transition: transform .35s ease, box-shadow .35s ease;
}
.jar:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 22px 44px rgba(40,26,12,.28); }
.jar-art {
  height: 170px; background-size: cover; background-position: center;
  border-bottom: 1.5px solid rgba(90,64,36,.4);
  filter: sepia(.25) saturate(.95);
  transition: transform .6s ease;
}
.jar h3 {
  font-family: var(--serif); font-weight: 700; font-size: 1.25rem;
  text-align: center; margin: 18px 18px 8px;
}
.jar p { padding: 0 22px; text-align: center; color: var(--ink-soft); font-size: 1rem; }

/* stats */
.stats-row { display: flex; justify-content: center; gap: clamp(30px, 7vw, 90px); margin-top: 60px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--serif); font-weight: 900; font-size: clamp(2.2rem, 4.5vw, 3.4rem); color: var(--amber-deep); }
.stat-label { font-family: var(--fell); font-style: italic; color: var(--ink-soft); }

/* ---------- visit ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 20px; }
.visit-card h3 { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; margin-bottom: 14px; }
.visit-card .mt { margin-top: 26px; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 8px 4px; border-bottom: 1px dashed rgba(90,64,36,.4); }
.hours td:last-child { text-align: right; font-style: italic; }
.addr { color: var(--ink-soft); margin-bottom: 10px; }
.addr a { color: var(--amber-deep); }
.map-link {
  display: inline-block; margin: 8px 0 18px; color: var(--amber-deep);
  font-family: var(--fell); font-style: italic; text-decoration: none;
  border-bottom: 1px solid var(--amber-deep);
}
.map-3d {
  position: relative; border: 2px solid rgba(90,64,36,.5); overflow: hidden;
  box-shadow: 0 18px 44px rgba(40,26,12,.3);
  transform: perspective(900px) rotateX(6deg);
}
.map-3d img { width: 100%; display: block; transition: transform 6s ease; }
.map-3d:hover img { transform: scale(1.07); }
.map-pin {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -100%);
  background: var(--cream); border: 1.5px solid rgba(90,64,36,.6);
  padding: 4px 12px; font-family: var(--fell); font-style: italic; font-size: .95rem;
  box-shadow: 0 8px 18px rgba(40,26,12,.35); animation: pinbob 2.8s ease-in-out infinite;
}
@keyframes pinbob { 50% { transform: translate(-50%, calc(-100% - 8px)); } }

/* form */
.form-lede { font-style: italic; color: var(--ink-soft); margin-bottom: 20px; }
#visit-form label { display: block; font-family: var(--fell); font-style: italic; margin-bottom: 16px; }
#visit-form input, #visit-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  font-family: var(--body); font-size: 1.05rem; color: var(--ink);
  background: var(--cream); border: 1.5px solid rgba(90,64,36,.5); outline: none;
  transition: border-color .25s, box-shadow .25s;
}
#visit-form input:focus, #visit-form textarea:focus { border-color: var(--amber-deep); box-shadow: 0 0 0 3px rgba(179,118,42,.18); }
#visit-form button {
  margin-top: 6px; padding: 14px 34px; cursor: pointer;
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem; letter-spacing: .05em;
  color: var(--cream); background: linear-gradient(to bottom, #9a6522, #7c4f18);
  border: 1.5px solid #5e3c12; box-shadow: 0 10px 24px rgba(90,60,20,.4);
  transition: transform .25s, box-shadow .25s;
}
#visit-form button:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(90,60,20,.5); }
.form-note { margin-top: 14px; font-style: italic; color: #4c6b3c; min-height: 1.4em; }
.form-note.err { color: #8a3524; }

/* ---------- footer ---------- */
.footer {
  position: relative; z-index: 2; text-align: center; padding: 60px 5vw 70px;
  background: var(--wood); color: rgba(247,236,216,.8); font-family: var(--fell);
}
.foot-brand { font-size: 1.5rem; margin-bottom: 10px; color: var(--cream); }
.foot-fine { font-style: italic; opacity: .65; margin-top: 8px; font-size: .95rem; }

/* ---------- film grain ---------- */
.grain {
  position: fixed; inset: -100%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 10% { transform: translate(-5%,-8%); }
  30% { transform: translate(3%,-12%); } 50% { transform: translate(-9%,6%); }
  70% { transform: translate(7%,10%); } 90% { transform: translate(-4%,4%); }
}

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- mobile pass ---------- */
@media (max-width: 900px) {
  .shelf-grid { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-est { display: none; }
  .cinematic { height: 380vh; }
  .parchment-frame { padding: 34px 18px; }
  body { font-size: 17px; }
}
