/*
 ▌║█║▌│║▌│║▌║▌█║  Character Study  ║▌█║▌║▌│║║▌█║▌║█

 File         : styles.css
 Description  : Site styles for characterstudybar.com. Hand-rolled to mirror
                the printed menu's design language (cream paper, watercolor
                washes, Bodoni display, John Doe typewriter for Mood/Character
                labels, hand-drawn ornaments).
 Used on      : index.html
 Asset paths  : All decorative artwork referenced under /img/ — see
                MISSING-ASSETS in repo root for the list to be filled in
                from Josh Rhinehart's PSDs.
 Author       : Mindtonic Media | hello@mindtonic.media

 ▌║█║▌│║▌│║▌║▌█║  Code by Mindtonic Media  ║▌█║▌║▌│║║▌█║▌║█
*/

/* ─── Tokens ─────────────────────────────────────────────────────────── */

:root {
  /* Palette — pulled from the menu PSDs */
  --paper:        #f5ecd6;          /* cream stock — body bg */
  --paper-deep:   #ece1c0;          /* slightly darker for cards */
  --ink:          #1a1814;          /* not pure black; warmer */
  --ink-soft:     #4a443a;
  --rule:         rgba(26, 24, 20, 0.18);

  --red:          #c1302d;          /* placeholder; confirm vs brand */
  --red-dark:     #9a2622;
  --highlight:    #ffe25a;          /* the menu's highlighter yellow */

  /* Bar interior — saturated accents */
  --forest:       #1f3a23;          /* wall paint, primary dark accent */
  --forest-deep:  #0f2014;          /* footer */
  --emerald:      #1f6a5e;          /* tufted barstools */
  --caramel:      #b86d2a;          /* booth leather */
  --brass:        #c8954a;          /* lamps, fixtures */
  --rust:         #b65028;          /* sofa, marbled paper warm */
  --mint:         #6fa89d;          /* formica table tops */

  /* Menu watercolor + stained-glass palette */
  --wash-green:   #c5d931;          /* chartreuse watercolor */
  --wash-blue:    #94c4dd;          /* sky-blue watercolor */
  --wash-pink:    #e8a3ad;          /* red kiss-print */
  --amber:        #e9b13b;          /* stained-glass amber */

  /* Fonts (already loaded via Typekit) */
  --font-body:    ltc-bodoni-175, "Bodoni 72", "Didot", "Times New Roman", serif;
  --font-hand:    adobe-handwriting-ernie, "Brush Script MT", cursive;
  --font-type:    john-doe, "Courier New", monospace;

  /* Scale */
  --bp-mobile:    768px;
  --bp-desktop:   1024px;

  --max-page:     1180px;
  --max-prose:     720px;
  --max-menu:     1080px;

  --space-1:   8px;
  --space-2:  16px;
  --space-3:  24px;
  --space-4:  32px;
  --space-5:  48px;
  --space-6:  72px;
  --space-7: 112px;

  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Reset ──────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Several decorations bleed past .site into the page margins on purpose;
     clip the document edge so they can't widen the body and create a
     horizontal scrollbar (especially on narrow viewports). */
  overflow-x: clip;
}

body { overflow-x: clip; }

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 21px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* Layered background (top → bottom):
       1–3. Subtle color washes from the menu PSD palette
       4.   Cream tint at 50% alpha — halves the paper's visual strength so
            the brand cream shines through
       5.   Real paper texture — `100% auto` scales the image to body
            width with proportional height (no upscaling, no crop), and
            tiles vertically (`repeat-y`) so a tall document still gets
            covered. Removed entirely on mobile (see media query below).
       6.   Solid cream as the absolute base */
  background-image:
    radial-gradient(circle at 18% 22%, rgba(197, 217, 49, 0.10), transparent 38%),
    radial-gradient(circle at 82% 60%, rgba(148, 196, 221, 0.12), transparent 42%),
    radial-gradient(circle at 38% 86%, rgba(232, 163, 173, 0.08), transparent 35%),
    linear-gradient(rgba(245, 236, 214, 0.5), rgba(245, 236, 214, 0.5)),
    url("/images/paper/background.jpg");
  background-size: auto, auto, auto, auto, 100% auto;
  background-position: center, center, center, center, top center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat-y;
  background-attachment: scroll;
}

/* Mobile — drop the paper layer entirely; the cream + radial washes do
   the work on their own. */
