/* Valhöll Pylsur: hand-written, mobile-first, no framework.
   Colour tokens are measured from the logo (tools/make-assets.py prints the solids).
   Display face: Metamorphous (the logo lettering's cousin). Body face: Bricolage Grotesque. Both self-hosted, OFL. */
:root {
  --bg: #0c0a08;
  --bg-2: #14100c;
  --bg-3: #1d1712;
  --cream: #f8f1df;
  --beige: #dfd2c4;
  --muted: #a99c8b;
  --ember: #de700c;
  --ember-bright: #ff9b3d;
  --open: #74d680;
  --line: rgba(248, 241, 223, 0.13);
  --line-strong: rgba(248, 241, 223, 0.3);
  --ink-on-ember: #140c04;
  --radius: 4px;
  --font-display: 'Metamorphous', Georgia, 'Times New Roman', serif;
  --font-body: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --gutter: 16px;
  --max: 1080px;
  color-scheme: dark;
}

@font-face {
  font-family: 'Metamorphous';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/metamorphous-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-latin.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
/* Film grain over everything: one tiled SVG noise, fixed, barely there. Kills the flat "rendered" look. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: .07;
  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='.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)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ember-bright); }
a:hover { color: var(--cream); }
[hidden] { display: none !important; }
::selection { background: var(--ember); color: var(--ink-on-ember); }
:focus-visible { outline: 2px solid var(--ember-bright); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -5rem; z-index: 100;
  padding: .6rem 1rem; border-radius: var(--radius);
  background: var(--ember); color: var(--ink-on-ember); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; padding-block: .4rem; }
.brand {
  display: inline-flex; align-items: center; gap: .6rem; margin-right: auto; min-height: 44px;
  color: var(--cream); text-decoration: none;
}
.brand img { width: 30px; height: 30px; }
.wordmark { font-family: var(--font-display); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.nav { order: 3; width: 100%; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .7rem;
  border-bottom: 2px solid transparent;
  color: var(--beige); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.nav a:hover { color: var(--cream); border-bottom-color: var(--ember); }
.lang-switch { display: inline-flex; align-items: center; }
.lang-switch button {
  position: relative; min-width: 44px; min-height: 44px; padding: 0 .55rem;
  border: 0; border-bottom: 2px solid transparent; background: transparent;
  color: var(--muted); font: inherit; font-weight: 700; font-size: .88rem; letter-spacing: .1em; cursor: pointer;
}
.lang-switch button + button { margin-left: .35rem; }
.lang-switch button + button::before {
  content: ''; position: absolute; left: -.25rem; top: 32%; height: 36%; width: 1px; background: var(--line-strong);
}
.lang-switch button[aria-pressed="true"] { color: var(--cream); border-bottom-color: var(--ember); }
.lang-switch button:hover { color: var(--cream); }
.lang-switch button:focus-visible { outline-offset: -3px; }
.no-js .lang-switch { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding: clamp(1.5rem, 5vw, 3.5rem) 0 4rem;
}
.fire, .embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fire { z-index: 0; }
.glow {
  position: absolute; z-index: 0; left: 50%; top: 34%; width: min(70vw, 560px); aspect-ratio: 1;
  transform: translate(-50%, -45%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(222, 112, 12, .3), rgba(222, 112, 12, .08) 45%, transparent 68%);
}
.embers { z-index: 1; }
.hero::after {
  content: ''; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 32%;
  background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero-logo {
  width: min(82vw, 540px); height: auto; cursor: pointer; user-select: none; -webkit-user-drag: none;
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, .6));
}
.hero-title { margin: 0; display: flex; justify-content: center; font-weight: 400; line-height: 0; }
.hero-tagline {
  width: min(68vw, 360px); height: auto; margin: 1.1rem 0 0; user-select: none; -webkit-user-drag: none;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .6));
}
.hero-line {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .35rem .85rem; margin: 1.5rem 0 0;
  color: var(--beige); font-weight: 600; font-size: .84rem; letter-spacing: .14em; text-transform: uppercase;
}
.status { display: inline-flex; align-items: center; gap: .5rem; }
.status::after { content: '·'; margin-left: .85rem; color: var(--muted); }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: #8a7f72; }
.status.is-open .dot { background: var(--open); box-shadow: 0 0 10px var(--open); }
.scroll-cue {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.6rem; padding: .7rem 1.2rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--cream); text-decoration: none; font-weight: 700; font-size: .84rem; letter-spacing: .16em; text-transform: uppercase;
  transition: border-color .2s ease, background-color .2s ease;
}
.scroll-cue:hover { border-color: var(--ember); color: var(--cream); background: rgba(222, 112, 12, .08); }
.scroll-cue .arrow { display: inline-block; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---------- sections ---------- */
.section { padding-block: 3.5rem; }
.sect-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem; }
.sect-head h2 {
  margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.1; letter-spacing: .07em; text-transform: uppercase; color: var(--cream);
}
.sect-head .rule { flex: 1; height: 1px; margin-left: .5rem; background: linear-gradient(90deg, var(--line-strong), transparent); }

