/* Food layout ("diner"): the name as a roadside sign, tiles like a lit board, a menu board.
   Green-black ground, bone type, booth red for the neon and the call button. */

:root {
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gap: 8px;
  --step-small: 0.9375rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-head: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body { background: var(--ground); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.45; letter-spacing: -0.01em; }
::selection { background: var(--accent); color: var(--accent-ink); }
h2 { font-weight: 800; font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.04em; }

.s-tile { background: var(--tile); border-radius: 6px; overflow: hidden; }

/* Hero: sign, links, floor of tiles */
.s-hero { min-height: calc(100svh - 2.5rem); display: grid; grid-template-rows: auto auto 1fr; gap: var(--gap); padding: var(--gap); }
.s-name {
  font-size: var(--fit); font-weight: 800; letter-spacing: -0.055em; line-height: 0.82; white-space: nowrap;
  padding: 0.04em 0 0.02em; overflow: hidden; text-align: center; color: var(--ink);
  animation: s-flicker 1.4s steps(1) both;
}
.s-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.s-links a {
  background: var(--tile); border-radius: 6px; min-height: 3.5rem; padding: 0.875rem 1rem; text-decoration: none; font-weight: 600;
  transition: background-color 0.2s ease;
}
.s-links a:hover { background: var(--tile-2); }
.s-links a:last-child { background: var(--accent); color: var(--accent-ink); }
.s-links a:last-child:hover { background: var(--accent-hover); }

.s-floor { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 7.6fr) minmax(0, 2.2fr); gap: var(--gap); min-height: 26rem; }
.s-rail-left, .s-rail-right { display: grid; gap: var(--gap); }
.s-rail-left { grid-template-rows: 1fr auto; }
.s-portrait img { width: 100%; height: 100%; object-fit: cover; }
.s-facts { padding: 1rem; display: grid; gap: 0.75rem; }
.s-facts div { display: flex; flex-direction: column-reverse; }
.s-facts dd { font-weight: 800; font-size: 1.75rem; line-height: 1; letter-spacing: -0.03em; }
.s-facts dt { color: var(--muted); font-size: var(--step-small); }

.s-main { position: relative; min-height: 22rem; }
.s-main-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: s-push 18s ease-out both; }
.s-statement {
  position: absolute; left: 0; bottom: 0; max-width: min(36rem, 100%); padding: 1.5rem 1.75rem;
  background: var(--ground); border-top-right-radius: 6px; display: grid; gap: 0.5rem;
}
.s-headline { font-weight: 800; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem); line-height: 0.95; letter-spacing: -0.045em; }

.s-rail-right { grid-template-rows: 1fr 1fr 1fr 1.3fr; }
.s-board { padding: 1rem; display: flex; align-items: flex-end; font-weight: 600; font-size: 1.0625rem; line-height: 1.25; }
.s-board-1 { background: var(--tile); }
.s-board-2 { background: var(--tile-2); }
.s-board-3 { background: var(--tile-3); }
.s-neon { font-weight: 800; font-size: 1.5rem; line-height: 1.05; letter-spacing: -0.03em; color: var(--muted); }
.s-neon[data-state="open"] { color: var(--open); animation: s-buzz 4s steps(1) infinite; }
.s-action {
  display: flex; align-items: flex-end; padding: 1rem; background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 1.375rem; line-height: 1.05; letter-spacing: -0.03em; text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s var(--ease);
}
.s-action:hover { background: var(--accent-hover); }
.s-action:active { transform: scale(0.98); }

