:root {
  --bg: #fbfbfa;
  --ink: #14181a;
  --muted: #5b6568;
  --accent: #0e6a75;
  --rule: #e3e4e2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1113;
    --ink: #ecefef;
    --muted: #98a3a6;
    --accent: #58bcc8;
    --rule: #23292b;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Masthead */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.wordmark__mark { display: flex; color: var(--accent); }

.wordmark__text {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wordmark__text span { font-weight: 400; color: var(--muted); }

/* Main */

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 0;
}

.statement {
  margin: 0;
  font-size: clamp(2rem, 6.5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 18ch;
  text-wrap: balance;
}

.lede {
  margin: 1.75rem 0 0;
  color: var(--muted);
  max-width: 40ch;
  text-wrap: pretty;
}

.contact { margin: 2.5rem 0 0; }

.contact a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding-bottom: 2px;
  transition: border-color 120ms ease;
  overflow-wrap: anywhere;
}

.contact a:hover,
.contact a:focus-visible { border-bottom-color: var(--accent); }

/* Legal footer */

.legal {
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
}

.legal p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 58ch;
  text-wrap: pretty;
}

.nowrap { white-space: nowrap; }

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

/* Very narrow viewports */

@media (max-width: 380px) {
  .page { padding: 2rem 1.125rem 1.5rem; gap: 2.25rem; }
  .wordmark__text { font-size: 0.875rem; }
}
