/* ============================================================
   Restaurant Maihöfli Luzern — rebuild
   Palette derived from brand assets:
     logo beige #EBE4DB · monogram brown #664C3D
     seasonal olive/sage from the cucumber-chocolate pre-dessert
   Type: Inter (display/UI) + Open Sans (body) — as used by the source
   ============================================================ */

:root {
  --paper: #f7f3ec;
  --paper-2: #efe8dd;
  --beige: #ebe4db;
  --ink: #221a13;
  --ink-soft: #4b3f34;
  --brown: #664c3d;
  --brown-deep: #46332a;
  --olive: #4c4b2f;
  --sage: #8f9779;
  --wood: #7a5638;
  --line: rgba(102, 76, 61, 0.18);
  --line-soft: rgba(102, 76, 61, 0.1);

  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Open Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1320px;
  --gutter: 24px;
  --header-h: 78px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0.05, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.55vw + 0.9rem, 1.075rem);
  line-height: 1.68;
  font-weight: 400;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, .wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- skip link (clip, not offscreen-negative) ---------- */
.skip {
  position: absolute; top: 0; left: 12px; z-index: 200;
  width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%);
  background: var(--brown); color: #fff; padding: 10px 16px;
  font-family: var(--font-display); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
  border-radius: 0 0 6px 6px;
}
.skip:focus-visible { width: auto; height: auto; clip-path: none; }

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

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.site-header.is-scrolled { background: color-mix(in srgb, var(--paper) 97%, transparent); box-shadow: 0 1px 0 var(--line-soft), 0 14px 30px -26px rgba(34,26,19,.5); }
.site-header__inner {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 22px;
  padding-block: 10px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.brand__logo { width: clamp(122px, 15vw, 176px); height: auto; }
.brand__mono { width: 26px; height: 28px; opacity: .9; }

.nav { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 30px); }
.nav a {
  font-family: var(--font-display); font-size: .82rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; text-decoration: none;
  color: var(--ink-soft); position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--brown); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.btn {
  --bg: var(--brown); --fg: #f8f4ec;
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-display); font-size: .8rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; text-decoration: none;
  background: var(--bg); color: var(--fg);
  padding: 15px 22px; border: 1px solid var(--bg);
  transition: background .35s var(--ease-out), color .35s var(--ease-out), transform .35s var(--ease-out);
}
.btn:hover { background: var(--brown-deep); border-color: var(--brown-deep); transform: translateY(-1px); }
.btn--ghost { --bg: transparent; --fg: var(--brown); border-color: var(--line); }
.btn--ghost:hover { background: var(--beige); border-color: var(--brown); color: var(--brown-deep); }
.btn--sm { padding: 11px 16px; font-size: .72rem; }
.btn--arrow::after { content: "→"; font-size: 1.02em; letter-spacing: 0; }

/* mobile drawer */
.burger {
  display: none; width: 46px; height: 40px; border: 1px solid var(--line);
  background: transparent; cursor: pointer; position: relative; border-radius: 3px;
}
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 50%; width: 20px; height: 1.5px; background: var(--ink);
  transform: translateX(-50%); transition: transform .4s var(--ease-out), opacity .3s;
}
.burger span { top: 50%; margin-top: -0.75px; }
.burger span::before { content: ""; left: 0; transform: none; top: -6px; }
.burger span::after { content: ""; left: 0; transform: none; top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 95;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: 24px var(--gutter) 30px;
  transform: translateY(-102%); transition: transform .5s var(--ease-out);
  visibility: hidden;
}
.drawer.is-open { transform: translateY(0); visibility: visible; }
.drawer nav { display: flex; flex-direction: column; gap: 4px; }
.drawer a {
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 300;
  text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line-soft);
}
.drawer .btn { margin-top: 18px; justify-content: center; }

/* ============================================================
   Hero — wordmark / media collision + masked reveals
   ============================================================ */
.hero { position: relative; padding-top: clamp(26px, 4vw, 52px); }
.hero__overline {
  font-family: var(--font-display); font-size: .76rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; color: var(--brown);
  margin: 0 0 clamp(12px, 1.6vw, 20px);
}
.hero__wordmark {
  display: block; font-size: clamp(3.5rem, 15.6vw, 13.4rem);
  line-height: .9; letter-spacing: -0.035em; font-weight: 200; color: var(--ink);
  margin-bottom: clamp(10px, 1.2vw, 18px);
}
.hero__wordmark small {
  display: block; font-size: clamp(.8rem, 1.5vw, 1.05rem); font-weight: 400;
  letter-spacing: .34em; text-transform: uppercase; color: var(--brown);
  margin-top: clamp(10px, 1.4vw, 18px);
}
.hero__media { position: relative; overflow: hidden; background: var(--paper-2); }
.hero__media img {
  width: 100%; height: clamp(300px, 54vw, 660px); object-fit: cover;
  object-position: center 42%;
}
.hero__media--tall img { height: clamp(340px, 62vw, 720px); object-position: center 46%; }

