/* =====================================================================
   VERMILION — Prime Steaks & Cellar · Springfield, Illinois · Est. 1924
   Shared design system. Built once in Phase 0; pages consume these
   tokens and components. Page agents must NOT edit this file — page-only
   tweaks go in a scoped <style> block on the individual page.
   ===================================================================== */

/* ------------------------------ Tokens ----------------------------- */
:root {
  /* Color — ivory & gold */
  --ivory:        #FAF6EC;
  --paper:        #F3ECDC;
  --paper-deep:   #ECE2CC;
  --ink:          #1A1612;
  --ink-soft:     #534B3E;
  --ink-faint:    #8A7F6C;
  --gold:         #B8975A;
  --gold-bright:  #C9A961;
  --gold-deep:    #9A7C44;
  --oxblood:      #7E2A24;
  --oxblood-deep: #5E1E19;
  --line:         #D8CBAE;
  --line-soft:    #E4DAC2;

  /* Type */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body:    'EB Garamond', Georgia, serif;

  /* Rhythm */
  --container:    1180px;
  --container-narrow: 880px;
  --gutter:       clamp(1.25rem, 4vw, 3rem);
  --section-y:    clamp(4.5rem, 9vw, 8.5rem);

  /* Effects */
  --shadow-soft:  0 24px 60px -28px rgba(26, 22, 18, 0.35);
  --shadow-card:  0 18px 40px -24px rgba(26, 22, 18, 0.45);
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

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

* { margin: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* --------------------------- Typography ---------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
}

h1, .h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); }
h2, .h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3, .h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h4, .h4 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p { color: var(--ink-soft); }
p + p { margin-top: 1.15rem; }

.lead {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.65;
  color: var(--ink-soft);
  font-style: italic;
}

/* Eyebrow / small-caps label */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.eyebrow--center { display: block; text-align: center; }

.script-accent { color: var(--oxblood); }
.gold { color: var(--gold-deep); }

/* --------------------------- Layout -------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--deep  { background: var(--paper-deep); }
.section--ink   { background: var(--ink); color: var(--ivory); }
.section--ink p { color: rgba(250, 246, 236, 0.72); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--ivory); }

.center { text-align: center; }
.measure { max-width: 60ch; }
.measure--center { max-width: 60ch; margin-inline: auto; }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head h2 { margin-bottom: 1.25rem; }

/* --------------------- Ornaments / dividers ------------------------ */
/* Gold hairline with a centered diamond — the signature rule */
.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.75rem 0;
}
.rule::before,
.rule::after {
  content: "";
  height: 1px;
  width: clamp(40px, 12vw, 110px);
  background: linear-gradient(90deg, transparent, var(--gold));
}
.rule::after { background: linear-gradient(90deg, var(--gold), transparent); }
.rule__mark {
  width: 7px; height: 7px;
  transform: rotate(45deg);
  border: 1px solid var(--gold);
  flex: none;
}
.rule--center { justify-content: center; }

/* Monogram mark (used in headers/footers) */
.monogram {
  font-family: var(--font-display);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-deep);
  font-size: 1.4rem;
  letter-spacing: 0;
}

/* ---------------------------- Buttons ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1.05rem 2.4rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-deep);
  transition: background .45s var(--ease), color .45s var(--ease),
              border-color .45s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--gold); color: var(--ivory); }
.btn:active { transform: translateY(1px); }

.btn--solid {
  background: var(--oxblood);
  border-color: var(--oxblood);
  color: var(--ivory);
}
.btn--solid:hover { background: var(--oxblood-deep); border-color: var(--oxblood-deep); color: var(--ivory); }

.btn--light { border-color: rgba(250,246,236,.5); color: var(--ivory); }
.btn--light:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

/* Text link with underline grow */
.link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  position: relative;
  padding-bottom: 4px;
}
.link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.link:hover::after { transform: scaleX(1); }

