/* Vestland Seafood AS — draft. Dark blue and white, no build step. */

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-600-text.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif Display";
  src: url("../fonts/source-serif-4-600-display.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #071e33;
  --navy-deep: #041421;
  --blue: #1b4f73;
  --mist: #e6eef5;
  --paper: #ffffff;
  --ink: #071e33;
  --muted: #3c5164;
  --line: rgba(7, 30, 51, 0.16);
  --line-light: rgba(255, 255, 255, 0.3);
  --wrap: 1160px;
  --pad: 1.25rem;
  --section: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Liberation Sans", Arial, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

.draft-banner {
  margin: 0;
  padding: 0.45rem 1rem;
  background: #fff;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag {
  display: inline-block;
  margin: 0;
  padding: 0.12rem 0.45rem;
  border: 1px solid currentColor;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.8rem;
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-navy .note {
  color: rgba(255, 255, 255, 0.78);
}

.section-navy a {
  color: inherit;
}

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

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

h2 {
  text-wrap: balance;
}

.nowrap {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--navy);
  color: #fff;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: #fff;
  color: var(--navy);
  padding: 0.5rem 0.8rem;
  z-index: 2;
}

.skip:focus {
  top: 1rem;
}

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

.mast :focus-visible,
.section-navy :focus-visible {
  outline-color: #fff;
}

.wrap {
  width: min(var(--wrap), 100%);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.intro {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.lede {
  max-width: 36rem;
  font-size: 1.15rem;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
.brand,
.footer-name {
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-family: "Source Serif Display", "Source Serif 4", Georgia, serif;
  font-size: clamp(2.35rem, 3.4vw, 3.35rem);
  line-height: 1.16;
  max-width: 16em;
}

h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.15;
}

h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.25;
}

.mast {
  background: var(--navy);
  color: #fff;
}

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

.header-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand lang"
    "nav nav";
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.35rem;
  padding-block: 1rem 0.85rem;
}

.brand {
  grid-area: brand;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.3rem;
  color: #fff;
  text-decoration: none;
}

.lang {
  grid-area: lang;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  justify-self: end;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.lang a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  padding: 0.45rem 0.15rem;
  min-width: 1.8rem;
  text-align: center;
}

.lang a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.lang a:hover {
  color: #fff;
}

.lang-sep {
  color: rgba(255, 255, 255, 0.78);
}

.nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0;
}

.nav a:hover,
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.hero {
  padding-block: 2.75rem 4.25rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 0.35rem;
  width: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 1.15rem;
  border: 1.5px solid #fff;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
}

.button-ghost {
  background: transparent;
  color: #fff;
}

.button:hover {
  background: transparent;
  color: #fff;
}

.button-ghost:hover {
  background: #fff;
  color: var(--navy);
}

.section {
  padding-block: var(--section);
  scroll-margin-top: 1rem;
}

.section-mist {
  background: var(--mist);
}

.section-navy {
  background: var(--navy);
  color: #fff;
}

.section-navy .kicker,
.section-navy h2 {
  color: #fff;
}

.cards {
  display: grid;
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  flex-direction: column;
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.3rem 1.25rem 1.4rem;
}

.photo {
  margin: 0;
}

.plate {
  display: block;
  width: 100%;
  height: auto;
  background: var(--blue);
  border: 1px solid var(--navy);
}

.plate-mat {
  border: 10px solid #fff;
}

figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.mast figcaption {
  color: rgba(255, 255, 255, 0.82);
}

.card figcaption {
  padding: 0.75rem 1.25rem 0;
}

.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.spec-sheet {
  border: 1px solid var(--line);
  padding: 1.25rem 1.25rem 1.25rem;
}

.spec-sheet > p {
  margin-top: 0.85rem;
}

.spec {
  margin-top: 0.35rem;
}

.spec div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.spec div:last-child {
  border-bottom: 1px solid var(--line);
}

.section-navy .spec div {
  border-color: var(--line-light);
}

.spec dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-navy .spec dt {
  color: rgba(255, 255, 255, 0.78);
}

.spec dd {
  margin: 0;
}

.ph {
  color: var(--ink);
  font-weight: 600;
  padding: 0.08em 0.32em;
  background: rgba(7, 30, 51, 0.06);
  border: 1px dashed rgba(7, 30, 51, 0.45);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.mast .ph,
.section-navy .ph {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.65);
}

.site-footer {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-block: 1.75rem 2.25rem;
}

.footer-name {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.2rem;
}

