:root {
  --bg: #f7f5f2;
  --bg-elevated: #ffffff;
  --ink: #121212;
  --ink-muted: #5c5a56;
  --border: rgba(18, 18, 18, 0.12);
  --accent: #1a1a1a;
  --radius: 12px;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --space-section: clamp(4rem, 10vw, 7rem);
  --max: 1100px;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 1rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

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

@media (max-width: 640px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem clamp(1.25rem, 4vw, 2rem) 1.25rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav a:last-child {
    border-bottom: 0;
  }
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 12vw, 6.5rem) clamp(1.25rem, 4vw, 2rem) var(--space-section);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6.5vw, 3.85rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
}

.hero__lead {
  max-width: 36ch;
  margin: 0 0 2rem;
  color: var(--ink-muted);
  font-size: 1.125rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.12s ease;
}

.btn:active {
  transform: scale(0.98);
}

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

.btn--primary:hover {
  background: #000;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(18, 18, 18, 0.04);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem) var(--space-section);
}

.section--narrow .section__text {
  max-width: 52ch;
}

.section__title {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section__text {
  margin: 0;
  color: var(--ink-muted);
}

.cards {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.card {
  padding: 1.5rem 1.4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--ink) 20%, var(--border));
  box-shadow: 0 12px 40px rgba(18, 18, 18, 0.06);
}

.card__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.card__body {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-muted);
}

.cta {
  margin: 0 clamp(1.25rem, 4vw, 2rem) var(--space-section);
  border-radius: calc(var(--radius) + 4px);
  background: var(--accent);
  color: #e8e6e1;
}

.cta__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 3.75rem) clamp(1.5rem, 4vw, 2.5rem);
}

.cta__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.cta__text {
  margin: 0 0 1.75rem;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.btn--inverse.btn--primary:hover {
  background: #f0eeea;
}

.btn--inverse.btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn--inverse.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 2rem clamp(1.25rem, 4vw, 2rem) 2.5rem;
  border-top: 1px solid var(--border);
}

.site-footer__copy {
  margin: 0;
  max-width: var(--max);
  margin-inline: auto;
  font-size: 0.875rem;
  color: var(--ink-muted);
}
