:root {
  --ink: #13222c;
  --ink-soft: #3d4f5b;
  --paper: #f3f6f5;
  --tint: #e3ebe8;
  --sky: #2f5d8c;
  --dusk: #0f2740;
  --amber: #b98425;
  --line: rgba(19, 34, 44, 0.16);
  --head: "Schibsted Grotesk", system-ui, sans-serif;
  --body: "Literata", Georgia, serif;
  --gutter: clamp(20px, 5vw, 56px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

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

h1, h2 {
  font-family: var(--head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}

h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }

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

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  min-height: min(88svh, 760px);
  display: grid;
  grid-template-rows: auto 1fr;
  color: #fff;
  background: var(--dusk);
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 40%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 39, 64, 0.92) 0%, rgba(15, 39, 64, 0.55) 38%, rgba(15, 39, 64, 0) 70%),
    linear-gradient(to bottom, rgba(15, 39, 64, 0.55), rgba(15, 39, 64, 0) 22%);
}

.nav {
  position: relative;
  z-index: 1;
  width: min(1120px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: baseline;
  justify-content: space-between;
}

.nav__name {
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--head);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav__links a { text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
.nav__links a:hover { border-bottom-color: var(--amber); }

.hero__text {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(1120px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-bottom: clamp(36px, 8vh, 84px);
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero h1 {
  font-size: clamp(2.4rem, 7.2vw, 5.6rem);
  max-width: 14ch;
  text-wrap: balance;
}

.hero p {
  margin: 1.4rem 0 0;
  max-width: 52ch;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Bands ---------- */

.band { padding-block: clamp(56px, 9vw, 112px); }
.band--tint { background: var(--tint); }
.band--dusk { background: var(--dusk); color: #fff; }

/* ---------- Aims ---------- */

.aims { margin: clamp(28px, 4vw, 48px) 0 0; }

.aims__row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2fr;
  gap: 8px 40px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
}
.aims__row:last-child { border-bottom: 1px solid var(--line); }

.aims dt {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.aims dd { margin: 0; max-width: 62ch; color: var(--ink-soft); }

/* ---------- Season ---------- */

.season {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: clamp(24px, 3vw, 40px) 0 0;
  padding: 0;
  max-width: 54ch;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 26px 52px;
  margin: 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--dusk);
  color: #fff;
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 40px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.steps strong { font-family: var(--head); font-weight: 700; }

.season__fig { margin: 0; }
.season__fig img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 78%;
  border-radius: 3px;
}

figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 48ch;
}

/* ---------- Photo pair ---------- */

.bench { margin: 0; max-width: 820px; }
.bench img { width: 100%; border-radius: 3px; }

/* ---------- Records / compliance ---------- */

.records {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 24px clamp(32px, 6vw, 88px);
  align-items: start;
}

.records__body p { margin: 0 0 1.1em; max-width: 62ch; }
.records__body p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */

.contact { max-width: 720px; }
.contact p { margin: 1.1rem 0 1.6rem; color: rgba(255, 255, 255, 0.85); max-width: 52ch; }

.contact__mail {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(1.15rem, 3.2vw, 1.7rem);
  letter-spacing: -0.01em;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--amber);
  overflow-wrap: anywhere;
}
.contact__mail:hover { border-bottom-color: #fff; }

/* ---------- Footer ---------- */

.foot { background: var(--dusk); color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
.foot__in {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-block: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

/* ---------- Inner pages ---------- */

.pagehead { background: var(--dusk); color: #fff; }
.pagehead__text {
  width: min(1120px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-block: clamp(36px, 7vw, 84px) clamp(44px, 8vw, 96px);
}
.pagehead h1 {
  font-family: var(--head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  margin: 0;
}
.pagehead p {
  margin: 1.2rem 0 0;
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}
.nav__links a[aria-current="page"] { border-bottom-color: var(--amber); }

.lede { margin: 1.2rem 0 0; max-width: 62ch; font-size: 1.15rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); font-size: 0.9em; }
.note { margin: 1.1em 0 0; max-width: 70ch; color: var(--ink-soft); }
.sources a { text-decoration-color: var(--amber); text-underline-offset: 3px; }

.tablewrap { margin-top: clamp(24px, 4vw, 40px); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table th, .table td {
  text-align: left;
  vertical-align: top;
  padding: 18px 20px 18px 0;
  border-top: 1px solid var(--line);
}
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.table thead th {
  font-family: var(--head);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  border-top: 0;
}
.table tbody th { font-family: var(--head); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.table tbody th .muted { font-weight: 500; font-size: 0.8rem; }

.plain { margin: 0 0 1.1em; padding-left: 1.1em; max-width: 62ch; }
.plain li { margin-bottom: 0.8em; }

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
  .aims__row,
  .season,
  .records { grid-template-columns: 1fr; }

  .season__fig { max-width: 420px; }
  .hero { min-height: 560px; }
}

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