@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/SchibstedGrotesk-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/SchibstedGrotesk-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/SchibstedGrotesk-900.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ground: #f3f0e7;
  --ink: #1a1917;
  --muted: #45423d;
  --rule: #9aa0a6;
  --disc: #153bce;
  --cue: #e74724;
  --contact: #86847f;
  --art-blend: darken;
  --pad: clamp(28px, 4.6vw, 64px);
  font-family: "Schibsted Grotesk", Arial, sans-serif;
  color: var(--ink);
  background: var(--ground);
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #141311;
    --ink: #f3f0e7;
    --muted: #c4c0b6;
    --rule: #6e6a64;
    --disc: #2748dc;
    --cue: #ff5530;
    --contact: #64635e;
    --art-blend: lighten;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--ground);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

.plate {
  position: relative;
  isolation: isolate;
  background: var(--ground);
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  padding: var(--pad);
}

.plate::before {
  content: "";
  position: absolute;
  inset: clamp(10px, 1.4vw, 18px);
  border: 1px solid color-mix(in srgb, var(--rule) 55%, transparent);
  pointer-events: none;
}

.composition {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, min(40%, 24rem)) minmax(0, 1fr);
  grid-template-rows: min-content auto;
  column-gap: clamp(24px, 3vw, 56px);
  max-width: 1600px;
  min-height: calc(100svh - var(--pad) * 2);
  margin-inline: auto;
}

h1,
h2,
p {
  margin: 0;
}

.mast,
.copy {
  position: relative;
  z-index: 2;
}

.mast {
  grid-column: 1 / -1;
}

h1 {
  max-width: 11ch;
  font-weight: 900;
  font-size: clamp(3.5rem, 8.6vw, 7.6rem);
  line-height: 0.84;
  letter-spacing: -0.048em;
  overflow-wrap: anywhere;
}

.copy {
  grid-column: 1;
  min-width: 0;
  margin-top: clamp(3.4rem, 10vh, 7.2rem);
}

.player {
  max-width: 24rem;
}

h2 {
  font-size: clamp(1.45rem, 1.9vw, 1.8rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.026em;
  text-wrap: balance;
}

h2 span {
  display: block;
}

.qualities {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.4;
  text-wrap: balance;
}

.contact {
  margin-top: clamp(1.8rem, 4vh, 2.8rem);
}

.contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--contact);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.014em;
  text-decoration: none;
}

.contact a:hover {
  border-color: var(--cue);
}

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

::selection {
  background: var(--disc);
  color: #f3f0e7;
}

.field {
  position: absolute;
  grid-column: 2;
  grid-row: 1 / 3;
  z-index: 1;
  top: 50%;
  left: 0;
  width: calc(100% + var(--pad) - 20px);
  max-width: min(1120px, calc((100svh - var(--pad) * 2) * 4 / 3));
  transform: translateY(-50%);
  mix-blend-mode: var(--art-blend);
}

.player-media {
  position: relative;
  aspect-ratio: 4 / 3;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent),
    linear-gradient(to bottom, transparent, black 7%, black 93%, transparent);
  mask-composite: intersect;
}

.player-media img,
.player-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-media video {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.player-media.has-frame video {
  opacity: 1;
}

@media (max-width: 639px), (max-width: 1023px) and (orientation: portrait) {
  .composition {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(3, min-content);
  }

  h1 {
    font-size: clamp(3.5rem, calc(2rem + 8vw), 5.6rem);
    max-width: none;
  }

  .copy {
    margin-top: clamp(2.4rem, 7vh, 4rem);
    max-width: 34rem;
  }

  .field {
    position: relative;
    grid-column: 1;
    grid-row: 3;
    top: auto;
    left: auto;
    width: calc(100% + var(--pad) * 2);
    max-width: none;
    margin: clamp(28px, 5vh, 48px) calc(var(--pad) * -1) 0;
    transform: none;
  }
}

@media (max-height: 640px) {
  .copy {
    margin-top: clamp(1.4rem, 4vh, 2.2rem);
  }
}
