:root {
  --color-bg: #faf7f2;
  --color-surface: #f2ede4;
  --color-text: #33362f;
  --color-text-muted: #5c5f56;
  --color-accent: #6f8f6a;
  --color-accent-contrast: #fbfdf9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(51, 54, 47, 0.06), 0 6px 20px rgba(51, 54, 47, 0.05);
  --max-width: 42rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #23251f;
    --color-surface: #2c2f27;
    --color-text: #eeeae1;
    --color-text-muted: #b9b7ab;
    --color-accent: #9fc497;
    --color-accent-contrast: #1c2318;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
  }
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

.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;
}

/* Honeypot field: hidden from sighted users and screen readers alike,
   left open for bots that autofill forms. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-header,
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-text);
  text-decoration: none;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

section {
  margin-block: 3.5rem;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.25;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.375rem;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.4rem;
}

p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.hero .lede {
  font-size: 1.1875rem;
  max-width: 38rem;
}

a {
  color: var(--color-accent);
}

.waitlist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  max-width: 28rem;
}

.waitlist input[type="email"] {
  flex: 1 1 14rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 1rem;
  font-family: inherit;
}

.waitlist input[type="email"]:focus-visible,
.waitlist button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.waitlist button {
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.waitlist button:hover {
  opacity: 0.9;
}

.waitlist-note {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.9375rem;
}

.job-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.job-grid article {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.375rem;
}

.job-grid p {
  margin: 0;
}

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

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