/* suppechamp.dk */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #16130f;          /* sort læder */
  --bg-deep: #0f0d0a;
  --leather: #3a2a1c;
  --gold: #d9b45f;        /* bæltespændet */
  --gold-soft: rgba(217, 180, 95, 0.18);
  --white: #fbf6ea;
  --ink: rgba(251, 246, 234, 0.9);
  --muted: rgba(251, 246, 234, 0.62);
  --faint: rgba(251, 246, 234, 0.16);
  --hair: rgba(251, 246, 234, 0.1);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 68rem;
  --gutter: clamp(1rem, 5vw, 3rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-color: var(--faint); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(100svh, 58rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 9vh, 6rem) 0 clamp(3rem, 8vh, 5rem);
  background:
    radial-gradient(56rem 34rem at 80% 34%, rgba(217, 180, 95, 0.16), transparent 62%),
    radial-gradient(40rem 30rem at 10% 100%, rgba(58, 42, 28, 0.7), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

/* Bæltespændet: to ovaler bag navnet */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: max(-14rem, -22vw);
  width: min(48rem, 115vw);
  aspect-ratio: 1.45;
  border-radius: 50%;
  border: 1px solid rgba(217, 180, 95, 0.18);
  transform: translateY(-50%);
  pointer-events: none;
}
.hero::after {
  width: min(34rem, 82vw);
  right: max(-7rem, -10vw);
  border: 2px solid rgba(217, 180, 95, 0.3);
}

.hero .wrap { position: relative; z-index: 1; width: 100%; }

.question {
  margin: 0.9rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 4.4vw, 2.6rem);
  line-height: 1.15;
  color: var(--ink);
}

.answer { margin: clamp(1.5rem, 5vh, 3rem) 0 0; }
.answer__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.answer__team {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 11vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--white);
  overflow-wrap: anywhere;
}
.answer__team small {
  display: block;
  margin-top: 0.7rem;
  font-size: max(0.16em, 1rem);
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--ink);
}

.lede {
  max-width: 40rem;
  margin: clamp(1.5rem, 4vh, 2.5rem) 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink);
}
.lede strong { color: var(--white); font-weight: 600; }

.scroll-hint {
  display: inline-block;
  margin-top: clamp(2rem, 6vh, 3.5rem);
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--faint);
  padding-bottom: 0.15rem;
}
.scroll-hint:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Sektioner ---------- */

section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.band { background: var(--bg-deep); }

h2 {
  margin: 0.5rem 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
}
.section-intro { max-width: 42rem; margin: 1rem 0 0; color: var(--muted); }

/* Hvad er det */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.about p { margin: 0 0 1rem; }
.about p:last-child { margin-bottom: 0; }
.about .pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.3;
  color: var(--white);
}

/* ---------- Rekorder ---------- */
.records {
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2.5rem);
}
.records li { border-top: 1px solid var(--gold-soft); padding-top: 1rem; }
.records .k {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}
.records .v {
  display: block; margin-top: 0.35rem;
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.15; color: var(--white);
}
.records .d { display: block; margin-top: 0.3rem; font-size: 0.92rem; color: var(--muted); }

/* ---------- Tabeller ---------- */

table {
  width: 100%;
  margin-top: clamp(2rem, 5vw, 3rem);
  border-collapse: collapse;
  font-variant-numeric: tabular-nums lining-nums;
}
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
thead th {
  padding: 0 1rem 0.75rem 0;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--faint);
  white-space: nowrap;
}
tbody th, tbody td {
  padding: 0.7rem 1rem 0.7rem 0;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--hair);
  font-weight: 400;
}
th:last-child, td:last-child { padding-right: 0; }
tbody tr:hover > * { background: rgba(251, 246, 234, 0.03); }
.num { text-align: right; }
thead th.num { text-align: right; }

.c-team { font-weight: 600 !important; color: var(--white); }
.clubs .c-share { width: 34%; }
.share { display: grid; grid-template-columns: 3.2rem 1fr; align-items: center; gap: 0.75rem; }
.share span { font-size: 0.9rem; color: var(--muted); text-align: right; }

