@font-face {
  font-family: "Hanken Grotesk";
  src: url("/legal-landing/fonts/hanken-grotesk-latin-wght-normal.woff2")
    format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/legal-landing/fonts/source-serif-4-latin-wght-normal.woff2")
    format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/legal-landing/fonts/source-serif-4-latin-wght-italic.woff2")
    format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f7f7f4;
  --ink: #10262a;
  --ink-soft: #52625f;
  --sea: #1d5257;
  --rule: #d6dbd8;
  --night-text: #e8eeec;
  --night-soft: #9fb2b0;

  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --gutter: clamp(20px, 4.2vw, 64px);
  --max: 1360px;
  --section: clamp(96px, 12vw, 184px);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

figure {
  margin: 0;
}

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

h1,
h2 {
  font-weight: 400;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Header */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark b {
  font-weight: 650;
}

.wordmark .mark {
  width: 28px;
  height: 28px;
  margin-right: 2px;
}

.lang {
  display: flex;
  gap: 10px;
  padding-left: clamp(8px, 1.2vw, 16px);
  font-size: 14px;
  font-weight: 500;
}

.lang a {
  text-decoration: none;
  opacity: 0.62;
}

.lang a:hover {
  opacity: 1;
}

.lang a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  font-size: 16px;
}

.nav-link {
  text-decoration: none;
}

.nav-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Buttons and links */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 3px;
  font-size: 16px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease;
}

.button-ink {
  background: var(--ink);
  color: var(--paper);
}

.button-ink:hover {
  background: var(--sea);
}

.button-paper {
  background: var(--paper);
  color: var(--ink);
}

.button-paper:hover {
  background: #ffffff;
}

.text-link,
.hero-link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(100vh, 1040px);
  min-height: min(100svh, 1040px);
  overflow: hidden;
  background: #9fb9c4;
}

.hero-figure {
  position: absolute;
  inset: 0;
}

.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 30, 38, 0.5) 0%,
    rgba(8, 30, 38, 0.32) 34%,
    rgba(8, 30, 38, 0) 62%
  );
  pointer-events: none;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  animation: settle 2400ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-figure figcaption,
.closing-figure figcaption,
.residency-figure figcaption {
  font-size: 13px;
  letter-spacing: 0.01em;
}

