:root {
  --bg: #f5f1ea;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: #ffffff;
  --text: #1f1e1b;
  --muted: #5d5a55;
  --border: rgba(31, 30, 27, 0.1);
  --accent: #202833;
  --accent-soft: #dfe5ea;
  --shadow: 0 20px 50px rgba(26, 29, 34, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 28%),
    linear-gradient(180deg, #f8f5ef 0%, var(--bg) 100%);
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2 {
  margin-top: 0;
}

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header {
  padding: 1.25rem 0 1rem;
}

.site-footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.site-nav,
.footer-links,
.button-row,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.site-nav a,
.footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a[aria-current="page"],
.site-nav a:hover,
.footer-links a:hover {
  color: var(--text);
}

.section,
.section-large {
  padding: 1.2rem 0;
}

.section-large {
  padding-top: 4.5rem;
  padding-bottom: 2rem;
}

.hero {
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.hero h1,
.intro-stack h1 {
  max-width: 14ch;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}

.hero .lead,
.intro-stack .lead {
  max-width: 46rem;
}

.lead {
  font-size: 1.14rem;
  color: var(--muted);
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.card,
.emphasis-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card {
  padding: 1.8rem;
}

.card h2,
.emphasis-box h2,
.prose-card h2 {
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.card p,
.emphasis-box p,
.prose-card p,
.prose-card li {
  color: var(--muted);
}

.emphasis-box {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem;
  margin-top: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.16s ease, opacity 0.16s ease, background 0.16s ease;
}

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

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.button-secondary {
  background: var(--surface-strong);
  border-color: var(--border);
}

.narrow {
  max-width: 760px;
}

.intro-stack {
  display: grid;
  gap: 0.6rem;
}

.form-card {
  padding: 1.9rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.field label {
  font-weight: 600;
  font-size: 0.96rem;
}

.field input,
.field textarea {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(31, 30, 27, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--text);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(32, 40, 51, 0.14);
  border-color: rgba(32, 40, 51, 0.28);
}

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

.turnstile-box {
  min-height: 72px;
  margin: 0.5rem 0 1rem;
}

.small-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.status-message {
  min-height: 1.6rem;
  margin-top: 0.6rem;
  font-size: 0.96rem;
}

.status-message.success {
  color: #1f5b35;
}

.status-message.error {
  color: #93343c;
}

.prose-card h2 {
  margin-top: 2rem;
}

.prose-card h2:first-child {
  margin-top: 0;
}

@media (max-width: 860px) {
  .site-header,
  .site-footer,
  .emphasis-box,
  .grid-2,
  .field-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 4rem;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(calc(100% - 1.2rem), var(--max-width));
  }

  .section-large {
    padding-top: 3rem;
  }

  .hero h1,
  .intro-stack h1 {
    max-width: none;
  }

  .card,
  .form-card,
  .emphasis-box {
    padding: 1.35rem;
    border-radius: 22px;
  }
}
