@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;
}

/* Metric-matched fallback: Arial resized to Schibsted's proportions, so a slow or blocked font doesn't reflow the page */
@font-face {
  font-family: "Schibsted Grotesk Fallback";
  src: local("Arial"), local("ArialMT");
  font-weight: 400 549;
  size-adjust: 103.6%;
  ascent-override: 94.25%;
  descent-override: 24.88%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Schibsted Grotesk Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 550 900;
  size-adjust: 100.6%;
  ascent-override: 97.07%;
  descent-override: 25.63%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light dark;

  /* White cube (light): near-neutral walls and ink so the ultramarine (#12219d) field is the only colour */
  --wall: oklch(98.4% 0.003 267);
  --label: oklch(100% 0 0);
  --ink: oklch(19% 0.02 267);
  --ink-2: oklch(44% 0.016 267);
  --line: oklch(89.5% 0.006 267);
  --feature: oklch(35% 0.195 267);
  --feature-ink: oklch(98.5% 0.006 267);
  --feature-ink-2: oklch(85% 0.065 267);
  --feature-line: oklch(64% 0.13 267);
  --accent: oklch(35% 0.195 267);
  --select-bg: var(--accent);
  --select-ink: var(--feature-ink);
  --sh-a: oklch(19% 0.02 267 / 0.1);
  --sh-b: oklch(19% 0.03 267 / 0.26);
  --sh-c: oklch(19% 0.02 267 / 0.16);

  --font: "Schibsted Grotesk", "Schibsted Grotesk Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Type roles (DESIGN.md typography); measures are in em so they hold whichever face is active */
  --text-body: 1.0625rem;
  --text-meta: 0.95rem;
  --text-title: 1.3rem;
  --text-subhead: clamp(1.4rem, 2.8vw, 2.1rem);
  --text-headline: clamp(1.9rem, 3.6vw, 2.75rem);
  --measure: 34em;
}

@media (prefers-color-scheme: dark) {
  :root {
    --wall: oklch(16.5% 0.01 267);
    --label: oklch(21.5% 0.012 267);
    --ink: oklch(95% 0.006 267);
    --ink-2: oklch(77% 0.015 267);
    --line: oklch(31% 0.014 267);
    --feature: oklch(33% 0.185 267);
    --feature-ink: oklch(97% 0.008 267);
    --feature-ink-2: oklch(84% 0.06 267);
    --feature-line: oklch(61% 0.13 267);
    --accent: oklch(74% 0.13 270);
    --select-ink: var(--wall);
    --sh-a: oklch(6% 0.01 267 / 0.45);
    --sh-b: oklch(6% 0.015 267 / 0.6);
    --sh-c: oklch(100% 0 0 / 0.14);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

/* Light text on a dark wall reads thinner: a touch more weight, tracking and leading */
@media (prefers-color-scheme: dark) {
  body {
    font-weight: 425;
    letter-spacing: 0.005em;
    line-height: 1.65;
  }
}

strong {
  font-weight: 600;
}

p,
li,
dd {
  text-wrap: pretty;
}

.nw {
  white-space: nowrap;
}

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

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

ul,
ol {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--select-bg);
  color: var(--select-ink);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in oklch, var(--accent) 55%, transparent);
  transition: text-decoration-color 0.2s var(--ease);
}

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

.feature a {
  text-decoration-color: color-mix(in oklch, currentColor 45%, transparent);
}

.feature a:hover {
  text-decoration-color: currentColor;
}

/* The hero label is a wall surface inside the field: it keeps wall links, focus and selection */
.feature .label a {
  text-decoration-color: color-mix(in oklch, var(--accent) 55%, transparent);
}

.feature .label a:hover {
  text-decoration-color: var(--accent);
}

.feature ::selection {
  background: var(--feature-ink);
  color: var(--feature);
}

.feature .label ::selection {
  background: var(--select-bg);
  color: var(--select-ink);
}

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

.wrap {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--wall);
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* Top bar */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--wall);
  border-bottom: 1px solid var(--line);
}

.bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 3.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* Brand mark: a framed monochrome, the same square as the favicon */
.brand::before {
  content: "";
  flex: none;
  width: 0.85rem;
  height: 0.85rem;
  background: var(--feature);
  box-shadow: inset 0 0 0 0.17rem var(--feature), inset 0 0 0 calc(0.17rem + 1.5px) var(--feature-ink);
}

.dot::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
}

.bar nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-size: var(--text-meta);
}

.bar nav a:not(.btn) {
  text-decoration: none;
  color: var(--ink-2);
}

.bar nav a:not(.btn):hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 44rem) {
  .bar nav a:not(.btn) {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.125rem;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn svg {
  flex: none;
  width: 1.05em;
  height: 1.05em;
}

.btn-primary {
  background: var(--feature-ink);
  color: var(--feature);
}

.btn-primary:hover {
  background: var(--feature-ink-2);
}

.btn-ghost {
  border-color: var(--feature-line);
  color: var(--feature-ink);
}

.btn-ghost:hover {
  border-color: var(--feature-ink);
}

/* The sticky CV button is a chip of the field, so the brand stays on screen after the hero */
.bar .btn {
  padding: 0.5rem 0.9rem;
  font-size: var(--text-meta);
  background: var(--feature);
  color: var(--feature-ink);
}

.bar .btn:hover {
  background: var(--ink);
  color: var(--wall);
}

/* Feature field (hero and footer): one flat ultramarine monochrome, no wash */
.feature {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--feature);
  color: var(--feature-ink);
}

.feature a:focus-visible {
  outline-color: var(--feature-ink);
}

.feature .label a:focus-visible {
  outline-color: var(--accent);
}

.hero {
  --hero-top: clamp(3rem, 7vw, 5.5rem);
  padding-block: var(--hero-top) clamp(3rem, 6vw, 5rem);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
}

.hero .intro {
  align-self: end;
}

h1 {
  font-size: clamp(3.4rem, 9.5vw, 6rem);
  font-weight: 650;
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* The tagline: the exhibition's title, one headline step under the name */
.tagline {
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  max-width: 13em;
  font-size: var(--text-headline);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* Its method, read as one line; each interpunct trails its step (so a wrap never starts with one) and screen readers skip it */
.method {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  font-weight: 550;
  color: var(--feature-ink-2);
}

.method li:not(:last-child)::after {
  content: "·";
  content: "·" / "";
  margin-inline: 0.55em;
}

/* The positioning line captions the capability index it introduces; light on the field, so a touch more weight and tracking like the footer links */
.positioning {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 30em;
  font-size: var(--text-meta);
  font-weight: 425;
  letter-spacing: 0.005em;
  color: var(--feature-ink-2);
  text-wrap: balance;
}

/* Capability index: the current role's six lead-ins, each linked to its evidence in Experience */
.caps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 0.5rem 2.25rem;
  margin-top: 0.75rem;
  font-weight: 550;
}

/* The roles she is open to, said plainly in the index role (body size at 550) just above the actions */
.seeking {
  margin-top: 1.5rem;
  font-weight: 550;
  text-wrap: balance;
}

.seeking + .actions {
  margin-top: 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

/* Where I've worked: employer logos flattened to one pale ink so no brand colour competes with the ultramarine */
.history {
  grid-column: 1 / -1;
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--feature-line);
}

.history-label {
  margin-bottom: 1.25rem;
  font-size: var(--text-meta);
  font-weight: 550;
  color: var(--feature-ink-2);
}

.employers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem clamp(2rem, 5vw, 3.5rem);
}

.employers img {
  display: block;
  height: calc(var(--h) * 1rem);
  width: calc(var(--w) * 1rem);
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

/* Hero detail: a crop of one work, hung from the top bar (the picture rail) on two cables */
.detail {
  --cable: var(--hero-top);
  --wire: var(--feature-ink-2);
  align-self: start;
  display: grid;
  gap: 1rem;
  color: inherit;
  text-decoration: none;
}

.detail .frame img {
  aspect-ratio: 4 / 3.1;
  object-fit: cover;
  object-position: 0 0;
}

.detail .label {
  padding: 1rem 1.25rem;
}

.detail .label .name {
  font-size: var(--text-body);
}

.detail:hover .name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--accent);
}

