@font-face {
  font-family: "Schibsted";
  src: url("assets-schibsted.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets-barlow-condensed-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets-barlow-condensed-extrabold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: oklch(0.075 0 0);
  --ink: oklch(0.96 0 0);
  --soft: oklch(0.68 0 0);
  --flare: oklch(0.7 0.17 49);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: "Schibsted", Arial, sans-serif;
}

.poster {
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.25rem, 3.1vw, 3rem);
  background:
    linear-gradient(108deg, oklch(0.08 0 0) 0 38%, oklch(0.06 0 0 / .85) 63%, oklch(0.06 0 0 / .32) 100%),
    var(--night);
}

.portrait {
  position: absolute;
  z-index: -1;
  width: min(61vw, 920px);
  height: 100%;
  top: 0;
  right: 0;
  overflow: hidden;
  background: var(--night);
  clip-path: polygon(17% 0, 100% 0, 100% 100%, 0 100%, 7% 53%);
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--night) 0%, oklch(0.075 0 0 / .7) 21%, oklch(0.075 0 0 / .2) 56%, transparent 87%), linear-gradient(0deg, oklch(0.075 0 0 / .38), transparent 42%);
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 43%;
  filter: grayscale(1) contrast(1.12) brightness(.78);
  transform: scale(1);
}

.masthead {
  align-self: start;
  display: flex;
  align-items: baseline;
  gap: .55rem;
  font-size: clamp(.85rem, 1.1vw, 1.15rem);
  font-weight: 760;
  letter-spacing: -.055em;
  line-height: 1;
}

.masthead span:first-child {
  color: var(--flare);
  font-size: 1.25em;
}

.identity {
  align-self: center;
  margin-top: clamp(1rem, 5vh, 4rem);
  pointer-events: none;
}

h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  width: min-content;
  color: var(--ink);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(7.2rem, 14.8vw, 15rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: .69;
  text-transform: uppercase;
  white-space: nowrap;
}

h1 span {
  display: block;
}

h1 span + span {
  margin-top: .11em;
}

.contact {
  position: relative;
  justify-self: start;
  align-self: end;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  background: var(--flare);
  border-radius: .2rem;
  color: var(--night);
}

.contact a {
  padding: .95rem 1.15rem;
  color: inherit;
  font-size: clamp(.9rem, 1.2vw, 1.05rem);
  font-weight: 760;
  letter-spacing: -.035em;
  line-height: 1;
  text-decoration: none;
}

.contact a + a { border-left: 1px solid oklch(0.08 0 0 / .38); }
.contact a:hover { background: oklch(0.78 .16 58); }
.contact a:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; }

@media (max-width: 700px) {
  .poster {
    min-height: 100svh;
    padding: 1.25rem;
    background: var(--night);
  }

  .portrait {
    width: 100%;
    height: 55%;
    top: 32%;
    right: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 14% 100%);
  }

  .portrait::after {
    background: linear-gradient(180deg, var(--night) 0%, transparent 25%, oklch(0.075 0 0 / .2) 100%), linear-gradient(90deg, oklch(0.075 0 0 / .22), transparent 54%);
  }

  .portrait img {
    object-fit: contain;
    object-position: center center;
    filter: grayscale(1) contrast(1.18) brightness(.94);
  }

  .masthead { font-size: .9rem; }

  .identity {
    align-self: start;
    margin-top: clamp(4rem, 9vh, 5.25rem);
  }

  h1 {
    font-size: clamp(4.35rem, 19.2vw, 5.15rem);
    line-height: .7;
    letter-spacing: -.025em;
  }

  .contact { width: max-content; max-width: 100%; }
  .contact a { min-height: 44px; padding: .9rem; font-size: max(.94rem, 15px); }
}

@media (max-width: 390px) {
  .contact a { font-size: 15px; }
}

@media (max-width: 700px) and (max-height: 640px) and (orientation: portrait) {
  .portrait {
    height: 49%;
    top: 44%;
  }
}

@media (max-width: 700px) and (orientation: landscape) {
  .poster { padding: 1rem 1.25rem; }

  .portrait {
    width: min(47vw, 400px);
    height: 100%;
    top: 0;
    right: 0;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%, 7% 52%);
  }

  .portrait img { object-fit: cover; }

  .identity {
    margin-top: clamp(2rem, 6vh, 3rem);
  }

  h1 {
    font-size: clamp(3.75rem, 10vw, 5rem);
    line-height: .69;
  }
}

@media (min-width: 701px) and (max-width: 1024px) {
  .portrait {
    width: min(56vw, 580px);
    height: auto;
    aspect-ratio: 1;
    top: 50%;
    translate: 0 -50%;
  }

  .portrait img {
    object-fit: contain;
    object-position: center center;
    filter: grayscale(1) contrast(1.16) brightness(.88);
  }

  .identity { margin-top: 0; }
}

@media (min-width: 701px) and (max-width: 1024px) and (max-height: 500px) and (orientation: landscape) {
  .portrait {
    width: min(47vw, 400px);
    height: min(88svh, 400px);
    aspect-ratio: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
