/* ljn.dk — Pæneste mand i Aalborg
   Direction: "The pinned poster" (tasteskill, seed 1884642336). Bottle green, gold. Schibsted Grotesk. */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #133621;
  --surface: #1a4429;
  --surface-2: #21512f;
  --ink: #f4d96c;
  --muted: #d2c37c;
  --accent: #f4d96c;
  --accent-ink: #133621;

  --step-small: clamp(0.875rem, 0.84rem + 0.12vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-title: clamp(3.4rem, 11vw, 10rem);

  --margin: clamp(16px, 3vw, 32px);
  --gap: clamp(120px, 14vw, 200px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  letter-spacing: -0.01em;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.05em; line-height: 0.92; }
p { margin: 0 0 1em; max-width: 62ch; }

.skip { position: absolute; left: var(--margin); top: -100px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 50; }
.skip:focus { top: 12px; }

/* ---------- Bar ---------- */
.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 24px var(--margin);
  font-size: var(--step-small); font-weight: 600;
}
.bar a { text-decoration: none; }
.bar a:hover { text-decoration: underline; }
.bar nav { display: flex; gap: 24px; }
.wordmark { font-weight: 800; letter-spacing: -0.02em; }

/* ---------- Button ---------- */
.button {
  display: inline-block; padding: 16px 26px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: var(--step-body); text-decoration: none; letter-spacing: -0.01em;
  border-radius: 0;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.button:hover { transform: translateY(-3px); background: #fff0a8; text-decoration: none; }
.button:active { transform: translateY(1px); }

/* ---------- Hero: pinned title over portraits ---------- */
.hero { position: relative; }
.hero-pin {
  position: sticky; top: 0; height: 100svh; z-index: 3;
  pointer-events: none;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 0 var(--margin);
}
.hero-pin h1 {
  grid-row: 1; pointer-events: auto;
  margin-top: clamp(96px, 13svh, 140px);
  font-size: var(--step-title);
  text-align: center;
  color: var(--ink);
  text-wrap: balance;
}
.hero-foot {
  grid-row: 3;
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  padding-bottom: 32px;
}
.hero-foot p {
  margin: 0; max-width: min(26ch, calc(31vw - var(--margin) - 16px)); font-size: var(--step-lead); font-weight: 600; line-height: 1.25; color: var(--ink);
}
.hero-foot .button { pointer-events: auto; }
.hero-panels { margin-top: -100svh; position: relative; z-index: 1; }
.hero-panel {
  height: 100svh;
  display: grid; justify-items: center; align-items: end;
}
.hero-panel figure { margin: 0; width: min(37vw, 560px); height: calc(100svh - 90px); position: relative; overflow: hidden; }
.hero-panel img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.6) saturate(.8) sepia(.18);
  animation: drift 18s var(--ease) both alternate infinite;
}
.hero-panel figcaption {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  font-size: var(--step-small); font-weight: 600; color: #fff;
}
@keyframes drift { from { transform: scale(1.0); } to { transform: scale(1.07); } }

/* ---------- Answer section ---------- */
.answer {
  padding: var(--gap) var(--margin) 0;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px;
}
.answer h2 { grid-column: 1 / 7; font-size: var(--step-head); text-wrap: balance; }
.answer .copy { grid-column: 7 / 13; }
.answer .lead { font-size: var(--step-lead); line-height: 1.3; font-weight: 600; }
.answer .meta { font-size: var(--step-small); color: var(--muted); }

/* the live thing: a pure-CSS vote that always ends the same way */
.vote { grid-column: 1 / 13; background: var(--surface); padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 24px; }
.vote h3 { grid-column: 1 / 7; font-size: var(--step-head); }
.vote fieldset { grid-column: 7 / 13; border: 0; margin: 0; padding: 0; min-width: 0; }
.vote legend { font-size: var(--step-body); font-weight: 600; margin-bottom: 16px; padding: 0; }
.vote .choices { display: flex; flex-wrap: wrap; gap: 12px; }
.vote input { position: absolute; opacity: 0; pointer-events: none; }
.vote label {
  cursor: pointer; padding: 14px 22px; font-weight: 800;
  background: var(--surface-2); color: var(--ink);
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.vote label:hover { transform: translateY(-2px); }
.vote input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 3px; }
.vote input:checked + label { background: var(--accent); color: var(--accent-ink); }
.vote .verdict { margin-top: 24px; font-size: var(--step-lead); font-weight: 600; line-height: 1.3; min-height: 3.9em; }
.vote .verdict span { display: none; }
.vote .verdict .v-none { display: block; color: var(--muted); }
.vote:has(#v-lukas:checked) .v-none, .vote:has(#v-daniel:checked) .v-none, .vote:has(#v-begge:checked) .v-none { display: none; }
.vote:has(#v-lukas:checked) .v-lukas, .vote:has(#v-daniel:checked) .v-daniel, .vote:has(#v-begge:checked) .v-begge { display: block; animation: rise .5s var(--ease) both; }

/* ---------- About: pinned title, portraits pass ---------- */
.about { margin-top: var(--gap); padding: 0 var(--margin); }
.about > h2 { font-size: var(--step-head); margin-bottom: 56px; }
.about-people { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 72px; }
.person { grid-column: 1 / 6; }
.person:nth-child(2) { grid-column: 7 / 12; margin-top: 22svh; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.person h3 { margin-top: 20px; font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1.1; }
.person .role { font-size: var(--step-small); color: var(--muted); margin: 6px 0 10px; }
.person p { max-width: 34ch; }

/* ---------- Gallery: full-bleed, interlocked text ---------- */
.city { margin-top: var(--gap); }
.city-intro { padding: 0 var(--margin); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; position: relative; z-index: 2; }
.city-intro h2 { grid-column: 1 / 7; font-size: var(--step-head); align-self: end; padding-bottom: 48px; }
.city-intro p { grid-column: 8 / 12; font-size: var(--step-body); margin-bottom: 48px; }
.city figure { margin: 0; position: relative; height: 100svh; overflow: hidden; }
.city figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) sepia(.12); }
.city figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px var(--margin) 28px;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0)); /* neutral scrim under text: the one allowed exception. taste-skill-ignore */
  color: #fff; font-size: var(--step-small); font-weight: 600;
}

