/* ---------------------------------------------------------------
   Smithfield Pizza House & Pub
   Palette: deep pub green, warm bone paper, tomato, brass.
   Type: Overpass (Highway Gothic descendant — matches the
   street-named pizzas) for display + UI, Newsreader for prose.
   --------------------------------------------------------------- */

:root {
  --ink:      #16301f;
  --ink-2:    #24422d;
  --ink-3:    #0e2016;
  --bone:     #f1ecdf;
  --bone-2:   #e3dcc7;
  --paper:    #fbf8f0;
  --tomato:   #be3623;
  --tomato-d: #9c2a19;
  --brass:    #d9a441;
  --muted:    #6e7669;

  --rule: 1px solid var(--bone-2);
  --measure: 34rem;

  --pad: clamp(1.25rem, 5vw, 3.5rem);
  --gap: clamp(2.5rem, 6vw, 5rem);

  --sans: "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--masthead-h, 5.4rem) + var(--menunav-h, 0px) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-optical-sizing: auto;
}

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

a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bone);
  padding: .75rem 1rem; z-index: 100;
  font-family: var(--sans);
}
.skip:focus { left: 0; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0 0 .6em;
  text-wrap: balance;
}

p { margin: 0 0 1em; max-width: var(--measure); }

/* ------------------------------ buttons ------------------------ */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 800;
  font-size: .9375rem;
  letter-spacing: .01em;
  padding: .7rem 1.2rem;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
  text-decoration: none;
  border-radius: 2px;
}
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); }

.btn--call { background: var(--tomato); border-color: var(--tomato); color: #fff; }
.btn--call:hover { background: var(--tomato-d); border-color: var(--tomato-d); }

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

.btn--onDark { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.btn--onDark:hover { background: #fff; border-color: #fff; }

/* ------------------------------ masthead ----------------------- */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: var(--bone);
  border-bottom: 2px solid var(--ink);
}

.masthead__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .7rem var(--pad);
}

.wordmark {
  font-family: var(--sans);
  text-decoration: none;
  display: block;
  line-height: .92;
}
.wordmark__top {
  display: block;
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: .22em;
  color: var(--tomato);
  text-transform: uppercase;
}
.wordmark__bot {
  display: block;
  font-weight: 800;
  font-size: clamp(1.15rem, 3.4vw, 1.55rem);
  letter-spacing: -0.025em;
}
.wordmark__bot em { font-style: normal; color: var(--muted); }

.sitenav { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.6rem); }
.sitenav ul {
  display: flex; gap: clamp(.8rem, 1.8vw, 1.5rem);
  list-style: none; margin: 0; padding: 0;
}
.sitenav a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .94rem;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.sitenav a:hover { border-bottom-color: var(--brass); }
.sitenav a[aria-current="page"] { border-bottom-color: var(--tomato); }
.sitenav .btn { padding: .55rem .9rem; }

.navtoggle {
  display: none;
  align-items: center; gap: .5rem;
  background: none; border: 2px solid var(--ink); border-radius: 2px;
  font-family: var(--sans); font-weight: 800; font-size: .9rem;
  color: var(--ink); padding: .45rem .7rem; cursor: pointer;
}
.navtoggle__bars, .navtoggle__bars::before, .navtoggle__bars::after {
  display: block; width: 18px; height: 2px; background: var(--ink);
}
.navtoggle__bars { position: relative; }
.navtoggle__bars::before, .navtoggle__bars::after { content: ""; position: absolute; left: 0; }
.navtoggle__bars::before { top: -6px; }
.navtoggle__bars::after { top: 6px; }

.stripe {
  margin: 0;
  max-width: none;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: .45rem var(--pad);
  display: flex; flex-wrap: wrap; gap: .6rem;
}
.stripe a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(241,236,223,.4); }
.stripe a:hover { border-bottom-color: var(--brass); }
.stripe span[aria-hidden] { color: var(--brass); }

@media (max-width: 62rem) {
  .navtoggle { display: inline-flex; }
  .sitenav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bone);
    border-bottom: 2px solid var(--ink);
    padding: .5rem var(--pad) 1.25rem;
  }
  .sitenav.is-open { display: flex; }
  .sitenav ul { flex-direction: column; gap: 0; }
  .sitenav li { border-bottom: var(--rule); }
  .sitenav a { display: block; padding: .8rem 0; font-size: 1.05rem; border-bottom: none; }
  .sitenav .btn { margin-top: 1rem; text-align: center; }
}

/* ------------------------------ layout ------------------------- */

.wrap { padding: var(--gap) var(--pad); }
.wrap--tight { padding-top: clamp(1.75rem, 4vw, 3rem); padding-bottom: clamp(1.75rem, 4vw, 3rem); }

