/* =========================================================
   FOOD4PAULRUS — Prototype styles
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,400..900,0..100&family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Palette — black canvas, Syracuse orange, white + navy accents.
     Names are kept from the original theme so every existing rule keeps working:
       --paper  = light foreground (text/marks sitting ON colored fills)
       --ink    = primary text + hairline borders (now near-white)
       --tomato = Syracuse orange (primary)
       --deep   = navy   /  --mustard, --deep-soft = brighter azure-navy accents  */
  --night: #000000;        /* true black — the page canvas */
  --paper: #FFFFFF;        /* light-on-color foreground + light surfaces */
  --paper-warm: #17171D;   /* subtly raised band / hover / map backdrop */
  --tusk: #101015;         /* card, list + drawer surfaces */
  --ink: #F5F6F8;          /* primary text + borders (near-white) */
  --ink-soft: #A6ADBB;     /* secondary text (cool grey) */
  --tomato: #F76900;       /* SYRACUSE ORANGE — primary accent */
  --tomato-deep: #C4530A;  /* pressed / darker orange */
  --deep: #20447F;         /* navy */
  --deep-soft: #2C5AA8;    /* brighter azure-navy */
  --mustard: #2C5AA8;      /* remapped off gold → azure-navy (stays on-brand) */
  --flipper: #2F76E6;      /* Paulrus Guide "Flipper" award — vivid blue (map + badges) */
  --pin-default: #5A6E9C;  /* unranked map pins — muted steel-blue (cool, not orange) */
  --shadow: rgba(0, 0, 0, 0.5);
  --edge: rgba(255, 255, 255, 0.16); /* soft offset-shadow colour for dark mode */
  --line: rgba(255, 255, 255, 0.12); /* hairline dividers on dark */

  /* Type */
  --serif: 'Fraunces', 'Georgia', serif;
  --sans: 'Bricolage Grotesque', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Menlo', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--night);
  background-image:
    radial-gradient(circle at 15% 6%, rgba(247, 105, 0, 0.06) 0, transparent 40%),
    radial-gradient(circle at 85% 34%, rgba(47, 118, 230, 0.14) 0, transparent 46%),
    radial-gradient(circle at 50% 118%, rgba(32, 68, 127, 0.16) 0, transparent 55%);
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Subtle paper noise */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0.15 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

main, header, footer, nav { position: relative; z-index: 2; }
/* header (and its mobile dropdown) must sit above main page content */
header { z-index: 100; }

/* =========================================================
   TYPE
   ========================================================= */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 80, "opsz" 144;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tomato);
  font-weight: 500;
}

.mono { font-family: var(--mono); }

/* =========================================================
   LAYOUT
   ========================================================= */

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: max(32px, env(safe-area-inset-left));
  padding-right: max(32px, env(safe-area-inset-right));
}

@media (max-width: 640px) {
  .wrap {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }
}

/* =========================================================
   HEADER / NAV
   ========================================================= */

header {
  padding: 24px 0;
  border-bottom: 1.5px solid var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 44px;
  height: 44px;
}

.brand-text {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-text small {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
  margin-top: 4px;
}

nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

nav a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}

nav a:hover, nav a.active {
  color: var(--tomato);
}

nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--tomato);
}

.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 18px !important;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--tomato); color: var(--paper) !important; }

/* Hamburger toggle — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }

/* Mobile nav — collapse links into a tidy dropdown so nothing overflows */
@media (max-width: 800px) {
  .header-inner { gap: 12px; }
  .brand-text { font-size: 1.1rem; }

  .nav-toggle { display: inline-flex; }
  nav.open .nav-toggle .icon-menu { display: none; }
  nav.open .nav-toggle .icon-close { display: inline; }

  nav { position: relative; }

  /* Dim the page behind the open menu so it reads as a clean overlay */
  .nav-scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1100;
  }
  nav.open .nav-scrim { display: block; }

  nav ul {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: max-content;
    min-width: 210px;
    max-width: calc(100vw - 32px);
    padding: 10px;
    background: #1B1C24;                       /* opaque, clearly elevated */
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6); /* soft shadow, not the hard offset */
    z-index: 1200;
  }
  nav.open ul { display: flex; }

  nav ul li { width: 100%; }
  nav ul li a {
    display: block;
    padding: 12px 16px;
    border-radius: 9px;
    font-size: 1rem;
    color: var(--ink);
  }
  nav ul li a:not(.nav-cta):hover,
  nav ul li a:not(.nav-cta):active { background: rgba(255, 255, 255, 0.06); }
  nav a.active::after { display: none; }
  nav a.active { color: var(--tomato); }

  /* Separate the CTA from the links with a hairline */
  nav ul li:last-child {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-cta { width: 100%; text-align: center; padding: 12px 16px !important; }
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding: 80px 0 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-weight: 900;
}