/* ---------- FAQ: a band per question ---------- */
.faq-head { background: var(--accent); color: var(--accent-ink); min-height: 40svh; display: flex; align-items: end; padding: 56px var(--margin); }
.faq-head h2 { font-size: var(--step-head); }
.band { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: 56px var(--margin); }
.band:nth-child(odd) { background: var(--surface); }
.band h3 { grid-column: 1 / 6; font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1.1; }
.band p { grid-column: 7 / 13; margin: 0; }

/* ---------- Footer ---------- */
.foot { padding: 30svh var(--margin) 30px; font-size: var(--step-small); }
.foot-line { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: baseline; color: var(--muted); }
.foot-line nav { display: flex; gap: 24px; }
.foot-line nav a { color: var(--ink); }
.foot-line .right { text-align: right; }
.credits { margin-top: 20px; color: var(--muted); max-width: none; }
.credits a { color: var(--muted); }

/* ---------- Simple pages (profile, home) ---------- */
.page { padding: 140px var(--margin) 0; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px; }
.page h1 { grid-column: 1 / 13; font-size: clamp(3rem, 8.5vw, 8rem); }
.page figure { margin: 0; }
.page .portrait { grid-column: 1 / 6; }
.page .portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.page .text { grid-column: 7 / 13; align-self: start; }
.page .text .lead { font-size: var(--step-lead); line-height: 1.3; font-weight: 600; }
.page .meta { font-size: var(--step-small); color: var(--muted); }
.page .wide { grid-column: 1 / 13; margin-top: var(--gap); }
.page .wide img { width: 100%; height: 70svh; object-fit: cover; filter: saturate(.85) sepia(.12); }
.page .wide figcaption { font-size: var(--step-small); color: var(--muted); margin-top: 12px; }

/* ---------- Motion: entrances (content is never hidden without support) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
/* Entrances: only when JS has marked the page, so content is never hidden without it. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.in > * { opacity: 1; transform: none; }
  .js .reveal.in > *:nth-child(2) { transition-delay: .08s; }
  .js .reveal.in > *:nth-child(3) { transition-delay: .16s; }
  .js .reveal.in > *:nth-child(4) { transition-delay: .24s; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-foot p { animation: rise .9s .12s var(--ease) both; }
  .hero-foot .button { animation: rise .9s .2s var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .answer h2 { grid-column: 1 / -1; }
  .answer .copy { grid-column: 1 / -1; }
  .vote h3, .vote fieldset { grid-column: 1 / -1; }
  .band h3 { grid-column: 1 / -1; margin-bottom: 16px; }
  .band p { grid-column: 1 / -1; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .bar nav { gap: 16px; }
  .hero-pin h1 { font-size: 12vw; margin-top: 76px; }
  .hero-panel figure { width: calc(100vw - 32px); height: auto; aspect-ratio: 2 / 3; margin-bottom: 140px; }
  .hero-foot { flex-direction: column; align-items: stretch; padding-bottom: 20px; }
  .hero-foot p { font-size: var(--step-body); background: var(--bg); padding: 12px 14px; max-width: none; }
  .hero-panel figcaption { top: 14px; bottom: auto; }
  .hero-foot .button { text-align: center; }
  .answer, .vote, .band, .city-intro, .page { grid-template-columns: 1fr; }
  .answer h2, .answer .copy, .vote, .vote h3, .vote fieldset, .band h3, .band p,
  .city-intro h2, .city-intro p, .page h1, .page .portrait, .page .text, .page .wide { grid-column: 1 / -1; }
  .band h3 { margin-bottom: 16px; font-size: 1.375rem; }
  .band { padding: 32px 20px; }
  .about-people { grid-template-columns: 1fr; row-gap: 48px; }
  .person, .person:nth-child(2) { grid-column: 1 / -1; width: 82%; margin-top: 0; }
  .person:nth-child(2) { justify-self: end; }
  .city figure { height: 88svh; }
  .city-intro h2 { padding-bottom: 20px; }
  .foot { padding-top: 20svh; }
  .foot-line { grid-template-columns: 1fr; gap: 8px; }
  .foot-line .right { text-align: left; }
  .foot-line nav { flex-wrap: wrap; gap: 8px 20px; }
}
