/* ============================================================
   METL — CARTA
   The website as a printed menu card. Warm cream stock, one
   ink, one oxblood, Georgia set with care. Hairline rules,
   a double-rule frame, everything centered, everything calm.
   ============================================================ */

:root {
  --paper: #f6efdf;        /* card stock */
  --paper-lift: #fbf6ea;   /* photo mount */
  --linen: #e9dec6;        /* the table under the card */
  --ink: #241c14;          /* warm near-black (shop back cover ground) */
  --bone: #f6efdf;         /* shop inline var: text on dark */
  --wine: #7c2d21;         /* oxblood accent */
  --clay: #d3a173;         /* accent on the dark back cover */
  --hair: rgba(36, 28, 20, 0.34);
  --hair-soft: rgba(36, 28, 20, 0.2);
  --hair-bone: rgba(246, 239, 223, 0.38);
  --display: Georgia, 'Times New Roman', Times, serif;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

/* ---------- base ---------- */

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

html {
  background: var(--linen);
  scroll-behavior: smooth;
}

body {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--wine); color: var(--paper); }

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

.skip-link {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -130%);
  top: 0;
  z-index: 20;
  background: var(--ink);
  color: var(--paper);
  padding: 0.55rem 1.1rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  transition: transform 0.15s ease;
}
.skip-link:focus { transform: translate(-50%, 0.6rem); }

/* small caps, letter-spaced — the voice of the whole card */
.carta-city,
.carta-nav a,
.course-title,
.house-name,
.kicker,
.index,
.print-link,
.hard-link,
.lang-switch {
  font-family: var(--serif);
  text-transform: uppercase;
  font-weight: 400;
}

/* ---------- shared: language button ---------- */

.lang-switch {
  background: transparent;
  border: 1px solid var(--hair);
  color: var(--ink);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  padding: 0.45rem 0.55rem 0.4rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.lang-switch:hover { border-color: var(--wine); color: var(--wine); }

.dot { color: var(--hair); }

.orn {
  color: var(--wine);
  font-size: 1.05rem;
  line-height: 1;
  margin: 2.4rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  max-width: 17rem;
}
.orn::before, .orn::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--hair-soft);
}

/* ============================================================
   FRONT — index.html : the card itself
   ============================================================ */

.carta {
  max-width: 44rem;
  margin: clamp(0.8rem, 3.5vw, 3rem) auto;
  background: var(--paper);
  border: 1px solid var(--ink);
  outline: 1px solid var(--hair);
  outline-offset: -7px;
  padding: clamp(2.6rem, 7vw, 4.75rem) clamp(1.4rem, 6vw, 4.25rem);
  box-shadow: 0 1px 2px rgba(36, 28, 20, 0.12), 0 14px 40px rgba(36, 28, 20, 0.12);
  position: relative;
  text-align: center;
}

.carta-tools {
  position: absolute;
  top: 1.05rem;
  right: 1.05rem;
}

.carta-city {
  font-size: 0.66rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--wine);
  margin-bottom: 2.1rem;
}

.crest {
  margin: 0 auto 1.35rem;
}
.crest img {
  width: min(10.5rem, 58%);
  margin: 0 auto;
}

.carta-title {
  font-size: 0.82rem;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-transform: uppercase;
}

.carta-nav {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.4rem;
}
.carta-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  padding: 0.3rem 0.1rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.carta-nav a:hover { color: var(--wine); border-bottom-color: var(--wine); }

/* courses */

.course { margin: 3.4rem auto 0; }

.course-title {
  font-size: 0.78rem;
  letter-spacing: 0.44em;
  text-indent: 0.44em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 1.3rem;
  margin-bottom: 2.1rem;
}
.course-title::before, .course-title::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--hair-soft);
}

.house { margin: 0 auto; max-width: 26rem; }
.house + .between { margin: 1.9rem auto; }
.between {
  color: var(--hair);
  font-size: 0.9rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
}

.house-name {
  font-size: 1.08rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
}

.house-quarter {
  font-style: italic;
  color: var(--wine);
  font-size: 0.98rem;
  margin-top: 0.15rem;
}

.house-addr {
  font-style: normal;
  font-size: 0.98rem;
  margin-top: 0.55rem;
}

