/* ---------------------------------------------------------------
   Shared structure for the design-option sites (/site1, /site2, /site3).

   This file owns LAYOUT ONLY. Every colour, font and edge comes from
   custom properties that each theme file defines:

     --bg --bg-2 --surface --ink --ink-2 --dim --line
     --accent --accent-ink --accent-2
     --sans --serif --radius --pad --measure

   Load order in the shells is: v-common.css, then the theme.
   --------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.04;
  margin: 0 0 .55em;
  text-wrap: balance;
}
p { margin: 0 0 1em; max-width: var(--measure); }

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

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

.wrap { max-width: 78rem; margin: 0 auto; padding: clamp(2.5rem,6vw,4.5rem) var(--pad); }
.wrap--tight { max-width: 62rem; }

/* ---------- option banner (present-mode only) ---------- */
.optbar {
  background: var(--ink); color: var(--bg);
  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; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans); font-weight: 800; font-size: .95rem;
  padding: .9rem 1.35rem; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; border: 1.5px solid var(--accent);
}
.btn:hover { filter: brightness(.92); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); filter: none; }

/* ---------- page heads ---------- */
.pagehead { max-width: 78rem; margin: 0 auto; padding: clamp(2.5rem,6vw,4.5rem) var(--pad) 0; }
.pagehead h1 { font-size: clamp(2.2rem,5.5vw,3.8rem); }
.pagehead p { color: var(--ink-2); font-size: 1.12rem; }

/* ---------- menu ---------- */
.menunav {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
  margin-top: clamp(2rem,4vw,3rem);
}
.menunav ul {
  max-width: 78rem; margin: 0 auto; padding: .7rem var(--pad);
  list-style: none; display: flex; gap: .4rem; overflow-x: auto;
  scrollbar-width: thin;
}
.menunav a {
  display: block; white-space: nowrap;
  font-family: var(--sans); font-weight: 700; font-size: .84rem;
  padding: .45rem .8rem; border-radius: var(--radius);
  text-decoration: none; color: var(--ink-2);
}
.menunav a:hover { background: var(--surface); color: var(--ink); }

.menusection { max-width: 78rem; margin: 0 auto; padding: clamp(2.5rem,5vw,4rem) var(--pad) 0; }
.menusection__head { border-bottom: 2px solid var(--ink); padding-bottom: .7rem; margin-bottom: 1.5rem; }
.menusection h2 { font-size: clamp(1.5rem,3vw,2.2rem); margin: 0; }
.menusection__blurb { color: var(--dim); margin: .5rem 0 0; font-size: .95rem; }

.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem,5vw,4rem); }
.item { padding: .7rem 0; border-bottom: 1px dotted var(--line); }
.item__line { display: flex; align-items: baseline; gap: .6rem; }
.item__name { font-family: var(--sans); font-weight: 700; font-size: 1rem; }
.item__leader { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-.22rem); }
.item__price { font-family: var(--sans); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item__desc { color: var(--dim); font-size: .92rem; margin: .2rem 0 0; max-width: none; }
.item__sizes { list-style: none; display: flex; gap: 1.1rem; margin: .4rem 0 0; padding: 0; flex-wrap: wrap; }
.item__size { font-family: var(--sans); font-size: .85rem; color: var(--dim); }
.item__size b { color: var(--ink); font-variant-numeric: tabular-nums; }

.footnote {
  font-family: var(--sans); font-size: .85rem; color: var(--dim);
  border-left: 3px solid var(--accent-2); padding-left: .8rem; margin-top: 1.5rem;
}

/* ---------- hours ---------- */
.hourgrid { display: grid; grid-template-columns: repeat(auto-fit,minmax(16rem,1fr)); gap: clamp(1rem,2.5vw,1.75rem); }
.hourcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem,3vw,1.9rem); }
.hourcard h3 { font-size: 1.15rem; margin-bottom: .9rem; }
.hourcard dl { margin: 0; }
.hourcard dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.hourcard dl > div:last-child { border-bottom: 0; }
.hourcard dt { font-family: var(--sans); font-weight: 700; font-size: .9rem; }
.hourcard dd { margin: 0; font-family: var(--sans); font-size: .9rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hourcard dd.is-closed { color: var(--accent); font-weight: 800; }
.hourcard a { color: inherit; }

/* ---------- call band ---------- */
.band {
  background: var(--ink); color: var(--bg);
  margin-top: clamp(3rem,6vw,5rem);
  padding: clamp(2rem,5vw,3.25rem) var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.band > div { max-width: 40rem; }
.band h2 { font-size: clamp(1.5rem,3vw,2.2rem); margin: 0 0 .3em; }
.band p { margin: 0; opacity: .78; }
.band .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); font-size: 1.05rem; padding: 1rem 1.6rem; }

/* ---------- contact ---------- */
.contactgrid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: start; }
.contactgrid .hourcard p:last-child { margin-bottom: 0; }
.field { display: block; margin-bottom: 1rem; }
.field span { display: block; font-family: var(--sans); font-weight: 700; font-size: .85rem; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem;
  padding: .75rem .85rem; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--ink);
}
.field textarea { min-height: 9rem; resize: vertical; }

/* ---------- prose pages (Our History, Jobs) ---------- */
.prose { max-width: var(--measure); }
.prose h2 { font-family: var(--sans); font-size: 1.6rem; margin: 2em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--sans); font-size: 1.2rem; margin: 1.6em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--accent); }

/* ---------- 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: 1px solid var(--line); border-radius: var(--radius); }
.gallery figcaption { font-family: var(--sans); font-size: .85rem; color: var(--dim); margin-top: .4rem; }

/* ---------- events ---------- */
.events { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.event { padding: 1.4rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.25rem; }
.event:last-child { border-bottom: 0; }
.event__date {
  font-family: var(--sans); text-align: center; align-self: start;
  border: 2px solid var(--line); border-radius: var(--radius); padding: .4rem 0;
}
.event__mon { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; color: var(--accent); }
.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(--dim); margin: 0 0 .5rem; }
.event p:last-child { margin-bottom: 0; }

/* ---------- empty states ---------- */
.empty {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 2rem; max-width: 46rem; color: var(--dim);
}
.empty p:last-child { margin-bottom: 0; }
.empty code { background: var(--surface); padding: .1rem .35rem; border-radius: 3px; }

/* ---------- sticky phone (mobile) ---------- */
.stickycall { display: none; }

@media (max-width: 880px) {
  .items { grid-template-columns: 1fr; }
  .contactgrid { grid-template-columns: 1fr; }
  .band { flex-direction: column; align-items: flex-start; }
  .stickycall {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99;
    background: var(--accent); color: var(--accent-ink);
    font-family: var(--sans); font-weight: 800; font-size: 1rem;
    padding: 1rem; justify-content: center; text-decoration: none;
    box-shadow: 0 -8px 24px rgba(0,0,0,.28);
  }
  body { padding-bottom: 4rem; }
}
