:root {
  --bg: #fafaf9;
  --text-heading: #1c1917;
  --text-body: #44403c;
  --text-secondary: #78716c;
  --text-muted: #a8a29e;
  --accent: #d97706;
  --border: #e7e5e4;
  --max-width: 640px;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font-serif);
  background: var(--bg);
  color: var(--text-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.site-header {
  padding-top: 96px;
  padding-bottom: 48px;
}

.site-header h1 {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.subtitle {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header-rule {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border: none;
  margin-top: 24px;
}

/* Narrative content */

.narrative p {
  margin-bottom: 1em;
}

.narrative p:last-child {
  margin-bottom: 0;
}

.narrative hr {
  border: none;
  margin: 1.5em 0;
}

.narrative a {
  color: var(--accent);
  text-decoration: none;
}

.narrative a:hover {
  text-decoration: underline;
}

/* Hook section (first two paragraphs, before first hr) */
.narrative p:nth-child(1),
.narrative p:nth-child(2) {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.6;
}

/* Closing line */
.narrative > p:last-child {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-secondary);
}

/* Footer */

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 1.5rem 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer span {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-linkedin {
  display: flex;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-linkedin:hover {
  color: var(--text-secondary);
}

/* Mobile */

@media (max-width: 640px) {
  .site-header {
    padding-top: 64px;
    padding-bottom: 40px;
  }

  .site-header h1 {
    font-size: 36px;
  }

  .narrative hr {
    margin: 1.25em 0;
  }

  .narrative p:nth-child(1),
  .narrative p:nth-child(2) {
    font-size: 18px;
  }

  .site-footer {
    padding-top: 48px;
    padding-bottom: 32px;
  }
}
