:root {
  --bg-hero: #f3efe6;
  --bg-page: #faf8f4;
  --surface: #ffffff;
  --text-main: #181818;
  --text-soft: #57534e;
  --accent: #8b7355;
  --border: #e5dfd5;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(24, 24, 24, 0.04);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* HEADER */
.site-header {
  background-color: var(--bg-hero);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--text-main);
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 24px;
}

.main-nav a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* HERO */
.hero {
  background-color: var(--bg-hero);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.hero-rule {
  width: 96px;
  height: 2px;
  background-color: var(--accent);
  margin: 26px 0 22px;
}

.hero-lead {
  max-width: 680px;
  color: var(--text-soft);
  font-size: 1.02rem;
}

/* MAIN SECTIONS */
main.container {
  padding: 48px 0 72px;
}

.catalog-section h2,
.info-section h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-soft);
  font-size: 0.96rem;
  margin-bottom: 24px;
}

/* CONTROLS */
.controls-bar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  margin-bottom: 14px;
}

.control-input,
.control-select {
  height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.94rem;
}

.control-input:focus,
.control-select:focus {
  outline: 2px solid rgba(139, 115, 85, 0.25);
  border-color: var(--accent);
}

/* STATUS BAR */
.status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #6b7280;
  flex-shrink: 0;
}

/* GRID & CARDS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.festival-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-badge {
  align-self: flex-start;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background-color: var(--bg-hero);
  padding: 4px 10px;
  border-radius: 999px;
}

.card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.48rem;
  font-weight: 600;
  line-height: 1.22;
  color: var(--text-main);
}

.card-meta {
  font-size: 0.9rem;
  color: var(--text-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-period {
  font-size: 0.85rem;
  color: var(--accent);
}

.card-link {
  margin-top: auto;
  padding-top: 8px;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.card-link:hover {
  color: var(--accent);
}

/* INFO SECTIONS */
.info-section {
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.info-section p {
  color: var(--text-soft);
  max-width: 760px;
  margin-bottom: 14px;
}

.info-list {
  padding-left: 20px;
  color: var(--text-soft);
}

.info-list li {
  margin-bottom: 6px;
}

.text-link {
  color: var(--text-main);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  color: var(--accent);
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  background-color: var(--bg-hero);
  padding: 28px 0;
  font-size: 0.88rem;
  color: var(--text-soft);
  text-align: center;
}

@media (max-width: 768px) {
  .controls-bar {
    grid-template-columns: 1fr;
  }

  .main-nav {
    gap: 16px;
  }
}
