/* Menyja: charcoal page, white text, italic and minimal. Shared nav, footer and fonts come from styles.css. */

.page--menu {
  --char: #1f1e1d;
  --char-line: rgb(255 255 255 / 0.14);
  background: var(--char);
  color: #fff;
}

/* nav stays dark on this page */
.site-header--dark.is-scrolled,
.site-header--dark.menu-open {
  --nav-fg: #fff;
  --nav-line: var(--char-line);
  background: rgb(31 30 29 / 0.96);
  box-shadow: 0 1px 0 var(--char-line);
}
.site-header--dark.is-scrolled .brand__light,
.site-header--dark.menu-open .brand__light { opacity: 1; }
.site-header--dark.is-scrolled .brand__dark,
.site-header--dark.menu-open .brand__dark { opacity: 0; }
.site-header--dark .site-nav a[aria-current="page"] { color: #fff; }
@media (max-width: 900px) {
  .site-header--dark .site-nav { background: var(--char); border-bottom-color: var(--char-line); }
  .site-header--dark .site-nav li + li { border-top-color: var(--char-line); }
  .site-header--dark .site-nav a { color: #fff; }
}

/* ---------- One-page menu: a single charcoal sheet ---------- */

.mpage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  display: grid;
  justify-items: center;
  padding: clamp(96px, 10vw, 120px) var(--gutter) clamp(48px, 6vw, 88px);
}

/* the food sketch, inverted to white lines, behind the top of the sheet */
.mpage__bg {
  position: absolute;
  z-index: -1;
  top: 40px;
  left: 50%;
  width: min(1500px, 118vw);
  height: auto;
  transform: translateX(-50%) rotate(-6deg);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}

.msheet {
  width: min(100%, 1120px);
  padding: clamp(24px, 4vw, 56px);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 12px;
  background: var(--char);
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.8);
}