.house-links {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.house-links a {
  border-bottom: 1px solid var(--hair);
  padding-bottom: 0.1rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.house-links a:hover { color: var(--wine); border-bottom-color: var(--wine); }

.course-note {
  font-style: italic;
  font-size: 1rem;
  color: var(--wine);
  margin-top: -1.2rem;
  margin-bottom: 0.9rem;
}

.course-act { margin-top: 0.2rem; }

.print-link,
.hard-link {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  border: 1px solid var(--ink);
  padding: 0.85rem 1.5rem 0.75rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.print-link:hover,
.hard-link:hover {
  background: var(--ink);
  color: var(--paper);
}

/* tipped-in plates */

.plate {
  margin: 3.4rem auto 0;
  display: grid;
  justify-items: center;
  gap: 0.85rem;
}
.plate img {
  width: min(15rem, 72%);
  background: var(--paper-lift);
  padding: 0.5rem;
  border: 1px solid var(--hair);
  filter: sepia(0.14) saturate(0.9) contrast(0.97);
}
.plate figcaption {
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink);
}
.plate figcaption::before { content: "· "; color: var(--hair); }
.plate figcaption::after { content: " ·"; color: var(--hair); }

/* foot */

.carta-foot { margin-top: 3.6rem; }
.carta-foot .orn { margin: 0 auto 1.9rem; }
.foot-mail { font-size: 0.95rem; }
.foot-mail a {
  border-bottom: 1px solid var(--hair);
  padding-bottom: 0.1rem;
}
.foot-mail a:hover { color: var(--wine); border-bottom-color: var(--wine); }
.foot-line {
  margin-top: 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: rgba(36, 28, 20, 0.7);
}

/* ============================================================
   INTERIOR — menu/index.html : the carta proper
   ============================================================ */

body.menu-page {
  max-width: 46rem;
  margin: clamp(0.8rem, 3.5vw, 3rem) auto;
  background: var(--paper);
  border: 1px solid var(--ink);
  outline: 1px solid var(--hair);
  outline-offset: -7px;
  box-shadow: 0 1px 2px rgba(36, 28, 20, 0.12), 0 14px 40px rgba(36, 28, 20, 0.12);
  padding: clamp(2.4rem, 6vw, 4rem) clamp(1.2rem, 5.5vw, 3.75rem) 3rem;
  text-align: center;
}

/* header rebuilt as a centered masthead */
.site-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.head-mark img { width: 7rem; }
.head-actions { position: absolute; top: 0; right: 0; }
.nav-drawer { display: none; }

.desktop-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}
.desktop-nav a {
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  text-transform: uppercase;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.desktop-nav a:hover { color: var(--wine); border-bottom-color: var(--wine); }
.desktop-nav a[aria-current="page"] { border-bottom-color: var(--hair); }

.kicker {
  font-size: 0.66rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--wine);
}

.menu-hero { margin-top: 2.8rem; }
.menu-hero h1 {
  font-weight: 400;
  font-size: clamp(1.35rem, 4.2vw, 2.05rem);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  margin-top: 0.7rem;
  line-height: 1.35;
}
.menu-hero-meta {
  margin-top: 0.9rem;
  font-style: italic;
  font-size: 0.98rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.menu-hero-meta p:first-child { color: var(--wine); }

.menu-status {
  max-width: 30rem;
  margin: 2.6rem auto 0;
  padding: 1.3rem 1rem;
  border-top: 1px solid var(--hair-soft);
  border-bottom: 1px solid var(--hair-soft);
}
.menu-status strong {
  display: block;
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 0.55rem;
}
.menu-status p {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* the sheet: one calm centered column */
.menu-sheet {
  max-width: 34rem;
  margin: 0 auto;
}

.menu-column { margin-top: 1rem; }

.menu-section-head { margin-top: 3.2rem; }
.menu-section-head .index {
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--wine);
  margin-bottom: 0.5rem;
}
.menu-section-head h2 {
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.44em;
  text-indent: 0.44em;
  display: flex;
  align-items: center;
  gap: 1.3rem;
}
.menu-section-head h2::before,
.menu-section-head h2::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--hair-soft);
}
.menu-price-key {
  margin-top: 0.55rem;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--wine);
}

.menu-group { margin-top: 1.7rem; }

.menu-item { margin-top: 1.45rem; }
.menu-item:first-child { margin-top: 0; }
.menu-item h3 {
  font-weight: 400;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-transform: uppercase;
}
.menu-item p {
  font-style: italic;
  font-size: 0.94rem;
  color: rgba(36, 28, 20, 0.82);
  margin-top: 0.2rem;
}
.menu-item b {
  display: block;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--wine);
  margin-top: 0.3rem;
}

