:root {
  --bg: #efe6d4;
  --paper: rgba(255, 252, 245, 0.66);
  --paper-strong: rgba(255, 252, 245, 0.9);
  --ink: #1d2a21;
  --muted: #536051;
  --line: rgba(29, 42, 33, 0.12);
  --accent: #8b5e3c;
  --accent-deep: #5f3f2a;
  --shadow: 0 24px 60px rgba(42, 35, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(139, 94, 60, 0.22), transparent 34%),
    radial-gradient(circle at 85% 15%, rgba(78, 102, 90, 0.18), transparent 28%),
    linear-gradient(180deg, #f6f0e2 0%, var(--bg) 55%, #eadfca 100%);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

.page {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.hero {
  padding: 5rem clamp(1.4rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, var(--paper-strong), var(--paper));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.eyebrow,
.card-label {
  margin: 0 0 0.75rem;
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 39rem;
  margin-top: 1.5rem;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  line-height: 1.65;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

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

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

.button-secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 252, 245, 0.72);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.card,
.footer-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 252, 245, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.card {
  grid-column: span 4;
  padding: 1.5rem;
}

.card-feature {
  grid-column: span 12;
}

.card h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.card p:last-child,
.footer-card p:last-child {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.footer-card {
  margin-top: 1rem;
  padding: 1.5rem;
}

@media (max-width: 860px) {
  .page {
    width: min(100% - 1rem, 1100px);
    padding-top: 1rem;
  }

  .hero {
    padding-top: 4rem;
  }

  .card,
  .card-feature {
    grid-column: span 12;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
