@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@400;500;600&display=swap");

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

:root {
  --text: #1a1a1a;
  --text-secondary: #4a4a4a;
  --bg: #fdfdfd;
  --accent: #2c3e50;
  --border: #e0e0e0;
  --highlight-bg: #f7f3ed;
  --section-bg: #faf8f5;
  --max-w: 760px;
}

body {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ── Site Header / Navigation ── */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}

.site-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.site-nav a.active {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.nav-sep {
  color: var(--border);
  user-select: none;
}

/* ── Document Layout ── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.doc-header {
  text-align: center;
  padding-bottom: 36px;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--accent);
}

.doc-header h1 {
  font-family: "DM Sans", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.doc-header .subtitle {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.doc-header .meta {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
}

.doc-header .meta a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.doc-header .meta a:hover {
  border-color: var(--accent);
}

/* ── Typography ── */

.intro {
  font-size: 15.5px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

h2 {
  font-family: "DM Sans", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 12px;
}

p {
  margin-bottom: 14px;
}

ul {
  margin: 8px 0 16px 28px;
  list-style: disc;
}

ul li {
  margin-bottom: 6px;
  padding-left: 4px;
}

/* ── Content Blocks ── */

.important {
  background: var(--highlight-bg);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 15.5px;
}

.important strong {
  color: var(--accent);
}

.caps-block {
  background: var(--section-bg);
  border: 1px solid var(--border);
  padding: 20px 24px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.bold-block {
  font-weight: 600;
  margin: 16px 0;
}

strong {
  font-weight: 700;
}

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

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

.closing {
  text-align: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--accent);
  font-style: italic;
  color: var(--text-secondary);
}

/* ── Responsive ── */

@media (max-width: 600px) {
  .site-nav {
    padding: 12px 16px;
    font-size: 13px;
  }

  .container {
    padding: 32px 16px 60px;
  }

  .doc-header h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 18px;
  }

  body {
    font-size: 15.5px;
  }

  .caps-block {
    font-size: 13px;
    padding: 16px;
  }
}
