/* Sjøen Solutions: én rolig, lys side. Ingen forespørsler til andre verter; fonten ligger her. */

@font-face {
  font-family: "Inter";
  src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;

  --paper: oklch(98.4% 0.004 240);
  --surface: oklch(100% 0 none);
  --ink: oklch(24% 0.02 250);
  --ink-soft: oklch(46% 0.015 250);
  --line: oklch(90% 0.008 250);
  --sea: oklch(46% 0.1 245);
  --sea-deep: color-mix(in oklch, var(--sea), black 22%);
  --sea-tint: color-mix(in oklch, var(--sea) 8%, var(--surface));

  --text: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-small: 0.875rem;
  --text-h1: clamp(2rem, 1.6rem + 2vw, 3rem);
  --text-h2: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);

  --space-s: 0.75rem;
  --space-m: 1.25rem;
  --space-section: clamp(2.5rem, 1.75rem + 3vw, 4.5rem);
  --gutter: 1rem;
  --measure: 40rem;
  --radius: 0.875rem;
}

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

:root {
  scrollbar-gutter: stable;
  text-wrap: pretty;
  overflow-wrap: break-word;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(var(--gutter), 1fr) min(100% - var(--gutter) * 2, var(--measure)) minmax(var(--gutter), 1fr);
  align-content: start;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: var(--text);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

body > * { grid-column: 2; }

h1, h2, h3 { text-wrap: balance; line-height: 1.2; margin: 0; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }

a {
  color: var(--sea);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  touch-action: manipulation;
}
a:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 3px;
  border-radius: 2px;
}
a:active { color: var(--sea-deep); }
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--sea-deep); text-decoration-thickness: 2px; }
}

/* ── Toppen ───────────────────────────────────────────── */
main { padding-block: var(--space-section); display: grid; gap: var(--space-section); }

.masthead { display: grid; gap: var(--space-m); }
.masthead img { inline-size: 3rem; block-size: 3rem; }
.masthead h1 { font-size: var(--text-h1); font-weight: 700; letter-spacing: -0.02em; }
.lead { font-size: calc(var(--text) * 1.1); color: var(--ink-soft); max-inline-size: 34em; }

section { display: grid; gap: var(--space-m); }
section > p { max-inline-size: 36em; }
h2 { font-size: var(--text-h2); font-weight: 650; }

/* ── Produktene: ett kort hver ────────────────────────── */
.products { display: grid; gap: var(--space-m); }

.product {
  display: grid;
  gap: var(--space-s);
  padding: var(--space-m);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px color-mix(in oklch, var(--ink) 6%, transparent);
}
.product h3 { font-size: calc(var(--text) * 1.25); font-weight: 650; }
.product h3 a { color: var(--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .product h3 a:hover { color: var(--sea); text-decoration: underline; }
}

.product-links { display: flex; flex-wrap: wrap; gap: var(--space-s) var(--space-m); }
.product-links a {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  padding-inline: 0.875rem;
  border-radius: 999px;
  background: var(--sea-tint);
  text-decoration: none;
  font-weight: 550;
  font-size: var(--text-small);
}
.product-links a:active { background: color-mix(in oklch, var(--sea) 16%, var(--surface)); }
@media (hover: hover) and (pointer: fine) {
  .product-links a:hover { background: color-mix(in oklch, var(--sea) 13%, var(--surface)); }
}
@media (pointer: fine) {
  .product-links a { min-block-size: 2.25rem; }
}

.descriptor { font-size: var(--text-small); color: var(--ink-soft); }
.descriptor span { font-weight: 600; letter-spacing: 0.02em; color: var(--ink); }

/* ── Foretaket nederst ────────────────────────────────── */
.business {
  display: grid;
  gap: var(--space-m);
  padding-block: var(--space-section);
  border-block-start: 1px solid var(--line);
}
.business dl { display: grid; gap: var(--space-s); margin: 0; }
.business dl div { display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--space-m); }
.business dt { color: var(--ink-soft); }
.business dd { margin: 0; }