@media (max-width: 767px) {
  body {
    background-image:
      radial-gradient(circle at 18% 22%, rgba(197, 217, 49, 0.10), transparent 38%),
      radial-gradient(circle at 82% 60%, rgba(148, 196, 221, 0.12), transparent 42%),
      radial-gradient(circle at 38% 86%, rgba(232, 163, 173, 0.08), transparent 35%);
  }
}

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

a {
  color: var(--red);
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 200ms var(--ease-soft);
}

a:hover,
a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

p { hyphens: auto; margin: 0 0 var(--space-2); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Layout shell ───────────────────────────────────────────────────── */

.site {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 0 var(--space-3);
  position: relative;
}

/* ─── Top nav (anchor links) ─────────────────────────────────────────── */

.topnav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-3) 0 0;
  font-family: var(--font-type);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.topnav a {
  color: var(--ink);
  background: none;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ─── Open/Closed status pill ────────────────────────────────────────── */

.status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-type);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-deep);
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9a9a9a;
}

.status--open  .status__dot { background: #5a8a2e; box-shadow: 0 0 0 3px rgba(90,138,46,0.18); }
.status--closed .status__dot { background: var(--red); }

.status__bar {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2);
}

/* ─── Banner (desktop only) ──────────────────────────────────────────── */

.banner { display: none; }

@media (min-width: 1024px) {
  .banner {
    display: grid;
    grid-template-columns: 5fr 2fr 5fr;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) 0 0;
  }
}

.banner__rule img { width: 100%; }

.banner__tagline {
  color: var(--red);
  font-family: var(--font-type);
  font-style: normal;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.18em;
}

/* ─── Hero ───────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-4) 0 var(--space-3);
  text-align: center;
}

.hero > .hero__title,
.hero > .hero__mood { position: relative; z-index: 2; }

/* Watercolor wash PNGs — anchored to corners behind the hero logo. */
.hero__wash {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: clamp(180px, 30vw, 360px);
  opacity: 0.75;
  mix-blend-mode: multiply;
}

.hero__wash--left  { top: 4%;  left: -2%;  transform: rotate(-8deg); }
.hero__wash--right { top: 2%; right: -2%;  transform: rotate(6deg); }

/* Hand-drawn scatter accents — kept small and to the corners so they read as
   margin doodles, not poster art. */
