@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --tekst: #141414;
  --dempet: #5c5c5c;
  --rod: #de0000; /* samme rød som logoen */
}

* { box-sizing: border-box; }

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

body {
  margin: 0 auto;
  max-width: 1240px;
  padding: 0 24px;
  background: #fff;
  color: var(--tekst);
  font: 400 18px/1.5 "Schibsted Grotesk", Arial, sans-serif;
}

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--rod); }

p { margin: 0 0 0.8em; }

.topp {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 20px;
  font-weight: 700;
}
.topp a { text-decoration: none; }
.logo img { display: block; width: auto; height: 40px; }
.tlf { color: var(--rod); }

h1 {
  margin: 48px 0 20px;
  max-width: 11em;
  font-size: 104px;
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.intro {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 96px;
}

/* Hvor Jacob er nå. Prikken er den samme som på kartet. */
.na {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 0 0 56px;
  font-size: 28px;
  line-height: 1.3;
}
.na strong { font-weight: 700; }
.na::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--rod);
  align-self: center;
}
.na-dato { color: var(--dempet); font-size: 15px; }

.ingress {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 500;
}

.hovedbilde { margin: 0; }
.hovedbilde img { display: block; width: 100%; height: auto; }
.hovedbilde figcaption,
.bilder figcaption { margin-top: 8px; color: var(--dempet); font-size: 15px; }

/* Kart */

.kart { margin: 0; }

.kart-flate {
  position: relative;
  font-size: 13px;
  line-height: 1;
}
.kart-flate img { display: block; width: 100%; height: auto; }

.sted {
  position: absolute;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-weight: 500;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff;
}
.sted.oy { font-style: italic; letter-spacing: 0.04em; }
.sted.langs { transform: translate(-50%, -50%) rotate(-90deg); }
.sted.retning { right: 0; top: 37%; transform: translateY(-50%); }
.sted.retning::after { content: " \2197"; }

.her {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: var(--rod);
  border-radius: 50%;
}
.her-linje {
  position: absolute;
  width: 1px;
  background: var(--rod);
}
.her-navn { color: var(--rod); font-weight: 700; }

.kart figcaption {
  margin-top: 12px;
  color: var(--dempet);
  font-size: 14px;
}

/* Rader */

.rad {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 56px;
  padding: 24px 0 72px;
  border-top: 1px solid var(--tekst);
}
.rad h2 { margin: 0; font-size: 18px; font-weight: 700; }
.rad > div { max-width: 40em; }

.arbeid {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
}
.arbeid li { padding: 4px 0; }

.nummer {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--rod);
  font-size: 84px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nummer:hover { text-decoration: underline; text-decoration-thickness: 3px; }

.fakta {
  display: grid;
  grid-template-columns: 9em 1fr;
  margin: 0;
}
.fakta dt { color: var(--dempet); }
.fakta dd { margin: 0 0 6px; }

/* Bilder */

.bilder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.bilder figure { margin: 0; }
.bilder img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.mer { margin-top: 24px; }
.om-bilder { margin-top: 32px; }
#giske .kart { margin-top: 24px; }

.bunn {
  padding: 20px 0 40px;
  border-top: 1px solid var(--tekst);
  color: var(--dempet);
  font-size: 15px;
}

@media (max-width: 1000px) {
  h1 { font-size: 80px; }
  .intro, .rad { gap: 32px; }
}

@media (max-width: 760px) {
  body { padding: 0 16px; font-size: 17px; }
  .topp { font-size: 17px; padding: 16px 0; }
  .logo img { height: 30px; }
  h1 { margin: 24px 0 14px; font-size: 48px; }
  .na { font-size: 20px; margin-bottom: 32px; gap: 2px 10px; }
  .na::before { width: 11px; height: 11px; }
  .intro { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .ingress { font-size: 21px; }
  /* Kartet beskjæres til Giske, Ålesund og Sula på smale skjermer */
  .kart { margin: 0 -16px; }
  .kart-ramme { overflow: hidden; }
  .kart-flate { width: 149%; margin-left: -22.4%; font-size: 12px; }
  .sted.retning { right: 18%; }
  .kart figcaption { padding: 0 16px; }
  .rad { grid-template-columns: 1fr; gap: 12px; padding-bottom: 48px; }
  .arbeid { font-size: 22px; }
  .nummer { font-size: 52px; }
  .fakta { grid-template-columns: 7em 1fr; }
  .bilder { gap: 16px 10px; }
  .bilder figcaption { font-size: 13px; }
}