.hero h1 .accent {
  color: var(--tomato);
  font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}

.hero h1 .under {
  position: relative;
  white-space: nowrap;
}

.hero h1 .under svg {
  position: absolute;
  left: -4%;
  bottom: -12px;
  width: 108%;
  height: 14px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-top: 24px;
  max-width: 42ch;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-walrus {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-walrus svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  filter: drop-shadow(4px 6px 0 var(--ink));
}

.hero-tape {
  position: absolute;
  top: 8%;
  right: 8%;
  background: var(--mustard);
  padding: 6px 14px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transform: rotate(8deg);
  border: 1.5px solid var(--ink);
  z-index: 3;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-walrus { order: -1; }
  .hero-walrus svg { max-width: 280px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 0.1s;
}

.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--ink); }

.btn-primary { background: var(--tomato); color: var(--paper); border-color: var(--ink); }
.btn-secondary { background: var(--tusk); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }

/* =========================================================
   LATEST BITES (home)
   ========================================================= */

.latest {
  padding: 80px 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper-warm);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-head .eyebrow { margin-bottom: 8px; }

.polaroids {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.polaroid {
  background: var(--tusk);
  padding: 14px 14px 20px;
  border: 1.5px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  display: block;
}

.polaroid:hover { transform: rotate(0) translateY(-4px); }

.polaroid-image {
  aspect-ratio: 1;
  background: var(--ink);
  margin-bottom: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2rem;
  text-align: center;
  padding: 20px;
  line-height: 1;
}

.polaroid:nth-child(1) .polaroid-image { background: var(--tomato); }
.polaroid:nth-child(2) .polaroid-image { background: var(--deep); }
.polaroid:nth-child(3) .polaroid-image { background: var(--mustard); color: var(--ink); }
.polaroid:nth-child(4) .polaroid-image { background: var(--ink); }

.polaroid-caption {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.polaroid-caption strong {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

@media (max-width: 1000px) {
  .polaroids { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* =========================================================
   TWO-UP SECTION (home)
   ========================================================= */

.twoup {
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.twoup-card {
  padding: 60px 48px;
  border: 1.5px solid var(--ink);
  position: relative;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s;
}

.twoup-card:first-child { background: var(--tomato); color: var(--paper); border-right: none; }
.twoup-card:last-child { background: var(--deep); color: var(--paper); }

.twoup-card:hover { transform: translateY(-4px); }

.twoup-card h2 { color: inherit; margin-bottom: 20px; }
.twoup-card p { max-width: 32ch; opacity: 0.9; margin-bottom: 28px; }

.twoup-card .arrow {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 900;
}

@media (max-width: 800px) {
  .twoup { grid-template-columns: 1fr; padding: 60px 0; }
  .twoup-card:first-child { border-right: 1.5px solid var(--ink); border-bottom: none; }
}

/* =========================================================
   EATS PAGE
   ========================================================= */

.eats-header {
  padding-top: 40px;
  padding-bottom: 24px;
}

.eats-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.eats-title h1 { font-size: clamp(2.5rem, 5vw, 4rem); }

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.filter-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  margin-right: 8px;
}

.filter-pill {
  padding: 6px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--tusk);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
}

.filter-pill:hover { background: var(--paper-warm); }

.filter-pill.active {
  background: var(--ink);
  color: var(--paper);
}

.filter-pill.top-only {
  background: var(--tomato);
  color: var(--paper);
  border-color: var(--ink);
}

.filter-pill.top-only.active {
  background: var(--ink);
  color: var(--tomato);
}

.eats-body {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 0;
  height: calc(100vh - 260px);
  height: calc(100dvh - 260px);
  min-height: 600px;
  border: 1.5px solid var(--ink);
  margin-bottom: 60px;
}

.card-list {
  overflow-y: auto;
  border-right: 1.5px solid var(--ink);
  background: var(--tusk);
}

.card-list::-webkit-scrollbar { width: 8px; }
.card-list::-webkit-scrollbar-track { background: var(--tusk); }
.card-list::-webkit-scrollbar-thumb { background: var(--ink); }

.restaurant-card {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(27, 22, 20, 0.15);
  cursor: pointer;
  transition: background 0.1s;
  position: relative;
}

.restaurant-card:hover, .restaurant-card.selected {
  background: var(--paper-warm);
}

.restaurant-card.selected {
  border-left: 4px solid var(--tomato);
  padding-left: 20px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}

.card-name {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 60, "opsz" 144;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.card-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.card-meta .sep { margin: 0 8px; opacity: 0.4; }

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 2px 8px;
  background: var(--paper);
  border: 1px solid var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.top-badge {
  background: var(--tomato);
  color: var(--paper);
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.top-badge svg { width: 12px; height: 12px; }

#map {
  height: 100%;
  width: 100%;
  background: var(--paper-warm);
}

/* Custom Leaflet overrides */
.leaflet-container { font-family: var(--sans); background: var(--paper-warm); }

/* Popup — scoped under .leaflet-popup so these win over Leaflet's own stylesheet,
   which loads AFTER ours and would otherwise force a white (unreadable) popup. */
.leaflet-popup .leaflet-popup-content-wrapper {
  background: var(--tusk);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  padding: 0;
}
.leaflet-popup .leaflet-popup-content {
  margin: 16px;
  font-family: var(--sans);
  color: var(--ink);
}
.leaflet-popup .leaflet-popup-content strong {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}
.leaflet-popup .leaflet-popup-tip {
  background: var(--tusk);
  border: 1.5px solid var(--ink);
  box-shadow: none;
}
.leaflet-popup .leaflet-popup-close-button { color: var(--ink) !important; font-size: 20px !important; }

.pin {
  width: 34px;
  height: 40px;
  background: var(--deep);
  border: 2px solid var(--ink);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0 var(--ink);
}
.pin.top { background: var(--tomato); }
.pin span {
  transform: rotate(45deg);
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 900;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .eats-body {
    grid-template-columns: 1fr;
    height: auto;
  }
  /* Map first on mobile — reachable right after the filters, list below it */
  #map { order: -1; height: 58vh; height: 58dvh; min-height: 360px; border-bottom: 1px solid var(--line); }
  .card-list { order: 0; border-right: none; max-height: 460px; }
}

/* Drawer */
.drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: var(--tusk);
  border-left: 1.5px solid var(--ink);
  box-shadow: -8px 0 0 var(--ink), -12px 0 20px rgba(27,22,20,0.3);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 1000;
  overflow-y: auto;
  padding: 32px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
}

.drawer.open { transform: translateX(0); }

.drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  border-radius: 50%;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-close:hover { background: var(--tomato); color: var(--paper); }

.drawer h2 {
  font-size: 2rem;
  margin: 40px 0 6px;
  padding-right: 40px;
}

.drawer-meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.drawer-hero {
  aspect-ratio: 4/3;
  background: var(--deep);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.5rem;
  text-align: center;
  padding: 20px;
  margin-bottom: 20px;
  border: 1.5px solid var(--ink);
  line-height: 1.05;
}

.drawer-hero.tomato { background: var(--tomato); }
.drawer-hero.mustard { background: var(--mustard); color: var(--ink); }
.drawer-hero.ink { background: var(--ink); }

.drawer-section {
  padding: 20px 0;
  border-top: 1px solid rgba(27, 22, 20, 0.2);
}

.drawer-section h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  margin-bottom: 10px;
  font-weight: 500;
}

.drawer-section p { font-size: 0.95rem; }

.ig-embed-placeholder {
  aspect-ratio: 1;
  background: var(--paper);
  border: 1.5px dashed var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  padding: 20px;
}

.ig-embed-placeholder svg { width: 40px; height: 40px; }
.ig-embed-placeholder span { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.15em; }

.stars { color: var(--tomato); letter-spacing: 2px; }

/* =========================================================
   RECIPES PAGE
   ========================================================= */

.recipes-header {
  padding: 60px 0 40px;
  text-align: center;
}

.recipes-header h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
}

.recipes-header .eyebrow { margin-bottom: 16px; display: inline-block; }

.recipes-header p {
  font-size: 1.15rem;
  max-width: 48ch;
  margin: 20px auto 0;
  color: var(--ink-soft);
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 80px;
}

.recipe-card {
  border: 1.5px solid var(--ink);
  background: var(--tusk);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s;
  box-shadow: 6px 6px 0 var(--ink);
}

.recipe-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ink);
}