/* the editorial panel that meets the image (collision) */
.hero__panel {
  position: relative; z-index: 3;
  margin-top: clamp(-92px, -6vw, -44px);
  margin-left: clamp(0px, 4vw, 60px);
  max-width: min(560px, 92%);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 26px 60px -34px rgba(34, 26, 19, .5);
  padding: clamp(24px, 3vw, 40px);
}
.hero__panel p.lede {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.12rem, 1.7vw, 1.5rem); line-height: 1.34; color: var(--ink);
  margin-bottom: 1em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* scroll cue */
.hero__cue {
  display: flex; align-items: center; gap: 12px; margin-top: 26px;
  font-family: var(--font-display); font-size: .7rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--brown);
}
.hero__cue .rule { width: 54px; height: 1px; background: var(--line); transform-origin: left; }

/* ============================================================
   Line-mask reveal primitive (semantic, per line)
   ============================================================ */
.line { display: block; overflow: hidden; }
.line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.is-inview .line > span, html.rm .line > span { transform: none; }
/* hero lines reveal on load (above the fold), not on scroll */
html.is-loaded .reveal-load .line > span { transform: none; }

/* hairline draw */
.rule-draw { height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease-out); }
.is-inview .rule-draw, html.rm .rule-draw { transform: scaleX(1); }

/* hero masked wipe */
.reveal-wipe { clip-path: inset(0 100% 0 0); transition: clip-path 1.15s var(--ease-inout); }
html.is-loaded .reveal-wipe, html.rm .reveal-wipe { clip-path: inset(0 0 0 0); }
.reveal-wipe img { transform: scale(1.07); transition: transform 1.6s var(--ease-out); }
html.is-loaded .reveal-wipe img, html.rm .reveal-wipe img { transform: scale(1); }

/* generic in-view group (chapters) */
.chapter .line > span { transition-duration: .95s; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding-block: clamp(64px, 9vw, 132px); }
.section--tight { padding-block: clamp(46px, 6vw, 84px); }
.section--beige { background: var(--beige); }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--beige); }
.section--ink .eyebrow, .section--ink .lede { color: var(--beige); }

.eyebrow {
  font-family: var(--font-display); font-size: .74rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; color: var(--brown);
  margin: 0 0 18px;
}

.display {
  font-size: clamp(2rem, 5.2vw, 4.2rem);
  line-height: 1.02; font-weight: 250; letter-spacing: -0.03em;
}
.display--sm { font-size: clamp(1.6rem, 3.6vw, 2.9rem); font-weight: 300; }

.lede { font-size: clamp(1.05rem, 1.5vw, 1.36rem); line-height: 1.5; color: var(--ink-soft); font-weight: 300; font-family: var(--font-display); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 72px); align-items: center; }
.split--type { align-items: start; }
.prose { max-width: 62ch; }
.prose p { color: var(--ink-soft); }

/* bounded first-scroll scene: dish + seasonal text */
.scene { position: relative; }
.scene__grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: clamp(28px, 4.4vw, 76px); align-items: center; }
.scene__media { position: relative; overflow: hidden; background: var(--paper-2); }
.scene__media img {
  width: 100%; height: clamp(360px, 52vw, 620px); object-fit: cover;
  will-change: transform;
  transform: translate3d(0, var(--scene-y, 0px), 0) scale(var(--scene-s, 1));
}
.scene__type .line > span { transition-delay: var(--d, 0ms); }
.scene__season { display: flex; gap: 26px; align-items: baseline; flex-wrap: wrap; margin-top: 26px; }
.scene__season dt { font-family: var(--font-display); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brown); }
.scene__season dd { margin: 4px 0 0; font-size: .95rem; color: var(--ink-soft); }
.scene__season > div { flex: 1 1 150px; }

/* media + caption */
.figure { margin: 0; }
.figure img { width: 100%; height: clamp(280px, 40vw, 520px); object-fit: cover; }
.figure figcaption { margin-top: 12px; font-size: .82rem; color: var(--brown); font-family: var(--font-display); letter-spacing: .02em; }
.room-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); margin-top: clamp(30px, 4vw, 58px); }
.room-row .figure img { height: clamp(260px, 30vw, 460px); }
@media (max-width: 760px) { .room-row { grid-template-columns: 1fr; } .room-row .figure img { height: clamp(220px, 62vw, 380px); } }

/* people */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 40px); }
.person { }
.person img { width: 100%; height: clamp(300px, 30vw, 420px); object-fit: cover; }
.person h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 400; margin: 18px 0 4px; }
.person .role { font-family: var(--font-display); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brown); }

