/* ==========================================================================
   GERONIMO'S DELI — Throggs Neck, The Bronx
   Design tokens: butcher paper ground, awning green, salumi red, price-tag gold.
   Type: Anton (painted signage) / Libre Franklin (NY Franklin Gothic lineage)
         / Grand Hotel (storefront script, used sparingly)
   ========================================================================== */

/* ---------- Tokens: light (default, un-stamped) ---------- */
:root {
  --paper:        #F1E7D5;
  --paper-2:      #E7DAC1;
  --card:         #FBF5E9;
  --card-2:       #F5ECDA;

  --ink:          #1E1A16;
  --ink-2:        #4C4239;
  --ink-3:        #7C6E60;

  --rule:         #D6C6A8;
  --rule-soft:    #E2D5BB;

  --brand-bg:     #124A34;   /* awning green as a surface */
  --brand-bg-2:   #176244;
  --brand-fg:     #F4EBD9;   /* text on the awning */
  --brand-text:   #12523A;   /* green as text on paper */
  --brand-stripe: #FDF8EC;   /* awning stripe */

  --accent-bg:    #9E2A2F;   /* salumi red */
  --accent-text:  #8E2429;

  --gold-text:    #856012;
  --gold-line:    #C08F2C;

  --shadow:       rgba(38, 30, 20, .13);
  --shadow-2:     rgba(38, 30, 20, .22);
  --focus:        #9E2A2F;

  --wrap: 1140px;
  --measure: 62ch;
  --radius: 3px;
}

/* ---------- Tokens: dark (system preference, unless light is stamped) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:        #15110D;
    --paper-2:      #1E1811;
    --card:         #221B14;
    --card-2:       #2A2219;

    --ink:          #F2E8D6;
    --ink-2:        #CDBFA8;
    --ink-3:        #9C8D79;

    --rule:         #3B3126;
    --rule-soft:    #2E271E;

    --brand-bg:     #0E3E2C;
    --brand-bg-2:   #13543B;
    --brand-fg:     #EFE4CE;
    --brand-text:   #6BC199;
    --brand-stripe: #C3B497;

    --accent-bg:    #8A2429;
    --accent-text:  #E88781;

    --gold-text:    #E0B45E;
    --gold-line:    #8A6415;

    --shadow:       rgba(0, 0, 0, .55);
    --shadow-2:     rgba(0, 0, 0, .7);
    --focus:        #E0B45E;
  }
}

/* ---------- Tokens: dark (explicitly stamped) ---------- */
:root[data-theme="dark"] {
  --paper:        #15110D;
  --paper-2:      #1E1811;
  --card:         #221B14;
  --card-2:       #2A2219;

  --ink:          #F2E8D6;
  --ink-2:        #CDBFA8;
  --ink-3:        #9C8D79;

  --rule:         #3B3126;
  --rule-soft:    #2E271E;

  --brand-bg:     #0E3E2C;
  --brand-bg-2:   #13543B;
  --brand-fg:     #EFE4CE;
  --brand-text:   #6BC199;
  --brand-stripe: #C3B497;

  --accent-bg:    #8A2429;
  --accent-text:  #E88781;

  --gold-text:    #E0B45E;
  --gold-line:    #8A6415;

  --shadow:       rgba(0, 0, 0, .55);
  --shadow-2:     rgba(0, 0, 0, .7);
  --focus:        #E0B45E;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* faint butcher-paper tooth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
  background-image:
    radial-gradient(circle at 12% 8%, var(--paper-2) 0, transparent 30%),
    radial-gradient(circle at 88% 26%, var(--paper-2) 0, transparent 26%);
}

body > * { position: relative; z-index: 1; }

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

a { color: var(--accent-text); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-bg);
  color: var(--brand-fg);
  padding: 10px 16px;
  z-index: 99;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: Anton, "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
  font-weight: 400;
  letter-spacing: .012em;
  line-height: .96;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 6.6vw, 4.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); letter-spacing: .02em; }

p { margin: 0 0 1.05em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.script {
  font-family: "Grand Hotel", "Brush Script MT", cursive;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--brand-text);
}

.eyebrow {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 .55rem;
}

.lede { font-size: 1.14rem; color: var(--ink-2); }