/* cover: flags and name on top, the chef with MENYJA beside him, contents below */
.mcover {
  display: flex;
  flex-direction: column;
  min-height: min(calc(100svh - 200px), 760px);
}
.mcover__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.mcover__brand {
  margin: 0;
  font-family: var(--font-lead);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
/* Shqip / English / Deutsch */
.mlang { display: flex; gap: 1.1rem; }
.mlang a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: rgb(255 255 255 / 0.62);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.mlang a:hover,
.mlang a:focus-visible { color: #fff; }
.mlang a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }
.mlang__flag {
  flex: none;
  width: 21px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.28);   /* keeps the black stripe visible on charcoal */
  opacity: 0.75;
  transition: opacity 0.2s;
}
.mlang a:hover .mlang__flag,
.mlang a[aria-current="page"] .mlang__flag { opacity: 1; }
.mcover__hero {
  flex: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 3.5rem);
  padding: clamp(20px, 4vh, 44px) 0;
}
.mcover__chef { width: clamp(120px, 30vw, 380px); height: auto; }
.mcover__main { min-width: 0; }
.mcover__word {
  display: flex;
  margin: 0;
  font-family: var(--font-lead);
  font-weight: 400;
  font-size: clamp(3.2rem, 11.5vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: #fff;
}
.mcover__word span { display: inline-block; }
.mcover__toc { margin-top: clamp(1.25rem, 3.5vh, 2.25rem); }
.mcover__toc ol {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0.45rem clamp(1.5rem, 3.5vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.mcover__toc a {
  font-family: var(--font-lead);
  font-size: clamp(1.4rem, 3.2vh, 1.95rem);
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.mcover__toc a:hover,
.mcover__toc a:focus-visible { border-bottom-color: #fff; }
.mcover__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin: clamp(24px, 4vh, 40px) 0 0;
  padding-top: 12px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}

/* one section: its drawing beside the dishes, sides alternating */
.msec {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(48px, 6vw, 84px) 0;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  scroll-margin-top: 12px;
}
.mcover + .msec { margin-top: clamp(32px, 4vw, 56px); }
.msec--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.msec--flip .msec__art { order: 2; }
.msec--noart { grid-template-columns: minmax(0, 1fr); }
.msec__art {
  position: sticky;
  top: 120px;
  justify-self: center;
  width: min(100%, 320px);
  height: auto;
  max-height: 400px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.msec__body { text-align: center; }
.msec__title {
  margin: 0;
  font-family: var(--font-lead);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.msec__note { margin: 0.7rem 0 0; font-family: var(--font-display); font-size: 0.85rem; color: #fff; opacity: 0.8; }

/* dishes: name left, dotted line, price right; ingredients underneath (variant 1 of menyja-variante.html) */
.msec__list {
  display: grid;
  gap: 1.15rem;
  max-width: 36rem;
  margin: clamp(1.75rem, 3vw, 2.5rem) auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.mitem { min-width: 0; }
.mitem__row { display: flex; align-items: baseline; gap: 0.5rem; }
/* dish names: Gloock, a high-contrast display serif (user's pick, font 8 of menyja-fontet.html) */
.mitem__name {
  min-width: 0;
  margin: 0;
  font-family: "Gloock", Georgia, serif;
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #fff;
}
.mitem__dots { flex: 1; min-width: 1.5rem; border-bottom: 2px dotted rgb(255 255 255 / 0.4); transform: translateY(-0.3em); }
.mitem__price {
  flex: none;
  margin: 0;
  font-family: "Instrument Sans", var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #fff;
}
.mitem__ing {
  margin: 0.25rem 0 0;
  padding-right: 4.5rem;
  font-family: "Instrument Sans", var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #fff;
  opacity: 0.7;
}

/* closing note */
.mend {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
  padding: clamp(48px, 6vw, 80px) 0 clamp(8px, 2vw, 24px);
  border-top: 1px solid rgb(255 255 255 / 0.12);
  text-align: center;
}
.mend__word { margin: 0; font-family: var(--font-brand); font-weight: 300; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: #fff; }
.mend__info { margin: 0; font-family: var(--font-lead); font-style: italic; font-size: 1.15rem; line-height: 1.6; color: #fff; }
.mend__info a { color: #fff; }
.mend__cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 1.6em;
  border: 1px solid #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.mend__cta:hover { background: #fff; color: var(--char); }
.mend__small { max-width: 30ch; margin: 0; font-family: var(--font-display); font-size: 0.75rem; line-height: 1.5; color: #fff; opacity: 0.8; }

/* back to the contents, once the cover has scrolled away (shown by js/main.js) */
.mtop {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(255 255 255 / 0.45);
  border-radius: 50%;
  background: var(--char);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0s 0.3s, background-color 0.2s, color 0.2s;
}
.mtop.is-shown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mtop:hover { background: #fff; color: var(--char); }
.mtop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* footer card sits on charcoal here */
.page--menu .site-footer { background: var(--char); }

/* tablets and phones: drawing above the dishes, no sticky */
@media (max-width: 999px) {
  .msec, .msec--flip { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .msec--flip .msec__art { order: 0; }
  .msec__art { position: static; width: auto; max-width: min(72%, 280px); max-height: 220px; }
}
@media (max-width: 640px) {
  .mpage { padding: 84px 12px 40px; }
  .mpage__bg { width: 190vw; opacity: 0.16; }
  .msheet { padding: 22px 18px; }
  .mcover { min-height: 0; }
  .mcover__hero { gap: 0.9rem; }
  .mcover__chef { width: 34vw; max-width: 150px; }
  .mcover__word { font-size: clamp(2.6rem, 13vw, 4rem); }
  .mcover__toc { margin-top: 0.9rem; }
  .mcover__toc ol { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
  .mcover__toc a { font-size: 1.15rem; }
  .mcover__foot { font-size: 0.6rem; letter-spacing: 0.14em; }
  .msec { padding: 44px 0; }
  .mitem__name { font-size: 1.18rem; }
  .mitem__price { font-size: 0.98rem; }
  .mitem__ing { padding-right: 2.5rem; }
  .mlang { gap: 0.9rem; }
  .mlang__flag { width: 27px; height: 18px; }
  .mlang__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* entrance: letters rise in turn, the chef draws in, contents follow */
@media (prefers-reduced-motion: no-preference) {
  .mcover__word span { animation: word-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(0.1s + var(--i) * 80ms); }
  .mcover__top { animation: reveal-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both; }
  .mcover__chef { animation: m-draw 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.35s both; }
  .mcover__toc li { animation: reveal-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .mcover__toc li:nth-child(1) { animation-delay: 0.55s; }
  .mcover__toc li:nth-child(2) { animation-delay: 0.61s; }
  .mcover__toc li:nth-child(3) { animation-delay: 0.67s; }
  .mcover__toc li:nth-child(4) { animation-delay: 0.73s; }
  .mcover__toc li:nth-child(5) { animation-delay: 0.79s; }
  .mcover__toc li:nth-child(6) { animation-delay: 0.85s; }
  .mcover__toc li:nth-child(7) { animation-delay: 0.91s; }
  .mcover__toc li:nth-child(8) { animation-delay: 0.97s; }
  .mcover__toc li:nth-child(9) { animation-delay: 1.03s; }
  /* each section's drawing wipes in as it scrolls into view (js/main.js adds .is-in) */
  .js-reveal .msec__art[data-reveal].is-in { animation: m-draw 1.4s cubic-bezier(0.65, 0, 0.35, 1) both; }
}
@keyframes m-draw {
  from { clip-path: inset(0 100% 0 0); opacity: 0.2; }
  to   { clip-path: inset(0 0 0 0); opacity: 1; }
}
.fonts-pending .mcover { visibility: hidden; }
.fonts-pending .mcover * { animation-play-state: paused !important; }

/* printing: black on white, no drawings */
@media print {
  .page--menu, .msheet { background: #fff; }
  .site-header, .site-footer, .skip-link, .mtop, .mpage__bg, .msec__art, .mcover__chef, .mend__cta { display: none !important; }
  .msheet { border: 0; box-shadow: none; padding: 0; }
  .msheet *, .msheet a { color: #000 !important; }
  .msec { grid-template-columns: 1fr; break-inside: avoid; }
}
