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

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

:root {
  --bg: #F8F7F4;
  --text: #1C1C1A;
  --muted: #6B6B66;
  --border: #DDD9D2;
  --talks-accent: #2F4538;
  --tales-accent: #8C4A2F;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  font-size: 18px;
}

/* ── Navigation ── */

nav {
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  text-transform: lowercase;
}

.nav-logo:hover { color: var(--text); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active-talks { color: var(--talks-accent); }
.nav-links a.active-tales { color: var(--tales-accent); }

/* ── Page layout ── */

main {
  max-width: 740px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

/* ── Section header ── */

.section-header {
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.section-label.talks { color: var(--talks-accent); }
.section-label.tales { color: var(--tales-accent); }

.section-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
}

.section-header p.tagline {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--muted);
  font-style: italic;
}

/* ── Story list ── */

.story-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.story-card {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity 0.2s;
}

.story-card:hover { opacity: 0.75; }

.story-card .meta {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.story-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.story-card p {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Article page ── */

.article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.article-header .meta {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.article-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.25;
}

.article-body p {
  margin-bottom: 1.6rem;
  font-size: 1.05rem;
}

.article-body p:last-child { margin-bottom: 0; }

.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── Landing page portrait ── */

.landing-portrait {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.landing-portrait img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--border);
}

/* ── Article header image ── */

.article-image {
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

@media (max-width: 600px) {
  .article-image img { height: 220px; }
}

/* ── Back link ── */

.back-link {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.back-link:hover { color: var(--text); }
.back-link::before { content: '← '; }

/* ── Footer ── */

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4rem;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover { color: var(--text); }

/* ── Tipitales teaser on homepage ── */

.tales-teaser {
  margin-top: 4rem;
  padding: 2.5rem;
  border: 1px solid var(--border);
  background: #FDF9F6;
}

.tales-teaser .section-label { margin-bottom: 0.5rem; }

.tales-teaser h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.tales-teaser p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.tales-teaser a.cta {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--tales-accent);
  border-bottom: 1px solid var(--tales-accent);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.tales-teaser a.cta:hover { opacity: 0.7; }

/* ── Comments divider ── */

.comments-divider {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 5.5rem 0 2rem;
}

.comments-divider::before,
.comments-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--border);
}

.comments-divider span {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
  font-style: italic;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  nav { padding: 1.1rem 1.25rem; }
  main { padding: 2.5rem 1.25rem 4rem; }
  .section-header h1 { font-size: 1.6rem; }
  .article-header h1 { font-size: 1.7rem; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}