.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Header + awning ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
  flex-wrap: wrap;
}

/* --- Logo lockup --- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-badge {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: block;
}

.logo-words { display: flex; flex-direction: column; line-height: 1; }

.logo-name {
  font-family: Anton, "Arial Narrow", sans-serif;
  text-transform: uppercase;
  font-size: 1.42rem;
  letter-spacing: .015em;
  color: var(--ink);
}

.logo-sub {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .175em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
}

/* --- Nav --- */
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

.nav a {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  padding: 9px 13px;
  border-radius: var(--radius);
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--brand-text); box-shadow: inset 0 -3px 0 var(--gold-line); }

.nav-call {
  margin-left: 6px;
  background: var(--accent-bg) !important;
  color: #FBF5E9 !important;
  padding: 10px 16px !important;
  box-shadow: none !important;
}
.nav-call:hover { background: var(--accent-text) !important; }

/* --- The awning: a striped, scalloped valance under the header, sitewide --- */
.awning-wrap { filter: drop-shadow(0 3px 4px var(--shadow)); }

.awning {
  height: 27px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .22) 0 3px, transparent 3px),
    repeating-linear-gradient(
      90deg,
      var(--brand-bg) 0 44px,
      var(--brand-stripe) 44px 88px
    );
  -webkit-mask:
    radial-gradient(circle 8px at 50% 0, transparent 97%, #000) 0 100% / 24px 8px repeat-x,
    linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 7px) no-repeat;
  mask:
    radial-gradient(circle 8px at 50% 0, transparent 97%, #000) 0 100% / 24px 8px repeat-x,
    linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 7px) no-repeat;
}

/* --- Compact hours: two aligned columns, one block per line.
       Used in the hero strip, the About sidebar and the footer, where a single
       dot-separated run wraps mid-block and becomes unreadable. --- */
.hours-mini {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 4px 14px;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  color: inherit;
}
.hm-day { opacity: .72; white-space: nowrap; }
.hm-time { white-space: nowrap; font-weight: 600; }

