/* Holbox website. Palette from the photographs: the deep sea, the blue portrait wall,
   talavera green, terracotta tile, lime, and paper. */
:root {
  --ink: #0b1622;
  --navy: #0f2238;
  --sea: #2b59c3;
  --tile: #0f6a4b;
  --terra: #c2502c;
  --lime: #c9d64f;
  --paper: #f4efe5;
  --sand: #e8dfcd;
  --muted: #5b6470;
  --line: rgba(11, 22, 34, .14);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gut: clamp(18px, 4.5vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.02em; font-variation-settings: "SOFT" 50, "WONK" 0; }
h2 { font-size: clamp(36px, 5.4vw, 76px); line-height: 1.02; }
h2 em, h2 span { font-style: italic; }
p { margin: 0 0 1em; }
.kicker { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; color: var(--terra); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gut); color: var(--paper); transition: background .35s, color .35s, padding .35s, box-shadow .35s;
}
.nav-logo { position: relative; display: block; width: 92px; }
.nav-logo img { width: 100%; height: auto; transition: opacity .35s; }
.nav-logo .logo-dark { position: absolute; inset: 0; opacity: 0; }
.nav nav { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.nav nav a { text-decoration: none; font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.nav nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.nav.solid { background: rgba(244, 239, 229, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--ink); padding-block: 10px; box-shadow: 0 1px 0 var(--line); }
.nav.solid .logo-light { opacity: 0; }
.nav.solid .logo-dark { opacity: 1; }
.nav.solid .nav-logo { width: 70px; }
.nav.dark.solid { background: rgba(11, 22, 34, .86); color: var(--paper); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.nav.dark.solid .logo-light { opacity: 1; }
.nav.dark.solid .logo-dark { opacity: 0; }
@media (max-width: 640px) {
  .nav nav a:nth-child(1), .nav nav a:nth-child(4) { display: none; }
  .nav-logo { width: 74px; }
}

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: var(--paper); background: var(--ink); }
.hero-media { position: absolute; inset: -4%; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: drift 22s var(--ease) both; }
@keyframes drift { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(11,22,34,.62) 0%, rgba(11,22,34,.28) 45%, rgba(11,22,34,0) 75%),
  linear-gradient(180deg, rgba(11,22,34,.55) 0%, rgba(11,22,34,.05) 30%, rgba(11,22,34,.25) 55%, rgba(11,22,34,.9) 100%); }
.hero-copy { position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(56px, 10vh, 110px); max-width: 1100px; will-change: transform, opacity; }
.hero-copy .kicker { color: var(--paper); text-shadow: 0 1px 12px rgba(0,0,0,.7); }
.hero-title, .hero-lede { text-shadow: 0 2px 30px rgba(11,22,34,.45); }
.hero-title {
  font-size: clamp(88px, 21vw, 330px); line-height: .82; letter-spacing: -.045em; font-weight: 300;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; margin: 0 0 22px -.04em;
}
.hero-title .ch { display: inline-block; transform: translateY(105%); opacity: 0; animation: up 1.1s var(--ease) forwards; animation-delay: calc(.25s + var(--i) * .06s); }
.hero-title .clip { display: inline-block; overflow: hidden; padding-bottom: .06em; }
@keyframes up { to { transform: none; opacity: 1; } }
.hero-lede { font-size: clamp(18px, 1.7vw, 23px); max-width: 34ch; margin-bottom: 26px; }
.rise { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; font: 500 12.5px var(--mono); letter-spacing: .04em; text-decoration: none; border: 1px solid rgba(244,239,229,.35); background: rgba(11,22,34,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pill-today { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.pill-today b { font-weight: 500; opacity: .75; }
.mstar { color: #e2463c; font-size: 15px; line-height: 1; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(15,106,75,.45); } 70% { box-shadow: 0 0 0 9px rgba(15,106,75,0); } 100% { box-shadow: 0 0 0 0 rgba(15,106,75,0); } }
.pill-today .dot { background: var(--tile); }
.scroll-cue { position: absolute; right: var(--gut); bottom: 30px; display: flex; flex-direction: column; align-items: center; gap: 10px; font: 500 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--paper), transparent); animation: cue 2.2s infinite var(--ease); transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 640px) { .scroll-cue { display: none; } }

/* ---------- the name, word by word ---------- */
.say { padding: clamp(110px, 20vh, 220px) var(--gut); background: var(--paper); }
.say-text { font-family: var(--serif); font-size: clamp(32px, 5vw, 70px); line-height: 1.12; letter-spacing: -.02em; max-width: 21ch; margin: 0 auto; font-variation-settings: "SOFT" 60; }
.say-text em { font-style: italic; color: var(--sea); }
.say-text .w { opacity: .14; transition: opacity .25s linear; }
.say-text .w.on { opacity: 1; }

/* ---------- story, pinned ---------- */
.story { position: relative; height: 340vh; background: var(--ink); color: var(--paper); }
.story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: 1.25fr 1fr; overflow: hidden; }
.story-media { position: relative; overflow: hidden; }
.sm { position: absolute; inset: 0; margin: 0; clip-path: inset(100% 0 0 0); will-change: clip-path; }
.sm[data-sm="0"] { clip-path: inset(0 0 0 0); }
.sm img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); will-change: transform; }
.story-count { position: absolute; left: 24px; bottom: 22px; font: 500 12px var(--mono); letter-spacing: .14em; color: var(--paper); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.story-steps { position: relative; padding: 0 var(--gut); }
.step { position: absolute; inset: 0 var(--gut); display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.step.on { opacity: 1; transform: none; pointer-events: auto; }
.step .num { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin-bottom: 22px; }
.step h2 { font-size: clamp(34px, 4.2vw, 62px); margin-bottom: 24px; max-width: 13ch; }
.step p:last-child { font-size: clamp(17px, 1.35vw, 20px); color: rgba(244,239,229,.82); max-width: 40ch; }
@media (max-width: 900px) {
  .story-pin { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .story-media { grid-area: 1 / 1; }
  .story-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,22,34,0) 30%, rgba(11,22,34,.92) 78%); }
  .story-steps { grid-area: 1 / 1; z-index: 2; padding: 0; }
  .step { inset: auto var(--gut) 0 var(--gut); justify-content: flex-end; padding-bottom: 54px; }
  .story-count { top: 82px; bottom: auto; left: var(--gut); z-index: 3; }
}