/* Menu board */
.s-menu { padding: var(--section) var(--gap) 0; }
.s-menu-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 2rem; align-items: end; padding: 0 1rem 2.5rem; }
.s-menu-head p { color: var(--muted); max-width: 40ch; justify-self: end; }
.s-menu-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--gap); }
.s-menu-col { background: var(--tile); border-radius: 6px; padding: clamp(1.25rem, 1rem + 1vw, 2rem); }
.s-menu-col h3 { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; color: var(--open); margin-bottom: 1.25rem; }
.s-menu-col li { display: grid; grid-template-columns: auto minmax(1rem, 1fr) auto; align-items: baseline; gap: 0 0.5rem; padding: 0.625rem 0; }
.s-dish { font-weight: 600; font-size: 1.125rem; }
.s-leader { border-bottom: 3px dotted var(--tile-3); transform: translateY(-0.3em); }
.s-price { font-weight: 800; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.s-detail { grid-column: 1 / -1; color: var(--muted); font-size: 1rem; }

/* Photo strip */
.s-strip { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: var(--gap); padding: var(--gap); margin-top: var(--section); }
.s-strip { align-items: start; }
.s-strip figure { aspect-ratio: 4 / 3; }
.s-strip figure:nth-child(2) { aspect-ratio: 1; margin-top: 3rem; }
.s-strip figure:nth-child(3) { aspect-ratio: 3 / 4; }
.s-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.s-strip figure:hover img { transform: scale(1.03); }

/* About */
.s-about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 4rem; padding: var(--section) calc(var(--gap) + 1rem); align-items: center; }
.s-about-text { display: grid; gap: 1rem; max-width: 34rem; font-size: var(--step-lead); line-height: 1.4; }
.s-about-text h2 { margin-bottom: 0.5rem; }
.s-about-photo { border-radius: 6px; overflow: hidden; aspect-ratio: 3 / 2; }
.s-about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Hours and find us */
.s-visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); padding: 0 var(--gap); }
.s-visit .s-tile { padding: clamp(1.25rem, 1rem + 1.4vw, 2.5rem); display: grid; gap: 1rem; align-content: start; }
.s-hours { width: 100%; font-variant-numeric: tabular-nums; }
.s-hours th, .s-hours td { padding: 0.625rem 0.75rem; text-align: left; font-weight: 400; }
.s-hours td { text-align: right; }
.s-hours tr:nth-child(odd) { background: var(--tile-2); }
.s-hours tr.is-today { background: var(--accent); color: var(--accent-ink); }
.s-hours tr.is-today th, .s-hours tr.is-today td { font-weight: 800; }
.s-note { color: var(--muted); }
.s-address { font-size: var(--step-lead); font-weight: 600; }
.s-call { font-weight: 800; font-size: clamp(2rem, 1.2rem + 2.8vw, 3.5rem); letter-spacing: -0.04em; line-height: 1; text-decoration: none; color: var(--open); }
.s-call:hover { text-decoration: underline; }
.s-find a { padding: 0.25rem 0; }
.s-find .map { border-radius: 6px; }

/* Footer: the sign again, inverted */
.s-foot { margin-top: var(--section); background: var(--ink); color: var(--ground); padding: 2rem var(--gap) 0; overflow: hidden; }
.s-foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 3rem; padding: 0 1rem; font-size: var(--step-small); }
.s-foot-row .credits { max-width: 70ch; }
.s-foot :focus-visible { outline-color: var(--ground); }
.s-foot-name { font-size: var(--fit); font-weight: 800; letter-spacing: -0.055em; line-height: 0.8; white-space: nowrap; text-align: center; margin-top: 2rem; transform: translateY(14%); }

@keyframes s-flicker { 0% { opacity: 0; } 12% { opacity: 1; } 18% { opacity: 0.3; } 24%, 100% { opacity: 1; } }
@keyframes s-buzz { 0%, 92%, 100% { opacity: 1; } 94% { opacity: 0.55; } 96% { opacity: 1; } 97% { opacity: 0.7; } }
@keyframes s-push { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Back-to-top button colours */
:root { --to-top-bg: var(--accent); --to-top-ink: var(--accent-ink); }

@media (max-width: 900px) {
  .s-hero { min-height: 0; }
  .s-links { grid-template-columns: 1fr 1fr; }
  .s-floor { grid-template-columns: 1fr 1fr; }
  .s-main { grid-column: 1 / -1; order: -1; aspect-ratio: 4 / 3; min-height: 0; }
  .s-rail-left { grid-template-rows: auto; }
  .s-portrait { aspect-ratio: 1; }
  .s-rail-right { grid-template-rows: none; }
  .s-board, .s-action { min-height: 5.5rem; }
  .s-statement { position: static; max-width: none; border-radius: 0; }
  .s-main { display: flex; flex-direction: column; aspect-ratio: auto; }
  .s-main-photo { position: static; aspect-ratio: 4 / 3; }
  .s-menu-head, .s-about, .s-visit { grid-template-columns: 1fr; }
  .s-menu-head p { justify-self: start; }
  .s-strip { grid-template-columns: 1fr 1fr; }
  .s-strip figure:nth-child(3) { display: none; }
}
@media (max-width: 480px) {
  .s-floor { grid-template-columns: 1fr; }
  .s-rail-right { grid-template-columns: 1fr 1fr; }
  .s-action { grid-column: 1 / -1; }
}