/* menu board: dotted leaders between name and price, like a real board */
.board { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.board-title {
  margin: 0 0 .5rem; padding-bottom: .5rem; border-bottom: 2px solid var(--ember);
  font-family: var(--font-display); font-weight: 400; font-size: 1rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ember-bright);
}
.items { list-style: none; margin: 0; padding: 0; }
.item { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.line { display: flex; align-items: baseline; gap: .5rem; }
.name { font-weight: 700; font-size: 1.15rem; color: var(--cream); transition: color .2s ease; }
.leader {
  position: relative; flex: 1; min-width: 1.5rem; height: 2px;
  background-image: radial-gradient(circle, var(--line-strong) 1px, transparent 1.5px);
  background-size: 7px 2px; background-repeat: repeat-x;
}
/* The lit copy of the dots: same grid, ember-coloured, hidden until a hover sweeps the clip away. */
.leader::before {
  content: ''; position: absolute; inset: -4px 0; opacity: 0;
  background-image: radial-gradient(circle, var(--ember-bright) 1px, transparent 1.6px);
  background-size: 7px 10px; background-position: 0 center; background-repeat: repeat-x;
  filter: drop-shadow(0 0 3px rgba(255, 155, 61, .9));
  clip-path: inset(0 100% 0 0);
}
.price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--cream); }
.desc { margin: .3rem 0 0; max-width: 54ch; color: var(--muted); font-size: .95rem; line-height: 1.5; }
@media (hover: hover) {
  .item:hover .name { color: var(--ember-bright); }
  /* Hover = the leader catches fire ONCE, name to price: the lit dots are revealed behind a flickering
     front, then keep smouldering. (A looping solid spark was tried first; it read as a laser pointer.) */
  .item:hover .leader::before {
    opacity: 1;
    animation: ignite .75s cubic-bezier(.25, .6, .3, 1) forwards, smoulder 1.8s ease-in-out .75s infinite;
  }
  .item:hover .leader::after {
    content: ''; position: absolute; top: 50%; left: 0; width: 20px; height: 10px; margin: -5px 0 0 -10px;
    border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, #fff3d2 0%, var(--ember-bright) 30%, rgba(222, 112, 12, .55) 60%, transparent 100%);
    animation: front .75s cubic-bezier(.25, .6, .3, 1) forwards, lick .14s steps(2) infinite;
  }
  .item:hover .price { color: var(--ember-bright); text-shadow: 0 0 12px rgba(255, 155, 61, .35); transition: color .15s .6s, text-shadow .3s .6s; }
}
@keyframes ignite { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes front { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes lick { 0% { transform: scale(1, 1); } 50% { transform: scale(1.3, .75); } 100% { transform: scale(.85, 1.2); } }
@keyframes smoulder { 0%, 100% { opacity: .8; } 35% { opacity: 1; } 65% { opacity: .65; } }

/* the challenge, stamped on the board */
.stamp {
  position: relative; margin-top: 2.25rem; padding: 1.4rem 1.3rem 1.1rem;
  border: 3px double var(--ember); border-radius: 6px; background: rgba(222, 112, 12, .06);
  transform: rotate(-1.6deg); transition: transform .3s ease;
}
.stamp:hover { transform: rotate(0) scale(1.01); }
.stamp-tag {
  position: absolute; top: -.75rem; left: 1rem; padding: 0 .5rem; background: var(--bg);
  color: var(--ember-bright); font-weight: 800; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
}
.stamp h3 {
  margin: 0 0 .4rem; font-family: var(--font-display); font-weight: 400; font-size: 1.7rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--cream);
}
.stamp p { margin: 0 0 .6rem; color: var(--beige); }
.stamp .stamp-price { margin: 0; font-weight: 800; font-size: 1.15rem; color: var(--ember-bright); }

/* find us */
.find { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.sign { padding: 1.4rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { text-align: left; font-weight: 600; color: var(--beige); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.05rem; }
.note { margin: .9rem 0 0; font-size: .9rem; color: var(--muted); }
.address { font-style: normal; }
.address .big { margin: 0 0 .4rem; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.15; color: var(--cream); }
.address p { margin: 0 0 .5rem; color: var(--muted); }
.maps { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .85rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1.1rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--cream); text-decoration: none; font-weight: 700; font-size: .9rem; letter-spacing: .04em;
  transition: border-color .2s ease, background-color .2s ease;
}
.btn:hover { border-color: var(--ember); background: rgba(222, 112, 12, .08); color: var(--cream); }
.btn-primary { background: var(--ember); border-color: var(--ember); color: var(--ink-on-ember); }
.btn-primary:hover { background: var(--ember-bright); border-color: var(--ember-bright); color: var(--ink-on-ember); }

/* about: a short saga, with a drop cap */
.about { max-width: 64ch; }
.about p { margin: 0 0 1rem; font-size: 1.1rem; line-height: 1.6; }
/* A raised initial, not a drop cap: the big T stands on the first line's baseline, so the words beside it
   read straight on into the lines below (owner's request; the first paragraph is a single line on desktop). */
.about p:first-child::first-letter {
  margin-right: .02em; font-family: var(--font-display);
  font-size: 2.8em; line-height: 1; color: var(--ember-bright);
}

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.site-footer a { color: var(--beige); }
.site-footer a:hover { color: var(--cream); }

/* reveal on scroll: app.js adds .in; without JS everything is simply visible */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }

/* toast + Ragnarök mode (Konami code, or seven taps on the logo) */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 50; transform: translate(-50%, 1rem); opacity: 0;
  pointer-events: none; padding: .8rem 1.6rem; border-radius: var(--radius);
  background: var(--ember); color: var(--ink-on-ember); font-family: var(--font-display);
  font-size: 1.4rem; letter-spacing: .08em; box-shadow: 0 0 30px rgba(222, 112, 12, .6);
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
html.ragnarok body { background: #170b04; }
html.ragnarok .glow { opacity: 1.6; }
html.ragnarok .hero-logo, html.ragnarok .hero-tagline { animation: quake .35s linear infinite; }
html.ragnarok .hero-logo { filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .9)) drop-shadow(0 0 30px rgba(255, 155, 61, .45)); }
@keyframes quake {
  0% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(-2px, 1px) rotate(-.4deg); }
  50% { transform: translate(2px, -1px) rotate(.4deg); }
  75% { transform: translate(-1px, -2px) rotate(0); }
  100% { transform: translate(1px, 2px) rotate(.3deg); }
}