.hero__accent {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.hero__accent--triangles { bottom: -2%; left: 6%;  width: clamp(80px, 12vw, 150px); transform: rotate(-4deg); opacity: 0.85; }
.hero__accent--kisses    { bottom: 4%;  right: 4%; width: clamp(70px, 11vw, 130px); transform: rotate(8deg);  opacity: 0.85; }

/* Faint ink sketch behind the logo — sets a literary, slightly cinematic tone. */
.hero__sketch {
  position: absolute;
  top: -8%;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: clamp(220px, 38vw, 420px);
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 767px) {
  .hero__wash, .hero__accent { opacity: 0.6; }
}

.hero__title { margin: 0; }

.hero__logo {
  width: 100%;
  max-width: 420px;
  animation: hero-pop 900ms var(--ease-soft) both;
  transition: transform 400ms var(--ease-soft);
}

.hero__logo:hover { transform: rotate(-1.5deg) scale(1.02); }

.hero__mood {
  margin: var(--space-4) auto 0;
  max-width: 600px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.4;
  text-align: left;
}

.hero__mood .label {
  font-family: var(--font-type);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-right: 0.4em;
}

.hero__mood p { margin-bottom: var(--space-1); }

/* ─── Intro ──────────────────────────────────────────────────────────── */

.intro {
  max-width: 590px;
  margin: var(--space-5) auto 0;
  padding: 0 var(--space-3);
  text-align: justify;
  font-size: 1.15rem;
}

.intro::first-letter {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 4.5rem;
  line-height: 0.85;
  float: left;
  margin: 0.05em 0 0.5em 0;
  color: var(--red);
}

/* ─── Section heading ────────────────────────────────────────────────── */

.section-heading {
  text-align: center;
  margin: var(--space-7) 0 var(--space-3);
}

.section-heading__roman {
  font-family: var(--font-type);
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.section-heading__title {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1;
}

.section-heading__ornament {
  font-size: 1.5rem;
  color: var(--ink-soft);
  letter-spacing: 0.5em;
  margin-top: var(--space-2);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-heading__ornament img {
  display: block;
  max-height: 80px;
  max-width: 220px;
  width: auto;
  height: auto;
  opacity: 0.9;
}

/* ─── Menu ───────────────────────────────────────────────────────────── */

.menu {
  max-width: var(--max-menu);
  margin: 0 auto;
}

.menu__lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-4);
  font-size: 1.1rem;
}

.menu-category {
  margin-bottom: var(--space-6);
}

.menu-category__title {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 2rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
  margin: 0 0 var(--space-4);
}

/* Hand-drawn chapter art above each category title. Default is mid-sized;
   modifier classes below break that for portraits and wide landscapes. */
.menu-category__art {
  display: block;
  margin: 0 auto var(--space-3);
  max-width: 360px;
  max-height: 150px;
  width: auto;
  height: auto;
  opacity: 0.85;
}

/* Landscape scenes — let them breathe across the menu width. */
.menu-category__art--wide {
  max-width: min(640px, 92%);
  max-height: 220px;
}

/* Portrait figures — taller than they are wide. */
.menu-category__art--portrait {
  max-width: 200px;
  max-height: 200px;
}

/* Per-category personality — tilt, scale, alignment so the page doesn't
   read as a uniform stack of centered illustrations. */
.menu-category__art--cocktails { transform: rotate(-2deg); }

.menu-category__art--fancies {
  transform: rotate(1deg) scale(1.05);
  margin-bottom: var(--space-4);
}

.menu-category__art--beer {
  /* shift right, off-center */
  margin: 0 -20px var(--space-3) auto;
  transform: rotate(-3deg);
}

/* Counterweight art — absolutely positioned to balance the main art across
   the title axis. Hidden on narrow screens where there's no margin to use. */
.menu-category__art--counterweight {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  max-width: 600px;
  max-height: 360px;
}

.menu-category__art--beer-left {
  top: -40px;
  left: -120px;
  width: 620px;
  max-width: 620px;
  transform: rotate(-6deg);
  opacity: 0.85;
}

@media (max-width: 1023px) {
  .menu-category__art--counterweight { display: none; }
}

.menu-category__art--wine {
  /* the tallest, most cinematic placement */
  max-width: min(720px, 95%);
  max-height: 260px;
  transform: rotate(0deg);
}

.menu-category__art--snacks {
  /* push left, off-center */
  margin: 0 auto var(--space-3) -10px;
  transform: rotate(3deg);
}

.menu-category__art--na {
  transform: rotate(-2deg) scale(1.08);
  margin-bottom: var(--space-4);
}

/* Image-replacement variant — used by hand-lettered category titles like
   Spirit-Free. The PNG sets its own size; we just center & cap it. */
.menu-category__title--image {
  /* Author: Claude — preserves heading semantics while letting the PNG breathe. */
  font-size: 0;
  line-height: 0;
}

.menu-category__title--image img {
  display: block;
  margin: 0 auto;
  max-width: min(420px, 80vw);
  height: auto;
}

.menu-subcategory__title {
  font-family: var(--font-type);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--ink);
  text-transform: uppercase;
  text-align: center;
  margin: var(--space-4) 0 var(--space-3);
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4) var(--space-5);
}

@media (min-width: 768px) {
  .menu-grid { grid-template-columns: 1fr 1fr; }
}

/* Menu item */

.drink {
  break-inside: avoid;
}

.drink__header {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: 4px;
}

.drink__glass {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  align-self: center;
  object-fit: contain;
  color: var(--ink);
}

.drink__name {
  flex: 1;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.2;
}

.drink__alt {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

.drink__price {
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
  white-space: nowrap;
}

.drink__ingredients {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  margin: 0 0 4px;
  line-height: 1.35;
}

.drink__mood,
.drink__character {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.92rem;
  margin: 0 0 2px;
  line-height: 1.35;
  padding-left: calc(28px + var(--space-2));
}

.drink__mood .label,
.drink__character .label {
  font-family: var(--font-type);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-right: 0.3em;
}

.drink__note {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 4px 0 0;
  padding-left: calc(28px + var(--space-2));
}

/* Simple two-column list (beer, snacks, n/a) */

.dotted-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-1) var(--space-4);
}

@media (min-width: 768px) {
  .dotted-list { grid-template-columns: 1fr 1fr; }
}

.dotted-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: 1rem;
  padding: 4px 0;
}

.dotted-list .name { font-style: italic; }
.dotted-list .price { font-family: var(--font-type); font-style: normal; font-size: 0.95rem; }

/* Wine table */

.wine-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  max-width: 760px;
  font-size: 1rem;
}

.wine-table caption {
  font-family: var(--font-type);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--red);
  text-transform: uppercase;
  text-align: left;
  padding: var(--space-3) 0 var(--space-1);
  caption-side: top;
}