.product-block {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.placeholder-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.grades {
  align-self: stretch;
  width: min(100%, 36rem);
  margin-top: 0;
}

.spec a {
  text-underline-offset: 0.18em;
}

.contact-named {
  gap: 1.35rem;
}

.person {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 100%;
  min-width: 0;
}

.photo-slot {
  flex: 0 0 6.75rem;
  width: 6.75rem;
  height: 8.5rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem;
  border: 1px dashed rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.person-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.person-body h3 {
  margin-bottom: 0.1rem;
}

.person-role {
  color: rgba(255, 255, 255, 0.82);
}

.person-body a {
  overflow-wrap: anywhere;
}

.company-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  max-width: 100%;
}

.company-name {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.contact-list {
  width: 100%;
}

.team-line {
  margin-top: 0.15rem;
}

.team-line a {
  color: var(--navy);
  font-weight: 600;
  text-underline-offset: 0.18em;
}

.page-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding-block: 2.5rem 3rem;
}

.person-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.9rem;
  color: var(--ink);
}

.person-card h3 {
  font-size: 1.2rem;
}

.person-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.portrait {
  flex: 0 0 5.75rem;
  width: 5.75rem;
  height: 7rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border: 1px dashed rgba(7, 30, 51, 0.45);
  background: rgba(7, 30, 51, 0.04);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  hyphens: manual;
}

.role {
  color: var(--muted);
}

.bio {
  width: 100%;
  margin-top: 0.2rem;
}

.bio summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  padding: 0.2rem 0;
}

.bio summary:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.bio p {
  margin-top: 0.45rem;
}

.org {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.org-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.board-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  width: min(100%, 20rem);
  padding: 0.75rem;
  border: 1px solid var(--line);
  background: var(--mist);
}

.board-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.board-card {
  width: 100%;
}

.org-branch {
  margin-left: 0.85rem;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(7, 30, 51, 0.22);
}

.org-branch-side {
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
}

.org-children {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
  margin-left: 0.85rem;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(7, 30, 51, 0.22);
}

.on-board {
  margin-top: 0.5rem;
}

h2.subhead {
  font-size: 1.65rem;
  margin-bottom: 1.15rem;
}

.on-board-list {
  display: grid;
  gap: 1rem;
}

.grades h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.grade-table {
  width: 100%;
  border-collapse: collapse;
}

.grade-table th,
.grade-table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: baseline;
}

.grade-table th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.grade-table td {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.grade-table th:last-child,
.grade-table td:last-child {
  text-align: right;
  padding-left: 1rem;
}

.grade-table th:only-child,
.grade-table td:only-child {
  text-align: left;
  padding-left: 0;
}

.grade-note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 700px) {
  :root {
    --pad: 2rem;
  }

  .actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: auto;
  }

  .button {
    width: auto;
  }

  .spec div {
    grid-template-columns: 10.5rem 1fr;
    gap: 0.75rem 1rem;
    align-items: baseline;
  }

  .card .spec div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .on-board-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

@media (min-width: 900px) {
  :root {
    --section: 6.5rem;
  }

  .hero {
    padding-block: 4rem 5.5rem;
  }

  .header-bar {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav lang";
    column-gap: 1.5rem;
    padding-block: 1.15rem;
  }

  .nav {
    justify-content: flex-end;
    gap: 0.35rem 1.35rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 4rem;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .spec-sheet .spec {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
  }

  .page-head {
    padding-block: 3.25rem 3.75rem;
  }
}

@media (min-width: 1120px) {
  .org-top {
    display: grid;
    grid-template-columns: 38rem auto;
    column-gap: 0;
    row-gap: 0;
    justify-content: center;
    align-items: start;
  }

  .board-box {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    position: relative;
    margin-bottom: 1.5rem;
  }

  .board-box::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1.5rem;
    width: 1px;
    height: 1.5rem;
    background: rgba(7, 30, 51, 0.28);
  }

  .org-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 38rem;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    grid-column: 1;
    grid-row: 2;
  }

  .org-branch-side {
    width: auto;
    margin-left: 2rem;
    padding-left: 2rem;
    border-left: 1px solid var(--line);
    grid-column: 2;
    grid-row: 2;
  }

  .org-node {
    width: 18.5rem;
  }

  .org-children {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    width: 100%;
    margin: 1.5rem 0 0;
    padding: 1.5rem 0 0;
    border-left: 0;
  }

  .org-children::before {
    content: "";
    position: absolute;
    top: -1.5rem;
    left: 50%;
    width: 1px;
    height: 1.5rem;
    background: rgba(7, 30, 51, 0.28);
  }

  .org-branch-side .org-children {
    grid-template-columns: 1fr;
    width: 18.5rem;
  }

  .org-child {
    position: relative;
    min-width: 0;
  }

  .org-child::before {
    content: "";
    position: absolute;
    top: -1.5rem;
    left: 50%;
    width: 1px;
    height: 1.5rem;
    background: rgba(7, 30, 51, 0.28);
  }

  .org-child::after {
    content: "";
    position: absolute;
    top: -1.5rem;
    height: 1px;
    background: rgba(7, 30, 51, 0.28);
  }

  .org-child:first-child::after {
    left: 50%;
    right: calc(-0.625rem);
  }

  .org-child:last-child::after {
    left: calc(-0.625rem);
    right: 50%;
  }

  .org-child:only-child::after {
    content: none;
  }
}
