@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,400&family=Inter:wght@400;500;600&display=swap');

:root {
  --paper: #F7F4EE;
  --paper-deep: #EFEAE0;
  --ink: #22242B;
  --ink-soft: #565A63;
  --oxblood: #7B2E2E;
  --oxblood-deep: #5E2222;
  --rule: #D8D2C4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Nav ---------- */
nav {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links li:not(:first-child) { margin-left: 30px; }
.nav-links { gap: 0; }
.nav-links li { margin-left: 30px; }
.nav-links li:first-child { margin-left: 0; }

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

.nav-links a.active {
  color: var(--oxblood);
  border-color: var(--oxblood);
}

/* ---------- Page header ---------- */
.page-header {
  padding: 54px 0 40px;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.page-header .byline {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.page-header h1 {
  font-size: 2.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ---------- Sections ---------- */
section {
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
}

section:last-of-type { border-bottom: none; }

h2 {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--oxblood);
  margin-bottom: 22px;
}

p { font-size: 1.05rem; }

/* ---------- Footer ---------- */
footer {
  padding: 44px 0 70px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

footer a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

footer a:hover { border-color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--paper);
  background: var(--oxblood);
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 2px;
  transition: background 0.15s ease;
}

.btn:hover { background: var(--oxblood-deep); }

.btn-outline {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  border: 1px solid var(--rule);
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-outline:hover { border-color: var(--ink-soft); }