.wine-table td {
  padding: 8px 12px 8px 0;
  vertical-align: top;
  border-bottom: 1px dotted var(--rule);
}

.wine-table .grape { font-style: italic; font-weight: 600; }
.wine-table .producer { color: var(--ink-soft); font-style: italic; }
.wine-table .region { color: var(--ink-soft); font-style: italic; }
.wine-table .price { font-family: var(--font-type); font-style: normal; font-size: 0.92rem; white-space: nowrap; }

/* ─── Sketchy box (Old Fashioneds / Boilermakers panels) ─────────────── */

.sketch-box {
  position: relative;
  isolation: isolate;
  max-width: 640px;
  margin: var(--space-4) auto;
  padding: var(--space-4);
  background: var(--paper-deep);
  border: 1.5px solid var(--ink);
  /* Slightly off-square corners; the wobble belies the printed feel.
     Real hand-drawn corner PNGs can replace these later. */
  border-radius: 14px 6px 18px 4px / 6px 18px 4px 14px;
}

.sketch-box::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(26, 24, 20, 0.35);
  border-radius: 8px 14px 4px 16px / 14px 4px 16px 8px;
  pointer-events: none;
}

.sketch-box__title {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
  text-align: center;
  margin: 0 0 var(--space-3);
}

/* Sketch-box art lives BEHIND the content as a faint watermark.
   Each box gets a slightly different anchor so the two panels don't read
   as a matched set. */
.sketch-box__art {
  position: absolute;
  width: 130px;
  height: auto;
  opacity: 0.18;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

/* Old Fashioneds — eyes peer out from the lower-right of the panel. */
.sketch-box:nth-of-type(odd) .sketch-box__art {
  bottom: 12px;
  right: 14px;
  width: 110px;
  transform: rotate(6deg);
}

/* Boilermakers — crouched figure tucked into the upper-left of the panel. */
.sketch-box:nth-of-type(even) .sketch-box__art {
  top: 16px;
  left: 18px;
  width: 80px;
  transform: rotate(-8deg);
}

.sketch-box__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}

.sketch-box .drink + .drink {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px dotted var(--rule);
}

.highlighter {
  display: inline-block;
  padding: 0 8px;
  background: linear-gradient(transparent 55%, var(--highlight) 55% 92%, transparent 92%);
}

.classics-note {
  text-align: center;
  margin-top: var(--space-3);
  font-family: var(--font-type);
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* ─── Order pad / ruled paper (reservations, finest deli) ────────────── */

.order-pad {
  max-width: 560px;
  margin: var(--space-4) auto;
  padding: var(--space-4) var(--space-4) var(--space-5);
  background: #fbf3df;
  background-image:
    linear-gradient(transparent 0, transparent calc(2rem - 1px),
                    rgba(60, 90, 140, 0.28) calc(2rem - 1px), rgba(60, 90, 140, 0.28) 2rem,
                    transparent 2rem);
  background-size: 100% 2rem;
  background-position: 0 3.5rem;
  border: 1px solid rgba(26, 24, 20, 0.25);
  box-shadow:
    0 2px 0 rgba(26, 24, 20, 0.05),
    0 18px 40px rgba(26, 24, 20, 0.18);
  position: relative;
  font-family: var(--font-body);
  font-style: italic;
  line-height: 2rem;
}

.order-pad::before {
  /* The typewriter-stamped header band at the top of the pad */
  content: "Character Study";
  display: block;
  font-family: var(--font-type);
  font-style: normal;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-align: center;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-3);
  border-bottom: 1.5px solid var(--ink);
  line-height: 1.3;
}

.order-pad p { margin: 0 0 2rem; }
.order-pad p:last-child { margin-bottom: 0; }

.order-pad__title {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--red);
}

.order-pad__hand {
  font-family: var(--font-hand);
  font-style: normal;
  font-size: 1.15rem;
}

.order-pad a {
  color: var(--red);
  font-style: normal;
}

/* ─── Bookplate (Bagatelle Books callout) ────────────────────────────── */

.bookplate {
  position: relative;
  max-width: 640px;
  margin: var(--space-4) auto;
  padding: var(--space-4) var(--space-4) var(--space-5);
  background: var(--paper-deep);
  border: 6px double var(--ink);
  text-align: center;
}

/* The Character Study × Bagatelle bookplate PNG is the visual centerpiece —
   already a fully designed mark, so no extra ornament needed. */
.bookplate__mark {
  margin: 0 auto var(--space-3);
  max-width: min(360px, 70%);
}

