:root {
  --night: #0b1f3a;
  --night-2: #12335c;
  --ice: #f4f9fd;
  --ice-2: #e3eef8;
  --ink: #14233a;
  --muted: #5a6b82;
  --red: #d7263d;
  --blue: #2f7be5;
  --card: #fff;
  --line: #d6e3f0;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 31, 58, .10);
}
@media (prefers-color-scheme: dark) {
  :root { --ice: #0c1626; --ice-2: #14233a; --ink: #e8f0fa; --muted: #9fb2cb; --card: #14233a; --line: #23375a; --shadow: 0 6px 24px rgba(0,0,0,.4); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--ice); color: var(--ink); }
img, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 1.5rem 0 1rem; }
h2 { font-size: 1.5rem; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 99; }

/* topp */
.top { background: var(--night); position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
nav { display: flex; flex-wrap: wrap; gap: .25rem; }
nav a { color: #cfe0f5; text-decoration: none; padding: .45rem .8rem; border-radius: 999px; font-size: .95rem; }
nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
nav a[aria-current] { background: var(--red); color: #fff; }
.mt-box, .mt-btn { display: none; }

/* hero */
.hero { position: relative; color: #fff; overflow: hidden; background: linear-gradient(180deg, #06142a 0%, var(--night) 40%, var(--night-2) 100%); padding: 4.5rem 0 9rem; }
.snow { position: absolute; inset: 0; opacity: .7;
  background-image: radial-gradient(2px 2px at 20px 30px, #fff, transparent), radial-gradient(2px 2px at 90px 80px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 160px 20px, #fff, transparent), radial-gradient(2px 2px at 210px 120px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 60px 140px, #fff, transparent);
  background-size: 240px 170px; animation: fall 24s linear infinite; }
@keyframes fall { to { background-position: 0 340px; } }
@media (prefers-reduced-motion: reduce) { .snow { animation: none; } }
.slope { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 150px; }
.hero-in { position: relative; }
.kicker { text-transform: uppercase; letter-spacing: .14em; color: #8fb8ea; font-size: .85rem; margin: 0; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); margin: .4rem 0; }
.lead { font-size: 1.2rem; max-width: 34rem; color: #d6e6f8; }
.btn { display: inline-block; background: var(--red); color: #fff; padding: .75rem 1.4rem; border-radius: 999px; text-decoration: none; font-weight: 600; margin: .3rem .4rem .3rem 0; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); background: #b81d32; }
.btn.ghost { background: transparent; border: 2px solid #8fb8ea; color: #fff; }
.btn.ghost.dark { border-color: var(--blue); color: var(--blue); }
.btn.small { padding: .5rem 1.1rem; }

/* innhold */
main { padding-bottom: 3rem; }
section { margin-top: 2.5rem; }
.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-top: -2rem; position: relative; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem 1.5rem; border-top: 4px solid var(--blue); }
.panel:nth-child(2) { border-top-color: var(--red); }
.panel h2 { margin-top: 0; font-size: 1.2rem; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.rows li b { white-space: nowrap; }
.note { font-size: .85rem; color: var(--muted); }
.head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; margin-top: 1rem; }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .2s; }
.card:hover { transform: translateY(-4px); }
.card img { width: 100%; height: 160px; object-fit: cover; background: var(--ice-2); }
.card div { padding: 1rem 1.2rem 1.3rem; }
.card h3 { margin: .2rem 0 .4rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
time { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.sponsors { text-align: center; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; margin: 1.25rem 0; }
.logos img { height: 64px; width: auto; background: #fff; padding: .6rem 1rem; border-radius: 10px; box-shadow: var(--shadow); }

/* underssider */
.article img, .hist img, .sponsor img { border-radius: 10px; margin: .5rem 0; }
.back a { text-decoration: none; }
.lead2 { font-size: 1.15rem; color: var(--muted); }
.hist, .sponsor { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem 1.5rem; margin: 1.5rem 0; border-left: 5px solid var(--red); }
.sponsor { border-left-color: var(--blue); }
.hist h2, .sponsor h2 { margin: .3rem 0 .6rem; }
table.prices { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.prices th, table.prices td { padding: 1rem 1.3rem; text-align: left; border-bottom: 1px solid var(--line); }
table.prices td { text-align: right; font-weight: 700; font-size: 1.2rem; color: var(--red); white-space: nowrap; }
.callout { background: var(--ice-2); border-left: 4px solid var(--blue); border-radius: 8px; padding: 1rem 1.2rem; margin: 1.5rem 0; }
.widgets { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; }
.widgets iframe { border: 1px solid var(--line); border-radius: 10px; width: 320px; height: 260px; background: #fff; }
.map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* slalomporter */
.gates { display: flex; justify-content: space-around; height: 46px; align-items: flex-end; overflow: hidden; margin-top: 2rem; }
.gate { width: 6px; height: 40px; border-radius: 3px; position: relative; }
.gate.r { background: var(--red); } .gate.b { background: var(--blue); }
.gate::after { content: ""; position: absolute; top: 0; left: 6px; width: 20px; height: 14px; clip-path: polygon(0 0, 100% 50%, 0 100%); background: inherit; }
footer { background: var(--night); color: #cfe0f5; padding: 2rem 0; }
footer a { color: #fff; }
.foot { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }

@media (max-width: 820px) {
  .mt-btn { display: block; width: 44px; height: 44px; cursor: pointer; position: relative; order: 3; }
  .mt-btn span, .mt-btn span::before, .mt-btn span::after { content: ""; position: absolute; left: 10px; width: 24px; height: 3px; background: #fff; border-radius: 2px; }
  .mt-btn span { top: 20px; } .mt-btn span::before { left: 0; top: -8px; } .mt-btn span::after { left: 0; top: 8px; }
  nav { display: none; flex-direction: column; width: 100%; order: 4; padding-bottom: .75rem; }
  .mt-box:checked ~ nav { display: flex; }
  .bar { flex-wrap: wrap; }
  .hero { padding: 3rem 0 7rem; }
}

.intro { font-size: 1.1rem; color: var(--muted); margin-bottom: 1.5rem; }
.status small { opacity: .7; margin-left: .5rem; }