.recipe-hero {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 800;
  font-size: 2rem;
  text-align: center;
  line-height: 1;
  border-bottom: 1.5px solid var(--ink);
  position: relative;
}

.recipe-card:nth-child(3n+1) .recipe-hero { background: var(--tomato); }
.recipe-card:nth-child(3n+2) .recipe-hero { background: var(--deep); }
.recipe-card:nth-child(3n+3) .recipe-hero { background: var(--mustard); color: var(--ink); }

.video-flag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--ink);
  color: var(--paper);
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.video-flag svg { width: 10px; height: 10px; }

.recipe-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }

.recipe-title {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 80, "opsz" 144;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.recipe-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.recipe-tags { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .recipe-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 600px) {
  .recipe-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   RECIPE DETAIL PAGE
   ========================================================= */

.recipe-detail {
  padding: 40px 0 80px;
}

.recipe-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
}

.recipe-detail-hero {
  aspect-ratio: 1;
  background: var(--tomato);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 3rem;
  text-align: center;
  padding: 40px;
  line-height: 1;
  border: 1.5px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}

.recipe-detail h1 { font-size: clamp(2.5rem, 5vw, 4rem); }

.recipe-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 36px;
  padding: 20px 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.stat-value {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.4rem;
}

.ingredients-list {
  list-style: none;
}

.ingredients-list li {
  padding: 12px 0;
  border-bottom: 1px dashed rgba(27, 22, 20, 0.25);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
}

.ingredients-list li:last-child { border-bottom: none; }

.ing-name { flex: 1; }

.ing-amount {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.steps-list {
  counter-reset: step;
  list-style: none;
  margin-top: 20px;
}

.steps-list li {
  counter-increment: step;
  padding: 20px 0 20px 60px;
  position: relative;
  border-bottom: 1px solid rgba(27, 22, 20, 0.15);
}

.steps-list li:last-child { border-bottom: none; }

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 20px;
  width: 40px;
  height: 40px;
  background: var(--tomato);
  color: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.1rem;
}

.section-heading {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.8rem;
  margin: 60px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--ink);
  display: inline-block;
}