.bookplate__mark img {
  display: block;
  width: 100%;
  height: auto;
}

.bookplate__body {
  max-width: 480px;
  margin: 0 auto var(--space-3);
  font-size: 1rem;
}

.bookplate__pricing { margin-top: var(--space-3); }

.bookplate__price {
  display: inline-block;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--red);
  line-height: 1;
}

.bookplate__price-label {
  display: block;
  font-family: var(--font-type);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--ink);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ─── Finest Deli — chit (uses .order-pad with tweaks) ───────────────── */

.order-pad--finest::before { content: "Finest × Character Study"; }

/* ─── Visit ──────────────────────────────────────────────────────────── */

.visit { padding: 0 var(--space-3); }

.map {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding-top: 56.25%;
  border: 4px double var(--ink);
  overflow: hidden;
  transition: box-shadow 300ms var(--ease-soft), transform 300ms var(--ease-soft);
}

.map:hover {
  box-shadow: 0 14px 44px rgba(26, 24, 20, 0.22);
  transform: translateY(-2px);
}

.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.visit__details {
  max-width: var(--max-prose);
  margin: var(--space-4) auto 0;
  text-align: center;
  font-size: 1rem;
}

.visit__details address {
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
}

.visit__contact,
.visit__maps { margin-top: var(--space-3); }

.visit__maps span { margin: 0 var(--space-1); color: var(--ink-soft); }

.visit__contact a,
.visit__maps a {
  font-family: var(--font-type);
  font-style: normal;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

/* ─── Newsletter (bookplate stamp) ───────────────────────────────────── */

.newsletter {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 0 var(--space-3);
  text-align: center;
}

.newsletter__cta { margin: var(--space-4) 0; }

/* Override Equipoise's fallback button so it matches the brand `.button`
   style — cream paper bg, red ink, red double-stroke border, slight tilt. */
.newsletter .equipoise-fallback-btn {
  display: inline-block;
  background-color: var(--paper);
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 2px;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-5);
  text-decoration: none;
  transform: rotate(-1.2deg);
  transition: background 220ms var(--ease-soft),
              color      220ms var(--ease-soft),
              transform  220ms var(--ease-soft),
              box-shadow 220ms var(--ease-soft);
}

.newsletter .equipoise-fallback-btn:hover,
.newsletter .equipoise-fallback-btn:focus-visible {
  background-color: var(--red);
  color: var(--paper);
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 0 8px 22px rgba(193, 48, 45, 0.3);
  outline: none;
}

/* ── Equipoise injected form ─────────────────────────────────────────── */

.equipoise-embed {
  margin: 0 auto;
  max-width: 480px;
}

.equipoise-embed iframe { width: 100%; }

.equipoise-form-container { width: 100%; }

.equipoise-form {
  display: grid;
  gap: var(--space-3);
  text-align: left;
}

@media (min-width: 480px) {
  .equipoise-form {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-2);
    row-gap: var(--space-3);
  }

  .equipoise-field--email,
  .equipoise-field--address,
  .equipoise-form > .equipoise-submit { grid-column: 1 / -1; }
}

.equipoise-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.equipoise-label {
  font-family: var(--font-type);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

.equipoise-input {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
  background: rgba(255, 252, 240, 0.55);
  border: 1px solid rgba(26, 24, 20, 0.35);
  border-radius: 2px;
  padding: 10px 12px;
  width: 100%;
  transition: border-color 200ms var(--ease-soft), background 200ms var(--ease-soft);
}

.equipoise-input::placeholder {
  color: var(--ink-soft);
  opacity: 0.55;
  font-style: italic;
}

.equipoise-input:hover { border-color: rgba(26, 24, 20, 0.55); }

.equipoise-input:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(255, 252, 240, 0.85);
  box-shadow: 0 0 0 3px rgba(193, 48, 45, 0.15);
}

/* Address field — line1 spans full width; city/state/zip share a row on
   wide viewports and wrap on narrow ones. Explicit `row` override since
   the base .equipoise-field rule sets flex-direction: column. */
.equipoise-field--address {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.equipoise-field--address .equipoise-label,
.equipoise-field--address .equipoise-input--address-line1 { flex-basis: 100%; }

.equipoise-field--address .equipoise-input--city        { flex: 2 1 200px; }
.equipoise-field--address .equipoise-input--state       { flex: 1 1 90px;  min-width: 80px; }
.equipoise-field--address .equipoise-input--postal-code { flex: 1 1 90px;  min-width: 80px; }

/* Honeypot — visually hidden, still in DOM for accessibility tools. */
.equipoise-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Submit — mirrors the brand `.button` style for consistency. */
.equipoise-submit {
  justify-self: center;
  margin-top: var(--space-2);
  display: inline-block;
  background: var(--paper);
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 2px;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-5);
  cursor: pointer;
  transform: rotate(-1.2deg);
  transition: background 220ms var(--ease-soft),
              color      220ms var(--ease-soft),
              transform  220ms var(--ease-soft),
              box-shadow 220ms var(--ease-soft);
}

