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

:root {
  --bg: #0a0c0b;
  --fg: #eef1ec;
  --muted: #8d958e;
  --line: rgb(255 255 255 / 0.1);
  --accent: #80a36f;
  --accent-hi: #b4d9a3;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label {
  font: 400 0.8125rem/1.4 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.label span {
  margin-right: 0.75em;
  color: var(--accent-hi);
}

/* Header */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
}
.logo {
  display: block;
  width: 9.5rem;
  height: auto;
}
.site-header nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  font-size: 0.9375rem;
  color: var(--muted);
}
.site-header nav a:hover {
  color: var(--fg);
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: max(100svh, 40rem);
  overflow: hidden;
}
.mosaic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: 8rem clamp(4rem, 10vh, 7rem);
}
h1 {
  margin-top: 1.5rem;
  font-size: clamp(3rem, 10vw, 8.5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.lead {
  max-width: 34rem;
  margin-top: 2rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.button {
  display: inline-flex;
  gap: 0.6em;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  background: var(--accent-hi);
  color: var(--bg);
  font-weight: 500;
  transition: background-color 0.2s;
}
.button:hover {
  background: var(--fg);
}
.button span {
  transition: transform 0.2s;
}
.button:hover span {
  transform: translateX(4px);
}
.link {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.15rem;
  color: var(--muted);
  transition:
    color 0.2s,
    border-color 0.2s;
}
.link:hover {
  border-color: var(--fg);
  color: var(--fg);
}

/* Sections */

.section {
  padding-block: clamp(5rem, 12vw, 10rem);
  border-top: 1px solid var(--line);
}
h2 {
  max-width: 18ch;
  margin-top: 1.5rem;
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.grid {
  display: grid;
  gap: 0 clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(3rem, 7vw, 6rem);
}
.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
}
.grid article {
  padding-block: 1.75rem 2.5rem;
  border-top: 1px solid var(--line);
}
.grid p {
  max-width: 28rem;
  margin-top: 0.75rem;
  color: var(--muted);
}

/* Method */

.method {
  margin-top: clamp(3rem, 7vw, 6rem);
}
.method-claim {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--accent-hi);
}
.method ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 2rem 1.5rem;
  margin-top: 2.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
  font-size: 0.9375rem;
  color: var(--muted);
}
.method li {
  position: relative;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  counter-increment: step;
}
.method li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--accent-hi);
}
.method strong {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--fg);
}
.method strong::before {
  content: "0" counter(step);
  margin-right: 0.75em;
  font: 400 0.75rem var(--mono);
  color: var(--muted);
}

/* Results */

.results {
  margin-top: clamp(3rem, 7vw, 6rem);
}
.results div {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: baseline;
  gap: 1rem clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.results dt {
  font-size: clamp(3rem, 8.5vw, 7rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.results dd {
  max-width: 30rem;
  color: var(--muted);
}

/* About */

.statement {
  max-width: 26ch;
  margin-top: 1.5rem;
  font-size: clamp(1.625rem, 3.6vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.definition {
  max-width: 32rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font: 400 0.875rem/1.7 var(--mono);
  color: var(--muted);
}
.definition strong {
  font-weight: 400;
  color: var(--accent-hi);
}

/* Contact */

.email {
  display: inline-block;
  margin-top: clamp(2rem, 5vw, 4rem);
  font-size: clamp(1.5rem, 6.4vw, 5.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--accent-hi);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size 0.4s;
}
.email:hover {
  background-size: 100% 2px;
}
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  margin-top: 2.5rem;
  padding: 0;
  list-style: none;
  font: 400 0.875rem var(--mono);
  color: var(--muted);
}
.contact-details a:hover {
  color: var(--fg);
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  font: 400 0.8125rem var(--mono);
  color: var(--muted);
}
.site-footer a:hover {
  color: var(--fg);
}

/* Legal page */

.legal {
  max-width: 46rem;
  padding-block: 10rem 6rem;
}
.legal h1 {
  margin: 1.5rem 0 3rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}
.legal h2,
.legal h3 {
  max-width: none;
  margin: 2.5rem 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.legal p,
.legal ul {
  margin-bottom: 1rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.legal a {
  color: var(--fg);
  border-bottom: 1px solid var(--line);
}

/* Scroll reveal: only hides content once the script has confirmed it can show it again */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (max-width: 44rem) {
  .site-header nav a:not(:last-child) {
    display: none;
  }
  .results div {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
