/*
  The havnlink.no holding page.

  Token values are copied from design-system/tokens.json (light set only, as the product ships
  today). This page has no build step, so it cannot import web/app/tokens.css; if a brand token
  changes, change it here too.
*/

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Sámi letters in names (č, đ, ŋ, š, ŧ, ž); fetched only by a page that uses one. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  --bg: #fbfcfa;
  --surface: #ffffff;
  --surface-sunken: #f1f5f9;
  --fg: #082c4e;
  --fg-muted: #4d6076;
  --fg-subtle: #5d6e82;
  --fg-inverse: #f5f9fc;
  --line: #dde5ee;
  --line-strong: #c2cfdd;
  --brand: #087c7d;
  --brand-hover: #086768;
  --brand-fg: #ffffff;
  --brand-soft: #edf7f5;
  --brand-soft-fg: #165658;
  --accent-soft: #ecfdf7;
  --ring: #087c7d;
  --hero-from: #0b2d43;
  --hero-via: #125667;
  --hero-to: #2a7877;
  --hero-line: rgb(255 255 255 / 0.14);
  --hero-line-soft: rgb(255 255 255 / 0.11);
  --logo-navy: #162b54;
  --logo-teal: #3a8280;
  --elevation-1: 0 1px 2px rgb(12 26 43 / 0.05), 0 1px 3px rgb(12 26 43 / 0.04);
  --elevation-2: 0 2px 4px rgb(12 26 43 / 0.05), 0 6px 16px -6px rgb(12 26 43 / 0.12);
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --font-sans: "Inter", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --page-max: 80rem;
  --description-max: 42rem;
  --gutter: 16px;
}

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--brand);
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent);
  text-underline-offset: 4px;
  transition: color 150ms, text-decoration-color 150ms;
}

a:hover {
  color: var(--brand-hover);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--elevation-2);
}

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

/* Header */

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--fg);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.brand:hover {
  color: var(--fg);
}

.brand svg {
  width: auto;
  height: 28px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: var(--radius-lg);
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 150ms, color 150ms;
}

.language-switch:hover {
  background: var(--surface-sunken);
  color: var(--fg);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--hero-from) 0%, var(--hero-via) 60%, var(--hero-to) 100%);
  color: var(--fg-inverse);
}

.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 82% 22%, transparent 0 8rem, var(--hero-line) 8.05rem 8.1rem, transparent 8.15rem 12rem, var(--hero-line) 12.05rem 12.1rem, transparent 12.15rem),
    repeating-linear-gradient(153deg, transparent 0 3.5rem, var(--hero-line-soft) 3.55rem 3.6rem, transparent 3.65rem 7rem);
  -webkit-mask-image: linear-gradient(90deg, transparent 25%, black 100%);
  mask-image: linear-gradient(90deg, transparent 25%, black 100%);
}

.hero .container {
  position: relative;
  padding-block: 72px 80px;
}

@media (min-width: 640px) {
  .hero .container {
    padding-block: 112px 120px;
  }
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgb(245 249 252 / 0.82);
}

.display {
  max-width: 15ch;
  margin-top: 16px;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .display {
    font-size: 60px;
  }
}

.lead {
  max-width: var(--description-max);
  margin-top: 24px;
  font-size: 18px;
  line-height: 28px;
  color: rgb(245 249 252 / 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 36px;
}

.hero-note {
  font-size: 14px;
  line-height: 20px;
  color: rgb(245 249 252 / 0.82);
}

/* Buttons. Links that look like buttons: every action here has a destination. */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  text-decoration: none;
  transition: background-color 150ms, border-color 150ms, box-shadow 150ms, color 150ms;
}

.button-primary {
  background: var(--brand);
  color: var(--brand-fg);
  box-shadow: var(--elevation-1);
}

.button-primary:hover {
  background: var(--brand-hover);
  color: var(--brand-fg);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--fg);
}

.button-secondary:hover {
  background: var(--surface-sunken);
  color: var(--fg);
}

/* The primary action on the dark hero: a teal fill would sink into the teal gradient. */
.button-inverse {
  background: var(--surface);
  color: var(--fg);
  box-shadow: var(--elevation-2);
}

.button-inverse:hover {
  background: var(--brand-soft);
  color: var(--fg);
}

.hero .button:focus-visible {
  outline-color: var(--fg-inverse);
}

/* Sections */

.content {
  background-image:
    radial-gradient(60rem 30rem at 12% -10%, var(--brand-soft) 0%, transparent 60%),
    radial-gradient(45rem 25rem at 100% 0%, var(--accent-soft) 0%, transparent 55%);
}

.section {
  padding-block: 64px;
}

.section + .section {
  padding-top: 0;
}

@media (min-width: 640px) {
  .section {
    padding-block: 88px;
  }
}

.section-eyebrow {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--brand);
}

.section-heading {
  margin-top: 8px;
  font-size: 30px;
  line-height: 36px;
  letter-spacing: -0.025em;
  white-space: pre-line;
}

@media (min-width: 640px) {
  .section-heading {
    font-size: 36px;
    line-height: 40px;
  }
}

.section-intro {
  max-width: var(--description-max);
  margin-top: 12px;
  font-size: 18px;
  line-height: 28px;
  color: var(--fg-muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .cards {
    gap: 24px;
    margin-top: 40px;
  }
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--elevation-1);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--brand-soft);
  color: var(--brand-soft-fg);
  font-size: 16px;
}

.card h3 {
  margin-top: 16px;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.015em;
}

.card p {
  margin-top: 6px;
  color: var(--fg-muted);
}

/* Call to action */

.invite {
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(40rem 20rem at 0% 0%, var(--brand-soft) 0%, transparent 70%),
    var(--surface);
  box-shadow: var(--elevation-1);
}

@media (min-width: 640px) {
  .invite {
    padding: 48px;
  }
}

.invite .section-intro {
  margin-top: 12px;
}

.invite-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 28px;
}

.invite-address {
  font-weight: 500;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 20px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Not found */

.not-found {
  padding-block: 96px;
}

.not-found .section-intro + .section-intro {
  margin-top: 4px;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
