:root {
  --bg: #f4f5f6;
  --ink: #1d2126;
  --leaf: #1d2126;
  --muted: #6b7280;
  --rule: #d6d9de;
  --amber: #3d5afe;
  --panel: #ffffff;
  --cafe: #c9ced5;
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
:root[data-mode="night"] {
  --bg: #121417;
  --ink: #e7e9ec;
  --leaf: #e7e9ec;
  --muted: #8b929b;
  --rule: #2a2e34;
  --amber: #8c9cff;
  --panel: #191c20;
  --cafe: #3a3f46;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "tnum" 1;
  transition: background-color .6s ease, color .6s ease;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { body { transition: none; } }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.02; margin: 0; letter-spacing: -0.035em; }
h2 { font-size: clamp(34px, 5vw, 60px); }
h3 { font-size: 22px; }
.rule { height: 0; margin: 0 0 22px; }
.lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; max-width: 36em; color: var(--ink); }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  transition: background-color .6s ease;
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: block; flex: none; line-height: 0; }
.logo img { width: 104px; height: auto; }
:root[data-mode="night"] .logo img { filter: invert(92%); }
.nav { display: flex; gap: 20px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.toggles { display: flex; gap: 8px; }
@media (max-width: 900px) { .toggles { margin-left: auto; } .top .wrap { gap: 12px; } }
@media (max-width: 420px) { .pill { padding: 4px 9px; font-size: 13px; } .logo img { width: 84px; } }
.pill {
  font: inherit; font-size: 14px; color: var(--ink); background: transparent;
  border: 1px solid var(--rule); border-radius: 999px; padding: 5px 13px; cursor: pointer; white-space: nowrap;
}
.pill:hover { border-color: var(--ink); }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
         background: var(--bg); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 16px; font-size: 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 8px 0; }
  .menu-btn { display: inline-block; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 10vw, 128px) 0 clamp(56px, 9vw, 112px); }
.hero h1 { font-size: clamp(44px, 8vw, 112px); line-height: .96; font-weight: 600; }
.hero h1 span { display: block; }
.hero h1 .day { color: var(--ink); }
.hero h1 .night { color: var(--ink); }
.hero h1 span:last-child { color: var(--ink); }

/* ---------- sections ---------- */
section.block { padding: clamp(56px, 9vw, 110px) 0; border-top: 1px solid var(--rule); }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }

/* flyers */
.flyers { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.flyers figure { margin: 0; }
.flyers img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; background: var(--panel); }
.flyers figcaption { font-size: 14px; margin-top: 6px; color: var(--muted); }
.archive { margin-top: 56px; }
.archive h3 { margin-bottom: 16px; }
.archive .flyers { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }

/* menu */
.tabs { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; padding: 3px; background: var(--panel); }
.tabs button {
  font: inherit; border: 0; background: transparent; color: var(--ink);
  padding: 7px 18px; cursor: pointer; font-size: 15px;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-radius: 999px; }
