﻿@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
  --bg: #f7f2e8;
  --bg-accent: #efe4d2;
  --ink: #1b1b1b;
  --muted: #5a544b;
  --accent: #d86b3d;
  --accent-dark: #b4532d;
  --card: #ffffff;
  --border: #e4d7c4;
  --shadow: 0 20px 60px rgba(41, 28, 16, 0.12);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 800px at 10% 0%, #fff6e6 0%, var(--bg) 45%, #f0e3d1 100%);
  min-height: 100vh;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0 12px;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
  align-items: center;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav a:hover::after {
  width: 100%;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 64px 0 32px;
}

.hero h1,
.hero h2,
.hero h3 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 12px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill {
  background: var(--bg-accent);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.section {
  padding: 36px 0;
}

.section h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card h3 {
  font-size: 1.1rem;
  margin: 0;
}

.meta {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.button,
.button-small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-small {
  padding: 6px 14px;
  font-size: 0.8rem;
  background: var(--bg-accent);
  color: var(--ink);
}

.button:hover,
.button-small:hover {
  color: white;
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(216, 107, 61, 0.25);
}

.footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.prose {
  line-height: 1.7;
  color: var(--ink);
}

.prose h1,
.prose h2,
.prose h3 {
  font-family: 'Fraunces', serif;
}

.prose a {
  color: var(--accent-dark);
  text-decoration: underline;
}

.detail {
  padding: 56px 0 80px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav {
    flex-wrap: wrap;
  }
}

/* Featured Videos */
.video-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.video-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-info {
  padding: 16px;
}

.video-info h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.video-info p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* Navigation Filters */
.nav-filters {
  display: flex;
  gap: 4px;
  background: var(--bg-accent);
  padding: 4px;
  border-radius: 999px;
  align-items: center;
}

.filter-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active {
  background: var(--accent);
  color: white;
}

/* Timeline Improved */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-year-group {
  position: relative;
  margin-bottom: 48px;
}

.timeline-year-label {
  margin-left: 40px;
  margin-bottom: 24px;
  position: relative;
}

.timeline-year-label span {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--card);
  padding: 4px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.timeline-dot-main {
  position: absolute;
  left: -40px;
  top: 6px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border: 4px solid var(--bg);
  border-radius: 50%;
  z-index: 2;
}

.timeline-item {
  margin-left: 40px;
  margin-bottom: 32px;
  position: relative;
}

.timeline-dot-small {
  position: absolute;
  left: -37px;
  top: 24px;
  width: 14px;
  height: 14px;
  background: var(--bg-accent);
  border: 3px solid var(--bg);
  border-radius: 50%;
  z-index: 1;
}

@media (max-width: 600px) {
  .timeline::before {
    left: 7px;
  }

  .timeline-dot-main {
    left: -38px;
    width: 16px;
    height: 16px;
  }

  .timeline-year-label {
    margin-left: 32px;
  }

  .timeline-item {
    margin-left: 32px;
  }

  .timeline-dot-small {
    left: -31px;
    width: 10px;
    height: 10px;
  }
}