@font-face {
  font-family: "GT Super";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/gt-super-text-regular.woff2") format("woff2");
}

@font-face {
  font-family: "GT Super";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/gt-super-text-regular-italic.woff2") format("woff2");
}

@font-face {
  font-family: "GT Super";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/gt-super-text-bold.woff2") format("woff2");
}

@font-face {
  font-family: "GT Super";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/gt-super-text-bold-italic.woff2") format("woff2");
}

@font-face {
  font-family: "American Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/american-grotesk-regular.woff2") format("woff2");
}

@font-face {
  font-family: "American Grotesk";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/american-grotesk-italic.woff2") format("woff2");
}

@font-face {
  font-family: "American Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/american-grotesk-bold.woff2") format("woff2");
}

@font-face {
  font-family: "American Grotesk";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/american-grotesk-bold-italic.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --color-primary: 17 17 17;
  --color-background: 255 255 255;
  --ink: rgb(var(--color-primary));
  --paper: rgb(var(--color-background));
  --muted: rgb(var(--color-primary) / 0.55);
  --page-width: 42rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --font-sans: "American Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "GT Super", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: 238 238 238;
    --color-background: 24 24 24;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgb(var(--color-primary) / 0.075);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.17em;
  text-decoration-color: rgb(var(--color-primary) / 0.25);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: rgb(var(--color-primary) / 0.65);
  text-decoration-color: rgb(var(--color-primary) / 0.35);
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.45rem 0.7rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 0.916667rem;
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(100% - 2 * var(--gutter), var(--page-width));
  margin-inline: auto;
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 8vw, 5rem);
}

.site-header {
  position: relative;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.tide {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  color: rgb(var(--color-primary) / 0.3);
  opacity: 0;
  mask-image: linear-gradient(
    to bottom,
    #000,
    rgb(0 0 0 / 0.35) 35%,
    rgb(0 0 0 / 0.08) 70%,
    transparent
  );
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.site-header.is-tidal .tide {
  opacity: 1;
}

.wordmark {
  position: relative;
  display: inline-block;
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-decoration: none;
  touch-action: manipulation;
}

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

.intro {
  padding-bottom: clamp(1.75rem, 4.5vw, 2.5rem);
}

.intro h1 {
  margin: 0;
  max-width: none;
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.intro h1 br {
  display: block;
  content: "";
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 52ch;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.45;
  color: rgb(var(--color-primary) / 0.72);
}

.row {
  padding-block: 1.15rem;
  scroll-margin-top: 1rem;
}

.row h2 {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-transform: uppercase;
}

.row p,
.row li {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 65ch;
}

.row p {
  margin-bottom: 0.65rem;
}

.row p:last-child {
  margin-bottom: 0;
}

.row ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.row .support-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem 1.25rem;
}

.row .support-links li {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: none;
}

.support-links a {
  text-decoration-line: underline;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.4;
}

footer p {
  margin: 0;
  max-width: none;
  font-family: inherit;
  font-size: inherit;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  color: var(--ink);
}

@media (max-width: 720px) {
  .row .support-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  a {
    transition: none;
  }
}
