/* Trondheim E-sport – stil.css */

@font-face { font-family: "Bricolage Grotesque"; src: url("fonter/bricolage-grotesque-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonter/bricolage-grotesque-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonter/figtree-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonter/figtree-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonter/figtree-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --kleber: #1B2220;
  --kleber-lys: #26302D;
  --linje: #33403C;
  --kalk: #EEEBE3;
  --dempet: #A9B3AE;
  --patina: #5BAA93;
  --patina-dyp: #2C6A5B;
  --kobber: #E07A3E;
  --kobber-hover: #EA8D55;

  --tittel: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --tekst: "Figtree", system-ui, sans-serif;

  --ramme: 1180px;
  --kant: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--kleber);
  color: var(--kalk);
  font-family: var(--tekst);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--patina); text-underline-offset: 3px; }
a:hover { color: var(--kalk); }
:focus-visible { outline: 3px solid var(--kobber); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--tittel); font-weight: 800; line-height: 0.95; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(48px, 9vw, 112px); }
h2 { font-size: clamp(32px, 5vw, 56px); }
h3 { font-size: clamp(26px, 3.4vw, 36px); }
p { margin: 0; text-wrap: pretty; }

.ramme { width: 100%; max-width: calc(var(--ramme) + 2 * var(--kant)); margin: 0 auto; padding: 0 var(--kant); }
.skjult { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hopp { position: absolute; left: -9999px; top: 8px; background: var(--kobber); color: var(--kleber); padding: 10px 16px; font-weight: 700; z-index: 10; }
.hopp:focus { left: 8px; }

/* Topp */
.topp { border-bottom: 1px solid var(--linje); }
.topp-indre { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 14px; color: var(--kalk); text-decoration: none; }
.logo-tekst { display: flex; flex-direction: column; gap: 5px; }
.logo-tekst b { font-family: var(--tittel); font-weight: 800; font-size: 22px; line-height: 0.85; letter-spacing: -0.01em; }
.logo-tekst small { font-weight: 700; font-size: 8.5px; letter-spacing: 0.62em; color: var(--patina); }
.meny { display: flex; gap: 6px; flex-wrap: wrap; }
.meny a { color: var(--kalk); text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 14px; min-height: 44px; display: inline-flex; align-items: center; }
.meny a:hover { color: var(--kobber); }
.meny a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--kobber); }

/* Felles */
.overtittel { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--patina); margin-bottom: 18px; }
.overtittel::before { content: ""; width: 12px; height: 12px; background: var(--kobber); flex-shrink: 0; }
.overtittel a { color: inherit; text-decoration: none; }
.overtittel a:hover { color: var(--kalk); }
.ingress { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--dempet); max-width: 640px; margin-top: 22px; }