@media (max-width: 900px) {
  .recipe-detail-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */

.about {
  padding-top: 60px;
  padding-bottom: 80px;
}

.about-hero {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.about-photo {
  width: 100%;
  max-width: 430px;
  margin: 0;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--tomato);
  overflow: hidden;
  background: var(--tusk);
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.about-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 20px; }

.about p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  max-width: 62ch;
  color: var(--ink-soft);
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1.5px solid var(--ink);
  margin: 40px 0;
}

.fact {
  padding: 32px 24px;
  border-right: 1.5px solid var(--ink);
  text-align: center;
}

.fact:last-child { border-right: none; }

.fact-num {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-weight: 900;
  font-size: 3rem;
  color: var(--tomato);
  line-height: 1;
  margin-bottom: 8px;
}

.fact-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

@media (max-width: 800px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: none; }
  .fact:nth-child(1), .fact:nth-child(2) { border-bottom: 1.5px solid var(--ink); }
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  background: var(--ink);
  color: var(--paper);
  padding: 60px 0 32px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  margin-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: var(--paper);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.footer-brand p { opacity: 0.7; max-width: 40ch; font-size: 0.95rem; }

.footer-col h5 {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--mustard);
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  color: var(--paper);
  text-decoration: none;
  opacity: 0.8;
  font-size: 0.95rem;
}

