:root {
  --color-bg: #faf7f2;
  --color-bg-alt: #f3ede3;
  --color-text: #1f2937;
  --color-muted: #5b6573;
  --color-accent: #d4603c;
  --color-accent-dark: #b84530;
  --color-border: #e6dfd2;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --max-content-width: 640px;
  --max-figure-width: 960px;

  --radius: 12px;
  --shadow: 0 1px 2px rgba(31, 41, 55, 0.04),
            0 8px 24px rgba(31, 41, 55, 0.08);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
               Roboto, Arial, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  padding: var(--space-6) var(--space-5);
  max-width: var(--max-figure-width);
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
}

.logo:hover {
  text-decoration: none;
  color: var(--color-text);
}

.logo img {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

main {
  padding: 0 var(--space-5);
}

.hero {
  max-width: var(--max-content-width);
  margin: var(--space-8) auto var(--space-7);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--color-text);
}

.tagline {
  margin-top: var(--space-4);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--color-text);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.subhead {
  margin-top: var(--space-5);
  font-size: 1.0625rem;
  color: var(--color-muted);
}

.anchor-image {
  max-width: var(--max-figure-width);
  margin: var(--space-7) auto var(--space-8);
  padding: 0;
}

.anchor-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.founder-note {
  max-width: var(--max-content-width);
  margin: var(--space-8) auto;
  text-align: center;
}

.founder-note p {
  color: var(--color-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.newsletter {
  max-width: var(--max-content-width);
  margin: var(--space-9) auto var(--space-8);
  text-align: center;
}

.newsletter h2 {
  font-size: clamp(1.5rem, 3.5vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--color-text);
}

.newsletter-lede {
  margin-top: var(--space-3);
  color: var(--color-muted);
  font-size: 1rem;
}

#newsletter-form {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: row;
  gap: var(--space-3);
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}

#newsletter-form input[type="email"] {
  flex: 1 1 280px;
  min-width: 0;
  max-width: 360px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

#newsletter-form input[type="email"]::placeholder {
  color: var(--color-muted);
  opacity: 0.7;
}

#newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212, 96, 60, 0.18);
}

#newsletter-form button {
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

#newsletter-form button:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

#newsletter-form button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 96, 60, 0.35);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.newsletter-status {
  margin-top: var(--space-5);
  color: var(--color-muted);
  font-size: 1rem;
}

.newsletter-status.is-error {
  color: var(--color-accent-dark);
}

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

.site-footer p {
  margin: 0;
}

@media (max-width: 540px) {
  .hero {
    margin-top: var(--space-7);
  }

  #newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }

  #newsletter-form input[type="email"],
  #newsletter-form button {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
