:root {
  --bg: #f3f0e8;
  --ink: #15171b;
  --muted: #5f626a;
  --faint: #8b8e95;
  --rule: #ddd8cb;
  --accent: #2f49d1;
  --accent-ink: #ffffff;
  --button: #15171b;
  --button-ink: #f3f0e8;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 96px);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.wordmark .logo {
  display: block;
  height: 21px;
  width: auto;
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 15px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 120ms ease;
}

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

/* Hero */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero {
  padding: clamp(20px, 6vh, 96px) 0 clamp(28px, 5vh, 56px);
}

.yc-badge {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 6px 14px 6px 7px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fbfaf6;
  font-size: 15px;
  line-height: 1;
  color: var(--muted);
}

.yc-badge svg {
  width: 22px;
  height: 22px;
  display: block;
  border-radius: 4px;
  flex: none;
}

.yc-badge strong {
  color: var(--ink);
  font-weight: 600;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, min(5vw, 8.5vh), 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  max-width: 16ch;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  max-width: 36em;
  margin: 0 0 30px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 8px;
  background: var(--button);
  color: var(--button-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: transform 120ms ease, opacity 120ms ease;
}

.button:hover {
  opacity: 0.9;
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--faint);
}

.button-secondary:hover {
  opacity: 1;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.or-email {
  font-size: 15px;
  color: var(--muted);
}

.or-email a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.or-email a:hover {
  border-color: var(--ink);
}

.button:active {
  transform: translateY(1px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: border-color 120ms ease;
}

.link-arrow:hover {
  border-color: var(--ink);
}

.arrow {
  display: inline-block;
  transition: transform 140ms ease;
}

.button:hover .arrow,
.link-arrow:hover .arrow {
  transform: translateX(3px);
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 20px 0 24px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--faint);
}

.backed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.yc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.yc svg {
  width: 18px;
  height: 18px;
  display: block;
  border-radius: 2px;
}

/* Simple pages (report, book, 404) */

.simple {
  padding: clamp(64px, 18vh, 180px) 0 80px;
}

.simple h1 {
  font-size: clamp(36px, 6vw, 52px);
  max-width: 18ch;
}

.simple p {
  color: var(--muted);
  max-width: 32em;
  margin: 0 0 32px;
}

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

  .page {
    padding: 0 16px;
  }

  .site-header {
    padding: 20px 0;
  }

  .nav {
    gap: 18px;
  }

}

@media (min-width: 641px) and (max-height: 780px) {
  .site-header {
    padding: 16px 0;
  }

  .site-footer {
    padding: 14px 0 16px;
  }

  .hero {
    padding-top: 8px;
    padding-bottom: 20px;
  }

  .yc-badge {
    margin-bottom: 12px;
    padding-block: 4px;
  }

  .eyebrow {
    margin-bottom: 12px;
  }

  .lede {
    margin-bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