.equipoise-submit:hover,
.equipoise-submit:focus-visible {
  background: var(--red);
  color: var(--paper);
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 0 8px 22px rgba(193, 48, 45, 0.3);
  outline: none;
}

.newsletter__fine-print {
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto;
}

.button {
  display: inline-block;
  padding: var(--space-2) var(--space-5);
  background: var(--paper);
  color: var(--red);
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--red);
  border-radius: 2px;
  transform: rotate(-1.2deg);
  transition: background 220ms var(--ease-soft),
              color      220ms var(--ease-soft),
              transform  220ms var(--ease-soft),
              box-shadow 220ms var(--ease-soft);
}

.button:hover,
.button:focus-visible {
  background: var(--red);
  color: var(--paper);
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 0 8px 22px rgba(193, 48, 45, 0.3);
  background-image: none;
}

/* ─── Affiliate (Slings & Arrows) ────────────────────────────────────── */

.affiliate {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: var(--space-4);
  border: double 4px var(--rule);
  background: var(--paper-deep);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 1rem;
  line-height: 1.55;
}

.affiliate__logo { margin: 0 0 var(--space-3); }
.affiliate p { margin-top: var(--space-3); }

/* ─── Footer ─────────────────────────────────────────────────────────── */

.footer {
  background: var(--ink);
  color: var(--paper);
  margin-top: var(--space-7);
  padding: var(--space-5) var(--space-3) var(--space-4);
}

.footer__rule {
  display: block;
  margin: 0 auto var(--space-4);
  max-width: 720px;
  width: 80%;
  filter: invert(1) brightness(2);
  opacity: 0.5;
}

.footer__row {
  max-width: var(--max-page);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  font-family: var(--font-type);
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-align: center;
}

.footer a { color: var(--paper); background: none; }

.footer a:hover,
.footer a:focus-visible {
  color: #d2b081;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__credits {
  max-width: var(--max-page);
  margin: var(--space-4) auto 0;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(245, 236, 214, 0.25);
  font-family: var(--font-type);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(245, 236, 214, 0.7);
  text-align: center;
  line-height: 1.7;
}

.footer__credits span { white-space: nowrap; }
.footer__credits span + span::before { content: " · "; margin: 0 8px; opacity: 0.6; }

.footer__social {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
}

.footer__social svg { transition: transform 250ms var(--ease-soft); }

.footer__social a:hover svg,
.footer__social a:focus-visible svg {
  transform: scale(1.15) rotate(-6deg);
}

/* ─── Press callout (pull-quote + publication credit) ────────────────── */

.press {
  max-width: 720px;
  margin: var(--space-6) auto 0;
  padding: var(--space-4) var(--space-3) 0;
  text-align: center;
  position: relative;
}

.press__label {
  font-family: var(--font-type);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 var(--space-1);
}

.press__publication {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--red);
  margin: 0 0 var(--space-3);
  letter-spacing: 0.02em;
}

.press__quote {
  margin: 0 auto var(--space-3);
  padding: 0;
  max-width: 600px;
}

.press__quote p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.45;
  margin: 0 0 var(--space-2);
  color: var(--ink);
}

