/* skalstad.no (versjon B, valgt 27.10.2026)
   Versjon A er arkivert i alternativ-a/. Stil etter norsk forvaltnings- og konsulentstandard:
   hvit bakgrunn, én sans-serif (Inter), én blå aksentfarge, vanlige lister og tabeller. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-latin-700-normal.woff2") format("woff2");
}

:root {
  --ink: #1a1a1a;
  --ink-soft: #3d3d3d;
  --mute: #666666;
  --line: #e3e3e3;
  --line-strong: #c8c8c8;
  --paper: #ffffff;
  --panel: #f4f5f7;
  --blue: #0057a8;
  --blue-dark: #00437f;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --section-gap: clamp(48px, 7vw, 80px);

  color-scheme: light;
}

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--blue-dark);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

p,
ul,
ol,
dl {
  margin: 0 0 1em;
}

p:last-child,
ul:last-child,
dl:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.35;
  margin-bottom: 0.3em;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 10;
}

.skip-link:focus {
  top: 8px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 760px);
  margin-inline: auto;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

@media (min-width: 600px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  [id] {
    scroll-margin-top: 72px;
  }
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px 0;
}

.wordmark {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a.active {
  font-weight: 600;
  border-bottom-color: var(--blue);
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-nav .lang {
  color: var(--blue);
}

/* Hero */

.hero {
  padding: clamp(36px, 6vw, 64px) 0 clamp(32px, 5vw, 48px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(16px, 4vw, 28px);
  align-items: center;
}

.hero > div:first-child {
  display: contents;
}

.hero .portrait-col {
  grid-column: 1;
  grid-row: 1;
}

.hero h1 {
  grid-column: 2;
  grid-row: 1;
  font-size: clamp(1.8rem, 3.8vw, 2.4rem);
  margin-bottom: 0;
}

.hero .lede,
.hero .actions {
  grid-column: 1 / -1;
}

.hero .lede:first-of-type {
  margin-top: 24px;
}

.hero .lede {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
}

.hero .lede strong {
  font-weight: 600;
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 200px;
    column-gap: 44px;
    align-items: start;
  }

  .hero .portrait-col {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
  }

  .hero h1 {
    grid-column: 1;
  }

  .hero .lede,
  .hero .actions {
    grid-column: 1;
  }
}

.actions {
  grid-column: 1 / -1;
}

.hero .lede:first-of-type {
  margin-top: 24px;
}

.hero .lede {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
}

.hero .lede strong {
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 4px;
  border: 2px solid var(--blue);
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
}

.button:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--blue);
}

.button.secondary:hover {
  background: #eef3f9;
  color: var(--blue-dark);
}

.portrait {
  display: block;
  width: clamp(84px, 20vw, 112px);
  height: clamp(84px, 20vw, 112px);
  object-fit: cover;
  border-radius: 4px;
}

@media (min-width: 760px) {
  .portrait {
    width: 200px;
    height: 250px;
    object-position: 50% 35%;
  }
}

/* Fact sheet */

.facts {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.facts dl {
  margin: 0;
}

.facts .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-size: 0.95rem;
  color: var(--mute);
}

.facts dd {
  margin: 0;
}

/* Sections */

.section {
  padding-top: var(--section-gap);
}

.section > .section-head {
  padding-top: 0;
  border-top: 0;
  margin-bottom: 20px;
}

.section-head h2 {
  margin-bottom: 0.2em;
}

.section-head .sub {
  color: var(--mute);
  font-size: 0.95rem;
  margin: 0;
}

.section > .section-body {
  padding-top: 0;
}

.lead {
  font-size: 1.05rem;
}

/* GEO */

figure {
  margin: 0;
}

h3.subsection {
  margin-top: 36px;
  font-size: 1.25rem;
  font-weight: 700;
}

.result {
  margin: 20px 0;
}

.result p {
  margin: 0;
}

.result .big {
  font-weight: 600;
}

.measures {
  margin: 20px 0 0;
  padding-left: 1.2em;
}

.measures li,
.entries .bg-list li {
  margin: 0 0 6px;
}

.measures + p {
  margin-top: 20px;
}

/* Readout table */

.readout-head {
  margin-top: 28px;
  padding: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  justify-content: space-between;
  align-items: baseline;
}

.readout-head strong {
  font-weight: 600;
}

.readout-head span {
  font-size: 0.92rem;
  color: var(--mute);
}

.readout table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.readout th,
.readout td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
}

.readout thead th {
  font-weight: 600;
  border-bottom: 2px solid var(--ink);
  font-size: 0.92rem;
}

.readout th[scope="row"] {
  font-weight: 600;
  white-space: nowrap;
  width: 1%;
  padding-right: 28px;
}

.readout .status {
  display: inline-block;
}

.readout td p {
  margin: 0;
}

.readout .pending {
  color: var(--mute);
}

@media (max-width: 640px) {
  .readout thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .readout tr {
    display: block;
    border-bottom: 1px solid var(--line);
    padding: 12px 0 14px;
  }

  .readout th[scope="row"],
  .readout td {
    display: block;
    padding: 0;
    border: 0;
    width: auto;
    white-space: normal;
  }

  .readout th[scope="row"] {
    margin-bottom: 8px;
  }

  .readout td {
    margin-top: 8px;
  }

  .readout td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.85rem;
    color: var(--mute);
    margin-bottom: 2px;
  }
}

.readout + p {
  margin-top: 16px;
}

/* Thesis */

.finding {
  margin: 0 0 16px;
}