.menu-extra {
  margin-top: 1.4rem;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--wine);
}

/* drinks */
.drink-grid { margin-top: 0.4rem; }
.drink-block { margin-top: 2.1rem; }
.drink-block h3 {
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.drink-block p {
  font-size: 0.96rem;
  margin-top: 0.3rem;
}
.drink-block p b {
  font-weight: 400;
  color: var(--wine);
  margin-left: 0.55em;
}
.drink-block small {
  display: block;
  margin-top: 0.5rem;
  font-style: italic;
  font-size: 0.86rem;
  color: rgba(36, 28, 20, 0.72);
}
.drink-block--note p { font-style: italic; }

/* pdf cta */
.menu-cta {
  max-width: 30rem;
  margin: 3.4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--hair-soft);
}
.menu-cta .index {
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--wine);
}
.menu-cta h2 {
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  margin: 0.5rem 0 1.2rem;
}

.hard-link--light { border-color: var(--ink); }

/* menu footer */
body.menu-page footer { margin-top: 3.4rem; }
.footer-logo img { width: 5.5rem; margin: 0 auto 1.1rem; }
.footer-base {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.8rem;
}
.footer-base a {
  font-style: italic;
  border-bottom: 1px solid transparent;
  align-self: center;
}
.footer-base a:hover { color: var(--wine); border-bottom-color: var(--wine); }
.footer-base span {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: rgba(36, 28, 20, 0.7);
}

/* ============================================================
   BACK COVER — shop/index.html : the reverse of the card,
   printed dark. Overrides the page's inline sheet.
   ============================================================ */

html body .shop-page {
  max-width: 44rem;
  margin: clamp(0.8rem, 3.5vw, 3rem) auto;
  min-height: 0;
  background: var(--ink);
  color: var(--bone);
  border: 1px solid var(--ink);
  outline: 1px solid var(--hair-bone);
  outline-offset: -7px;
  box-shadow: 0 1px 2px rgba(36, 28, 20, 0.2), 0 14px 40px rgba(36, 28, 20, 0.2);
  padding: clamp(2.6rem, 7vw, 4.5rem) clamp(1.4rem, 6vw, 4rem);
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 2.6rem;
  text-align: center;
}

html body.shop-page,
html body:has(.shop-page) { background: var(--linen); }

html body .shop-page .back {
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--hair-bone);
  padding-bottom: 0.2rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}
html body .shop-page .back:hover { color: var(--clay); border-bottom-color: var(--clay); }

html body .shop-page .index {
  font-size: 0.64rem;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1rem;
}

html body .shop-page h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: none;
  max-width: 18ch;
  margin: 0 auto;
}

html body .shop-page .shop-intro {
  grid-template-columns: 1fr;
  max-width: 27rem;
  gap: 1rem;
  border-top: 1px solid var(--hair-bone);
  padding-top: 1.6rem;
}
html body .shop-page .shop-intro p {
  font-weight: 400;
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: none;
}

html body .shop-page .future-stock {
  border: 1px solid var(--hair-bone);
  width: min(100%, 34rem);
}
html body .shop-page .future-stock article {
  min-height: 11rem;
  border-right: 1px solid var(--hair-bone);
  align-items: center;
  padding: 1.4rem 1rem;
}
html body .shop-page .future-stock article:last-child { border-right: 0; }
html body .shop-page .future-stock h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.02rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  line-height: 1.3;
}
html body .shop-page .future-stock span {
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--clay);
}

html body .shop-page .shop-foot {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
}
html body .shop-page .shop-foot p {
  font-style: italic;
  font-size: 0.95rem;
}
html body .shop-page .hard-link--light {
  color: var(--bone);
  border: 1px solid var(--hair-bone);
}
html body .shop-page .hard-link--light:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

/* ============================================================
   small screens + motion
   ============================================================ */

@media (max-width: 700px) {
  html body .shop-page .future-stock { grid-template-columns: 1fr; }
  html body .shop-page .future-stock article {
    border-right: 0;
    border-bottom: 1px solid var(--hair-bone);
  }
  html body .shop-page .future-stock article:last-child { border-bottom: 0; }
}

@media (max-width: 480px) {
  .carta, body.menu-page, html body .shop-page { outline-offset: -5px; }
  .carta-nav { gap: 0.55rem; }
  .head-actions { position: static; margin-top: 0.2rem; }
  .site-head { gap: 0.85rem; }
}

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