.footer-col a:hover { opacity: 1; color: var(--tomato); }

.footer-bottom {
  border-top: 1px solid rgba(243, 229, 184, 0.2);
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 0.75rem;
  opacity: 0.6;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* =========================================================
   MISC
   ========================================================= */

.squiggle {
  color: var(--flipper);
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
}

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

/* ---- The Paulrus Guide: awards filter, legend + badges (added) ---- */
.filter-pill.award.active {
  background: var(--tomato);
  color: var(--paper);
  border-color: var(--ink);
}
.award-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding: 12px 0 4px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
}
.award-legend b { font-family: var(--sans); font-weight: 700; }
.award-legend b.aw-tusk  { color: var(--tomato-deep); }
/* award badges on cards / popups / drawer */
.tag.aw-tusk  { background: var(--tomato); color: var(--paper); border-color: var(--ink); }

/* ---- Instagram thumbnail in the drawer coverage section (compact tile) ---- */
.ig-thumb {
  display: block;
  width: 100%;
  max-width: 200px;
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background: var(--paper);
}
.ig-thumb-media {
  position: relative;
  display: block;
  line-height: 0;
}
.ig-thumb-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  max-height: 250px;
}
.ig-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 22, 20, 0.72);
  color: var(--paper);
  border-radius: 50%;
  font-size: 0.95rem;
  padding-left: 3px;
}
.ig-thumb-cap {
  display: block;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  border-top: 1.5px solid var(--ink);
  color: var(--tomato);
}
/* If the hosted image fails, collapse to a plain text link (keeps it usable) */
.ig-thumb.broken .ig-thumb-media { display: none; }
.ig-thumb.broken .ig-thumb-cap { border-top: none; }
/* =========================================================
   DARK THEME ADJUSTMENTS  (black + Syracuse orange + white + navy)
   Later rules win over the originals above. This block only fixes
   the handful of pairings that assumed a light background.
   ========================================================= */

