@font-face {
  font-family: "League Spartan";
  src: url("/fonts/league-spartan-latin-var.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f5f1;
  --ink: #141416;
  --muted: #5f5f68;
  --line: #e2e0d8;
  --accent: #e5532f;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111113;
    --ink: #f2f1ec;
    --muted: #a3a2a9;
    --line: #2a2a2e;
    --accent: #ff7656;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #111113;
  --ink: #f2f1ec;
  --muted: #a3a2a9;
  --line: #2a2a2e;
  --accent: #ff7656;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "League Spartan", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color 160ms ease, color 160ms ease;
}

a:hover {
  text-decoration-color: currentColor;
}

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--accent);
}

.nav a {
  font-size: 17px;
  color: var(--muted);
  text-decoration: none;
}

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

/* Hero */

main {
  flex: 1;
}

.hero {
  padding-top: clamp(56px, 12vw, 160px);
  padding-bottom: clamp(56px, 10vw, 128px);
}

.wordmark {
  margin: 0;
  font-weight: 400;
  font-size: clamp(80px, 18vw, 210px);
  line-height: 0.85;
  letter-spacing: -0.03em;
}

.tagline {
  margin: clamp(20px, 3vw, 32px) 0 0;
  max-width: 24ch;
  font-size: clamp(23px, 3vw, 33px);
  font-weight: 300;
  line-height: 1.25;
  color: var(--muted);
  text-wrap: balance;
}

/* Sections */

.rows {
  list-style: none;
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: clamp(56px, 8vw, 112px);
}

.row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 2fr;
  gap: 8px 32px;
  padding: 28px 0 32px;
  border-top: 1px solid var(--line);
}

.row h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 5px;
}

.row p {
  margin: 0;
  max-width: 34em;
  font-size: clamp(19px, 2vw, 22px);
  text-wrap: pretty;
}

.row p + p {
  margin-top: 0.5em;
}

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

.email {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Prose pages */

.prose {
  padding-top: clamp(40px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 112px);
  max-width: 44em;
}

.prose h1 {
  margin: 0 0 10px;
  font-weight: 400;
  font-size: clamp(48px, 8vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.prose .updated {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 17px;
}

.prose h2 {
  margin: 40px 0 8px;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.prose p,
.prose li {
  margin: 0 0 12px;
  text-wrap: pretty;
}

.prose ul {
  padding-left: 1.2em;
  margin: 0 0 12px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: 16px;
  color: var(--muted);
}

.site-footer a {
  text-decoration: none;
}

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

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .rise-2 {
    animation-delay: 90ms;
  }

  .rise-3 {
    animation-delay: 180ms;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* Small screens */

@media (max-width: 640px) {
  body {
    font-size: 18px;
  }

  .site-header .wrap {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .row {
    grid-template-columns: 1fr;
    padding: 22px 0 26px;
  }

  .row h2 {
    padding-top: 0;
  }
}
