@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/nunito-800.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #25221e;
  --muted: #6b645b;
  --border: #e3ddd2;
  --accent: #0f6e66;
  --accent-soft: #e2f1ee;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --surface: #211f1c;
    --text: #ece8e1;
    --muted: #a39b90;
    --border: #36322d;
    --accent: #6fd3c4;
    --accent-soft: #1c302d;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.name {
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 800;
  transform: skewX(1deg);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* Homepage */

.home {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
}

.intro {
  align-self: center;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.intro h1 {
  font-size: clamp(2.75rem, 11vw, 4.5rem);
  margin: 0 0 0.75rem;
  display: inline-block; /* so the skew pivots around the name itself */
}

.intro p {
  font-size: clamp(1.125rem, 3.5vw, 1.3rem);
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 32em;
}

.intro p strong { color: var(--text); font-weight: 600; }

.social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem 0.5rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s, transform 0.15s;
}

.social a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-1px);
}

.social svg { width: 1.125rem; height: 1.125rem; flex: none; fill: currentColor; }

@media (prefers-reduced-motion: reduce) {
  .social a { transition: none; }
  .social a:hover { transform: none; }
}

.site-footer {
  padding: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer a { color: inherit; }

/* Text pages (privacy policy) */

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.page .home-link {
  display: inline-block;
  font-size: 1.5rem;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 2.5rem;
}

.page .home-link:hover { color: var(--accent); }

.page h1 {
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.page h2 {
  font-size: 1.2rem;
  margin: 2.25rem 0 0.5rem;
}

.page p { margin: 0 0 1rem; }

.page .lede { color: var(--muted); }

.page hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 3rem 0 2rem;
}

.page .callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
}

.page .callout h2 { margin-top: 0; }
.page .callout p:last-child { margin-bottom: 0; }
