/*
 * Direction: a deep-water band holds the intro, and its lower edge is a
 * wave; below it, a quiet two-column CV in cool sea-ink tones. One typeface
 * (Schibsted Grotesk, variable). The wave is the one memorable element, a
 * nod to the shark naming across the projects; everything else stays plain:
 * no cards, no shadows, no labels.
 */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f8f9;
  --ink: #14212b;
  --muted: #55636f;
  --rule: #d3dce1;
  --accent: #0a6b75;
  --focus: #0a6b75;
  --band: #0f2b3d;
  --band-ink: #eef4f6;
  --band-muted: #a9c0cc;
  --band-accent: #7fd3d9;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d151c;
    --ink: #e4ebee;
    --muted: #9aa8b3;
    --rule: #22313c;
    --accent: #5ec3ca;
    --focus: #5ec3ca;
    --band: #06263a;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #0d151c;
  --ink: #e4ebee;
  --muted: #9aa8b3;
  --rule: #22313c;
  --accent: #5ec3ca;
  --focus: #5ec3ca;
  --band: #06263a;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  font-kerning: normal;
  overflow-wrap: break-word;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Intro: the deep-water band */

.intro {
  padding-top: clamp(3.5rem, 8vw, 6rem);
  background: var(--band);
  color: var(--band-ink);
}

.intro h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.035em;
}

.handle {
  margin: 0 0 1.5rem;
  color: var(--band-muted);
}

.lead {
  max-width: 40rem;
  margin: 0;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.5;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-weight: 550;
}

.intro a {
  color: var(--band-accent);
}

.intro a:focus-visible {
  outline-color: var(--band-accent);
}

.edge {
  display: block;
  width: 100%;
  height: clamp(2rem, 5vw, 3.5rem);
  margin-top: 3rem;
}

.edge path {
  fill: var(--paper);
}

/* Sections: heading in a narrow left column, content on the right */

main {
  padding-top: 3rem;
}

.block {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 0 2.5rem;
  padding: 0 0 2.5rem;
}

.block h2 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.6;
}

.body {
  max-width: 40rem;
}

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

.body p {
  margin: 0 0 1rem;
}

.body h3 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.body h3 a {
  color: inherit;
  text-decoration: none;
}

.body h3 a:hover {
  color: var(--accent);
}

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

.role strong {
  color: var(--ink);
  font-weight: 650;
}

.projects {
  margin: 1.25rem 0 1.25rem;
  padding: 0;
  list-style: none;
}

.projects li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule);
}

.projects li:last-child {
  border-bottom: 1px solid var(--rule);
}

.projects a {
  font-weight: 600;
}

.projects span {
  display: block;
  color: var(--muted);
  font-size: 0.9688rem;
  line-height: 1.5;
}

.more {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-weight: 550;
}

/* Footer */

.foot {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}

.foot p {
  margin: 0;
}

@media (max-width: 44rem) {
  .block {
    grid-template-columns: minmax(0, 1fr);
  }

  .block h2 {
    margin-bottom: 1rem;
  }
}