.pagehead { padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad) clamp(1.5rem, 3vw, 2.5rem); }
.pagehead h1 { font-size: clamp(2.2rem, 7vw, 4rem); margin-bottom: .3em; }
.pagehead p { font-size: 1.15rem; color: var(--muted); }

.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--tomato-d); }

/* ------------------------------ hero --------------------------- */

.hero {
  background: var(--ink);
  color: var(--bone);
  padding: clamp(3rem, 8vw, 6rem) var(--pad) clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 6px solid var(--brass);
}
.hero h1 {
  font-size: clamp(2.5rem, 8.5vw, 5.5rem);
  max-width: 16ch;
  margin-bottom: .35em;
}
.hero__text {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: #cfd6c8;
  max-width: 38ch;
  margin-bottom: 1.8rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }

/* The street-sign board: the specialty pizzas are named after
   local roads, so they are set as Rhode Island street blades. */
.signboard {
  border-top: 1px solid rgba(241,236,223,.25);
  padding-top: 1.5rem;
}
.signboard__lead {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  color: #9fae98;
  margin-bottom: 1rem;
  max-width: none;
}
.signs { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.sign {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(.78rem, 1.7vw, .95rem);
  letter-spacing: .06em;
  padding: .38rem .8rem .34rem;
  border: 1.5px solid rgba(241,236,223,.85);
  border-radius: 3px;
  color: var(--bone);
  text-decoration: none;
  white-space: nowrap;
}
.sign:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

/* ------------------------------ feature ------------------------ */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: var(--gap) var(--pad);
  border-bottom: var(--rule);
}
.feature--flip .feature__media { order: 2; }
.feature__eyebrow {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 700;
  color: var(--tomato);
  margin-bottom: .5rem;
}
.feature h2 { font-size: clamp(2rem, 5.5vw, 3.2rem); }
.feature p { font-size: 1.08rem; }
.feature__media {
  aspect-ratio: 4 / 3;
  background: var(--bone);
  border: 2px solid var(--ink);
  border-radius: 2px;
  overflow: hidden;
  display: grid; place-items: center;
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; }

.placeholder {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  padding: 1rem;
  background:
    repeating-linear-gradient(45deg, var(--bone) 0 14px, var(--bone-2) 14px 28px);
  width: 100%; height: 100%;
  display: grid; place-items: center;
}

@media (max-width: 48rem) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
}

/* ------------------------------ call band ---------------------- */

.band {
  background: var(--tomato);
  color: #fff;
  padding: clamp(2rem, 5vw, 3.25rem) var(--pad);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem;
}
.band h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); margin: 0; }
.band p { margin: .35rem 0 0; color: rgba(255,255,255,.88); }
.band .btn { background: #fff; border-color: #fff; color: var(--tomato-d); }
.band .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ------------------------------ hours card --------------------- */

.hourgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 60rem;
}
.hourcard h3 {
  font-size: 1.1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: .75rem;
}
.hourcard dl { margin: 0; font-family: var(--sans); font-size: .98rem; }
.hourcard div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: var(--rule); }
.hourcard dt { font-weight: 600; }
.hourcard dd { margin: 0; text-align: right; white-space: nowrap; }
.hourcard dd.is-closed { color: var(--tomato); font-weight: 700; }

/* ------------------------------ announcement ------------------- */

/* Sits above the masthead and scrolls away, so it never competes with the
   sticky header for space on a phone. */
.announce {
  padding: .7rem var(--pad);
  border-bottom: 2px solid var(--ink);
}
.announce p {
  margin: 0;
  max-width: 60rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.45;
}
.announce a {
  margin-left: .5rem;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
  white-space: nowrap;
}

