/* jcj.dk - kølig grå flade, dyb blå blæk, én orange signalfarve. Sora (OFL), selvhostet. */
@font-face { font-family: "Sora"; src: url("/assets/fonts/sora-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/assets/fonts/sora-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/assets/fonts/sora-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --flade: #eef1f4;
  --flade-2: #e2e7ec;
  --blaek: #121c2e;
  --daempet: #4a5466;
  --linje: #c3cbd5;
  --signal: #d9662e;
  --signal-tekst: #a8481a;
  --ramme: 72rem;
  --kant: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--flade);
  color: var(--blaek);
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blaek); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--signal-tekst); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }

.ramme { width: 100%; max-width: var(--ramme); margin-inline: auto; padding-inline: var(--kant); }

.spring { position: absolute; left: var(--kant); top: -4rem; background: var(--blaek); color: var(--flade); padding: 0.6rem 1rem; z-index: 2; }
.spring:focus { top: 0.75rem; color: var(--flade); }

/* Top */
.top { border-bottom: 1px solid var(--linje); }
.top__indre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.top__maerke { display: inline-flex; padding: 0.5rem 0; color: var(--blaek); }
.top__maerke:hover { color: var(--blaek); }
.top__svg { height: 1.25rem; width: auto; }
.top__nav { display: flex; gap: clamp(1rem, 3vw, 2rem); font-size: 0.875rem; font-weight: 600; }
.top__nav a { text-decoration: none; padding: 0.75rem 0; position: relative; }
.top__nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.45rem; height: 2px; background: var(--signal); }

/* Mærkat */
.maerkat { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--daempet); }
.maerkat__prik { width: 0.55rem; height: 0.55rem; background: var(--signal); border-radius: 50%; }

/* Forside */
.helt { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 8vw, 6rem); }
.helt__gitter { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }
.helt__svg { width: 100%; height: auto; color: var(--blaek); }
.tredeling { display: grid; grid-template-columns: 644fr 802fr 644fr; gap: 0.5rem; margin-top: calc(-1 * clamp(0.5rem, 2vw, 1.25rem)); }
.tredeling span { height: 0.375rem; background: var(--blaek); }
.tredeling span:nth-child(2) { background: var(--signal); }
.helt__tekst { display: grid; gap: 1rem 3rem; align-items: start; }
.helt__tekst h1 { font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; }
.helt__intro { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); color: var(--daempet); max-width: 34em; }
.helt__tekst p:last-child { margin-bottom: 0; }

.knap {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 3rem; padding: 0.75rem 1.4rem;
  background: var(--blaek); color: var(--flade); text-decoration: none; font-weight: 600; font-size: 0.9375rem;
  border-radius: 0; transition: background-color 160ms ease-out;
}
.knap::after { content: ""; width: 0.8rem; height: 2px; background: var(--signal); }
.knap:hover { background: #22304a; color: var(--flade); }

.status { background: var(--flade-2); border-top: 1px solid var(--linje); padding-block: clamp(3rem, 7vw, 5rem); }
.status__titel { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--daempet); margin-bottom: 2rem; }
.status__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem; }
.status__liste li { border-top: 3px solid var(--blaek); padding-top: 1.25rem; }
.status__liste li.status__midt { border-top-color: var(--signal); }
.status__nr { display: block; font-weight: 800; font-size: 2.25rem; line-height: 1; letter-spacing: -0.04em; margin-bottom: 1.25rem; color: var(--blaek); }
.status__midt .status__nr { color: var(--signal-tekst); }
.status__liste h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.6rem; }
.status__liste p { color: var(--daempet); font-size: 0.9375rem; margin: 0; max-width: 32em; }

/* Tekstsider */
.tekstside { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(3.5rem, 8vw, 6rem); }
.tekstside__gitter { display: grid; gap: 1.75rem; }
.tekstside__hoved { display: grid; gap: 1.1rem; align-content: start; }
.tekstside__hoved h1 { font-size: clamp(1.875rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
.tekstside__brod { max-width: 38rem; }
.tekstside__intro { font-size: 1.125rem; color: var(--blaek); padding-bottom: 1.5rem; border-bottom: 1px solid var(--linje); margin-bottom: 2rem; }
.tekstside__brod h2 { font-size: 1.1875rem; font-weight: 600; margin: 2.25rem 0 0.6rem; letter-spacing: -0.01em; }
.tekstside__brod > h2:first-of-type { margin-top: 0; }
.tekstside__brod p, .punkter { color: var(--daempet); }
.punkter { margin: 0 0 1em; padding: 0; list-style: none; }
.punkter li { position: relative; padding-left: 1.5rem; margin-bottom: 0.6rem; }
.punkter li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 0.7rem; height: 2px; background: var(--signal); }

/* Bund */
.bund { border-top: 1px solid var(--linje); font-size: 0.875rem; }
.bund__indre { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1.5rem; min-height: 4.5rem; padding-block: 1rem; }
.bund p { margin: 0; font-weight: 600; }
.bund a { color: var(--daempet); display: inline-block; padding: 0.5rem 0; }
.bund a:hover { color: var(--signal-tekst); }

@media (min-width: 48rem) {
  .helt__tekst { grid-template-columns: 5fr 7fr; }
  .helt__tekst h1 { grid-row: span 2; }
  .status__liste { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .tekstside__gitter { grid-template-columns: 4fr 7fr; gap: 3rem; }
  .tekstside__hoved { position: sticky; top: 2rem; }
}
@media (min-width: 64rem) {
  .helt__tekst { grid-template-columns: 6fr 6fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
