:root {
  --bg: #fbf6f4;
  --bg-raised: #fffdfb;
  --ink: #1c332c;
  --muted: #5c6d66;
  --line: #eadadf;
  --accent: #b23d66;
  --green: #1f7a5c;
  --green-soft: #e5f3ec;
  --focus: #1c332c;
  --header: 4.5rem;
  --content: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 45% at 100% -8%, rgba(214, 120, 156, 0.28), transparent 58%),
    radial-gradient(ellipse 50% 35% at -10% 110%, rgba(31, 122, 92, 0.12), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: "Schibsted Grotesk", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 0.8rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: var(--header);
  padding: 0.75rem 6vw;
  background: rgba(251, 246, 244, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand,
.nav a,
.text-link,
.contact-links a {
  color: var(--ink);
  text-decoration: none;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  gap: 1.25rem;
}

.nav a,
.text-link,
.contact-links a {
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.text-link:hover,
.contact-links a:hover,
.brand:hover {
  border-bottom-color: var(--green);
}

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

main,
.contact {
  width: min(var(--content), calc(100% - 12vw));
  margin-inline: auto;
}

.hero {
  padding: 5.5rem 0 4rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

h1 {
  max-width: 16ch;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  font-weight: 400;
}

.lede {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.work {
  padding-bottom: 5rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2.5rem;
  align-items: center;
  padding: 1.5rem 0 0;
}

.project h3 {
  margin-bottom: 0.9rem;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 400;
}

.project p {
  margin: 0;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 1.4rem;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.25rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.85rem;
}

.text-link {
  font-weight: 600;
}

.video-slot {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.85rem;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(180deg, rgba(214, 120, 156, 0.16), transparent 46%),
    var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--muted);
  text-align: center;
}

.video-slot p {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.video-slot iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}

.play {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid var(--green);
  border-radius: 50%;
  background: var(--green-soft);
}

.play::before {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: 1.28rem;
  border-style: solid;
  border-width: 0.55rem 0 0.55rem 0.9rem;
  border-color: transparent transparent transparent var(--ink);
}

.contact {
  display: grid;
  gap: 1.5rem;
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--line);
}

.contact h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 400;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-links a {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.domain {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 800px) {
  .site-header {
    align-items: flex-start;
    padding-inline: 1.25rem;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .project {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  main,
  .contact {
    width: min(var(--content), calc(100% - 2.5rem));
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 0.95rem;
  }

  .nav {
    gap: 0.85rem;
  }
}

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