/* ---------- reel, horizontal ---------- */
.reel { position: relative; background: var(--paper); }
.reel-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.reel-track { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); padding: 0 var(--gut); will-change: transform; width: max-content; }
.reel-intro { width: min(440px, 78vw); flex: none; padding-right: 2vw; }
.reel-intro h2 span { color: var(--terra); }
.reel-intro p { color: var(--muted); font-size: 18px; margin-top: 20px; max-width: 30ch; }
.reel-hint { font: 500 12px var(--mono) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--terra) !important; }
.card { flex: none; margin: 0; }
.card .ph { overflow: hidden; border-radius: 6px; background: var(--sand); }
.card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.card.w .ph { width: min(58vw, 760px); height: min(62vh, 520px); }
.card.s .ph { width: min(40vw, 500px); height: min(48vh, 400px); }
.card.t .ph { width: min(34vw, 360px); height: min(66vh, 560px); }
.card figcaption { margin-top: 14px; font: 500 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; display: flex; gap: 14px; }
.card figcaption b { color: var(--terra); font-weight: 500; }
.reel-end { flex: none; width: min(380px, 70vw); padding-left: 2vw; }
.reel-end a { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; text-decoration: none; font-style: italic; color: var(--tile); border-bottom: 2px solid currentColor; }
.reel-bar { position: absolute; left: var(--gut); right: var(--gut); bottom: 34px; height: 2px; background: var(--line); }
.reel-bar i { display: block; height: 100%; width: 100%; background: var(--terra); transform-origin: left; transform: scaleX(0); }
@media (max-width: 700px) {
  .card.w .ph { width: 84vw; height: 52vh; }
  .card.s .ph { width: 72vw; height: 44vh; }
  .card.t .ph { width: 64vw; height: 58vh; }
}