.press__quote cite {
  display: block;
  font-family: var(--font-type);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.press__cta {
  font-family: var(--font-type);
  font-style: normal;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin: 0;
}

/* ─── Chalk-rule divider (section break) ─────────────────────────────── */

/* Hand-drawn chalk stroke between chapters. Class name kept for stability;
   the original marbled-paper artwork has been retired in favor of this
   lighter accent. */
.marbled-rule {
  height: clamp(28px, 5vw, 56px);
  max-width: 880px;
  margin: var(--space-6) auto;
  background-image: url("/images/accents/chalk-rule.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* ─── Forest band (banded callout used for partner sections) ─────────── */

.band {
  background: var(--forest);
  color: var(--paper);
  margin: var(--space-5) calc(var(--space-3) * -1);
  padding: var(--space-5) var(--space-4);
  position: relative;
}

.band--brass {
  border-top: 4px solid var(--brass);
  border-bottom: 4px solid var(--brass);
}

.band__inner {
  max-width: var(--max-prose);
  margin: 0 auto;
  text-align: center;
}

.band a { color: var(--brass); }
.band a:hover,
.band a:focus-visible {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Finest Deli chit ───────────────────────────────────────────────── */

.chit {
  max-width: 460px;
  margin: var(--space-3) auto 0;
  padding: var(--space-3) var(--space-4) var(--space-4);
  background: #fbf3df;
  color: var(--ink);
  border: 1px dashed rgba(26, 24, 20, 0.4);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.55;
  transform: rotate(-1deg);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.chit__stamp {
  display: inline-block;
  font-family: var(--font-type);
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--rust);
  border: 1.5px solid var(--rust);
  padding: 4px 10px;
  margin-bottom: var(--space-2);
  transform: rotate(-3deg);
  text-transform: uppercase;
}

.chit__hours {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 var(--space-1);
  color: var(--ink);
}

.chit p { margin-bottom: var(--space-1); }

/* ─── On the Shelf (currently-reading cards) ─────────────────────────── */

.shelf {
  max-width: var(--max-menu);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .shelf { grid-template-columns: repeat(3, 1fr); }
}

.shelf__card {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  padding: var(--space-3);
  text-align: center;
  font-size: 0.95rem;
  position: relative;
}

.shelf__card::before {
  /* Bookplate corner ornament */
  content: "❦";
  position: absolute;
  top: 8px; left: 12px;
  color: var(--red);
  font-size: 1.1rem;
}

.shelf__title {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 700;
  font-size: 1.1rem;
  margin: var(--space-2) 0 4px;
}

.shelf__author {
  font-family: var(--font-type);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

/* ─── The Room (interior photo gallery) ──────────────────────────────── */

.room {
  max-width: var(--max-menu);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.room__lead {
  max-width: 640px;
  margin: 0 auto var(--space-4);
  text-align: center;
  font-size: 1.1rem;
  font-style: italic;
}

.room__gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .room__gallery { grid-template-columns: repeat(3, 1fr); }
}

.room__photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--paper-deep);
  box-shadow: 0 6px 18px rgba(26, 24, 20, 0.12);
  transition: transform 320ms var(--ease-soft), box-shadow 320ms var(--ease-soft);
}

.room__photo:nth-child(odd)  { transform: rotate(-0.6deg); }
.room__photo:nth-child(even) { transform: rotate(0.5deg); }

.room__photo:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 0 12px 32px rgba(26, 24, 20, 0.22);
}

.room__photo img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ─── Decorative flourishes (margin doodles + watercolor backdrops) ──── */

/* Every section that hosts a flourish is its own stacking context so the
   z-index: -1 lives between the section's background and its in-flow text. */
.intro,
.menu-category,
.order-pad,
.bookplate,
.newsletter,
.room,
.visit {
  position: relative;
  isolation: isolate;
}

.flourish {
  /* Author: Claude — base rule for all sprinkled accent + wash overlays. */
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: -1;
  max-width: none;
}

/* ── Intro ────────────────────────────────────────────────────────────── */

.flourish--intro-wash {
  top: -30px;
  left: 50%;
  width: clamp(260px, 60%, 460px);
  transform: translateX(-50%) rotate(-2deg);
  opacity: 0.55;
  mix-blend-mode: multiply;
}

.flourish--intro-pencil {
  top: -40px;
  left: -60px;
  width: 110px;
  transform: rotate(-14deg);
  opacity: 0.7;
}

.flourish--intro-spiral {
  bottom: -36px;
  right: -32px;
  width: 64px;
  transform: rotate(10deg);
  opacity: 0.75;
}

/* ── Sketch-box (Old Fashioneds / Boilermakers) ──────────────────────── */

.flourish--sketchbox-curve {
  top: -22px;
  right: -16px;
  width: 110px;
  transform: rotate(20deg);
  opacity: 0.85;
}

.flourish--sketchbox-smudge {
  top: -18px;
  left: -22px;
  width: 90px;
  transform: rotate(-12deg);
  opacity: 0.6;
}

/* ── Menu category accents ───────────────────────────────────────────── */

.flourish--fancies {
  top: -32px;
  left: 50%;
  width: 300px;
  transform: translateX(-50%);
  opacity: 0.45;
  mix-blend-mode: multiply;
}

.flourish--beer {
  top: -24px;
  left: 8%;
  width: 140px;
  transform: rotate(-4deg);
  opacity: 0.7;
}

.flourish--wine {
  top: -16px;
  right: 6%;
  width: 110px;
  transform: rotate(8deg);
  opacity: 0.55;
  mix-blend-mode: multiply;
}

.flourish--snacks {
  top: -22px;
  left: 14%;
  width: 90px;
  transform: rotate(-8deg);
  opacity: 0.7;
}

.flourish--na {
  top: -28px;
  right: 10%;
  width: 96px;
  transform: rotate(-5deg);
  opacity: 0.7;
}

/* ── Bookplate corners ───────────────────────────────────────────────── */

.flourish--bookplate-tl {
  top: -22px;
  left: -22px;
  width: 100px;
  transform: rotate(-18deg);
  opacity: 0.55;
}

.flourish--bookplate-br {
  bottom: -22px;
  right: -22px;
  width: 100px;
  transform: rotate(162deg);
  opacity: 0.55;
}

/* ── Order-pad doodles ───────────────────────────────────────────────── */

.flourish--pad-ghost {
  top: 70px;
  right: -18px;
  width: 28px;
  transform: rotate(14deg);
  opacity: 0.85;
  z-index: 0;
}

.flourish--pad-signature {
  bottom: 14px;
  right: 28px;
  width: 140px;
  transform: rotate(-3deg);
  opacity: 0.45;
}

/* ── The Room ────────────────────────────────────────────────────────── */

.flourish--room-wash {
  top: 40%;
  right: -60px;
  width: 220px;
  transform: rotate(20deg);
  opacity: 0.35;
  mix-blend-mode: multiply;
}

.flourish--room-sketch {
  top: -60px;
  left: -120px;
  width: 340px;
  transform: rotate(-4deg);
  opacity: 0.55;
}

/* ── Visit (map) ─────────────────────────────────────────────────────── */

.flourish--visit-wash {
  top: -10px;
  left: -50px;
  width: 240px;
  transform: rotate(-14deg);
  opacity: 0.4;
  mix-blend-mode: multiply;
}

.flourish--visit-sketch {
  top: -60px;
  right: -60px;
  width: 130px;
  transform: rotate(6deg);
  opacity: 0.6;
}

/* ── Newsletter ──────────────────────────────────────────────────────── */

.flourish--newsletter-wash {
  top: 40px;
  left: 50%;
  width: clamp(280px, 70%, 540px);
  transform: translateX(-50%) rotate(-3deg);
  opacity: 0.55;
  mix-blend-mode: multiply;
}

.flourish--newsletter-sketch {
  top: -30px;
  right: -20px;
  width: 130px;
  transform: rotate(-8deg);
  opacity: 0.55;
}

/* ── Mobile — quieten the busy ones ──────────────────────────────────── */

@media (max-width: 767px) {
  .flourish--intro-pencil,
  .flourish--intro-spiral,
  .flourish--bookplate-tl,
  .flourish--bookplate-br,
  .flourish--pad-ghost,
  .flourish--room-wash,
  .flourish--room-sketch,
  .flourish--visit-wash,
  .flourish--visit-sketch,
  .flourish--newsletter-sketch { display: none; }

  .flourish--fancies,
  .flourish--newsletter-wash,
  .flourish--intro-wash { opacity: 0.4; }

  /* Stack footer credits — one item per line on narrow screens */
  .footer__credits span { display: block; }
  .footer__credits span + span::before { content: none; }
}

/* ─── Reveal-on-scroll ───────────────────────────────────────────────── */

/* Bounce-on-arrival — no fade. The overshoot cubic-bezier gives a small
   spring at the end of the slide, so the section "lands" instead of
   sliding to a stop. */
.reveal {
  transform: translateY(36px);
  transition: transform 480ms cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.reveal.is-visible { transform: translateY(0); }

/* ─── Keyframes ──────────────────────────────────────────────────────── */

@keyframes hero-pop {
  0%   { opacity: 0; transform: scale(0.92) rotate(-2deg); }
  60%  { opacity: 1; transform: scale(1.02) rotate(0.5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes drift {
  0%, 100% { transform: rotate(-0.8deg) translateY(0); }
  50%      { transform: rotate(0.8deg) translateY(-2px); }
}

/* ─── Reduced motion ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal { transform: none; }
  .hero__logo { animation: none; }
  .button { transform: none; }
  html { scroll-behavior: auto; }
}

/* ─── Print ──────────────────────────────────────────────────────────── */

@media print {
  .footer, .topnav, .map, .newsletter__cta, .hero__wash, .hero__accent, .flourish { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}