/* ----------------------------- Header ------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1.4rem;
  transition: background .5s var(--ease), padding .5s var(--ease),
              box-shadow .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(250, 246, 236, 0.92);
  backdrop-filter: blur(10px);
  padding-block: 0.85rem;
  border-bottom-color: var(--line-soft);
  box-shadow: 0 10px 30px -22px rgba(26,22,18,.4);
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav__brand {
  grid-column: 2;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--ink);
}
.nav__brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  font-weight: 600;
  color: var(--gold-deep);
  text-indent: 0.4em;
  margin-top: 2px;
}
/* On a transparent (hero) header the brand sits on dark imagery if used;
   default hero is light so ink reads fine. */
.nav__links {
  display: flex;
  gap: clamp(1.2rem, 2.4vw, 2.4rem);
  align-items: center;
}
.nav__links--left  { grid-column: 1; justify-content: flex-start; }
.nav__links--right { grid-column: 3; justify-content: flex-end; }
.nav__link {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: center;
  transition: transform .35s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); }

/* Mobile toggle */
.nav__toggle {
  grid-column: 3;
  justify-self: end;
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav__toggle span {
  width: 26px; height: 1.5px; background: var(--ink);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav__mobile {
  position: fixed;
  inset: 0;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
  z-index: 99;
}
.nav__mobile.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__mobile a {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.nav__mobile a:hover { color: var(--gold-deep); }

/* ------------------------------ Hero ------------------------------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 8rem var(--gutter) 5rem;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--ivory), var(--paper) 70%, var(--paper-deep));
  overflow: hidden;
}
/* Decorative gold frame inside the hero */
.hero__frame {
  position: absolute;
  /* Top/bottom inset clears the fixed header (~100px) so the gold frame
     never crosses the nav; kept symmetric to keep hero content centered. */
  inset: 7rem clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--gold);
  opacity: 0.55;
  pointer-events: none;
}
.hero__frame::before {
  content: "";
  position: absolute; inset: 8px;
  border: 1px solid var(--gold);
  opacity: 0.4;
}
.hero__inner { position: relative; z-index: 2; max-width: 820px; }
.hero .eyebrow { margin-bottom: 1.5rem; }
.hero__title { margin-bottom: 0.5rem; }
.hero__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--oxblood);
  margin-bottom: 1.75rem;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.hero__scroll {
  position: absolute;
  bottom: 2.2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 38px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse { 0%,100% { opacity:.3; transform: scaleY(.6);} 50% { opacity:1; transform: scaleY(1);} }

/* --------------------------- Page banner --------------------------- */
/* Lighter hero for interior pages */
.page-banner {
  padding: 12rem var(--gutter) 5rem;
  text-align: center;
  background:
    radial-gradient(110% 90% at 50% 0%, var(--paper), var(--ivory) 75%);
  border-bottom: 1px solid var(--line-soft);
}
.page-banner .eyebrow { margin-bottom: 1.1rem; }
.page-banner h1 { margin-bottom: 0.75rem; }

/* ------------------------------ Cards ------------------------------ */
.grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--ivory);
  border: 1px solid var(--line-soft);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--gold);
}
.card .eyebrow { margin-bottom: .8rem; }
.card h3 { margin-bottom: .6rem; }

/* Numbered / featured cut card */
.cut {
  text-align: center;
  padding: clamp(2rem, 3.5vw, 3rem) clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line-soft);
  background: var(--ivory);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.cut:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: var(--gold); }
.cut__no {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-deep);
  letter-spacing: .2em;
  margin-bottom: 1rem;
}
.cut h3 { margin-bottom: .65rem; }
.cut__price { font-family: var(--font-display); font-size: 1.5rem; color: var(--oxblood); margin-top: 1rem; }

/* ---------------------------- Imagery ------------------------------ */
.media {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--paper-deep), var(--paper)),
    var(--paper);
}
.media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.media:hover img { transform: scale(1.05); }
.media--tall { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 1 / 1; }
.media--frame { border: 1px solid var(--line); padding: 10px; background: var(--ivory); }
.media--frame img { aspect-ratio: inherit; }