.hero-figure figcaption {
  position: absolute;
  right: var(--gutter);
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-figure .partner-logo {
  width: clamp(120px, 11vw, 168px);
  height: auto;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  padding: 0 var(--gutter) clamp(56px, 8vh, 96px);
  color: #ffffff;
  animation: rise 900ms 200ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero h1 {
  font-size: clamp(52px, 6.2vw, 96px);
  line-height: 0.98;
}

.hero-lede {
  max-width: 27em;
  margin-top: 28px;
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin-top: 36px;
}

.hero-link {
  color: #ffffff;
}

.hero :focus-visible {
  outline-color: #ffffff;
}

@keyframes settle {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Work */

.work {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 64px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: var(--section) var(--gutter);
}

.work-copy {
  grid-column: 1 / span 5;
}

.work h2,
.residency h2,
.access h2 {
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: 1.02;
}

.work-copy > p {
  max-width: 30em;
  margin-top: 28px;
  color: var(--ink-soft);
}

.uses {
  display: grid;
  gap: 26px;
  margin-top: 44px;
}

.uses dt {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.uses dd {
  max-width: 30em;
  margin-top: 4px;
  color: var(--ink-soft);
}

.note {
  grid-column: 7 / span 6;
  align-self: start;
  padding-top: 10px;
}

.note-question {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ink);
}

.note-question::before {
  content: "« ";
}

.note-question::after {
  content: " »";
}

.note-question:lang(en)::before {
  content: "“";
}

.note-question:lang(en)::after {
  content: "”";
}

.note-answer {
  padding-top: 28px;
  font-family: var(--serif);
  font-size: clamp(19px, 1.45vw, 21px);
  line-height: 1.7;
}

.note-answer sup {
  font-family: var(--sans);
  font-size: 0.62em;
  font-weight: 600;
  line-height: 0;
  color: var(--sea);
  margin-left: 1px;
}

.note-sources {
  position: relative;
  margin-top: 36px;
  padding: 22px 0 0 0;
  list-style: none;
  counter-reset: source;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.note-sources::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 88px;
  border-top: 1px solid var(--ink-soft);
}

.note-sources li {
  counter-increment: source;
  padding-left: 22px;
  text-indent: -22px;
}

.note-sources li::before {
  content: counter(source);
  display: inline-block;
  width: 22px;
  text-indent: 0;
  font-weight: 600;
  color: var(--sea);
}

.note figcaption {
  margin-top: 40px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* Residency */

.residency {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: center;
  padding: var(--section) var(--gutter);
  background: var(--ink);
  color: var(--night-text);
}

.residency-figure {
  grid-column: 1 / span 5;
}

.residency-figure img {
  width: 100%;
}

.residency-figure figcaption {
  margin-top: 14px;
  color: var(--night-soft);
}

.residency-copy {
  grid-column: 7 / span 5;
}

.residency-copy > p {
  max-width: 28em;
  margin-top: 28px;
  color: var(--night-soft);
  font-size: 19px;
}

.residency :focus-visible {
  outline-color: var(--night-text);
}

.facts {
  display: grid;
  gap: 28px;
  margin-top: 56px;
}

.facts dt {
  font-size: 14px;
  color: var(--night-soft);
}

.facts dd {
  margin-top: 4px;
  font-size: clamp(22px, 1.9vw, 27px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #ffffff;
}

/* Early access */

.access {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 40px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: var(--section) var(--gutter);
}

.access-intro {
  grid-column: 1 / span 5;
}

.access-intro p {
  max-width: 26em;
  margin-top: 28px;
  color: var(--ink-soft);
}

.access-request {
  grid-column: 7 / span 6;
}

.access-lead {
  max-width: 20em;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.access-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin-top: 44px;
}

/* Closing image */

.closing-figure img {
  width: 100%;
  height: clamp(340px, 58vw, 860px);
  object-fit: cover;
  object-position: 50% 45%;
}

.closing-figure figcaption {
  padding: 14px var(--gutter) 0;
  color: var(--ink-soft);
}

/* Footer */

.site-footer {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 28px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(72px, 8vw, 112px) var(--gutter) 40px;
  font-size: 15px;
  color: var(--ink-soft);
}

.footer-brand {
  grid-column: 1 / span 5;
}

.footer-brand .wordmark {
  color: var(--ink);
}

.footer-brand p {
  margin-top: 8px;
}

.footer-nav {
  grid-column: 7 / span 6;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}

.footer-nav a {
  text-decoration: none;
  color: var(--ink);
}

.footer-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-credits {
  grid-column: 1 / span 6;
  margin-top: 48px;
  font-size: 13px;
}

.footer-legal {
  grid-column: 7 / span 6;
  margin-top: 48px;
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}

/* Tablet */

@media (max-width: 980px) {
  .work-copy,
  .note,
  .access-intro,
  .access-request {
    grid-column: 1 / -1;
  }

  .note {
    max-width: 640px;
  }

  .residency-figure {
    grid-column: 1 / span 6;
  }

  .residency-copy {
    grid-column: 7 / span 6;
  }
}

/* Mobile: text sits on paper above the image */

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .site-header {
    position: static;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .site-nav .nav-link:first-child,
  .site-nav .button {
    display: none;
  }

  .hero-figure .partner-logo {
    width: 112px;
  }

  .hero {
    display: block;
    min-height: 0;
    overflow: visible;
    background: none;
  }

  .hero-copy {
    padding: 36px var(--gutter) 40px;
    color: var(--ink);
  }

  .hero h1 {
    font-size: clamp(38px, 10.6vw, 60px);
  }

  .hero-figure::after {
    content: none;
  }

  .hero-lede {
    color: var(--ink-soft);
    font-size: 18px;
  }

  .hero-link {
    color: var(--ink);
  }

  .hero :focus-visible {
    outline-color: var(--sea);
  }

  .button-paper {
    background: var(--ink);
    color: var(--paper);
  }

  .hero-figure {
    position: relative;
  }

  .hero-figure img {
    height: auto;
    aspect-ratio: 4 / 5;
    object-position: 30% 50%;
  }

  .residency-figure,
  .residency-copy {
    grid-column: 1 / -1;
  }

  .residency-copy {
    margin-top: 56px;
  }

  .footer-brand,
  .footer-nav,
  .footer-credits,
  .footer-legal {
    grid-column: 1 / -1;
  }

  .footer-credits {
    margin-top: 24px;
  }

  .footer-legal {
    margin-top: 0;
  }
}

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

  .hero-figure img,
  .hero-copy {
    animation: none;
  }
}