.detail:focus-visible {
  outline-offset: 6px;
}

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

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

  /* Selected Work follows the hero directly, so small screens skip the duplicate detail */
  .detail {
    display: none;
  }
}

/* Wall label: a sharp-cut museum label mounted flush; only the framed works cast real shadows */
.label {
  background: var(--label);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: 0 1px 2px var(--sh-a);
}

.label h3,
.label .name {
  font-size: var(--text-title);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.label .meta {
  color: var(--ink-2);
  font-size: var(--text-meta);
  text-wrap: balance;
}

/* Museum label grammar: catalogue number, title, medium, text, credit line */
.label .cat {
  margin-right: 0.35em;
  font-weight: 450;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.label .medium {
  color: var(--ink-2);
  font-size: var(--text-meta);
  text-wrap: balance;
}

.label .credit {
  font-size: var(--text-meta);
  font-weight: 550;
}

.arrow {
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.3em;
  vertical-align: -0.05em;
}

/* Sections */
.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section:last-of-type {
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

h2 {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  font-size: var(--text-headline);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* About */
.lead {
  max-width: 33em;
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  line-height: 1.55;
}

.pull {
  margin-top: clamp(2rem, 4vw, 3.25rem);
  max-width: 13.45em;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--accent);
  text-wrap: balance;
}

/* Where I fit: the two kinds of role she is after, each with its evidence as hairline rows */
.fit-label {
  margin-top: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 1.25rem;
  font-size: var(--text-meta);
  font-weight: 550;
  color: var(--ink-2);
}

.fit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}

.fit > div + div {
  padding-left: 2.5rem;
  border-left: 1px solid var(--line);
}

.fit h3 {
  margin-bottom: 1rem;
  font-size: var(--text-title);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.fit ul {
  border-top: 1px solid var(--line);
}

.fit li {
  padding-block: 0.65rem;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 56rem) {
  .fit {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .fit > div + div {
    padding-left: 0;
    padding-top: 2rem;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* Selected Work: framed works hung from a picture rail */
.hang {
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
}

.work {
  position: relative;
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: end;
  padding-top: 2.75rem;
}

.work::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--line);
}

.work.portrait {
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
}

.frame {
  position: relative;
  width: 100%;
  padding: clamp(0.65rem, 1.6vw, 1.15rem);
  background: var(--label);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px var(--sh-a), 0 22px 44px -18px var(--sh-b);
}

/* Two hanging cables from the rail, each ending in a square clip on the frame */
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  bottom: 100%;
  width: 5px;
  height: calc(var(--cable, 2.75rem) + 3px);
  background:
    linear-gradient(var(--wire, var(--ink-2)), var(--wire, var(--ink-2))) center top / 1px 100% no-repeat,
    linear-gradient(var(--wire, var(--ink-2)), var(--wire, var(--ink-2))) center bottom / 5px 5px no-repeat;
  translate: 0 3px;
}

.frame::before {
  left: 14%;
}

.frame::after {
  right: 14%;
}

.frame img {
  width: 100%;
  outline: 1px solid var(--sh-c);
}

/* A work with several images shares one mat: an opening each, all the same height, stacked on phones */
.frame.pair {
  display: grid;
  grid-template-columns: var(--cols);
  gap: clamp(0.65rem, 1.6vw, 1.15rem);
  align-items: start;
}

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

.frame-link {
  display: block;
  color: inherit;
}

.frame-link:hover .frame {
  border-color: var(--ink-2);
}

.work.portrait .frame-link,
.work.portrait .frame {
  max-width: 34rem;
}

.work.wide {
  grid-template-columns: minmax(0, 1fr);
}

.work.wide .label {
  max-width: 40rem;
}

.work .label .medium {
  margin-top: 0.3rem;
}

.work .label p:not(.medium) {
  margin-top: 0.9rem;
}

.works-list {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.works-list li {
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.45;
}

.works-intro {
  margin-top: 0.9rem;
  text-wrap: balance;
}

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

/* Lights on: only the artwork dims and its cast shadow fades; the white mat never greys */
@keyframes lights {
  from {
    filter: brightness(0.5) saturate(0.4);
  }
  to {
    filter: none;
  }
}

@keyframes cast {
  from {
    box-shadow: 0 1px 2px var(--sh-a), 0 22px 44px -18px transparent;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .detail .frame img {
    animation: lights 1.8s var(--ease) 0.25s both;
  }

  .detail .frame {
    animation: cast 1.8s var(--ease) 0.25s both;
  }

  @supports (animation-timeline: view()) {
    .hang .frame,
    .hang .frame img {
      animation: lights linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 35%;
    }

    .hang .frame {
      animation-name: cast;
    }
  }
}

/* Experience */
.roles {
  border-bottom: 1px solid var(--line);
}

.job {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 0.75rem clamp(1.5rem, 4vw, 3rem);
  align-items: baseline;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line);
}

.job-meta {
  color: var(--ink-2);
  font-size: var(--text-meta);
  line-height: 1.5;
}

.job-meta .dates {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}

.job-logo {
  margin-top: 1rem;
}

/* The same one-colour marks as the hero, in ink at low contrast beside each role */
.job-logo img {
  display: block;
  height: calc(var(--h) * 0.95rem);
  width: calc(var(--w) * 0.95rem);
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.55;
}

@media (prefers-color-scheme: dark) {
  .job-logo img {
    filter: brightness(0) invert(1);
    opacity: 0.7;
  }
}

.job h3 {
  font-size: var(--text-title);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.job h3 .title {
  font-weight: 450;
  color: var(--ink-2);
}

/* A plain-language line on what the organisation is, for readers who don't know it */
.job .org-about {
  margin-top: 0.25rem;
  color: var(--ink-2);
  font-size: var(--text-meta);
}

.job.current h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.8rem);
}

.job ul {
  margin-top: 0.9rem;
  max-width: var(--measure);
  border-top: 1px solid var(--line);
}

/* Hairline rows like the workshop lists: no markers, the bold lead-in opens each row */
.job li {
  padding-block: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.job li:target > strong:first-child {
  color: var(--accent);
}

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

/* Skills */
.skills > div {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 0.35rem 2rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--line);
}

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

.skills dt {
  font-weight: 650;
}

.skills dd {
  max-width: var(--measure);
  color: var(--ink-2);
}

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

/* Education, certifications, languages */
.credentials {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 2.5rem;
}

.credentials > div + div {
  padding-left: 2.5rem;
  border-left: 1px solid var(--line);
}

.credentials h3 {
  margin-bottom: 1rem;
  font-size: var(--text-title);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.credentials li + li {
  margin-top: 0.9rem;
}

.credentials .sub {
  display: block;
  color: var(--ink-2);
  font-size: var(--text-meta);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 56rem) {
  .credentials {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .credentials > div + div {
    padding-left: 0;
    padding-top: 2rem;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* Footer */
.foot {
  padding-block: clamp(3.5rem, 8vw, 6rem) 2.5rem;
}

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

/* The roles she is open to lead the contact link as its reason: a secondary line, periwinkle on the field */
.foot .seeking {
  margin: 0 0 1.25rem;
  color: var(--feature-ink-2);
}

/* The contact link sits one step under the "Get in touch" headline at every width */
.foot .contact-link {
  display: inline-block;
  font-size: var(--text-subhead);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.foot .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--feature-line);
  color: var(--feature-ink-2);
  font-weight: 425;
  letter-spacing: 0.005em;
}

.foot .links a {
  color: var(--feature-ink);
}

.foot .actions {
  margin-top: 2rem;
}

@media print {
  .bar,
  .skip {
    display: none;
  }
}
