:root {
  --color-bg: #F7F3F3;           /* Snow */
  --color-text: #34435E;         /* Twilight Indigo */
  --color-muted: #7a7680;
  --color-accent-1: #5F1BC4;     /* Ultrasonic Blue */
  --color-accent-2: #383FBC;     /* Persian Blue */
  --color-accent-light: #CAC2D6; /* Thistle */
  --font-display: 'Gabarito', sans-serif;
  --font-body: 'Sora', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}



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

.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.hero__text {
  flex: 1;
  min-width: 240px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.7rem;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: #26215C;
  margin-bottom: 14px;
}

.hero__tagline {
  font-size: 1.05rem;
  color: #3a3550;
  line-height: 1.6;
  max-width: 390px;
}

.hero__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 20px;
}

.hero__links a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: #3a3550;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero__links a:hover {
  color: var(--color-accent-2);
}

.hero__links i {
  font-size: 18px;
}

.hero__portrait {
  flex-shrink: 0;
  width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__illustration {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobil: stable tekst og bilde */
@media (max-width: 560px) {
  .hero {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 24px;
    padding-top: 48px;
  }
  .hero__portrait {
    align-self: center;
    width: 180px;
  }
  .hero__title {
    font-size: 2rem;
  }
}

/* ---------- Navigasjonskort ---------- */

.nav-cards {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px 64px;
}

.nav-cards__label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a94a0;
  margin: 0 0 12px;
}

.nav-cards__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .nav-cards__grid {
    grid-template-columns: 1fr;
  }
}

.nav-card {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  border-radius: 16px;
  padding: 26px 16px 22px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #eee6d0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-card:hover {
  transform: translateY(-4px);
}

.nav-card--tdf:hover { background: #FBF3D9; }
.nav-card--drakt { border-color: #e3ece5; }
.nav-card--drakt:hover { background: #E3F0E7; }

.nav-card__stripe {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 5px;
}
.nav-card--tdf .nav-card__stripe { background: #ffdf00; }
.nav-card--drakt .nav-card__stripe { background: #2F7D4F; }

.nav-card__icon {
  display: flex;
  justify-content: center;
  height: 58px;
  margin-bottom: 8px;
}
.nav-card--tdf .nav-card__icon { align-items: center; color: #2b2b28; }
.nav-card--drakt .nav-card__icon { align-items: flex-end; gap: 2px; }

.nav-card__divider {
  width: 46px;
  height: 2px;
  border-radius: 1px;
  margin: 0 auto 14px;
}
.nav-card__divider--tdf { background: #e0d9c0; }
.nav-card__divider--drakt { background: #cfe0d3; }

.nav-card__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 8px;
  color: #2b2b28;
}

.nav-card__text {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: #5c5748;
  line-height: 1.55;
}

/* Sykkelhjul */
.wheel {
  transform-origin: 48px 55px;
  animation: spin 9s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Drakter */
.shirt {
  position: relative;
  display: inline-block;
  animation: shirtSway 3s ease-in-out infinite;
  transform-origin: center top;
}
.shirt--a { font-size: 40px; color: #4FA06B; margin-top: 4px; animation-duration: 3s; }
.shirt--b { font-size: 50px; color: #2F7D4F; animation-duration: 3.4s; animation-delay: 0.3s; }
.shirt--c { font-size: 40px; color: #2b2b28; margin-top: 6px; animation-duration: 2.7s; animation-delay: 0.6s; }

@keyframes shirtSway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.shirt__number {
  position: absolute;
  top: 54%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-body);
  font-weight: 600;
}
.shirt--a .shirt__number { font-size: 13px; color: #4FA06B; }
.shirt--b .shirt__number { font-size: 15px; color: #2F7D4F; }
.shirt--c .shirt__number { font-size: 13px; color: #2b2b28; }

/* ---------- Topp- og bunnkant ---------- */

.edge {
  width: 100%;
  background: var(--color-accent-2); /* Persian Blue */
}

.edge--top {
  height: 12px;
}