.menu-intro { margin: 0 0 30px; }
.menu-cols { columns: 2 420px; column-gap: 64px; }
.cat { break-inside: avoid; margin-bottom: 44px; }
.cat h3 { font-size: 22px; letter-spacing: -0.02em; padding-bottom: 10px; border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.cat .note { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.cat .colhead { display: flex; justify-content: flex-end; gap: 0; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.cat .colhead span, .item .p { width: 72px; text-align: right; flex: none; }
.cat h4 { font-weight: 600; font-size: 13px; margin: 22px 0 4px; color: var(--muted); }
.item { display: flex; align-items: baseline; gap: 0; padding: 6px 0; }
.item .p { color: var(--ink); }
.item .n { flex: 1; min-width: 0; }
.item .d { display: block; font-size: 14px; color: var(--muted); line-height: 1.35; }
.menu-foot { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* records */
.records { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.disc {
  aspect-ratio: 1; border-radius: 50%; max-width: 440px; width: 100%; justify-self: center; border: 0; padding: 0; cursor: pointer;
  background:
    radial-gradient(circle, var(--bg) 0 3.2%, var(--amber) 3.4% 18%, transparent 18.2%),
    repeating-radial-gradient(circle, #1d2126 0 2px, #2a2f35 2px 4px);
  animation: spin 1.8s linear infinite;
  animation-play-state: paused;
  position: relative;
}
.disc.playing { animation-play-state: running; }
.disc::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 40deg, rgba(255,255,255,.08) 55deg, transparent 70deg 220deg, rgba(255,255,255,.06) 235deg, transparent 250deg);
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .disc { animation: none; } }
@media (max-width: 760px) { .records { grid-template-columns: 1fr; } .disc { max-width: 280px; } }

/* zine */
.zine { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); }
@media (max-width: 860px) { .zine { grid-template-columns: 1fr; } }
.facts { list-style: none; padding: 0; margin: 24px 0; border-top: 1px solid var(--rule); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts li span:first-child { color: var(--muted); }
.issues { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.issue {
  display: grid; place-items: center; width: 92px; height: 120px; text-decoration: none;
  border: 1px solid var(--rule); border-radius: 8px; font-weight: 600; font-size: 34px; letter-spacing: -0.03em; background: var(--panel);
}
.issue small { display: block; font-size: 11px; text-align: center; padding: 0 4px; font-weight: 400; color: var(--muted); margin-top: -18px; letter-spacing: 0; }
.issue:hover { border-color: var(--ink); }

.donate { border: 1px solid var(--rule); border-radius: 14px; padding: clamp(20px, 3vw, 32px); background: var(--panel); }
.donate h3 { font-size: 24px; margin-bottom: 8px; }
.donate fieldset { border: 0; padding: 0; margin: 20px 0 0; }
.donate legend { font-size: 15px; margin-bottom: 8px; padding: 0; }
.amounts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: block; border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; cursor: pointer; height: 100%;
}
.choice b { display: block; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.choice small { display: block; font-size: 13px; color: var(--muted); line-height: 1.3; }
.choice input:checked + span { border-color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.choice input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.freq { display: flex; gap: 10px; }
.freq .choice { flex: 1; }
.freq .choice span { text-align: center; }
.field { display: block; margin-top: 14px; }
.field input, .field textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--rule); padding: 10px 12px; border-radius: 10px;
}
.field textarea { min-height: 70px; resize: vertical; }
.err { color: #c62828; font-size: 14px; min-height: 1.2em; margin: 6px 0 0; }
:root[data-mode="night"] .err { color: #ff9b8f; }
.go {
  margin-top: 20px; width: 100%; font: inherit; font-weight: 600; font-size: 17px; padding: 15px;
  background: var(--ink); color: var(--bg); border: 0; border-radius: 999px; cursor: pointer;
}
.go:disabled { opacity: .6; cursor: wait; }
.fine { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }

/* history */
.history { display: grid; grid-template-columns: 1fr minmax(0, 36em); gap: clamp(24px, 6vw, 96px); }
.history .text p { font-size: 18px; line-height: 1.7; margin: 0 0 1.1em; }
.history .more[hidden] { display: none; }
.history .side { position: sticky; top: 100px; align-self: start; }
.history .side .tree { font-size: clamp(40px, 6vw, 84px); font-weight: 600; letter-spacing: -0.04em; line-height: .95; color: var(--muted); }
.thanks { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .history { grid-template-columns: 1fr; } .history .side { position: static; } }

/* visit */
.visit { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 6vw, 80px); }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }
.where p { margin: 0 0 14px; }
.where a.big { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 6px; }
.where a.big:hover { text-decoration-color: var(--amber); }

footer { border-top: 1px solid var(--rule); padding: 28px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.nav a[hidden] { display: none; }
.hours { list-style: none; padding: 0; margin: 0 0 18px; border-top: 1px solid var(--rule); max-width: 520px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.hours li.today { font-weight: 600; }
.hours li.today span:first-child::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); margin-left: 8px; vertical-align: 2px; }
button.item { width: 100%; font: inherit; color: inherit; background: none; border: 0; text-align: left; cursor: pointer; }
button.item .n { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
button.item:hover .n { text-decoration-color: var(--amber); }
.photo { border: 0; padding: 0; border-radius: 14px; background: var(--panel); color: var(--ink); max-width: min(92vw, 720px); width: 100%; overflow: hidden; }
.photo::backdrop { background: rgba(10, 12, 15, .6); }
.photo img { width: 100%; max-height: 75vh; object-fit: cover; }
.photo-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; font-weight: 600; }
.nav a.reserva { font-weight: 600; color: var(--amber); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 20; margin: 0; max-width: calc(100vw - 32px); width: max-content;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-size: 15px; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.toast[hidden] { display: none; }
/* hero letter pile */
.hero { position: relative; overflow: hidden; min-height: min(88vh, 860px); }
.hero .wrap { position: relative; z-index: 2; pointer-events: none; }
#pile { position: absolute; inset: 0; z-index: 1; display: block; touch-action: pan-y; cursor: default; }
#pile.over { cursor: grab; }
#pile.grabbing { cursor: grabbing; }
.pile-hint { position: absolute; right: var(--gutter); top: 18px; z-index: 2; margin: 0; font-size: 13px; color: var(--muted); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .pile-hint { display: none; } }
/* separate pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
main.page { flex: 1; }
main.page > section.block:first-child { border-top: 0; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
body.home .hero { min-height: calc(100svh - 65px); }
/* Home headline: each line links to its page */
.hero h1 a { color: inherit; text-decoration: none; pointer-events: auto; text-decoration-thickness: .06em; text-underline-offset: .1em; }
.hero h1 a:hover, .hero h1 a:focus-visible { text-decoration: underline; }
/* Revista: Hule Mag style. Black and white, bold grotesk heads with a period, justified text, black panels, on paper */
body.zine-page { --paper: #fafaf6; background-color: var(--paper); isolation: isolate; }
:root[data-mode="night"] body.zine-page { --paper: #101010; }
body.zine-page::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .18;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0 0 0 -.18'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-mode="night"] body.zine-page::before { filter: invert(1); opacity: .12; }
body.zine-page { --ink: #0b0b0b; }
:root[data-mode="night"] body.zine-page { --ink: #f2f2ee; }
body.zine-page .top, body.zine-page .nav { background: var(--paper); border-bottom-color: var(--ink); }
body.zine-page footer { border-top-color: var(--ink); }
body.zine-page section.block { border-top: 0; }
body.zine-page #revista h2 { font-weight: 700; font-size: clamp(56px, 8vw, 104px); letter-spacing: -0.045em; line-height: .92; }
body.zine-page .byline { font-weight: 700; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.2; letter-spacing: -0.01em; margin: 14px 0 26px; }
body.zine-page #revista .rule { display: none; }
body.zine-page .lede { font-size: 17px; line-height: 1.4; text-align: justify; hyphens: auto; -webkit-hyphens: auto; max-width: none; }
body.zine-page .facts { border-top: 1.5px solid var(--ink); margin: 28px 0 44px; }
body.zine-page .facts li { border-bottom: 1px solid var(--ink); padding: 10px 0; }
body.zine-page .facts li span:first-child { color: var(--ink); font-weight: 700; }
body.zine-page #revista h3 { font-weight: 700; font-size: 30px; letter-spacing: -0.03em; }
body.zine-page .issues { gap: 10px; margin-top: 16px; }
body.zine-page .issue { border: 1.5px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font-weight: 700; letter-spacing: -0.04em; }
body.zine-page .issue small { color: var(--ink); }
body.zine-page .issue:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
body.zine-page .issue:hover small { color: var(--paper); }
/* the donation box as one of the zine's black panels */
body.zine-page .donate { background: var(--ink); color: var(--paper); border: 0; border-radius: 0; }
body.zine-page .donate h3 { color: var(--paper); margin-bottom: 10px; }
body.zine-page .donate .muted, body.zine-page .donate .fine { color: var(--paper); opacity: .8; }
body.zine-page .donate iframe { border-radius: 0 !important; background: #fff !important; }