/* --- Primary CTA in the nav: branded orange pill --- */
.nav-cta { background: var(--tomato); color: #fff !important; }
.nav-cta:hover { background: var(--tomato-deep); color: #fff !important; }

/* --- Chips / small surfaces: outline style instead of solid white --- */
.tag { background: transparent; border-color: var(--line); color: var(--ink); }
.drawer-close { background: var(--tusk); color: var(--ink); }
.drawer-close:hover { background: var(--tomato); color: #fff; }
.ig-embed-placeholder { background: var(--tusk); border-color: var(--line); }
.ig-thumb { background: var(--tusk); }
.video-flag { background: var(--night); color: var(--ink); }

/* --- White tiles need dark glyphs so the letters read --- */
.polaroid:nth-child(4) .polaroid-image { color: var(--night); }
.drawer-hero.ink { color: var(--night); }

/* --- Hairline dividers: light, not the old dark rgba --- */
.restaurant-card { border-bottom: 1px solid var(--line); }
.drawer-section { border-top: 1px solid var(--line); }
.ingredients-list li { border-bottom: 1px dashed var(--line); }
.steps-list li { border-bottom: 1px solid var(--line); }

/* --- Footer: keep the site black; hairline top rule instead of a white slab --- */
footer { background: var(--night); color: var(--ink); border-top: 1px solid var(--line); }
.footer-bottom { border-top: 1px solid var(--line); }

/* --- Offset "sticker" shadows: soften solid black → subtle white edge --- */
.polaroid { box-shadow: 5px 5px 0 var(--edge); }
.recipe-card { box-shadow: 5px 5px 0 var(--edge); }
.recipe-card:hover { box-shadow: 8px 8px 0 var(--edge); }
.recipe-detail-hero { box-shadow: 8px 8px 0 var(--edge); }
.ig-thumb { box-shadow: 4px 4px 0 var(--edge); }
.btn:hover { box-shadow: 4px 4px 0 var(--edge); }
.btn:active { box-shadow: 0 0 0 var(--edge); }
.pin { box-shadow: 2px 2px 0 var(--edge); }
.drawer { box-shadow: -6px 0 0 var(--edge), -18px 0 40px rgba(0,0,0,0.6); }

/* --- Leaflet on a dark basemap (popup colours handled in the popup block above) --- */
.leaflet-container { background: var(--paper-warm); }

/* (Award-legend colours are set in the MAP + PAULRUS GUIDE block below.) */

/* =========================================================
   MAP + PAULRUS GUIDE  (Tusks = white · Flipper = blue · rest = steel-blue)
   Cooler, on-brand, and readable across every filter state.
   This block comes last, so it settles the award colours for good.
   ========================================================= */

/* --- Map pins: three clearly distinct colours on the dark basemap ---
   Tusks are white (like real tusks), Flipper is a vivid blue (blue walrus),
   and everything unranked is a muted steel-blue so the map reads cool, not orange. */
.pin { background: var(--pin-default); border: 2px solid #FFFFFF; box-shadow: 2px 3px 0 rgba(0,0,0,0.55); }
.pin span { color: #FFFFFF; }
.pin.tusks   { background: #FFFFFF; border-color: var(--deep); }
.pin.tusks span { color: var(--deep); }
.pin.flipper { background: var(--flipper); border-color: #FFFFFF; }
.pin.flipper span { color: #FFFFFF; }

/* --- Guide badges (cards, map popups, drawer) --- */
.tag.aw-tusk    { background: #FFFFFF;       color: var(--deep); border-color: transparent; }
.tag.aw-flipper { background: var(--flipper); color: #fff;        border-color: transparent; }

/* --- Legend labels: colour-matched to the pins --- */
.award-legend b.aw-tusk    { color: var(--ink); }
.award-legend b.aw-flipper { color: var(--flipper); }

/* --- Filter pills: high contrast in EVERY state (fixes the old white-on-white) --- */
.filter-pill {
  background: var(--tusk);
  color: var(--ink);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
}
.filter-pill:hover {
  background: #1B1B22;
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}
/* Neutral selected state — All / neighbourhood / cuisine / Tusks (its pin is white too) */
.filter-pill.active {
  background: #fff;
  color: var(--night);
  border-color: #fff;
}
/* Flipper filter takes its blue when active — a little extra blue, ties to the map */
.filter-pill.award.active[data-value="flipper"] {
  background: var(--flipper); color: #fff; border-color: var(--flipper);
}

/* --- Frame the map cleanly instead of boxing it in hard white --- */
.filters { border-top-color: var(--line); border-bottom-color: var(--line); }
.eats-body { border-color: var(--line); }
.card-list { border-right-color: var(--line); }
.filter-label { color: var(--ink-soft); }

/* =========================================================
   MOBILE FIX + EXTRA BLUE ACCENTS
   ========================================================= */

/* --- Off-canvas drawer no longer stretches the page on mobile ---
   The closed drawer used to sit fully off-screen to the right as a fixed
   element, widening the document and shoving the navbar rightward. Wrapping it
   in a fixed, clipping viewport keeps that overflow contained. --- */
.drawer-viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;   /* clicks pass through when the drawer is closed */
  z-index: 1000;
}
.drawer {
  position: absolute;     /* was fixed — now clipped by .drawer-viewport */
  pointer-events: auto;
}
html { overflow-x: hidden; }  /* belt-and-suspenders against sideways scroll */

/* --- More blue, less Halloween --- */
/* Secondary button reads navy, pairing with the orange primary */
.btn-secondary { background: var(--deep); color: #fff; border-color: var(--deep); }
.btn-secondary:hover { background: var(--deep-soft); border-color: var(--deep-soft); }

/* About-page stats alternate orange / blue instead of all-orange */
.about-facts .fact:nth-child(even) .fact-num { color: var(--flipper); }

/* --- Award icon sizing (tusk / flipper) on pins and list badges --- */
.pin span { display: flex; align-items: center; justify-content: center; }
.pin span svg { width: 20px; height: 20px; display: block; }
.tag { display: inline-flex; align-items: center; gap: 5px; }
.tag svg { width: 13px; height: 13px; display: block; flex: 0 0 auto; }

/* --- Walrus map markers (SVG) --- */
.custom-pin-wrap svg { display: block; filter: drop-shadow(1px 2px 2px rgba(0,0,0,0.55)); }

/* =========================================================
   CONTACT POPUP (opened from nav CTA + About page)
   ========================================================= */
.contact-modal { position: fixed; inset: 0; z-index: 2000; display: none; }
.contact-modal.open { display: block; }
.contact-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(3px); }
.contact-dialog {
  position: relative;
  width: calc(100% - 32px);
  max-width: 460px;
  margin: 9vh auto 0;
  background: #14141B;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6);
  padding: 30px 28px 26px;
  animation: contactPop 0.22s ease;
}
@keyframes contactPop { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.contact-dialog .eyebrow { color: var(--tomato); }
.contact-dialog h2 { margin: 8px 0; }
.contact-intro { color: var(--ink-soft); margin-bottom: 20px; font-size: 0.98rem; line-height: 1.5; }
.contact-close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px;
  color: var(--ink); cursor: pointer;
}
.contact-close:hover { background: rgba(255, 255, 255, 0.06); }
.contact-close svg { width: 18px; height: 18px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--ink-soft); text-transform: uppercase;
}
.contact-form input, .contact-form textarea {
  font-family: var(--sans); font-size: 1rem;
  background: #0C0C11; color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px;
  padding: 11px 13px; width: 100%; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--tomato); box-shadow: 0 0 0 3px rgba(247, 105, 0, 0.18);
}
.contact-form input[name="botcheck"] { display: none; }
.contact-submit { width: 100%; justify-content: center; margin-top: 4px; cursor: pointer; }
.contact-status { margin-top: 14px; font-size: 0.95rem; line-height: 1.45; }
.contact-status.ok { color: #4ADE80; }
.contact-status.err { color: #F87171; }
@media (max-width: 500px) { .contact-dialog { margin-top: 6vh; padding: 26px 20px 22px; } }

/* =========================================================
   COMPACT FILTER BAR (Eats) — guide pills + dropdowns, minimal height
   ========================================================= */
.filter-bar {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fb-guide { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.segmented { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.fb-key-toggle {
  background: none; border: none; padding: 4px 2px;
  color: var(--ink-soft); font-family: var(--sans); font-size: 0.85rem;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.fb-key-toggle:hover { color: var(--ink); }
.award-legend[hidden] { display: none; }

.fb-selects { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.fb-select { display: flex; flex-direction: column; gap: 5px; flex: 1 1 200px; min-width: 150px; }
.fb-select > span {
  font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-soft);
}
.fb-select select {
  font-family: var(--sans); font-size: 0.95rem;
  color: var(--ink); background-color: var(--tusk);
  border: 1.5px solid rgba(255, 255, 255, 0.16); border-radius: 10px;
  padding: 10px 34px 10px 12px; width: 100%;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23A6ADBB' stroke-width='2' stroke-linecap='round'><path d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
}
.fb-select select:focus { outline: none; border-color: var(--tomato); box-shadow: 0 0 0 3px rgba(247, 105, 0, 0.16); }
.fb-select option { background: #14141B; color: var(--ink); }
.fb-reset {
  align-self: flex-end;
  background: transparent; color: var(--ink-soft);
  border: 1.5px solid rgba(255, 255, 255, 0.16); border-radius: 999px;
  padding: 9px 18px; font-family: var(--sans); font-weight: 600; font-size: 0.85rem; cursor: pointer;
}
.fb-reset:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.4); }
@media (max-width: 560px) {
  .fb-select { flex: 1 1 44%; min-width: 0; }
  .fb-reset { flex: 0 0 auto; align-self: flex-end; padding: 9px 14px; }
}