:root {
  --sand: #f6ecd2;
  --papyrus: #efe2bf;
  --lapis: #1f3a68;
  --gold: #c9a227;
  --terracotta: #b5532c;
  --ink: #2a1f14;
  --muted: #6b5a43;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 1.0625rem/1.7 Georgia, "Times New Roman", serif;
}

a { color: var(--lapis); }
a:hover { color: var(--terracotta); }
img { max-width: 100%; height: auto; display: block; }

.site-header {
  background: var(--lapis);
  color: var(--papyrus);
  text-align: center;
  padding: 28px 16px 22px;
  border-bottom: 6px solid var(--gold);
}
.brand {
  color: var(--gold);
  text-decoration: none;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.brand:hover { color: #e6c55a; }
.tagline { margin: 6px 0 0; font-style: italic; font-size: 0.95rem; opacity: 0.9; }

main { max-width: 1040px; margin: 0 auto; padding: 24px 16px 48px; }

.hero { text-align: center; max-width: 680px; margin: 8px auto 32px; }
.hero h1 { color: var(--lapis); font-size: clamp(1.8rem, 7vw, 2.6rem); margin: 0 0 8px; }
.hero p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  background: #fffaf0;
  border: 1px solid #e2d3a8;
  border-top: 6px solid var(--gold);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(42, 31, 20, 0.08);
  display: flex;
  flex-direction: column;
}
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card h2 { font-size: 1.25rem; line-height: 1.3; margin: 4px 0 8px; }
.card h2 a { text-decoration: none; }
.card p { margin: 0 0 14px; color: var(--muted); flex: 1; }
.more { font-weight: bold; text-decoration: none; color: var(--terracotta); }

time { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.05em; }

.post { max-width: 720px; margin: 0 auto; }
.post h1 { color: var(--lapis); font-size: clamp(1.7rem, 6.5vw, 2.4rem); line-height: 1.2; margin: 8px 0 4px; }
.post h2 {
  color: var(--terracotta);
  font-size: 1.35rem;
  margin: 32px 0 8px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--gold);
}
.post figure { margin: 20px 0 24px; }
.post figure img { border-radius: 6px; border: 4px solid var(--gold); width: 100%; }
.post figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 6px; text-align: center; }
.post li { margin-bottom: 8px; }
.facts li { margin-bottom: 16px; padding-left: 4px; }
.facts li::marker { color: var(--gold); font-weight: bold; }
.back { margin: 0; font-size: 0.95rem; }

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 2px solid #e2d3a8;
  font-size: 0.95rem;
}
.post-nav a:last-child { text-align: right; }

.site-footer {
  background: var(--lapis);
  color: var(--papyrus);
  text-align: center;
  font-size: 0.85rem;
  padding: 0 16px 24px;
}
.site-footer p { max-width: 720px; margin: 12px auto 0; }
.site-footer a { color: var(--gold); }
.frieze {
  height: 18px;
  margin: 0 -16px 8px;
  background:
    linear-gradient(135deg, var(--gold) 25%, transparent 25%) -9px 0 / 18px 18px,
    linear-gradient(225deg, var(--gold) 25%, transparent 25%) -9px 0 / 18px 18px,
    var(--terracotta);
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .post-nav { flex-direction: column; }
  .post-nav a:last-child { text-align: left; }
}