/* event teaser (homepage: one only) */
.teaser { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(26px, 4vw, 64px); align-items: center; background: var(--paper); border: 1px solid var(--line); padding: clamp(22px, 3vw, 44px); }
.teaser img { width: 100%; height: clamp(240px, 32vw, 380px); object-fit: cover; }
.teaser .when { font-family: var(--font-display); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brown); }

/* events page list */
.event { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: clamp(24px, 3.6vw, 60px); align-items: start; padding-block: clamp(34px, 4.4vw, 62px); border-top: 1px solid var(--line); }
.event:first-of-type { border-top: 0; }
.event__media { background: var(--paper-2); overflow: hidden; }
.event__media img { width: 100%; height: auto; }
.event__date { font-family: var(--font-display); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brown); margin-bottom: 10px; }
.event h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 300; margin-bottom: 6px; }
.event .guest { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink-soft); font-weight: 300; }
.flyer { margin-top: 24px; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 12px; text-decoration: none; }
.flyer img { width: clamp(150px, 17vw, 208px); height: auto; border: 1px solid var(--line); background: #fff; }
.flyer .card__go { margin-top: 0; }

/* menu cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.card {
  display: flex; flex-direction: column; gap: 14px; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line);
  padding: clamp(24px, 2.8vw, 38px); min-height: 250px;
  transition: background .4s var(--ease-out), transform .4s var(--ease-out), border-color .4s var(--ease-out);
}
.card:hover, .card:focus-visible { background: var(--beige); border-color: var(--brown); transform: translateY(-3px); }
.card__kicker { font-family: var(--font-display); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brown); }
.card h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 350; }
.card p { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.card__go { margin-top: auto; font-family: var(--font-display); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brown); }

/* note / honest-demo banner */
.note { display: flex; gap: 14px; align-items: flex-start; border: 1px dashed var(--line); padding: 16px 18px; background: var(--paper); }
.note svg { flex: 0 0 auto; margin-top: 3px; }
.note p { margin: 0; font-size: .88rem; color: var(--ink-soft); }

/* contact / arrival */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(26px, 4vw, 64px); align-items: start; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.info-list li:first-child { border-top: 0; }
.info-list dt, .info-list .k { font-family: var(--font-display); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brown); margin-bottom: 6px; }
.info-list a { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.info-list a:hover { border-color: var(--brown); }
.big { font-family: var(--font-display); font-size: clamp(1.15rem, 2.1vw, 1.6rem); font-weight: 300; }

/* awards */
.awards { display: flex; flex-wrap: wrap; gap: clamp(22px, 3vw, 48px); align-items: center; }
.award { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.award img { height: clamp(46px, 6vw, 66px); width: auto; }

/* reservation band */
.band { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; }
.band .display--sm { max-width: 22ch; }
.section--ink .btn { --bg: var(--beige); --fg: var(--ink); border-color: var(--beige); }
.section--ink .btn:hover { background: #fff; border-color: #fff; }
.section--ink .btn--ghost { --bg: transparent; --fg: var(--beige); border-color: rgba(235,228,219,.4); }
.section--ink .btn--ghost:hover { background: rgba(235,228,219,.12); border-color: var(--beige); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: var(--beige); padding-block: clamp(48px, 6vw, 84px) 30px; }
.site-footer a { color: var(--beige); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.4vw, 56px); }
.footer-grid h3 { font-family: var(--font-display); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sage); font-weight: 500; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: .92rem; }
.footer-logo { width: clamp(150px, 20vw, 210px); margin-bottom: 18px; }
.footer-partners { display: flex; gap: 20px; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.footer-partners img { height: 30px; width: auto; opacity: .82; }
.footer-bottom { margin-top: clamp(34px, 4vw, 60px); padding-top: 22px; border-top: 1px solid rgba(235,228,219,.18); display: flex; flex-wrap: wrap; gap: 14px 22px; justify-content: space-between; font-size: .8rem; color: rgba(235,228,219,.72); }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* legal prose */
.legal { max-width: 78ch; }
.legal h2 { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 400; margin: 2em 0 .5em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.2em; }

/* breadcrumb */
.crumb { font-family: var(--font-display); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brown); margin-bottom: 20px; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: block; }
  .header-cta { display: none; }
}
@media (min-width: 1081px) {
  .drawer { display: none; }
}
@media (max-width: 900px) {
  .split, .scene__grid, .teaser, .event, .contact-grid { grid-template-columns: 1fr; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene__media { order: -1; }
  .event__media { order: -1; }
  .teaser img { order: -1; }
}
@media (max-width: 600px) {
  :root { --header-h: 66px; --gutter: 20px; }
  .people { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__panel { margin-left: 0; max-width: 100%; margin-top: -34px; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .band { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
}

/* reduced motion: all final states immediately */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .line > span { transform: none !important; }
  .rule-draw { transform: scaleX(1) !important; }
  .reveal-wipe { clip-path: inset(0 0 0 0) !important; }
  .reveal-wipe img { transform: none !important; }
  .scene__media img { transform: none !important; }
}