.site-footer .hours-mini { color: #DCD0B8; font-size: .92rem; }
.hero-facts .hours-mini { font-size: .84rem; margin-top: 1px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: "Libre Franklin", Arial, sans-serif;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .14s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--brand-bg); color: var(--brand-fg); border-color: var(--brand-bg); }
.btn-primary:hover { background: var(--brand-bg-2); border-color: var(--brand-bg-2); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-accent { background: var(--accent-bg); color: #FBF5E9; border-color: var(--accent-bg); }
.btn-accent:hover { background: var(--accent-text); border-color: var(--accent-text); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 92px); }
.section-tight { padding-block: clamp(40px, 5vw, 60px); }
.section-band { background: var(--card-2); border-block: 1px solid var(--rule-soft); }
.section-dark { background: var(--brand-bg); color: var(--brand-fg); }
.section-dark h2, .section-dark h3 { color: var(--brand-fg); }
.section-dark p { color: #DCD0B8; }
.section-dark .eyebrow { color: var(--gold-line); }

.section-head { margin-bottom: 34px; }
.section-head h1 + p, .section-head h2 + p { margin-top: 14px; }
.section-head p { color: var(--ink-2); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(46px, 6vw, 78px) clamp(40px, 5vw, 66px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero h1 { margin-bottom: 20px; }
.hero h1 em {
  font-style: normal;
  color: var(--accent-text);
  display: block;
}

.hero .lede { max-width: 46ch; margin-bottom: 26px; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 18px 26px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: .84rem;
  color: var(--ink-2);
}
.hero-facts strong {
  display: block;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 3px;
}
.hero-facts a { color: var(--ink-2); text-decoration-color: var(--gold-line); }

.storefront { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 34px var(--shadow)); }

/* ---------- Proof points ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.pillar { background: var(--card); padding: 30px 26px; }
.pillar h3 { color: var(--brand-text); margin-bottom: 10px; }
.pillar p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.pillar .num {
  font-family: Anton, sans-serif;
  font-size: .8rem;
  letter-spacing: .1em;
  color: var(--gold-text);
  display: block;
  margin-bottom: 12px;
}

/* ---------- Menu board ---------- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
  align-items: start;
}

.board {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 5px solid var(--brand-bg);
  padding: 26px 26px 28px;
  box-shadow: 0 2px 0 var(--rule-soft);
}

.board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 4px;
}
.board h3 { color: var(--ink); }
.board-unit {
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold-text);
  white-space: nowrap;
}
.board-note { font-size: .82rem; color: var(--ink-3); margin: 6px 0 18px; }

.items { list-style: none; margin: 0; padding: 0; }

.item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.item:last-child { border-bottom: 0; }

.item-name { font-size: .98rem; color: var(--ink); }
.item-leader { flex: 1 1 auto; border-bottom: 1px dotted var(--rule); transform: translateY(-4px); min-width: 14px; }
.item-price {
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.item-price.ask { font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

.board-soon { border-top-color: var(--gold-line); border-style: dashed; background: var(--card-2); }
.board-soon .item-name { color: var(--ink-2); }

.board-flag {
  display: inline-block;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-text);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 3px 9px;
  margin-bottom: 12px;
}

/* the real board photo */
.board-photo {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.board-photo img {
  border: 1px solid var(--rule);
  box-shadow: 0 10px 28px var(--shadow);
  width: 100%;
  transform: rotate(-1.1deg);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(30px, 5vw, 62px);
  align-items: start;
}
.about-grid h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
.about-aside { position: sticky; top: 22px; }
@media (max-width: 880px) { .about-aside { position: static; } }

.figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 14px 14px 4px;
  box-shadow: 0 12px 30px var(--shadow);
}
.figure figcaption {
  font-size: .78rem;
  color: var(--ink-3);
  padding: 12px 4px 14px;
  line-height: 1.5;
}

.plaque {
  border-left: 4px solid var(--gold-line);
  background: var(--card-2);
  padding: 22px 24px;
  margin: 30px 0;
}
.plaque .script { display: block; margin-bottom: 6px; font-size: 1.35rem; }
.plaque p { font-size: .97rem; color: var(--ink-2); margin: 0; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.timeline li:last-child { border-bottom: 0; }
.timeline .yr {
  font-family: Anton, sans-serif;
  font-size: 1.25rem;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.timeline p { margin: 0; font-size: .95rem; color: var(--ink-2); }

.source-note { font-size: .8rem; color: var(--ink-3); margin-top: 26px; }
.source-note a { color: var(--ink-3); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  align-items: start;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 28px 26px;
}
.info-card h3 { margin-bottom: 14px; color: var(--brand-text); }
.info-card p { font-size: .97rem; color: var(--ink-2); }
.info-card .big {
  font-family: Anton, sans-serif;
  font-size: 1.55rem;
  letter-spacing: .01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 6px;
}
.info-card .big:hover { color: var(--accent-text); }

.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: .95rem;
}
.hours li:last-child { border-bottom: 0; }
.hours .day { color: var(--ink-2); }
.hours .hrs { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }

/* ---------- CTA strip ---------- */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.cta h2 { max-width: 18ch; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-bg);
  color: var(--brand-fg);
  padding-block: 46px 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(244, 235, 217, .2);
}
.site-footer h4 {
  font-family: Anton, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .95rem;
  margin: 0 0 12px;
  color: var(--gold-line);
}
.site-footer p, .site-footer li { color: #DCD0B8; font-size: .92rem; margin: 0 0 6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #EFE4CE; text-decoration-color: rgba(239, 228, 206, .4); }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(220, 208, 184, .8);
}
.footer-logo { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-logo .logo-name { color: var(--brand-fg); font-size: 1.3rem; }

/* ---------- Motion ---------- */
/* Content is visible by default; the reveal only engages once JS has run,
   so a script failure can never leave the page blank. */
.reveal { opacity: 1; }
html.js .reveal { opacity: 0; transform: translateY(16px); }
html.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 460px; }
  .about-grid { grid-template-columns: 1fr; }
  .board-photo { grid-template-columns: 1fr; }
  .board-photo img { max-width: 300px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .header-inner { padding-block: 12px; }
  .nav { gap: 2px; width: 100%; }
  .nav a { padding: 8px 10px; font-size: .72rem; }
  .nav-call { padding: 9px 13px !important; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .btn { flex: 1 1 auto; }
}
