@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lora:ital,wght@0,400;0,500;1,400;1,500&display=swap');

:root {
  --gold:       #A67C3E;
  --gold-hover: #7A5C28;
  --green:      #2D4038;
  --text:       #3A3530;
  --muted:      #9E8E7A;
  --border:     #E8E0D6;
  --card:       #FFFFFF;
}

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

html { font-size: 18px; }

body {
  font-family: 'Lora', Georgia, serif;
  color: var(--text);
  background-color: var(--green);
  background-image: url('../images/background01.png');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  min-height: 100vh;
  overflow-y: scroll;
}

/* ── WRAPPER ─────────────────────────────────────────────── */
.site-wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 20px 90px;
}

/* ── SITE HEADER ─────────────────────────────────────────── */
.site-header {
  text-align: center;
  margin-bottom: 44px;
  animation: fadeDown 0.7s ease both;
}

.site-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

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

.site-tagline {
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-top: 10px;
  letter-spacing: 0.4px;
}

/* ── CARD ────────────────────────────────────────────────── */
.card {
  background: var(--card);
  padding: 52px 64px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.28);
  animation: fadeUp 0.7s ease 0.15s both;
}

/* ── NAV ─────────────────────────────────────────────────── */
.site-nav {
  border-bottom: 1px solid var(--border);
  padding-bottom: 22px;
  margin-bottom: 44px;
}

.site-nav a,
.back-link {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--muted);
  text-decoration: none;
  margin-right: 22px;
  transition: color 0.2s;
}

.site-nav a:hover,
.back-link:hover { color: var(--gold); }

.back-link {
  display: inline-block;
  margin-right: 0;
  margin-bottom: 30px;
}

/* ── YEAR HEADING ────────────────────────────────────────── */
.year-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--muted);
  padding-top: 8px;
  margin-bottom: 0;
}

/* ── POST LIST ───────────────────────────────────────────── */
.post-list { list-style: none; }

.post-list-item {
  border-bottom: 1px solid var(--border);
  padding: 34px 0;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}

.post-list-item:first-of-type { padding-top: 8px; }
.post-list-item:last-child { border-bottom: none; padding-bottom: 0; }

.post-meta {
  font-style: italic;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.post-list-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
}

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

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

.post-excerpt {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #5C5248;
}

.read-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.read-more:hover { border-color: var(--gold); }

/* stagger list items */
.post-list-item:nth-child(1)  { animation-delay: 0.05s; }
.post-list-item:nth-child(2)  { animation-delay: 0.10s; }
.post-list-item:nth-child(3)  { animation-delay: 0.15s; }
.post-list-item:nth-child(4)  { animation-delay: 0.20s; }
.post-list-item:nth-child(5)  { animation-delay: 0.25s; }
.post-list-item:nth-child(6)  { animation-delay: 0.30s; }
.post-list-item:nth-child(7)  { animation-delay: 0.35s; }
.post-list-item:nth-child(8)  { animation-delay: 0.40s; }
.post-list-item:nth-child(9)  { animation-delay: 0.45s; }
.post-list-item:nth-child(10) { animation-delay: 0.50s; }
.post-list-item:nth-child(n+11) { animation-delay: 0.55s; }

/* ── SINGLE POST ─────────────────────────────────────────── */
.post-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.post-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 12px;
}

.post-date {
  font-style: italic;
  font-size: 0.82rem;
  color: var(--muted);
}

.post-content p {
  line-height: 1.9;
  margin-bottom: 1.45em;
  font-size: 1rem;
}

.post-content p:last-child { margin-bottom: 0; }

.post-content em  { font-style: italic; }
.post-content strong { font-weight: 600; }

.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 32px auto;
  box-shadow: 0 3px 20px rgba(0,0,0,0.14);
}

/* ── POST NAVIGATION ─────────────────────────────────────── */
.post-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  gap: 24px;
}

.post-nav a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  max-width: 46%;
  line-height: 1.4;
}

.post-nav a:hover { color: var(--gold); }

.post-nav .nav-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--border);
  margin-bottom: 5px;
}

.nav-next { text-align: right; margin-left: auto; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 0.72rem;
  font-style: italic;
  color: rgba(255,255,255,0.38);
  animation: fadeUp 0.7s ease 0.3s both;
}

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .card { padding: 36px 28px; }
  .site-wrapper { padding: 40px 16px 60px; }
  .post-nav { flex-direction: column; gap: 16px; }
  .nav-next { text-align: left; margin-left: 0; }
  .post-nav a { max-width: 100%; }
}
