@font-face {
  font-family: 'Times Newer Roman';
  src: url('fonts/TimesNewerRoman-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Times Newer Roman';
  src: url('fonts/TimesNewerRoman-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Times Newer Roman';
  src: url('fonts/TimesNewerRoman-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Times Newer Roman';
  src: url('fonts/TimesNewerRoman-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
}

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --text:    #1a1a1a;
  --muted:   #767676;
  --accent:  #2c5f8a;
  --border:  #e8e8e8;
  --bg:      #ffffff;
  --max-w:   680px;
}

html { font-size: 18px; }

body {
  font-family:'Times Newer Roman', serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  padding: 0 1.25rem;
}

/* ─── Layout ───────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ─── Site Header ──────────────────────────────────────────── */
.site-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.site-header a {
  text-decoration: none;
  color: inherit;
}

.site-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-tagline {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.25rem;
  font-style: italic;
}

nav {
  margin-top: 1rem;
}

nav a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  margin-right: 1.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

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

/* ─── Post List (homepage) ─────────────────────────────────── */
.post-list {
  list-style: none;
}

.post-list li {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.post-list li:last-child { border-bottom: none; }

.post-date {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.post-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.post-title a {
  color: var(--text);
  text-decoration: none;
}

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

.post-excerpt {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.65;
}

.read-more {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.read-more:hover { text-decoration: underline; }

/* ─── Individual Post ──────────────────────────────────────── */
.post-header {
  margin-bottom: 2.5rem;
}

.post-header .post-date {
  margin-bottom: 0.75rem;
}

.post-header h1 {
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

.post-body {
  font-size: 1rem;
}

.post-body p { margin-bottom: 1.5rem; }

.post-body h2 {
  font-size: 1.3rem;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.post-body h3 {
  font-size: 1.1rem;
  margin: 2rem 0 0.6rem;
}

.post-body ul,
.post-body ol {
  margin: 0 0 1.5rem 1.5rem;
}

.post-body li { margin-bottom: 0.4rem; }

.post-body blockquote {
  border-left: 3px solid var(--border);
  margin: 2rem 0;
  padding: 0 1.5rem;
  color: var(--muted);
  font-style: italic;
}

.post-body a {
  color: var(--accent);
}

.post-body code {
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  background: #f5f5f5;
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* ─── Post Footer ──────────────────────────────────────────── */
.post-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.back-link {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}

.back-link:hover { color: var(--text); }

/* ─── About / Static Pages ─────────────────────────────────── */
.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}

.page-body p { margin-bottom: 1.5rem; }

/* ─── Site Footer ──────────────────────────────────────────── */
.site-footer {
  margin-top: 5rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
  html { font-size: 16px; }
  .post-header h1 { font-size: 1.6rem; }
}
