/* Media Badger — style.css */

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

/* ── Tokens ── */
:root {
  --paper: #fdf2d6;
  --card: #FFFFFF;
  --ink: #2C2418;
  --muted: #7A6F60;
  --rule: #e0d5be;
  --accent: #5B7F5E;
  --accent-warm: #C4793A;
  --radius: 8px;
  --max-content: 720px;
  --max-page: 1080px;
}

/* ── Base ── */
html { font-size: 16px; }
body {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; height: auto; display: block; }

/* ── Typography ── */
h1, h2, h3 {
  font-family: 'Lora', Georgia, serif;
  line-height: 1.3;
  color: var(--ink);
}
h1 { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; font-weight: 600; font-style: italic; margin-top: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.25rem 1.5rem; }
li { margin-bottom: 0.4rem; }

strong { font-weight: 600; }

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

/* ── Layout ── */
.page-wrap {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-wrap {
  max-width: var(--max-content);
  margin: 0 auto;
}

/* ── Header ── */
.site-header {
  padding: 2rem 0 1.5rem;
  text-align: center;
}
.site-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
}
.site-brand:hover { text-decoration: none; }
.site-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.site-brand span {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

/* ── Hero ── */
.hero {
  padding: 1rem 0 2.5rem;
  text-align: center;
}
.hero img {
  max-height: 400px;
  margin: 0 auto 1.5rem;
  width: auto;
}
.hero-tagline {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1875rem;
  font-style: italic;
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Full articles on homepage ── */
.articles-feed {
  padding: 2rem 0 4rem;
}

.feed-article {
  max-width: var(--max-content);
  margin: 0 auto 4rem;
}
.feed-article:last-child {
  margin-bottom: 0;
}

.feed-article .article-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.feed-article .article-title a {
  color: var(--ink);
}
.feed-article .article-title a:hover {
  color: var(--accent);
  text-decoration: none;
}
.feed-article .meta {
  font-size: 0.875rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.feed-article .article-content h2 {
  font-size: 1.3125rem;
  margin-top: 2rem;
}

.feed-divider {
  max-width: var(--max-content);
  margin: 0 auto 4rem;
  border: none;
  border-top: 1px solid var(--rule);
}

/* ── Article cards (blog index) ── */
.articles-section {
  padding: 4rem 0;
}
.article-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent-warm);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  max-width: var(--max-content);
  margin-left: auto;
  margin-right: auto;
}
.article-card h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.375rem;
}
.article-card h3 a {
  color: var(--ink);
}
.article-card h3 a:hover {
  color: var(--accent);
  text-decoration: none;
}
.article-card .meta {
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}
.article-card .excerpt {
  color: var(--ink);
  margin-bottom: 1rem;
  font-size: 1rem;
}
.article-card .read-more {
  font-weight: 600;
  font-size: 0.9375rem;
}

/* ── Article page ── */
.article-header {
  padding: 3rem 0 2rem;
  text-align: center;
}
.article-header h1 {
  margin-bottom: 0.75rem;
}
.article-header .meta {
  font-size: 0.9375rem;
  color: var(--muted);
}
.article-body {
  padding: 0 0 4rem;
}
.article-body h2 {
  font-size: 1.375rem;
}
.article-body ul {
  list-style-type: disc;
}

.related-reading {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-top: 3rem;
  background: var(--card);
}
.related-reading h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.related-reading ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.related-reading li {
  margin-bottom: 0.5rem;
}
.related-reading li:last-child {
  margin-bottom: 0;
}

/* ── About page ── */
.about-header {
  padding: 3rem 0 1rem;
  text-align: center;
}
.about-body {
  padding: 0 0 4rem;
}

/* ── Blog index ── */
.blog-header {
  padding: 3rem 0 1rem;
  text-align: center;
}

/* ── 404 ── */
.four-oh-four {
  text-align: center;
  padding: 6rem 0;
}
.four-oh-four h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--muted);
}
.four-oh-four p {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--ink);
  color: #d4c9b5;
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.9375rem;
}
.site-footer a {
  color: #d4c9b5;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: none;
}
.footer-nav {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}
.footer-nav a {
  font-weight: 600;
  letter-spacing: 0.03em;
}
.footer-copy {
  color: #8a7e6e;
  font-size: 0.8125rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.25rem; }
  .hero { padding: 1rem 0 1.5rem; }
  .hero img { max-height: 260px; }
  .hero-tagline { font-size: 1rem; }
  .article-card { padding: 1.25rem 1.5rem; }
  .site-brand img { width: 52px; height: 52px; }
  .site-brand span { font-size: 1.25rem; }
  .feed-article .article-title { font-size: 1.5rem; }
  .articles-feed { padding: 1.5rem 0 3rem; }
  .feed-article { margin-bottom: 3rem; }
}
