:root {
  --paper: #f2f0f3;
  --ink: #1d1a21;
  --muted: #66616d;
  --line: #d8d3dc;
  --magenta: #c2185b;
  --stage: #221a26;
  --stage-ink: #f2ecf3;
  --stage-muted: #b3a8b8;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

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

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

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

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

figure {
  margin: 0;
}

a {
  color: inherit;
}

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1,
h2,
h3 {
  margin: 0;
}

h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 0.95;
  letter-spacing: -0.005em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin: 0;
}

/* Inline link rows */

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
  font-weight: 500;
}

.links a,
.intro a {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: text-decoration-color 150ms ease;
}

.links a:hover,
.intro a:hover {
  text-decoration-color: var(--magenta);
}

/* Header */

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px;
}

.top-name {
  font-weight: 700;
  text-decoration: none;
}

.top nav {
  display: flex;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
}

.top nav a {
  text-decoration: none;
}

.top nav a:hover {
  color: var(--ink);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-top: clamp(32px, 6vw, 80px);
  padding-bottom: clamp(72px, 10vw, 128px);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: -0.005em;
}

.intro {
  max-width: 34ch;
  margin-top: 24px;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.intro-small {
  max-width: 50ch;
  margin-top: 18px;
  color: var(--muted);
}

.hero-photo img {
  width: clamp(180px, 20vw, 260px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 42% 50%;
  border-radius: 6px;
}

/* Now */

.now {
  padding-bottom: clamp(80px, 11vw, 150px);
}

.now-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 96px);
  margin-top: 40px;
  padding-top: 40px;
  border-top: 2px solid var(--ink);
}

.venture-icon {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 15px;
}

.xylo-mark {
  padding: 12px 8px;
  background: #fff;
  border-radius: 15px;
}

.venture h3 {
  margin-top: 24px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1;
}

.venture-role {
  margin-top: 6px;
  margin-bottom: 18px;
  color: var(--muted);
}

.venture > p:not(.venture-role):not(.links) {
  max-width: 46ch;
}

/* Work */

.work {
  padding-bottom: clamp(96px, 12vw, 160px);
}

.work-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}

.work-head h2 {
  max-width: 11ch;
}

.work-head p {
  max-width: 46ch;
  color: var(--muted);
}

.timeline {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.timeline li {
  display: grid;
  grid-template-columns: minmax(110px, 0.6fr) minmax(0, 2fr);
  gap: 24px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}

.timeline .years {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.timeline li > div {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  grid-template-rows: auto 1fr;
  gap: 4px 32px;
}

.timeline .role {
  grid-column: 1;
  color: var(--muted);
}

.timeline li > div > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 52ch;
}

.work-links {
  margin-top: 32px;
}

/* Music, the page goes dark like the room before a set */

.music {
  background: var(--stage);
  color: var(--stage-ink);
  padding-bottom: clamp(64px, 9vw, 120px);
}

.music-wide img {
  width: 100%;
  height: clamp(320px, 62vw, 780px);
  object-fit: cover;
  object-position: 50% 40%;
}

.music-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
  margin-top: clamp(-160px, -9vw, -64px);
  position: relative;
}

.music-text {
  padding-top: clamp(96px, 11vw, 190px);
}

.music-text h2 {
  font-size: clamp(2.5rem, 4.6vw, 3.75rem);
  line-height: 0.92;
}

.music-text p:not(.links) {
  margin-top: 22px;
  max-width: 44ch;
  color: var(--stage-muted);
}

.music-text p:first-of-type {
  margin-top: 28px;
  color: var(--stage-ink);
  font-size: 1.2rem;
}

.music cite {
  font-style: italic;
}

.video-poster,
.video iframe {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
  background: #000;
  cursor: pointer;
}

.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 200ms ease;
}

.video-poster:hover img {
  opacity: 0.82;
}

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: var(--magenta);
  transition: transform 200ms ease;
}

.play::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 27px;
  border-style: solid;
  border-width: 15px 0 15px 24px;
  border-color: transparent transparent transparent #fff;
}

.video-poster:hover .play {
  transform: scale(1.06);
}

.video figcaption {
  margin-top: 14px;
  color: var(--stage-muted);
}

.music-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  margin-top: clamp(56px, 8vw, 104px);
}

.music-pair img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
}

/* Footer */

.foot {
  padding-top: clamp(80px, 10vw, 136px);
  padding-bottom: 64px;
}

.foot-line {
  padding-top: 48px;
  border-top: 2px solid var(--ink);
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.5rem, 4.6vw, 3.75rem);
  line-height: 0.92;
}

/* Small screens */

@media (max-width: 860px) {
  .hero,
  .now-grid,
  .work-head,
  .music-body {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    order: -1;
  }

  .hero-photo img {
    width: 120px;
    aspect-ratio: 1;
    object-position: 45% 25%;
  }

  .timeline li,
  .timeline li > div {
    grid-template-columns: 1fr;
  }

  .timeline li {
    gap: 8px;
  }

  .timeline li > div > p:last-child {
    grid-column: 1;
    grid-row: auto;
    margin-top: 8px;
  }

  .music-body {
    margin-top: 0;
  }

  .music-text {
    padding-top: 56px;
  }

  .top nav a[href="#now"] {
    display: none;
  }
}

@media (max-width: 520px) {
  .music-pair {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
  }
}
