/* Flavour – bringing people together. Drawn like a comic: an inked frame around the screen, black, paper and our red,
   big capitals (Aboreto) in the middle, a few words in a caption box. Each picture arrives in black and white
   and comes alive in colour. No italics anywhere. */
:root {
  --night: #141211;
  --paper: #f4efe6;
  --ink: #141211;
  --red: #e21e26;
  --display: 'Aboreto', Georgia, serif;
  --text: 'Albert Sans', system-ui, sans-serif;
  --ui: 'Zen Maru Gothic', 'Albert Sans', system-ui, sans-serif;
  --m: clamp(9px, 1.15vw, 18px); /* paper margin of the drawn frame */
  --pad: calc(var(--m) + clamp(16px, 3vw, 48px));
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --bw: grayscale(1) contrast(1.12);
}

* { box-sizing: border-box; }
html { background: var(--night); color: var(--paper); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; font: 300 clamp(18px, 1.4vw, 21px)/1.55 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; padding: 0; font-weight: inherit; }
ul { list-style: none; }
strong { font-weight: inherit; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--pad); top: var(--pad); z-index: 60; padding: 8px 12px; background: var(--paper); color: var(--ink); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

.logo { display: block; aspect-ratio: 2160 / 1407; background: currentColor; -webkit-mask: url(../logo.svg) no-repeat center / contain; mask: url(../logo.svg) no-repeat center / contain; }
.display { font: 400 clamp(34px, 7.9vw, 132px)/1.02 var(--display); text-align: center; text-transform: uppercase; text-wrap: balance; }

/* boxed button */
.box { --on: var(--paper); --off: var(--ink); display: inline-flex; align-items: center; padding: 14px 20px 13px; border: 2px solid currentColor; font: 900 14px/1 var(--ui); letter-spacing: 0.07em; text-transform: uppercase; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.box:hover { background: var(--on); border-color: var(--on); color: var(--off); }
.box.big { padding: 22px 30px 21px; font-size: clamp(17px, 2.5vw, 34px); }

/* caption box: the few words that go with a picture */
.cap { --on: var(--ink); --off: var(--paper); max-width: 27em; padding: 18px 22px 19px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font: 400 clamp(17px, 1.35vw, 21px)/1.5 var(--text); text-align: left; }
.cap .box { margin-top: 14px; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }

/* the drawn frame around everything */
.frame { position: fixed; inset: 0; z-index: 35; border: var(--m) solid var(--paper); pointer-events: none; }
.frame::before { content: ''; position: absolute; inset: -4px; border: 4px solid var(--ink); filter: url(#rough); }

/* arrival: the logo writes itself on black, then the first picture comes up */
.intro { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--night); pointer-events: none; animation: lift 1s ease 2.3s forwards; }
.intro-logo { width: min(52vw, 560px); color: var(--paper); animation: write 1.7s cubic-bezier(0.65, 0, 0.35, 1) 0.3s both; }
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes lift { to { opacity: 0; visibility: hidden; } }

/* logo and menu button */
.top { position: fixed; inset: 0 0 auto; z-index: 36; display: flex; align-items: center; justify-content: space-between; padding: calc(var(--m) + 14px) calc(var(--m) + clamp(14px, 2vw, 28px)); color: var(--paper); pointer-events: none; transition: color 0.4s; }
.top > * { pointer-events: auto; }
.top.on-paper { color: var(--ink); }
.menu-open .top { color: var(--paper); }
.top-logo { width: clamp(76px, 6.4vw, 100px); }
.burger { display: grid; place-content: center; gap: 6px; width: 58px; height: 46px; border: 2px solid currentColor; }
.burger i { display: block; width: 24px; height: 2px; background: currentColor; transition: translate 0.35s var(--ease), rotate 0.35s var(--ease), opacity 0.2s; }
.burger[aria-expanded='true'] i:nth-of-type(1) { translate: 0 8px; rotate: 45deg; }
.burger[aria-expanded='true'] i:nth-of-type(2) { opacity: 0; }
.burger[aria-expanded='true'] i:nth-of-type(3) { translate: 0 -8px; rotate: -45deg; }
.menu { position: fixed; inset: var(--m); z-index: 32; display: grid; place-content: center; gap: 0.12em; overflow: auto; background: var(--red); text-align: center; animation: drop 0.7s var(--ease); }
.menu a { font: 400 clamp(30px, 6.2vw, 96px)/1.08 var(--display); text-transform: uppercase; transition: color 0.3s; }
.menu a:hover { color: var(--ink); }
@keyframes drop { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.menu-open { overflow: hidden; }

/* scenes: each fills the screen and stays put while the next one is drawn over it */
main > section { position: relative; background: var(--night); }
.scene { position: sticky; top: 0; height: 100svh; min-height: 560px; margin-bottom: 60svh; overflow: hidden; } /* the margin is the hold: the scene stays whole that long before the next one is drawn over it */
.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bloom { filter: var(--bw); transition: filter 2.8s ease 1.9s; }
.on > .bloom { filter: none; }

/* calm entrances, once */
.js [data-words] .w { display: inline-block; opacity: 0; translate: 0 0.4em; transition: opacity 0.9s ease calc(var(--d, 0.15s) + var(--i) * 0.1s), translate 1.1s var(--ease) calc(var(--d, 0.15s) + var(--i) * 0.1s); }
.js .on [data-words] .w { opacity: 1; translate: 0 0; }
.js [data-rise] { opacity: 0; translate: 0 70px; transition: opacity 1.2s ease, translate 1.2s var(--ease); }
.js [data-rise].on { opacity: 1; translate: 0 0; }

/* 1 — the first picture, with the statement above and below it */
.opening { --d: 2.8s; }
.opening::after { content: ''; position: absolute; inset: 0; background: rgba(20, 18, 17, 0.42); }
.statement { position: absolute; z-index: 1; inset: clamp(96px, 15svh, 140px) var(--pad) clamp(104px, 17svh, 160px); display: flex; flex-direction: column; justify-content: space-between; }
.statement .display { font-size: clamp(28px, 5.9vw, 100px); }
.enter { position: absolute; z-index: 1; left: 50%; bottom: clamp(34px, 7svh, 72px); translate: -50% 0; opacity: 0; animation: appear 1.4s ease 4.4s forwards; }
@keyframes appear { to { opacity: 1; } }

/* 2 and 8 — the two red posters: a caption at the top, the big words in the middle of what is left */
main > .poster, main > .result { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(100px, 16svh, 160px) var(--pad) clamp(60px, 11svh, 120px); background: var(--red); }
.poster .display, .result .display { align-self: center; margin: auto 0; }
.poster .cap, .result .cap { max-width: 25em; }
.result { flex-direction: column-reverse; }

/* 3–6 — one word, one picture, a few words */
.word { display: grid; place-items: center; padding: 0 var(--pad); }
.word::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 18, 17, 0.42) 0%, rgba(20, 18, 17, 0.3) 55%, rgba(20, 18, 17, 0.72) 100%); }
.word .display { position: relative; z-index: 1; font-size: clamp(46px, 13.5vw, 226px); }
.word .cap { position: absolute; z-index: 1; left: var(--pad); bottom: clamp(34px, 7svh, 76px); max-width: min(25em, calc(100% - 2 * var(--pad))); }

