/* ============================================================
   Edit these variables to retheme the whole site.
   ============================================================ */
:root {
  --accent: #6fa8dc;          /* light blue highlight — selection, links */
  --text: #111111;
  --text-soft: #6b6b6b;
  --bg: #FCFBF4;
}

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

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

::selection { background: var(--accent); color: #fff; }

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  font-size: 18px;
  line-height: 1.6;
  display: flex;
  justify-content: center;
}

.container {
  max-width: 900px;
  width: 100%;
  padding: 7rem 2.25rem 2.25rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  margin-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.7rem;
  font-size: 1rem;
  color: var(--text-soft);
}

.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 400;
}
.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ---------- Generic links ---------- */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Article list (home page) ---------- */
.article-list {
  display: flex;
  flex-direction: column;
}

.article-card {
  display: block;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.article-list .article-card:first-child { padding-top: 0; }
.article-list .article-card:last-child { border-bottom: none; }

.article-title {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--text);
  text-decoration: none;
}
.article-title:hover {
  color: var(--accent);
  text-decoration: none;
}

.article-subtitle {
  font-size: 1.12rem;
  color: var(--text-soft);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  max-width: 72ch;
}

.article-date {
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* ---------- Article page ---------- */
.article-header { margin-bottom: 2.5rem; }

.article-page-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.article-page-date {
  font-size: 0.95rem;
  color: var(--text-soft);
}

.article-body p {
  margin-bottom: 1.35rem;
  font-size: 1.12rem;
  line-height: 1.6;
  max-width: 72ch;
}
.article-body p:last-child { margin-bottom: 0; }
.article-body a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.article-body a:hover { color: var(--accent); }

.article-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
}

.article-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 540px) {
  .container { padding: 5rem 1.25rem 5rem; }
  .article-title { font-size: 1.25rem; }
  .article-page-title { font-size: 1.6rem; }
}