/* 404 */
.notfound {
  min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; padding-block: 3rem; text-align: center;
}
.notfound h1 {
  margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 6vw, 2.8rem);
  letter-spacing: .05em; text-transform: uppercase; text-wrap: balance;
}
.notfound .big-mark { width: 120px; height: 120px; color: var(--ember); }
.notfound p { margin: 0; max-width: 40ch; color: var(--muted); }

/* ---------- breakpoints ---------- */
@media (max-width: 599px) {
  .hero-line { flex-direction: column; gap: .3rem; }
  .status::after { content: none; }
}
@media (min-width: 768px) {
  :root { --gutter: 28px; }
  .nav { order: 0; width: auto; }
  .nav ul { gap: .5rem; }
  .find { grid-template-columns: 1fr 1fr; }
  .section { padding-block: 5rem; }
  .sect-head { margin-bottom: 1.5rem; }
}
@media (min-width: 900px) {
  .board { grid-template-columns: 1.35fr 1fr; gap: 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .fire, .embers { display: none; }
  .reveal { opacity: 1; transform: none; }
  .scroll-cue .arrow { animation: none; }
  .item:hover .leader::before { animation: none; clip-path: none; opacity: 1; }   /* lit, no sweep */
  .item:hover .leader::after { display: none; }
}