.knapper { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.knapp { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.knapp-signal { background: var(--kobber); color: var(--kleber); }
.knapp-signal:hover { background: var(--kobber-hover); color: var(--kleber); }
.knapp-strek { border-color: var(--kalk); color: var(--kalk); }
.knapp-strek:hover { background: var(--kalk); color: var(--kleber); }
.lenke-pil { font-weight: 700; color: var(--kalk); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.lenke-pil::after { content: "→"; color: var(--kobber); transition: transform .15s; }
.lenke-pil:hover { color: var(--kobber); }
.lenke-pil:hover::after { transform: translateX(4px); }

/* Helt */
.helt { border-bottom: 1px solid var(--linje); overflow: hidden; }
.helt-indre { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; padding-top: clamp(64px, 10vw, 128px); padding-bottom: clamp(64px, 10vw, 128px); }
.helt-merke { opacity: 1; }
.helt-merke svg { width: clamp(220px, 28vw, 360px); height: auto; }

/* Seksjoner */
.seksjon { padding: clamp(56px, 8vw, 104px) 0; border-bottom: 1px solid var(--linje); }
.seksjon-tett { padding-top: clamp(40px, 5vw, 64px); }
.seksjon-lys { background: var(--kalk); color: var(--kleber); }
.seksjon-lys .overtittel { color: var(--patina-dyp); }
.seksjon-lys .ingress { color: #4A524E; }
.seksjon-hode { margin-bottom: 36px; }
.seksjon-hode-rad { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* Sidehode */
.sidehode { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--linje); }
.sidehode-tom { min-height: 52vh; }
.sidehode-rad { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; }
.sidehode-rad > div { flex: 1 1 520px; min-width: 0; }

/* Spillkort */
.kort-rutenett { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.spillkort { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 260px; padding: 30px; background: var(--kleber-lys); color: var(--kalk); text-decoration: none; border: 1px solid var(--linje); transition: border-color .15s, transform .15s; }
.spillkort:hover { border-color: var(--kalk); color: var(--kalk); transform: translateY(-3px); }
.spillkort-type { font-weight: 700; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--dempet); }
.spillkort-navn { font-family: var(--tittel); font-weight: 800; font-size: 34px; line-height: 0.95; letter-spacing: -0.03em; }
.spillkort-tekst { color: var(--dempet); font-size: 16px; line-height: 1.5; }
.spillkort-status { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 14px; color: var(--patina); }
.spillkort-status::after { content: "→"; color: var(--kalk); font-size: 18px; }
.spillkort.har-apen .spillkort-status { color: var(--kobber); }
.spillkort.har-apen::before { content: ""; position: absolute; top: 0; right: 0; width: 14px; height: 14px; background: var(--kobber); }

/* Turneringskort */
.turnering-liste { display: grid; gap: 20px; }
.turnering-liste-dempet .turnering { opacity: .75; }
.turnering { background: var(--kleber-lys); border: 1px solid var(--linje); padding: clamp(24px, 4vw, 44px); display: grid; gap: 14px; }
.turnering.status-apen, .turnering.status-pagar { border-color: var(--patina-dyp); }
.turnering-topp { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.turnering-spill { font-weight: 700; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dempet); }
.turnering-tittel { font-size: clamp(30px, 4.4vw, 52px); }
.turnering-under { font-family: var(--tittel); font-weight: 700; font-size: 22px; color: var(--patina); letter-spacing: -0.01em; }
.turnering-tekst { color: var(--dempet); max-width: 680px; }
.merkelapp { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; font-weight: 700; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; }
.merkelapp-apen { background: var(--kobber); color: var(--kleber); }
.merkelapp-pagar { background: var(--kalk); color: var(--kleber); }
.merkelapp-kommer { border: 2px solid var(--patina); color: var(--patina); }
.merkelapp-ferdig { border: 2px solid var(--linje); color: var(--dempet); }

.fakta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 18px 28px; margin: 14px 0 0; padding-top: 22px; border-top: 1px solid var(--linje); }
.fakta div { min-width: 0; }
.fakta dt { font-weight: 700; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--patina); margin-bottom: 6px; }
.fakta dd { margin: 0; font-weight: 700; font-size: 19px; line-height: 1.3; }
.fakta dd.premie { color: var(--kobber); }
.fakta-stor { flex: 0 1 380px; border-top: 0; padding-top: 0; grid-template-columns: 1fr; gap: 16px; }
.fakta-stor div { border-left: 0; padding: 14px 0 0; border-top: 1px solid var(--linje); }

.premier { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; max-width: 560px; }
.premier li { display: grid; grid-template-columns: 28px minmax(0, 1fr) 96px; align-items: center; gap: 12px; }
.premier .plass { font-weight: 700; color: var(--dempet); }
.premier .spor { display: block; height: 18px; }
.premier .stolpe { display: block; height: 100%; background: var(--patina); }
.premier .plass-1 .stolpe { background: var(--kobber); }
.premier .plass-2 .stolpe { background: var(--kalk); }
.premier .sum { text-align: right; font-weight: 700; }

.turnering-handling { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 12px; }
.snart { font-weight: 700; color: var(--dempet); }

.tom { padding: 36px; border: 1px dashed var(--linje); display: grid; gap: 8px; color: var(--dempet); }

/* Om */
.om { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.punkter { list-style: none; margin: 0; padding: 0; display: grid; }
.punkter li { display: grid; gap: 4px; padding: 20px 0; border-top: 1px solid #D6D1C6; }
.punkter li:last-child { border-bottom: 1px solid #D6D1C6; }
.punkter b { font-family: var(--tittel); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.punkter span { color: #4A524E; }

/* Følg */
.folg { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.folg .knapper { margin-top: 0; }

/* Bunn */
.bunn { padding: 56px 0 32px; }
.bunn-indre { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.bunn-logo { display: flex; align-items: center; gap: 16px; }
.bunn-navn { font-family: var(--tittel); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; line-height: 1; }
.bunn-navn span { font-family: var(--tekst); font-weight: 700; font-size: 11px; letter-spacing: 0.5em; color: var(--patina); margin-left: 6px; }
.bunn-motto { color: var(--dempet); font-size: 15px; margin-top: 6px; }
.bunn-lenker { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.bunn-lenker a { color: var(--kalk); text-decoration: none; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.bunn-lenker a:hover { color: var(--kobber); }
.bunn-copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--linje); color: var(--dempet); font-size: 14px; }

/* Lenker i lys seksjon */
.seksjon-lys .lenke-pil { color: var(--kleber); }
.seksjon-lys .lenke-pil:hover { color: var(--patina-dyp); }
.lenker-rad { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 20px; }

/* Klubber */
.klubb-rutenett { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.klubbkort { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 22px; align-items: start; padding: 28px; background: var(--kleber-lys); border: 1px solid var(--linje); }
.klubb-logo { width: 88px; height: 88px; background: var(--kalk); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.klubb-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.initialer { font-family: var(--tittel); font-weight: 800; letter-spacing: -0.02em; color: var(--kalk); background: var(--patina-dyp); display: flex; align-items: center; justify-content: center; }
.klubb-logo.initialer { font-size: 30px; }
.kort-innhold { display: grid; gap: 8px; min-width: 0; }
.kort-navn { font-family: var(--tittel); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -0.025em; margin: 0; }
.kort-meta { font-weight: 700; font-size: 14px; color: var(--patina); }
.kort-tekst { color: var(--dempet); font-size: 16px; line-height: 1.55; }

/* Arrangementer */
.arr-rutenett { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.arrkort { display: flex; flex-direction: column; background: var(--kleber-lys); border: 1px solid var(--linje); }
.arrkort img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.arrkort .kort-innhold { padding: 26px 28px 28px; gap: 10px; }
.merkelapp-rolle { justify-self: start; border: 2px solid var(--patina); color: var(--patina); }

/* Crew */
.crew-rutenett { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.crewkort { display: flex; flex-direction: column; background: var(--kleber-lys); border: 1px solid var(--linje); }
.portrett { width: 100%; aspect-ratio: 1; object-fit: cover; }
.portrett.initialer { font-size: 72px; background: var(--kleber); border-bottom: 1px solid var(--linje); color: var(--patina); }
.crewkort .kort-innhold { padding: 22px 24px 26px; gap: 6px; }
.crew-rolle { font-weight: 700; color: var(--patina); font-size: 15px; }
.crew-tilhorighet { font-size: 14px; color: var(--dempet); }
.crewkort .kort-tekst { margin-top: 6px; }
.crewkort .lenke-pil { margin-top: 4px; }

/* Oppfordring */
.oppfordring { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; padding: clamp(28px, 4vw, 44px); background: var(--kleber-lys); border: 1px solid var(--patina-dyp); }
.oppfordring > div { flex: 1 1 420px; min-width: 0; }
.oppfordring h2 { font-size: clamp(28px, 4vw, 40px); }
.oppfordring .ingress { margin-top: 14px; }
.oppfordring .knapper { margin-top: 0; }

@media (max-width: 860px) {
  .helt-indre { grid-template-columns: 1fr; }
  .helt-merke { display: none; }
  .om { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
