@font-face {
  font-family: "Shrikhand";
  src: url("/fonts/shrikhand-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --felt: #0b4a35;
  --felt-deep: #083a2a;
  --pink: #ffc9d9;
  --pink-soft: #e6d3cf;
  --line: rgb(255 201 217 / 0.28);
  color-scheme: dark;
}

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

html {
  background: var(--felt);
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  color: var(--pink);
  background: var(--felt);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-x: hidden;
}

::selection {
  color: var(--felt);
  background: var(--pink);
}

main {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(3rem, 8vh, 6rem);
  padding: clamp(1.5rem, 3.2vw, 3rem) clamp(1.25rem, 3.2vw, 3rem) 0;
  overflow: clip;
}

.statement {
  max-width: 19em;
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2rem, 5vh, 3.5rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

dt {
  font-weight: 600;
}

dd {
  margin: 0;
  color: var(--pink-soft);
  overflow-wrap: anywhere;
}

a {
  color: var(--pink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-thickness 160ms ease-out;
}

a:hover {
  text-decoration-thickness: 3px;
}

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

/* The name sits as low as the page goes: its baseline rests on the footer band. */
.wordmark {
  font-family: "Shrikhand", "Schibsted Grotesk", serif;
  font-size: 19vw;
  font-weight: 400;
  line-height: 0.74;
  white-space: nowrap;
  text-align: center;
  margin-inline: calc(clamp(1.25rem, 3.2vw, 3rem) * -1);
  margin-bottom: -0.14em;
  padding-top: 0.08em;
  animation: settle 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.wordmark span {
  display: inline-block;
}

@keyframes settle {
  from {
    transform: translateY(-0.09em);
  }
}

.legal {
  padding: 0.75rem clamp(1.25rem, 3.2vw, 3rem);
  color: var(--pink-soft);
  background: var(--felt-deep);
  font-size: 0.875rem;
}

@media (max-width: 720px) {
  .facts {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark {
    animation: none;
  }

  a {
    transition: none;
  }
}