.finding p + p {
  margin-top: 0.7em;
}

.finding p:last-child {
  font-weight: 600;
}

.meta {
  font-size: 0.92rem;
  color: var(--mute);
}

.meta dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 0;
}

.meta dd {
  margin: 0;
  color: var(--ink-soft);
}

/* Entries */

.entries {
  margin: 0;
  padding: 0;
  list-style: none;
}

.entries li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.entries li:first-child {
  border-top: 0;
  padding-top: 0;
}

.entries .when {
  color: var(--mute);
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.entries .finding {
  margin: 8px 0 16px;
}

.entries .bg-list {
  margin-top: 6px;
  padding-left: 1.2em;
  list-style: disc;
}

.entries .bg-list li {
  padding: 0;
  border-top: 0;
}

.bg-list li {
  margin-bottom: 6px;
}

/* Testimonials */

blockquote.testimonial {
  margin: 24px 0 0;
  padding: 18px 22px;
  background: var(--panel);
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1.6;
}

blockquote.testimonial p {
  margin: 0 0 8px;
}

blockquote.testimonial cite {
  display: block;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--mute);
}

.section-body > blockquote.testimonial:first-child {
  margin-top: 0;
}

/* Skills */

.skills {
  margin: 0;
}

.skills > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.skills > div:first-child {
  padding-top: 0;
}

.skills dt {
  font-weight: 600;
  font-size: 0.95rem;
}

.skills dd {
  margin: 0;
  color: var(--ink-soft);
}

.facts .line,
.skills .line {
  display: block;
}

.facts .line + .line,
.skills .line + .line {
  margin-top: 8px;
}

@media (min-width: 600px) {
  .facts .row,
  .skills > div {
    grid-template-columns: 180px 1fr;
  }
}

/* Findings */

.findings {
  margin: 0 0 8px;
  padding-left: 1.2em;
}

.findings li {
  margin-bottom: 12px;
}

.findings strong {
  font-weight: 600;
}

.note {
  font-size: 0.9rem;
  color: var(--mute);
  margin-top: 10px;
}

/* Contact */

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 12px;
}

.contact-row a {
  font-weight: 600;
}

/* Footer */

.site-footer {
  margin-top: var(--section-gap);
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  font-size: 0.92rem;
  color: var(--mute);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
}

.site-footer a {
  color: var(--mute);
}

@media print {
  .site-nav,
  .actions,
  .skip-link {
    display: none;
  }
}

/* Struktur: bånd, kort, tidslinje, til toppen (27.10) */

.section {
  padding: 40px 0;
}

.band {
  background: var(--panel);
  box-shadow: 0 0 0 100vmax var(--panel);
  clip-path: inset(0 -100vmax);
}

.section.band {
  padding: 56px 0;
}

.section.band + .section {
  padding-top: 48px;
}

.facts.band {
  margin-top: 0;
  border-top: 0;
  padding: 28px 0 16px;
}

.facts .row:last-child {
  border-bottom: 0;
}

.band .line,
.band dd,
.band p {
  color: var(--ink);
}

/* Prosjekter: periode i venstre kolonne */

@media (min-width: 600px) {
  #prosjekter .entries > li,
  #projects .entries > li {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    column-gap: 28px;
  }

  #prosjekter .entries > li > h3,
  #projects .entries > li > h3 {
    grid-column: 2;
    grid-row: 1;
  }

  #prosjekter .entries > li > .when,
  #projects .entries > li > .when {
    grid-column: 1;
    grid-row: 1 / span 20;
    margin: 0;
    padding-top: 3px;
  }

  #prosjekter .entries > li > p:not(.when),
  #projects .entries > li > p:not(.when) {
    grid-column: 2;
  }
}

/* Tidslinje for erfaring og utdanning */

#erfaring .entries,
#utdanning .entries,
#experience .entries,
#education .entries {
  margin-left: 6px;
  padding-left: 26px;
  border-left: 2px solid var(--line-strong);
}

#erfaring .entries > li,
#utdanning .entries > li,
#experience .entries > li,
#education .entries > li {
  position: relative;
  border-top: 0;
  padding: 0 0 28px;
}

#erfaring .entries > li:last-child,
#utdanning .entries > li:last-child,
#experience .entries > li:last-child,
#education .entries > li:last-child {
  padding-bottom: 4px;
}

#erfaring .entries > li::before,
#utdanning .entries > li::before,
#experience .entries > li::before,
#education .entries > li::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--paper);
}

.band .entries > li::before {
  border-color: var(--panel);
}

/* Funnene som kort */

.findings {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.findings li {
  margin: 0;
  padding: 16px 18px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.97rem;
}

.findings strong {
  display: block;
  margin-bottom: 6px;
}

@media (min-width: 600px) {
  .findings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
  }
}

/* Tabellen i ramme */

.readout {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 18px 2px;
}

.readout th,
.readout td {
  padding: 10px 12px 10px 0;
}

@media (max-width: 640px) {
  .readout {
    padding: 0 16px;
  }
}

/* Til toppen */



.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--ink-soft);
  color: #fff;
}

@media (max-width: 599px) {
  .back-to-top {
    width: 48px;
    height: 48px;
    min-height: 0;
    padding: 0;
    justify-content: center;
    right: 16px;
    bottom: 16px;
  }

  .back-to-top span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

@media print {
  .back-to-top {
    display: none;
  }
}

.site-footer {
  margin-top: 0;
  padding-bottom: 96px;
}

.band blockquote.testimonial {
  background: #fff;
}
