/* ============================================================
   Raclette Games — "La carte"
   Warm paper · ink · cheese-yellow blocks · molten accent
   Editorial menu layout — stamps, leaders, hairlines
   ============================================================ */

:root {
  --paper:      oklch(0.948 0.026 88);
  --paper-2:    oklch(0.974 0.018 92);
  --paper-deep: oklch(0.912 0.03 86);

  --ink:        oklch(0.255 0.028 58);
  --ink-soft:   oklch(0.42 0.03 60);
  --ink-faint:  oklch(0.56 0.026 62);
  --line:       oklch(0.255 0.028 58 / 0.18);
  --line-2:     oklch(0.255 0.028 58 / 0.42);

  --accent-h:   86;                                   /* cheese hue (tweakable) */
  --cheese:     oklch(0.84 0.155 var(--accent-h));
  --cheese-deep:oklch(0.72 0.15 calc(var(--accent-h) - 6));
  --molten:     oklch(0.55 0.19 33);
  --molten-ink: oklch(0.42 0.17 32);

  --online: oklch(0.50 0.13 150);
  --steam:  oklch(0.48 0.12 245);
  --soon:   oklch(0.48 0.14 305);

  --maxw: 1080px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* paper grain + faint dot-grid */
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
}
body.no-grain .grain { display: none; }

.page { position: relative; z-index: 1; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- ticker top rule ---------- */
.topline {
  border-bottom: 1.5px solid var(--ink);
}
.topline .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px; gap: 16px;
}
.mark {
  font-family: var(--font-mono);
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.mark .dot { color: var(--molten); }

.lang { display: flex; gap: 2px; }
.lang button {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-faint); background: none;
  border: 1.5px solid transparent; padding: 4px 10px; cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}
.lang button:hover { color: var(--ink); }
.lang button.is-active { color: var(--paper); background: var(--ink); }

/* ---------- masthead ---------- */
.masthead { padding: 64px 0 30px; position: relative; }
.masthead .wrap { position: relative; }
.kicker {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
}
.title-row { margin-top: 14px; }
.cheese {
  font-size: clamp(48px, 7vw, 84px); line-height: 0.8;
  display: inline-block; cursor: grab;
  vertical-align: -0.06em; margin-right: 0.18em;
  transform: rotate(-8deg);
  filter: drop-shadow(0 6px 0 oklch(0.72 0.15 80 / 0.35));
  transition: transform .2s;
}
.cheese:hover { transform: rotate(-4deg) translateY(-3px); }
.masthead h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(50px, 11vw, 124px);
  letter-spacing: -0.035em; line-height: 0.92;
  text-transform: none; text-wrap: balance;
}
.masthead h1 .melt { color: var(--molten); }

.tagline {
  margin-top: 26px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.25; color: var(--ink-soft);
  max-width: 22ch;
}
.tagline em {
  font-style: italic; color: var(--ink);
  background: linear-gradient(180deg, transparent 62%, var(--cheese) 62% 92%, transparent 92%);
}

/* rotating flavour word */
.rotator {
  display: inline-block; position: relative;
  text-align: left; vertical-align: bottom;
  overflow: hidden;
  transition: width .34s cubic-bezier(.2,.7,.3,1);
}
.rotator .word {
  display: inline-block; white-space: nowrap;
  font-style: italic; color: var(--ink);
  background: linear-gradient(180deg, transparent 62%, var(--cheese) 62% 92%, transparent 92%);
  transition: opacity .34s ease, transform .34s cubic-bezier(.2,.7,.3,1);
}
.rotator .word.out { opacity: 0; transform: translateY(-0.42em); }

/* ---------- circular stamp seal ---------- */
.seal {
  position: absolute; right: 2px; top: 300px;
  width: 182px; height: 182px;
  display: grid; place-items: center;
}
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 36s linear infinite; }
.seal svg text { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.01em; fill: var(--ink); text-transform: uppercase; }
.seal-center { display: grid; place-items: center; text-align: center; transform: rotate(-6deg); }
.seal-center b { font-family: var(--font-display); font-weight: 800; font-size: 52px; line-height: 0.8; color: var(--molten); }
.seal-center i { font-family: var(--font-mono); font-style: normal; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- focus states ---------- */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 1px;
}
.menu-item:has(.menu-link:focus-visible) { outline: 3px solid var(--ink); outline-offset: -3px; background: oklch(0.84 0.155 var(--accent-h) / 0.22); }
.lang button:focus-visible { outline: 3px solid var(--molten); outline-offset: 2px; }

/* ---------- section heading ---------- */
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; padding-top: 22px; margin-top: 40px;
  border-top: 1.5px solid var(--ink);
}
.sec-head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(26px, 4vw, 40px); letter-spacing: -0.02em;
  flex: none; white-space: nowrap;
}
.sec-head .sub {
  font-family: var(--font-serif); font-style: italic;
  font-size: 19px; color: var(--ink-soft); text-align: right;
}

