:root {
  --bg: #f4f1ea;
  --bg-elevated: #fffdf8;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #d6d0c4;
  --accent: #1e3a5f;
  --accent-hover: #152a46;
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.25rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero p {
  max-width: 38rem;
  color: var(--muted);
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0 0 0.75rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
}

h2 {
  font-size: 1.35rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 0.35rem;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
}

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

.button-secondary {
  color: var(--accent);
  background: transparent;
}

.button-secondary:hover {
  color: var(--accent-hover);
  background: var(--bg-elevated);
}

.section {
  padding: 2.5rem 0 4rem;
  border-top: 1px solid var(--line);
}

.section p {
  max-width: 40rem;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  padding: 1.25rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--bg-elevated);
}

.card h2 {
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  font-size: 0.98rem;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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