@font-face {
  font-family: Inter;
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --yellow: #ffd755;
  --pad: clamp(24px, 5.2vw, 160px);
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  background: #000;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: var(--pad) var(--pad) clamp(24px, 3.6vw, 68px);
  color: #fff;
  font: 500 clamp(18px, min(1.9vw, 3.4vh), 64px) / 1.23 Inter, system-ui, sans-serif;
  letter-spacing: -0.05em;
}

/* Slide background: black top left, teal right, green bottom right, grain on top. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(125deg, #000 0%, rgba(0, 0, 0, 0.75) 18%, rgba(0, 0, 0, 0) 60%),
    radial-gradient(60% 70% at 80% 105%, #1fc47c 0%, rgba(31, 196, 124, 0) 70%),
    radial-gradient(50% 80% at 105% 75%, #22cfc0 0%, rgba(34, 207, 192, 0) 70%),
    linear-gradient(120deg, #24424a 0%, #2f6f74 50%, #2f9fa3 100%);
}

body::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.35;
}

h1 {
  margin-top: -0.1em;
  color: var(--yellow);
  /* 190px on the 1920x1080 slide; vh bound keeps it on one screen */
  font-size: clamp(52px, min(9.9vw, 17.6vh), 340px);
  font-weight: 400;
  line-height: 0.96;
}

.lead {
  max-width: 26em;
  margin-top: clamp(32px, 4.6vw, 88px);
}

a {
  color: inherit;
}

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

.mail {
  display: inline-block;
  margin-top: 0.6em;
  text-decoration: underline var(--yellow) 2px;
  text-underline-offset: 0.2em;
  transition: color 0.2s;
}

.mail:hover {
  color: var(--yellow);
}

footer {
  display: flex;
  align-items: center;
  gap: clamp(24px, 10vw, 195px);
  margin-top: auto;
  padding-top: 48px;
  font-size: clamp(13px, 0.65vw, 20px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.022em;
}

footer img {
  display: block;
}

footer .lang {
  margin-left: auto;
  padding: 8px 0 8px 8px;
}
