/* ========================================
   Site-wide styles
   ======================================== */

:root {
  --color-accent: #c0392b;
  --color-accent-light: #e74c3c;
  --color-bg-subtle: #f8f6f3;
  --color-border: #e0dbd5;
  --nav-height: 64px;
}

/* ========================================
   Header & Nav
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding-top: 0;
  padding-bottom: 0;
}

.site-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.site-header nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-header nav ul a {
  color: inherit;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
}

.site-header nav ul a:hover {
  color: var(--color-accent);
}

/* ========================================
   Hero section
   ======================================== */

.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #c0392b 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  margin-bottom: 3rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-buttons a[role="button"] {
  background: #fff;
  color: var(--color-accent);
  border: 2px solid #fff;
  font-weight: 600;
}

.hero-buttons a[role="button"].secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}

/* ========================================
   Section blocks
   ======================================== */

.section-block {
  margin-bottom: 3.5rem;
}

.section-block h2 {
  margin-bottom: 0.5rem;
}

.section-block > p {
  color: #666;
  margin-bottom: 1.5rem;
}

.page-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2.5rem;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

/* ========================================
   Card grid
   ======================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.card-grid--large {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
  display: block;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  border-color: var(--color-accent);
}

.card-emoji {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.card h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
  color: #1a1a1a;
}

.card p {
  font-size: 0.875rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.card--video .card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 6px;
  object-fit: cover;
  margin-bottom: 0.75rem;
  background: #eee;
}

/* ========================================
   Article page
   ======================================== */

.breadcrumb {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: #888;
}

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

.article-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: 1rem;
}

.article-lead {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.7;
  max-width: 700px;
}

.article-body {
  max-width: 760px;
  line-height: 1.8;
  font-size: 1.0rem;
}

.article-body h2 {
  margin-top: 2.5rem;
  font-size: 1.35rem;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

/* ========================================
   Video page
   ======================================== */

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16/9;
  margin: 0 0 2.5rem;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ========================================
   Related links
   ======================================== */

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.related-link {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--color-bg-subtle);
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  color: #333;
  border: 1px solid var(--color-border);
  transition: background 0.15s, color 0.15s;
}

.related-link:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  background: #1a1a1a;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  text-align: center;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 640px) {
  .site-header nav ul {
    gap: 1rem;
  }

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

  .card-grid,
  .card-grid--large {
    grid-template-columns: 1fr;
  }

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