/* Gallery strip */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.gallery .media { aspect-ratio: 3 / 4; }

/* Split feature: image + text */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.split--reverse .split__media { order: 2; }

/* ------------------------------ Menu ------------------------------- */
.menu-group { margin-bottom: clamp(3rem, 6vw, 5rem); }
.menu-group__head { text-align: center; margin-bottom: 2.5rem; }
.menu-group__head h3 { margin-bottom: .4rem; }
.menu-group__note { font-style: italic; color: var(--ink-faint); font-size: 0.95rem; }

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.25rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px dotted var(--line);
}
.menu-item:last-child { border-bottom: none; }
.menu-item__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
}
.menu-item__tag {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-left: .65rem;
  vertical-align: middle;
}
.menu-item__price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold-deep);
  white-space: nowrap;
}
.menu-item__desc {
  grid-column: 1 / -1;
  font-size: 1rem;
  color: var(--ink-soft);
  margin-top: -.35rem;
}

/* ------------------------------ Forms ------------------------------ */
.form { display: grid; gap: 1.5rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 151, 90, 0.16);
}
.field textarea { resize: vertical; min-height: 120px; }
.form__note { font-size: 0.85rem; color: var(--ink-faint); font-style: italic; }
.form__success {
  display: none;
  padding: 1rem 1.25rem;
  border: 1px solid var(--gold);
  background: rgba(184,151,90,.1);
  color: var(--ink);
  font-style: italic;
}
.form__success.is-visible { display: block; }

/* --------------------------- Info blocks --------------------------- */
.info-list { display: grid; gap: 1.5rem; }
.info-list__item { border-top: 1px solid var(--line-soft); padding-top: 1.25rem; }
.info-list__item .eyebrow { display: block; margin-bottom: .35rem; }
.info-list__item p { color: var(--ink); }

.stat { text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.75rem); color: var(--gold-deep); line-height: 1; }
.stat__label { font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); margin-top: .6rem; }

/* Quote / pull-quote */
.quote {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}
.quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.3;
  color: var(--ink);
}
.quote cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ------------------------------ Footer ----------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(250, 246, 236, 0.7);
  padding-block: clamp(4rem, 7vw, 6rem) 2.5rem;
}
.site-footer a { color: rgba(250, 246, 236, 0.7); transition: color .3s var(--ease); }
.site-footer a:hover { color: var(--gold-bright); }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(250,246,236,.12);
}
.footer__brand .monogram { border-color: var(--gold); color: var(--gold-bright); margin-bottom: 1.25rem; }
.footer__wordmark {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.3em;
  color: var(--ivory);
  text-indent: 0.3em;
}
.footer__tag { font-size: 0.7rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold-bright); margin-top: .5rem; }
.footer__col h4 { color: var(--ivory); font-size: 1.15rem; margin-bottom: 1.1rem; }
.footer__col ul { display: grid; gap: .65rem; }
.footer__col li { font-size: 0.98rem; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(250,246,236,.5);
}
.footer__social { display: flex; gap: 1.5rem; }
.footer__social a { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; }

/* --------------------------- Scroll reveal ------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
.reveal[data-delay="4"] { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------ Utils ------------------------------ */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.flex-center { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* --------------------------- Responsive ---------------------------- */
@media (max-width: 940px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 1.06rem; }
  .nav { grid-template-columns: auto 1fr auto; }
  .nav__links--left, .nav__links--right { display: none; }
  .nav__brand { grid-column: 1; text-align: left; font-size: 1.3rem; }
  .nav__toggle { display: flex; grid-column: 3; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .split, .split--reverse { grid-template-columns: 1fr; gap: 2rem; }
  .split--reverse .split__media { order: 0; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; text-align: center; }
  .footer__brand .monogram { margin-inline: auto; }
  .footer__bottom { justify-content: center; text-align: center; }
  .hero__frame { inset: 5.25rem 1rem; }
}

@media (max-width: 460px) {
  .gallery { grid-template-columns: 1fr; }
  .btn { padding: 0.95rem 1.8rem; }
}