/* ---------- today's menu ---------- */
.menu { padding: clamp(100px, 16vh, 180px) var(--gut) clamp(80px, 12vh, 140px); background: var(--paper); border-top: 1px solid var(--line); }
.menu-head { max-width: 1200px; margin: 0 auto clamp(46px, 7vh, 80px); }
.menu-head h2 em { color: var(--tile); }
.menu-why { font-size: 19px; color: var(--muted); max-width: 46ch; margin-top: 20px; }
.menu-status { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px var(--mono); letter-spacing: .04em; padding: 8px 14px; border-radius: 999px; background: rgba(15,106,75,.1); color: var(--tile); margin: 0; }
.menu-status.old { background: rgba(194,80,44,.1); color: var(--terra); }
.menu-status.old .dot { animation: none; }
.menu-sides { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); }
@media (max-width: 860px) { .menu-sides { grid-template-columns: 1fr; } }
.side-head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); margin-bottom: 8px; }
.side-head h3 { font-size: clamp(40px, 4.4vw, 60px); font-style: italic; letter-spacing: -.03em; }
.side-head p { margin: 0; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sec { padding-top: 34px; }
.sec h4 { margin: 0; font: 600 13px var(--mono); letter-spacing: .18em; color: var(--terra); }
.sec .sub { margin: 4px 0 0; font-size: 14px; color: var(--muted); font-style: italic; }
.dish { padding: 16px 0; border-bottom: 1px solid var(--line); }
.dish-top { display: flex; align-items: baseline; gap: 10px; }
.dish-name { font-family: var(--serif); font-size: 22px; line-height: 1.2; letter-spacing: -.01em; font-variation-settings: "SOFT" 40; }
.dish-lead { flex: 1; border-bottom: 1px dotted rgba(11,22,34,.35); transform: translateY(-5px); min-width: 16px; }
.dish-price { font: 500 15px var(--mono); white-space: nowrap; }
.dish-price span { display: block; text-align: right; }
.dish-desc { margin: 6px 0 0; font-size: 15px; color: var(--muted); max-width: 52ch; }
.dish-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font: 500 11px var(--mono); letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tag.lim { border-color: var(--terra); color: var(--terra); }
.tag.al { width: 22px; height: 22px; padding: 0; display: inline-grid; place-items: center; text-transform: lowercase; }
.dish-note { margin: 6px 0 0; font-size: 14px; font-style: italic; color: var(--tile); }
.menu-key, .menu-disc { max-width: 1200px; margin: 40px auto 0; font-size: 14px; color: var(--muted); }
.menu-disc { margin-top: 10px; font-style: italic; }
.menu-sides .sec { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.menu-sides .sec.in { opacity: 1; transform: none; }

/* ---------- tasting ---------- */
.tasting { position: relative; background: var(--navy); color: var(--paper); padding: clamp(100px, 16vh, 170px) var(--gut); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 100px); align-items: center; overflow: hidden; }
.tasting-eight { display: grid; place-items: center; }
.tasting-eight span {
  font-family: var(--serif); font-weight: 300; font-size: clamp(260px, 38vw, 620px); line-height: .8; font-variation-settings: "SOFT" 100, "opsz" 144;
  color: transparent; -webkit-text-stroke: 1.5px rgba(201,214,79,.7);
  background: linear-gradient(0deg, var(--lime) 0 var(--fill, 0%), transparent var(--fill, 0%) 100%); -webkit-background-clip: text; background-clip: text;
}
.tasting .kicker { color: var(--lime); }
.tasting h2 { margin-bottom: 18px; }
.tasting-lede { font-size: 20px; color: rgba(244,239,229,.8); max-width: 36ch; }
.facts { margin: 34px 0; display: grid; gap: 0; border-top: 1px solid rgba(244,239,229,.16); }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid rgba(244,239,229,.16); }
.facts dt { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); padding-top: 3px; }
.facts dd { margin: 0; font-size: 17px; }
.resy { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; transition: transform .25s var(--ease), background .25s; }
.resy:hover { transform: translateY(-2px); background: var(--lime); }
.fine { margin: 34px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14px; color: rgba(244,239,229,.62); max-width: 60ch; }
.fine li { padding-left: 18px; position: relative; }
.fine li::before { content: "✱"; position: absolute; left: 0; color: var(--terra); font-size: 11px; top: 3px; }
@media (max-width: 900px) {
  .tasting { grid-template-columns: 1fr; }
  .tasting-eight span { font-size: 62vw; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- laurels ---------- */
.laurels { position: relative; background: var(--paper); padding: 70px 0; display: flex; align-items: center; gap: 30px; overflow: hidden; border-bottom: 1px solid var(--line); }
.laurels .badge { flex: none; width: clamp(90px, 10vw, 140px); margin-left: var(--gut); position: relative; z-index: 2; }
.marquee { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq { display: flex; gap: 34px; width: max-content; animation: mq 46s linear infinite; font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.4vw, 50px); white-space: nowrap; align-items: center; }
.mq i { font-style: normal; color: #e2463c; font-size: .6em; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- team ---------- */
.team { padding: clamp(100px, 14vh, 160px) var(--gut); background: var(--paper); }
.team header { max-width: 1200px; margin: 0 auto 56px; }
.crew { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 1000px) { .crew { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .crew { grid-template-columns: repeat(2, 1fr); } }
.mate .ph { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--sea); margin-bottom: 16px; }
.mate .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mate:hover .ph img { transform: scale(1.05); }
.ph-type { display: grid; place-items: end start; padding: 18px; background: var(--sea) radial-gradient(circle at 80% 15%, rgba(255,255,255,.16), transparent 55%); }
.ph-type span { font-family: var(--serif); font-style: italic; font-size: clamp(34px, 3.6vw, 52px); color: var(--paper); line-height: 1; letter-spacing: -.03em; }
.mate h3 { font-size: 22px; letter-spacing: -.01em; }
.mate .role { font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--terra); margin: 4px 0 10px; }
.mate p:last-child { font-size: 14.5px; color: var(--muted); margin: 0; }
.crew .mate { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.crew .mate.in { opacity: 1; transform: none; }

/* ---------- visit ---------- */
.visit { display: grid; grid-template-columns: 1fr 1fr; background: var(--tile); color: var(--paper); }
.visit-copy { padding: clamp(80px, 12vh, 140px) var(--gut); }
.visit .kicker { color: var(--lime); }
.visit h2 span { font-style: italic; color: var(--lime); }
.where { font-size: 19px; margin: 18px 0 26px; max-width: 38ch; color: rgba(244,239,229,.85); }
.open-now { display: inline-flex; align-items: center; gap: 10px; font: 500 13px var(--mono); letter-spacing: .04em; padding: 8px 14px; border-radius: 999px; background: rgba(244,239,229,.12); margin: 0 0 22px; }
.open-now:empty { display: none; }
.open-now .dot { background: var(--lime); }
.open-now.closed .dot { background: #e98a6e; animation: none; }
.hours { border-collapse: collapse; width: 100%; max-width: 420px; font-size: 16px; }
.hours th, .hours td { text-align: left; padding: 9px 0; border-bottom: 1px solid rgba(244,239,229,.18); font-weight: 400; }
.hours td { text-align: right; font-family: var(--mono); font-size: 14px; }
.hours tr.today th, .hours tr.today td { color: var(--lime); font-weight: 600; }
.links { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.links a { display: inline-block; padding: 10px 16px; border: 1px solid rgba(244,239,229,.35); border-radius: 999px; text-decoration: none; font: 500 13px var(--mono); letter-spacing: .04em; transition: background .25s, color .25s; }
.links a:hover { background: var(--paper); color: var(--tile); }
.visit-media { margin: 0; min-height: 420px; overflow: hidden; }
.visit-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .visit { grid-template-columns: 1fr; } .visit-media { min-height: 0; aspect-ratio: 4 / 3; } }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: rgba(244,239,229,.7); padding: 60px var(--gut) 44px; display: grid; gap: 12px; justify-items: start; font-size: 14px; }
.foot img { width: 84px; margin-bottom: 10px; }
.foot p { margin: 0; }
.foot-small { font: 400 12px var(--mono); letter-spacing: .04em; }
.foot-small a { color: rgba(244,239,229,.85); }

/* ---------- reduced motion: everything in place, nothing pinned ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero-title .ch, .rise { opacity: 1; transform: none; }
  .say-text .w { opacity: 1; }
  .story { height: auto; }
  .story-pin { position: relative; height: auto; display: block; }
  .story-media { height: 70vh; }
  .sm { clip-path: none !important; opacity: 0; }
  .sm[data-sm="0"] { opacity: 1; }
  .story-steps { padding: 40px var(--gut); }
  .step { position: static; opacity: 1; transform: none; padding: 30px 0; }
  .story-media::after { display: none; }
  .reel-pin { position: relative; height: auto; padding: 80px 0; overflow-x: auto; }
  .reel-track { transform: none !important; }
  .card img, .sm img { transform: none !important; }
  .menu-sides .sec, .crew .mate { opacity: 1; transform: none; }
  .tasting-eight span { --fill: 100%; }
  .mq { animation: none; flex-wrap: wrap; white-space: normal; width: auto; padding: 0 var(--gut); }
}
