:root {
  --bg: #f7efe5;
  --bg-soft: #f3e4d4;
  --card: rgba(255, 255, 255, 0.78);
  --text: #35262a;
  --muted: #6f5c5f;
  --primary: #7a1f3d;
  --primary-dark: #5f1530;
  --accent: #b07a4f;
  --border: rgba(122, 31, 61, 0.2);
  --shadow: 0 18px 40px rgba(122, 31, 61, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(208, 172, 134, 0.28), transparent 35%),
    radial-gradient(circle at 85% 18%, rgba(122, 31, 61, 0.18), transparent 32%),
    radial-gradient(circle at 65% 80%, rgba(230, 207, 177, 0.2), transparent 34%);
  pointer-events: none;
  z-index: -1;
}

.container {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(247, 239, 229, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  z-index: 20;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  gap: 1rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
}

.hero {
  padding: 6.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.2rem;
  align-items: center;
}

.kicker {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0.4rem 0 0.9rem;
  font-size: clamp(2rem, 5.6vw, 3.5rem);
  line-height: 1.15;
}

.hero-text {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-photo-wrap {
  margin: 0;
  justify-self: center;
}

.hero-photo {
  width: min(280px, 78vw);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 30px;
  border: 4px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 16px 30px rgba(95, 21, 48, 0.24);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.68rem 1.2rem;
  text-decoration: none;
  font-weight: 700;
  transition: 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.76);
}

.card {
  margin: 1rem auto;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--card);
  box-shadow: var(--shadow);
}

h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.4rem, 2.7vw, 2rem);
}

h3 {
  margin: 1.2rem 0 0.45rem;
  font-size: 1.08rem;
}

.muted {
  color: var(--muted);
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0.7rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pill-list li {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 0.32rem 0.8rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.stats {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.stats article {
  border: 1px solid var(--border);
  background: rgba(255, 241, 248, 0.75);
  border-radius: 18px;
  padding: 1rem;
  text-align: center;
}

.num {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.pub-controls {
  margin: 1rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.year-menu-static {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.7rem 0 1rem;
}

.year-link {
  text-decoration: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary-dark);
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  font-weight: 600;
}

.year-link:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
}

.range-filter {
  cursor: pointer;
}

.range-filter.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
}

.year-block {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  padding: 0.4rem 0.8rem;
  margin-bottom: 0.65rem;
}

.year-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: start;
}

.year-block > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary-dark);
  padding: 0.35rem 0;
}

.pub-static-list {
  margin: 0.2rem 0 0.4rem;
  padding-left: 1.1rem;
}

.pub-static-list li {
  margin-bottom: 0.65rem;
}

.pub-static-list p {
  margin: 0;
}

.pub-controls label {
  font-weight: 600;
  color: var(--muted);
}

.pub-controls select {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  background: #fff;
  color: var(--text);
}

.pub-year-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.year-chip {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary-dark);
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.year-chip.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
}

.pub-list {
  display: grid;
  gap: 0.7rem;
}

.pub-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
  background: rgba(255, 255, 255, 0.68);
}

.pub-meta {
  margin: 0 0 0.35rem;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
}

.pub-item p {
  margin: 0;
}

.pub-links {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.pub-links a {
  font-size: 0.92rem;
  font-weight: 600;
}

a {
  color: var(--primary-dark);
}

a:hover {
  color: var(--primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.site-footer {
  padding: 2.4rem 0 2.8rem;
  color: var(--muted);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    flex-direction: column;
    padding: 0.9rem;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary-dark);
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-weight: 600;
  }

  .stats,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .year-columns {
    grid-template-columns: 1fr;
  }
}