/* ---------- stamp badge ---------- */
.stamp {
  display: inline-block;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 9px; border: 2px solid currentColor; border-radius: 4px;
  transform: rotate(-3deg);
  box-shadow: 2px 2px 0 -1px currentColor;
}
.stamp.s-here   { color: var(--molten); }
.stamp.s-online { color: var(--online); }
.stamp.s-steam  { color: var(--steam); }
.stamp.s-soon   { color: var(--soon); transform: rotate(3deg); }

/* ---------- featured (plat du jour) ---------- */
.featured {
  margin-top: 30px;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  border: 2px solid var(--ink);
  background: var(--paper-2);
}
.featured-media {
  position: relative; border-right: 2px solid var(--ink);
  min-height: 340px;
  background: repeating-linear-gradient(45deg, var(--paper-deep) 0 13px, var(--paper-2) 13px 26px);
}
.featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--cheese); color: var(--ink);
  padding: 7px 12px; border: 2px solid var(--ink);
  transform: rotate(-2deg);
}
.featured-body { padding: 34px 36px; display: flex; flex-direction: column; }
.featured-head { display: flex; align-items: center; gap: 14px; }
.featured-num {
  font-family: var(--font-mono); font-size: 15px; color: var(--ink-faint); font-weight: 700;
}
.featured-body h3 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.02em; line-height: 1;
  margin: 14px 0 0;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.featured-body h3 .ico { font-size: 0.8em; }
.featured-body p { color: var(--ink-soft); font-size: 17px; margin-top: 16px; flex: 1; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  padding: 14px 24px; border: 2px solid var(--ink); cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  background: var(--cheese); color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s, box-shadow .12s, background .15s;
  align-self: flex-start;
}
.btn .arr { transition: transform .15s; }
.btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:hover .arr { transform: translate(3px,-3px); }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.btn-play { margin-top: 24px; }

/* ---------- menu list ---------- */
.menu { margin-top: 8px; border-top: 1.5px solid var(--line-2); }
.menu-item {
  display: grid;
  grid-template-columns: 44px 120px 1fr auto;
  align-items: center; gap: 24px;
  padding: 22px 6px;
  border-bottom: 1.5px solid var(--line);
  text-decoration: none; color: inherit;
  position: relative;
  transition: background .18s, padding-left .18s;
}
.menu-item:hover { background: oklch(0.84 0.155 var(--accent-h) / 0.22); padding-left: 16px; }
.menu-link {
  position: absolute; inset: 0; z-index: 1;
  text-decoration: none; font-size: 0;
}
.menu-num {
  font-family: var(--font-mono); font-size: 15px; font-weight: 700;
  color: var(--ink-faint);
}
.menu-thumb {
  width: 120px; height: 76px;
  border: 1.5px solid var(--line-2); background: var(--paper-2);
  overflow: hidden;
  position: relative; z-index: 2;
}
.menu-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.menu-main { min-width: 0; }
.menu-title-row { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.menu-emoji { font-size: 22px; line-height: 1; }
.menu-main h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.015em; line-height: 1.05;
}
.menu-main p { color: var(--ink-soft); font-size: 15px; margin-top: 6px; max-width: 54ch; }
.menu-cta {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  color: var(--molten-ink);
  border-bottom: 2px solid var(--molten);
  padding-bottom: 2px;
}
.menu-item:hover .menu-cta .arr { transform: translate(3px,-3px); }
.menu-cta .arr { transition: transform .15s; }

/* ---------- chef's note ---------- */
.note {
  margin-top: 56px;
  display: grid; grid-template-columns: auto 1fr; gap: 36px;
  align-items: start;
  padding: 40px 0 10px;
  border-top: 1.5px solid var(--ink);
}
.note-label {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--molten-ink);
  writing-mode: horizontal-tb; white-space: nowrap;
}
.note-body p {
  font-family: var(--font-serif); font-size: clamp(22px, 3vw, 30px);
  line-height: 1.35; color: var(--ink); max-width: 30ch;
}
.note-sign {
  margin-top: 22px;
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* ---------- footer ---------- */
footer {
  margin-top: 56px; border-top: 1.5px solid var(--ink);
}
footer .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 22px; padding-bottom: 40px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft);
  letter-spacing: 0.04em;
}
footer .made .heart { color: var(--molten); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .featured { grid-template-columns: 1fr; }
  .featured-media { border-right: none; border-bottom: 2px solid var(--ink); min-height: 240px; }
  .note { grid-template-columns: 1fr; gap: 14px; }
  .seal { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .menu-item { grid-template-columns: 36px 1fr; row-gap: 10px; }
  .menu-thumb { display: none; }
  .menu-cta { grid-column: 2; justify-self: start; }
  .sec-head .sub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}