/* three ways to cook together: the one you point at opens and takes its colour */
.cook { padding: var(--m) 0; }
.ways { display: flex; gap: var(--m); height: min(86svh, 840px); padding: 0 var(--m); }
.way { position: relative; flex: 1; min-width: 0; overflow: hidden; background: var(--night); cursor: pointer; transition: flex-grow 1s var(--ease); }
.way.is { flex-grow: 2.7; cursor: default; }
.way > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--bw) brightness(0.6); transition: filter 1.1s ease; }
.way.is > img { filter: brightness(0.92); }
.way[data-key="cuisine"] > img { object-position: 31% 50%; } /* keeps the guest on the left in view when the panel is narrow */
.way::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(20, 18, 17, 0.85)); }
.way-in { position: absolute; z-index: 1; left: 0; bottom: 0; display: grid; justify-items: start; padding: clamp(18px, 2.2vw, 34px); }
.way h3 { font-size: clamp(24px, 3.1vw, 52px); text-align: left; white-space: nowrap; }
.way-more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 1s var(--ease), opacity 0.4s ease; }
.way-more > div { min-height: 0; overflow: hidden; }
.way-more .cap { width: min(27em, 58vw); margin-top: 14px; }
.way.is .way-more { grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows 1s var(--ease), opacity 0.9s ease 0.4s; }

/* 9 — the houses, as a plain list on paper */
main > .houses { padding: clamp(120px, 20svh, 210px) var(--pad) clamp(90px, 14svh, 170px); background: var(--paper); color: var(--ink); }
.directory { margin-top: clamp(50px, 7vw, 110px); border-bottom: 2px solid var(--ink); }
.directory a { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 30px; padding: clamp(14px, 1.7vw, 26px) 0; border-top: 2px solid var(--ink); transition: color 0.3s; }
.directory a:hover { color: var(--red); }
.directory strong { font: 400 clamp(26px, 4.4vw, 74px)/1.05 var(--display); text-transform: uppercase; }

/* 10 — contact */
.contact { padding: clamp(140px, 24svh, 250px) var(--pad) clamp(100px, 15svh, 170px); text-align: center; }
.contact-ways { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(40px, 6vw, 80px); }

.foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px var(--pad) calc(var(--m) + 28px); border-top: 1px solid rgba(244, 239, 230, 0.2); background: var(--night); font-size: 17px; }
.foot-logo { width: 90px; }

/* phone */
@media (max-width: 820px) {
  .display { font-size: clamp(30px, 9.6vw, 76px); }
  .statement .display { font-size: clamp(28px, 9vw, 72px); }
  .word .display { align-self: start; margin-top: 30svh; }
  .ways { flex-direction: column; height: auto; }
  .way, .way.is { flex: none; height: 78svh; min-height: 500px; cursor: default; }
  .way > img, .way.is > img { filter: brightness(0.9); }
  .way h3 { white-space: normal; }
  .way .way-more { grid-template-rows: 1fr; opacity: 1; }
  .way-more .cap { width: auto; }
  .contact-ways { flex-direction: column; align-items: stretch; }
  .box.big { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro { display: none; }
  .enter { animation: none; opacity: 1; }
  .menu { animation: none; }
  .js [data-words] .w, .js [data-rise] { opacity: 1; translate: none; transition: none; }
  .bloom { filter: none; transition: none; }
  .way, .way > img, .way-more { transition: none; }
}