.bar { position: relative; height: 4px; border-radius: 2px; background: var(--faint); }
.bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--at);
  border-radius: 2px;
  background: var(--white);
}
tr.is-holder .c-team::after {
  content: "bæltet";
  margin-left: 0.6rem;
  padding: 0.1rem 0.45rem;
  border-radius: 99px;
  background: var(--gold);
  color: var(--bg);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: 0.15em;
}
tr.is-holder .bar i { background: var(--gold); }

/* Sæsoner */
.seasons { max-width: 40rem; }
.c-season { font-weight: 600; color: var(--white); white-space: nowrap; width: 7rem; }
.c-belt { font-family: var(--serif); font-size: 1.1rem; color: var(--white); }
.c-belt small { font-family: var(--sans); font-size: 0.8rem; color: var(--gold); margin-left: 0.3rem; }
.c-champ { color: var(--muted); }
tr.is-same .c-belt, tr.is-same .c-champ { color: var(--gold); }
tr.is-same .c-champ::before { content: "★ "; }

/* ---------- Alle skift ---------- */

details {
  border-bottom: 1px solid var(--hair);
}
details:first-of-type { margin-top: clamp(2rem, 5vw, 3rem); border-top: 1px solid var(--faint); }
summary {
  display: grid;
  grid-template-columns: 6.5rem 6rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: 1.2rem;
  line-height: 1;
  color: var(--muted);
}
details[open] summary::after { content: "–"; }
summary:hover .s-season { color: var(--gold); }
.s-season { font-weight: 600; color: var(--white); }
.s-count { font-size: 0.9rem; color: var(--muted); }
.s-end { font-family: var(--serif); color: var(--ink); }

.changes {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
}
.changes li {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1.1fr) minmax(0, 1.4fr) 11.5rem;
  gap: 0.4rem 1rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-top: 1px solid var(--hair);
  font-size: 0.95rem;
}
.x-date { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.x-new { font-family: var(--serif); font-size: 1.05rem; color: var(--white); }
.x-new small { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); margin-left: 0.25rem; }
.x-match { color: var(--ink); }
.x-held { color: var(--muted); text-align: right; white-space: nowrap; }
.changes li.x-none { display: block; color: var(--muted); font-style: italic; }
.pill {
  display: inline-block;
  margin-right: 0.5rem;
  vertical-align: 0.1em;
  padding: 0.05rem 0.45rem;
  border-radius: 99px;
  background: var(--gold);
  color: var(--bg);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Metode og bund ---------- */

.method { max-width: 46rem; }
.method h3 { margin: 2rem 0 0.4rem; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--white); }
.method p { margin: 0 0 0.9rem; color: var(--ink); }

footer {
  border-top: 1px solid var(--hair);
  padding: 2rem 0 3rem;
  font-size: 0.85rem;
  color: var(--muted);
}
footer p { margin: 0 0 0.4rem; max-width: 46rem; }

/* ---------- Mindre skærme ---------- */

@media (max-width: 52rem) {
  .about { grid-template-columns: 1fr; }
  .records { grid-template-columns: 1fr 1fr; }
  .changes li { grid-template-columns: 1fr auto; }
  .x-date { grid-row: 1; grid-column: 1; }
  .x-held { grid-row: 1; grid-column: 2; }
  .x-new { grid-column: 1 / -1; }
  .x-match { grid-column: 1 / -1; font-size: 0.9rem; color: var(--muted); }
}

@media (max-width: 36rem) {
  .records { grid-template-columns: 1fr; }
  .clubs .c-best { display: none; }
  .clubs .c-share { width: 26%; }
  .clubs .c-team { overflow-wrap: anywhere; }
  .share { grid-template-columns: 1fr; gap: 0.3rem; }
  .share span { text-align: left; font-size: 0.8rem; }
  tbody th, tbody td, thead th { padding-right: 0.6rem; }
  thead th { letter-spacing: 0.06em; }
  summary { grid-template-columns: 5.2rem 1fr auto; gap: 0.6rem; }
  .s-count { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  body, .band, .hero { background: #fff !important; color: #000; }
  .hero { min-height: 0; }
  .hero::before, .hero::after, .scroll-hint { display: none; }
  details > * { display: block; }
  * { color: #000 !important; }
}
