:root {
  --wine: #811c2d;
  --wine-deep: #5c1220;
  --wine-ink: #3a0b14;
  --cream: #f8ede3;
  --cream-2: #f1e3d6;
  --ink: #2a1a1c;
  --muted: #7d6a66;
  --line: #e3cfc2;
  --serif: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --nav-h: 152px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--cream); color: var(--ink); font-family: var(--text); font-size: 1.02rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.08; letter-spacing: -0.025em; color: var(--wine); }
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 em, h3 em, .intro em { font-style: normal; font-weight: 500; }
h3 { font-size: 1.45rem; font-weight: 400; }
em { font-style: italic; }
.eyebrow { font-family: var(--text); font-size: .74rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--wine); margin-bottom: 20px; }

/* Logo: PNG used as a mask so it can take any brand color */
.logo-mark { display: block; background: currentColor; -webkit-mask: url(assets/logo.png) center / contain no-repeat; mask: url(assets/logo.png) center / contain no-repeat; aspect-ratio: 1400 / 935; }
.logo-mark.full { -webkit-mask-image: url(assets/logo-mageriko.png); mask-image: url(assets/logo-mageriko.png); aspect-ratio: 651 / 434; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; color: var(--cream); transition: background .3s, color .3s; }
.nav.scrolled { background: rgb(248 237 227 / .8); color: var(--wine); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav .logo-mark { width: 168px; opacity: 0; transition: opacity .3s; }
.nav.scrolled .logo-mark { opacity: 1; }
.links { display: flex; align-items: center; gap: 44px; font-size: .9rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; }
.links a { display: inline-flex; flex-direction: column; align-items: center; transition: font-weight .2s; }
/* reserve bold width so hover doesn't shift the layout */
.links a::after { content: attr(data-text); font-weight: 700; height: 0; overflow: hidden; visibility: hidden; }
.links a:hover { font-weight: 700; }
.links .cta { border: 1px solid currentColor; padding: 14px 30px; transition: background .25s, color .25s, border-color .25s; }
.links .cta:hover { background: var(--wine); border-color: var(--wine); color: var(--cream); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; min-height: 100svh; }
.hero-panel { background: var(--wine); color: var(--cream); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: calc(var(--nav-h) + 40px) 40px 64px; text-align: center; }
.hero-panel .logo-mark { width: min(264px, 48%); color: var(--cream); }
.hero-panel .tagline { margin-top: 48px; font-family: var(--serif); font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 300; opacity: .9; max-width: 30ch; }
.hero-panel .tagline-by { display: block; margin-top: 14px; font-family: var(--text); font-size: .72rem; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.hero-img { position: relative; overflow: hidden; }
.hero-img::after { content: ''; position: absolute; inset: 0 0 auto; height: 280px; background: linear-gradient(rgba(30, 6, 12, .55), transparent); }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }

/* Intro */
.intro { padding: 160px 0 140px; text-align: center; }
.intro p { font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.3; letter-spacing: -0.02em; color: var(--wine); max-width: 24ch; margin-inline: auto; }
.intro .eyebrow { font-family: var(--text); font-size: .74rem; font-weight: 500; letter-spacing: .24em; line-height: 1.6; max-width: none; }

/* Split: big image + text */
.split { display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch; }
.split.reverse { grid-template-columns: 1fr 1.2fr; }
.split.reverse .split-img { order: 2; }
.split-img img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.split-text { padding: clamp(48px, 8vw, 120px); display: flex; flex-direction: column; justify-content: center; }
.split-text h2 { margin-bottom: 28px; }
.split-text p:not(.eyebrow) { color: var(--muted); max-width: 44ch; }
.split-text p + p { margin-top: 16px; }
.bw { filter: grayscale(1) contrast(1.05); }

/* Phrase card: a sewn tablecloth in place of a photo */
.split-card { position: relative; display: flex; align-items: center; justify-content: center; min-height: 560px; padding: 72px 48px; background: var(--wine); color: var(--cream); text-align: center; }
.split-card.deep { background: var(--wine-deep); }
.split-card::before { content: ''; position: absolute; inset: 24px; border: 1px dashed rgb(248 237 227 / .4); pointer-events: none; }
.split-card p { font-weight: 300; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.2; letter-spacing: -0.02em; max-width: 15ch; }
.split-card em { font-style: normal; font-weight: 500; }

/* Menu */
.menu { padding: 140px 0; background: var(--cream-2); }
.menu-head { text-align: center; margin-bottom: 80px; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px 64px; margin-inline: auto; }
.menu-note { text-align: center; margin-top: 64px; color: var(--muted); }
.menu-col h3 { text-align: center; margin-bottom: 32px; }
.menu-col { border-top: 1px solid var(--line); padding-top: 40px; }
.menu-col h3 { margin-bottom: 16px; }
.cat-desc { text-align: center; color: var(--muted); max-width: 26ch; margin-inline: auto; }
.dish { padding: 18px 0; border-bottom: 1px solid var(--line); }
.dish-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.dish-name { font-family: var(--serif); font-size: 1.12rem; font-weight: 500; color: var(--ink); }
.dish-price { font-variant-numeric: tabular-nums; color: var(--wine); }
.dish-desc { font-size: .92rem; color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 8px; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* Visit */
.visit { background: var(--wine); color: var(--cream); padding: 140px 0; }
.visit h2, .visit .eyebrow { color: var(--cream); }
.visit-head { text-align: center; margin-bottom: 72px; }
.visit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.visit-grid a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.visit-grid a:hover { border-bottom-color: currentColor; }
.visit-grid h3 { color: var(--cream); margin-bottom: 16px; }
.visit-grid p { opacity: .85; }
.visit-grid p + p { margin-top: 14px; }
.visit-grid p.small { font-size: .88rem; opacity: .7; }
.visit-grid span.small { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.visit .btn { display: inline-block; margin-top: 64px; padding: 16px 40px; border: 1px solid var(--cream); font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; transition: background .2s, color .2s; }
.visit .btn:hover { background: var(--cream); color: var(--wine); }
.center { text-align: center; }
.visit-note { text-align: center; margin-top: 32px; font-size: .92rem; opacity: .75; }
.visit-note a { border-bottom: 1px solid currentColor; }

/* Footer */
.footer { background: var(--wine); color: var(--cream); padding: 64px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; font-size: .9rem; }
.footer .logo-mark { width: 120px; color: var(--cream); }
.footer span { opacity: .6; }
.footer-info { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.footer-info a:hover { opacity: 1; text-decoration: underline; }

@media (max-width: 860px) {
  :root { --nav-h: 100px; }
  .nav .logo-mark { width: 110px; }
  .links { gap: 0; }
  .links a:not(.cta) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-panel { padding: calc(var(--nav-h) + 32px) 24px 72px; }
  .hero-img { aspect-ratio: 4 / 5; }
  .intro { padding: 96px 0; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-img { order: 0; }
  .split-img img { min-height: 0; aspect-ratio: 4 / 5; }
  .split-card { min-height: 0; padding: 96px 40px; }
  .split-card::before { inset: 16px; }
  .menu-grid { gap: 40px; }
  .split-text { padding: 56px 16px 72px; }
  .menu { padding: 96px 0; }
  .menu-head { margin-bottom: 48px; }
  .menu-grid { grid-template-columns: 1fr; gap: 56px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:nth-child(3) { grid-column: span 2; aspect-ratio: 3 / 2; }
  .visit { padding: 96px 0; }
  .visit-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer-info { text-align: left; }
}
@media (max-width: 520px) {
  .visit-grid { grid-template-columns: 1fr; }
}