.announce--notice { background: var(--brass); color: var(--ink-3); }
.announce--closed { background: var(--tomato); color: #fff; }
.announce--closed a { color: #fff; }
.announce--quiet  { background: var(--ink); color: var(--bone); }
.announce--quiet a { color: var(--brass); }

/* ------------------------------ menu --------------------------- */

.menunav {
  position: sticky;
  top: var(--masthead-h, 5.4rem);
  z-index: 20;
  background: var(--paper);
  border-top: var(--rule);
  border-bottom: 2px solid var(--ink);
  box-shadow: 0 6px 12px -10px rgba(14, 32, 22, .55);
  padding: .65rem var(--pad);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.menunav ul { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.menunav a {
  display: block;
  font-family: var(--sans); font-weight: 700; font-size: .85rem;
  white-space: nowrap;
  text-decoration: none;
  padding: .35rem .7rem;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
}
.menunav a:hover { background: var(--ink); color: var(--bone); }

.menusection { padding: clamp(2rem, 5vw, 3.25rem) var(--pad); border-bottom: var(--rule); }
.menusection__head { max-width: 46rem; margin-bottom: 1.5rem; }
.menusection h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  margin-bottom: .2em;
}
.menusection__blurb { color: var(--muted); font-size: 1rem; margin: 0; }

.items { list-style: none; margin: 0; padding: 0; max-width: 52rem; }
.item { padding: .85rem 0; border-bottom: var(--rule); }
.item:last-child { border-bottom: none; }
.item__line { display: flex; align-items: baseline; gap: .6rem; }
.item__name {
  font-family: var(--sans); font-weight: 800; font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.item__leader { flex: 1; border-bottom: 1px dotted var(--bone-2); transform: translateY(-.22em); }
.item__price { font-family: var(--sans); font-weight: 800; font-size: 1.02rem; white-space: nowrap; }
.item__desc { margin: .3rem 0 0; color: var(--muted); font-size: .98rem; max-width: 46ch; }
.item__sizes { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: .45rem; list-style: none; padding: 0; }
.item__size {
  font-family: var(--sans); font-size: .85rem; font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--bone-2);
  border-radius: 2px;
  padding: .18rem .5rem;
}
.item__size b { font-weight: 800; }

.footnote {
  margin: 1.5rem 0 0;
  max-width: 52rem;
  font-size: .94rem;
  color: var(--muted);
  border-left: 3px solid var(--brass);
  padding-left: .9rem;
}

/* ------------------------------ gallery ------------------------ */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: .9rem;
}
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--ink); border-radius: 2px; }
.gallery figcaption { font-family: var(--sans); font-size: .85rem; color: var(--muted); margin-top: .4rem; }

/* ------------------------------ events ------------------------- */

.events { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.event { padding: 1.4rem 0; border-bottom: var(--rule); display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.25rem; }
.event__date {
  font-family: var(--sans);
  text-align: center;
  border: 2px solid var(--ink);
  border-radius: 2px;
  padding: .4rem 0;
  align-self: start;
}
.event__mon { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; color: var(--tomato); }
.event__day { display: block; font-size: 1.7rem; font-weight: 900; line-height: 1; }
.event h2 { font-size: 1.35rem; margin-bottom: .2em; }
.event__when { font-family: var(--sans); font-size: .9rem; color: var(--muted); margin: 0 0 .5rem; }
.event p:last-child { margin-bottom: 0; }

.empty {
  border: 2px dashed var(--bone-2);
  border-radius: 2px;
  padding: 2rem;
  max-width: 46rem;
  color: var(--muted);
}
.empty p:last-child { margin-bottom: 0; }

/* ------------------------------ forms -------------------------- */

.form { max-width: 30rem; display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-family: var(--sans); font-weight: 700; font-size: .9rem; }
.field input, .field textarea, .field select {
  font: inherit;
  font-family: var(--sans);
  padding: .65rem .7rem;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; }
.form__note { font-size: .9rem; color: var(--muted); }

/* ------------------------------ footer ------------------------- */

.footer {
  background: var(--ink);
  color: var(--bone);
  padding: var(--gap) var(--pad) 2rem;
  font-size: .98rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
  max-width: 68rem;
}
.footer__name { font-size: 1.35rem; margin-bottom: .2em; }
.footer__tagline { font-style: italic; color: var(--brass); margin-bottom: 1.2em; }
.footer h3 { font-size: .85rem; letter-spacing: .14em; color: #9fae98; margin-bottom: 1em; text-transform: uppercase; }
.footer a { color: inherit; text-decoration-color: rgba(241,236,223,.45); }
.footer a:hover { text-decoration-color: var(--brass); }
.footer__hours { font-family: var(--sans); font-size: .92rem; line-height: 1.7; }
.footer__hours strong { color: #fff; }
.footer__note { font-family: var(--sans); font-size: .85rem; color: var(--brass); }
.footer__links { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: .95rem; line-height: 2; }
.footer__legal {
  margin: var(--gap) 0 0;
  max-width: none;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(241,236,223,.2);
  font-family: var(--sans);
  font-size: .8rem;
  color: #9fae98;
}

/* ---------------------------------------------------------------
   Design-option switcher (present mode only).

   Mirrors the .optbar rules in v-common.css, in this site's palette,
   because the four options do not share a stylesheet. Remove this
   block, and the include in base.njk, once a direction is chosen.
   --------------------------------------------------------------- */
.optbar {
  background: var(--ink-3);
  color: var(--bone);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.optbar .in {
  max-width: 78rem;
  margin: 0 auto;
  padding: .5rem var(--pad);
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.optbar a { color: inherit; opacity: .72; text-decoration: none; }
.optbar a:hover,
.optbar a[aria-current] { opacity: 1; text-decoration: underline; }
.optbar .tag { text-transform: uppercase; letter-spacing: .18em; opacity: .55; }
