/* ACSS News - Clean Newsletter Style */

:root {
  --bg: #f5f5f0;
  --bg-card: #ffffff;
  --border: #ddd;
  --blue: #1a4a7a;
  --blue-light: #2563a8;
  --accent: #c0392b;
  --text: #222;
  --text-dim: #666;
  --font-body: Georgia, 'Times New Roman', serif;
  --font-ui: 'Helvetica Neue', Arial, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
}

a {
  color: var(--blue-light);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ── Header ── */
header {
  background: var(--blue);
  color: #fff;
  padding: 1.5rem 0;
  border-bottom: 4px solid var(--accent);
}

.site-title {
  font-family: var(--font-ui);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.site-subtitle {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-top: 0.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

nav {
  margin-top: 0.8rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
}

nav a {
  color: rgba(255,255,255,0.75);
  margin-right: 1.2rem;
}

nav a:hover {
  color: #fff;
  text-decoration: none;
}

/* ── Layout ── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Post List (index) ── */
.post-list {
  padding: 2.5rem 0 4rem;
}

.year-group {
  margin-bottom: 2.5rem;
}

.year-heading {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 0.4rem;
  margin-bottom: 0.8rem;
}

.post-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.45rem 0.5rem;
  border-radius: 3px;
  transition: background 0.1s;
}

.post-item:hover {
  background: rgba(26, 74, 122, 0.06);
}

.post-date {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
  width: 7rem;
}

.post-title-link {
  color: var(--text);
  font-size: 0.97rem;
}

.post-title-link:hover {
  color: var(--blue-light);
  text-decoration: none;
}

/* ── Single Post ── */
.post {
  padding: 2.5rem 0 5rem;
}

.post-header {
  margin-bottom: 1.8rem;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 1rem;
}

.post-header h1 {
  font-family: var(--font-ui);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.25;
}

.post-meta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-body {
  max-width: 700px;
}

.post-body p {
  margin: 1rem 0;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4 {
  font-family: var(--font-ui);
  color: var(--blue);
  margin: 1.8rem 0 0.5rem;
}

.post-body h3 { font-size: 1.1rem; }
.post-body h2 { font-size: 1.25rem; }

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

.post-body blockquote {
  border-left: 3px solid var(--blue);
  margin: 1.2rem 0;
  padding: 0.5rem 1.2rem;
  background: rgba(26,74,122,0.04);
  color: var(--text-dim);
  font-style: italic;
}

.post-body code {
  background: #f0f0ea;
  border: 1px solid var(--border);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.88em;
  font-family: 'Courier New', monospace;
  color: var(--accent);
}

.post-body pre {
  background: #f0f0ea;
  border: 1px solid var(--border);
  padding: 1rem 1.2rem;
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: 4px;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
}

.post-body img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
}

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

.post-body li { margin: 0.3rem 0; }

/* ── Back link ── */
.back-link {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  margin-bottom: 1.5rem;
  color: var(--text-dim);
}

.back-link:hover {
  color: var(--blue-light);
  text-decoration: none;
}

.back-link::before { content: '← '; }

/* ── Footer ── */
footer {
  background: var(--blue);
  color: rgba(255,255,255,0.55);
  padding: 1.2rem 0;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .site-title { font-size: 1.4rem; }
  .post-item { flex-direction: column; gap: 0.1rem; }
  .post-date { width: auto; }
  .post-header h1 { font-size: 1.4rem; }
}
