/* ============================================================
   nolla.css — Nolla.net Design System v2
   Korvaa Bootstrap 4 + style.css
   ============================================================ */

/* 1. Variables
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=Special+Elite&display=swap');

:root {
  /* Taustat */
  --bg-cream: #F5F0E8;
  --bg-warm: #EDE6D8;
  --bg-dark: #1A1A18;

  /* Teksti */
  --text-primary: #1A1A18;
  --text-secondary: #5C5549;
  --text-muted: #8B8279;

  /* Aksentti */
  --rust: #C4501A;
  --rust-light: #E8651F;
  --faded-blue: #4A6B7A;
  --faded-blue-light: #6B9AB0;
  --olive: #6B6B3C;
  --teal: #1FA8A0;
  --orange-warm: #E8851A;
  --tape-yellow: #E8D9A0;

  /* Film grain */
  --film-grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
}

/* 2. Reset & Base
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-cream);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; }

button { cursor: pointer; }

/* 3. Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
}

/* 15. Effects — Film grain & scanlines
   ============================================================ */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: var(--film-grain);
  pointer-events: none;
  z-index: 1000;
  opacity: 0.25;
}

/* 4. Layout
   ============================================================ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.content-section {
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

/* 5. Navigation
   ============================================================ */
.skyline-strip {
  background: var(--bg-dark);
  height: 48px;
  position: relative;
  overflow: hidden;
}

.skyline-strip svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 48px;
}

.nav {
  background: var(--bg-dark);
  color: #F5F0E8;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 40px;
  border-bottom: 1px solid #333;
}

.nav-logo {
  font-family: 'Special Elite', monospace;
  font-size: 34px;
  letter-spacing: 2px;
  color: #F5F0E8;
  text-decoration: none;
  position: relative;
}

.nav-logo span { color: var(--rust); }

.nav-logo::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--rust);
  border-radius: 50%;
  position: absolute;
  top: 4px;
  left: -14px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-est {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.nav-social {
  display: flex;
  gap: 12px;
}

.nav-social a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.nav-social a:hover { color: var(--rust-light); }

.nav-links {
  display: flex;
  gap: 0;
  padding: 0 40px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #999;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 20px;
  border-right: 1px solid #2a2a2a;
  transition: all 0.2s;
}

.nav-links a:first-child { border-left: 1px solid #2a2a2a; }

.nav-links a:hover, .nav-links a.active {
  color: #F5F0E8;
  background: #2a2a28;
}

.nav-links a.active { border-bottom: 2px solid var(--rust); }

.nav-search {
  margin-left: auto;
  padding: 14px 20px;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  border: none;
  background: none;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-search:hover { color: #F5F0E8; }

/* Hamburger (mobiili) */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: #999;
  font-size: 22px;
  padding: 8px;
  cursor: pointer;
}

/* AI Badge */
.ai-badge {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid var(--teal);
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}

/* 6. Hero
   ============================================================ */
.hero {
  background: var(--bg-dark);
  color: #F5F0E8;
  padding: 60px 40px 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: 'EST. 2000';
  position: absolute;
  top: 20px;
  right: 40px;
  font-family: 'Special Elite', monospace;
  font-size: 120px;
  color: rgba(255,255,255,0.03);
  letter-spacing: 10px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--rust) 0px, var(--rust) 20px, transparent 20px, transparent 25px);
  opacity: 0.6;
}

.hero-badge {
  display: inline-block;
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rust);
  border: 1px solid var(--rust);
  padding: 4px 12px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  max-width: 700px;
  margin-bottom: 16px;
}

.hero p {
  font-size: 16px;
  color: #999;
  max-width: 500px;
  margin-bottom: 30px;
}

.hero-meta {
  display: flex;
  gap: 30px;
  font-family: 'Special Elite', monospace;
  font-size: 12px;
  color: #666;
  letter-spacing: 1px;
}

.hero-meta span { color: var(--faded-blue-light); }

/* 7. Tape Divider & Banners
   ============================================================ */
.tape-divider {
  background: var(--tape-yellow);
  padding: 10px 40px;
  font-family: 'Special Elite', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid #D4C78A;
  border-bottom: 2px solid #D4C78A;
  transform: rotate(-0.3deg);
  margin: 0 -5px;
}

.comeback-banner {
  background: linear-gradient(135deg, var(--rust) 0%, var(--orange-warm) 100%);
  color: white;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.comeback-banner::before {
  content: '2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 72px;
  font-weight: 700;
  color: rgba(255,255,255,0.06);
  white-space: nowrap;
  letter-spacing: 20px;
  line-height: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.comeback-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  position: relative;
}

.comeback-content p {
  font-size: 14px;
  opacity: 0.85;
  position: relative;
}

.comeback-timeline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  position: relative;
}

.timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}

.timeline-dot.active {
  background: white;
  width: 12px;
  height: 12px;
  box-shadow: 0 0 8px rgba(255,255,255,0.5);
}

.timeline-line {
  width: 30px;
  height: 2px;
  background: rgba(255,255,255,0.2);
}

/* 8. Article Cards
   ============================================================ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--bg-dark);
  padding-bottom: 8px;
}

.section-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.section-header a {
  font-family: 'Special Elite', monospace;
  font-size: 12px;
  color: var(--rust);
  text-decoration: none;
  letter-spacing: 1px;
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.article-card {
  background: var(--bg-warm);
  border: 1px solid #D8D0C0;
  overflow: hidden;
  transition: transform 0.2s;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  display: block;
  color: var(--text-primary);
}

.article-card:hover { transform: translateY(-3px); }

.article-card.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.card-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: #C8BFB0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-image .placeholder-text {
  font-family: 'Special Elite', monospace;
  font-size: 14px;
  color: #999;
  letter-spacing: 2px;
}

.featured .card-image { aspect-ratio: 16/12; }

/* VHS scanline */
.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
}

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--rust);
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  z-index: 2;
}

.card-tag.lumi { background: var(--faded-blue); }
.card-tag.kulttuuri { background: var(--olive); }
.card-tag.video { background: var(--bg-dark); }
.card-tag.skede { background: var(--teal); }

.card-body { padding: 16px; }

.card-date {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.card-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

.featured .card-body h3 { font-size: 24px; }

.card-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.card-ai-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: var(--teal);
  background: rgba(31,168,160,0.1);
  border: 1px solid rgba(31,168,160,0.3);
  padding: 2px 6px;
  letter-spacing: 1px;
}

/* 9. Community Strip
   ============================================================ */
.community-strip {
  background: var(--bg-dark);
  padding: 30px 40px;
  display: flex;
  gap: 40px;
  border-top: 3px solid var(--rust);
}

.community-col { flex: 1; }

.community-col h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tape-yellow);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}

.community-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: #999;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s;
  border-bottom: 1px solid #222;
  text-decoration: none;
}

.community-item:hover { color: #F5F0E8; }

.community-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.community-item .dot.hot { background: var(--rust); }
.community-item .dot.fresh { background: var(--teal); }
.community-item .dot.classic { background: var(--orange-warm); }

.community-item .time {
  margin-left: auto;
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  color: #555;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* 10. Spot Section
   ============================================================ */
.spot-section {
  background: var(--bg-dark);
  color: #F5F0E8;
  padding: 50px 40px;
}

.spot-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 30px;
  border-bottom: 1px solid #333;
  padding-bottom: 12px;
}

.spot-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.spot-header a {
  color: var(--rust);
  text-decoration: none;
  font-family: 'Special Elite', monospace;
  font-size: 12px;
}

.spot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.spot-map {
  background: #2a2a28;
  border: 1px solid #3a3a38;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Special Elite', monospace;
  color: #555;
  font-size: 14px;
  position: relative;
}

.spot-map::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid #444;
  margin: 8px;
  pointer-events: none;
}

.spot-map .legacy-label {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  color: #444;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.spot-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spot-item {
  background: #2a2a28;
  border: 1px solid #3a3a38;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.2s;
  text-decoration: none;
  color: #F5F0E8;
}

.spot-item:hover { border-color: var(--rust); }

.spot-icon {
  width: 40px;
  height: 40px;
  background: var(--rust);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.spot-info h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.spot-info p {
  font-size: 12px;
  color: #777;
}

/* 11. Video Section
   ============================================================ */
.video-strip {
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.video-card {
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
  color: var(--text-primary);
  display: block;
}

.video-card:hover { transform: translateY(-3px); }

.video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: #2a2a28;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* VHS tracking lines */
.video-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255,255,255,0.02) 3px,
    rgba(255,255,255,0.02) 6px
  );
  pointer-events: none;
  z-index: 1;
}

.play-btn {
  width: 48px;
  height: 48px;
  background: rgba(196,80,26,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  z-index: 2;
  position: relative;
}

.video-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
  line-height: 1.3;
}

.video-card .vid-meta {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 1px;
}

/* 12. Era Timeline
   ============================================================ */
.era-strip {
  background: var(--bg-warm);
  border-top: 3px solid var(--bg-dark);
  border-bottom: 3px solid var(--bg-dark);
  padding: 24px 40px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
}

.era-item {
  flex: 1;
  text-align: center;
  padding: 12px 16px;
  border-right: 1px solid #D8D0C0;
  cursor: pointer;
  transition: background 0.2s;
  min-width: 120px;
}

.era-item:last-child { border-right: none; }
.era-item:hover { background: rgba(196,80,26,0.06); }
.era-item.current { background: rgba(196,80,26,0.08); }

.era-year {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--rust);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.era-item.current .era-year { color: var(--bg-dark); }

.era-desc {
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* 13. Archive Strip
   ============================================================ */
.archive-strip {
  background: var(--bg-warm);
  border-top: 3px solid var(--bg-dark);
  border-bottom: 3px solid var(--bg-dark);
  padding: 30px 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.archive-strip h3 {
  font-family: 'Special Elite', monospace;
  font-size: 24px;
  white-space: nowrap;
}

.archive-stats {
  display: flex;
  gap: 40px;
}

.archive-stat { text-align: center; }

.archive-stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--rust);
  display: block;
}

.archive-stat .label {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.archive-cta {
  margin-left: auto;
  background: var(--bg-dark);
  color: #F5F0E8;
  padding: 12px 28px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.archive-cta:hover { background: #2a2a28; color: #F5F0E8; }

/* 14. Footer
   ============================================================ */
.footer {
  background: var(--bg-dark);
  color: #666;
  padding: 50px 40px 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #2a2a28;
}

.footer-brand .footer-logo {
  font-family: 'Special Elite', monospace;
  font-size: 28px;
  color: #F5F0E8;
  margin-bottom: 8px;
}

.footer-brand .footer-logo span { color: var(--rust); }

.footer-brand p {
  font-size: 13px;
  color: #555;
  max-width: 300px;
}

.footer-links { display: flex; gap: 60px; }

.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--rust-light); }

.footer-bottom {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: #444;
  display: flex;
  justify-content: space-between;
}

/* 16. Responsive
   ============================================================ */

/* Tablet: 768-1024px */
@media (max-width: 1024px) {
  .article-grid {
    grid-template-columns: 1fr 1fr;
  }

  .article-card.featured {
    grid-column: span 2;
    grid-row: span 1;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-links {
    gap: 30px;
  }

  .nav-est {
    display: none;
  }
}

/* Mobile: <768px */
@media (max-width: 767px) {
  .container,
  .content-section,
  .video-strip {
    padding: 20px 16px;
  }

  .nav-top {
    padding: 12px 16px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    padding: 0;
    background: var(--bg-dark);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    border-right: none;
    border-bottom: 1px solid #2a2a2a;
    padding: 14px 20px;
  }

  .nav-links a:first-child {
    border-left: none;
  }

  .nav-hamburger {
    display: block;
  }

  .nav-search {
    display: none;
  }

  .hero {
    padding: 30px 16px 24px;
  }

  .hero::before {
    font-size: 60px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .tape-divider {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    padding: 10px 16px;
  }

  .tape-divider span:not(:first-child) {
    display: none;
  }

  .comeback-banner {
    flex-direction: column;
    gap: 16px;
    padding: 20px 16px;
  }

  .comeback-timeline {
    display: none;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-card.featured {
    grid-column: span 1;
    grid-row: span 1;
  }

  .community-strip {
    flex-direction: column;
    padding: 20px 16px;
    gap: 24px;
  }

  .spot-section {
    padding: 30px 16px;
  }

  .spot-grid {
    grid-template-columns: 1fr;
  }

  .spot-map {
    display: none;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .archive-strip {
    flex-direction: column;
    gap: 20px;
    padding: 24px 16px;
    align-items: flex-start;
  }

  .archive-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .archive-cta {
    margin-left: 0;
  }

  .footer-top {
    flex-direction: column;
    gap: 30px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .era-strip {
    padding: 16px;
  }

  .skyline-strip {
    height: 32px;
  }
}

/* Flash messages (säilytetään toimivuus) */
.flash-messages {
  list-style: none;
  padding: 12px 40px;
}

.flash-messages li {
  background: var(--rust);
  color: white;
  padding: 10px 16px;
  margin-bottom: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
}

/* Lomakkeet (perus) */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: white;
  border: 1px solid #D8D0C0;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--rust);
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-primary {
  background: var(--rust);
  color: white;
}

.btn-primary:hover {
  background: var(--rust-light);
  color: white;
}

.btn-dark {
  background: var(--bg-dark);
  color: #F5F0E8;
}

.btn-dark:hover {
  background: #2a2a28;
  color: #F5F0E8;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 4px;
  margin: 24px 0;
  list-style: none;
  font-family: 'Space Grotesk', sans-serif;
}

.pagination .page-item .page-link {
  display: block;
  padding: 8px 14px;
  border: 1px solid #D8D0C0;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
}

.pagination .page-item.active .page-link {
  background: var(--rust);
  border-color: var(--rust);
  color: white;
}

.pagination .page-item .page-link:hover {
  background: var(--bg-warm);
}

/* ============================================================
   SISÄLTÖSIVUT — page wrappers, article lists, detail views
   ============================================================ */

.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
}

.page-header {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--bg-dark);
}

.page-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
}

.page-header p {
  color: var(--text-secondary);
  margin-top: 6px;
  font-size: 14px;
}

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-warm);
  border: 1px solid #D8D0C0;
}

.filter-bar label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 4px;
}

.filter-bar select,
.filter-bar input[type="text"] {
  padding: 8px 12px;
  background: white;
  border: 1px solid #D8D0C0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
}

.filter-bar select:focus,
.filter-bar input[type="text"]:focus {
  border-color: var(--rust);
}

/* Article list */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-list-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 8px;
  border-bottom: 1px solid #D8D0C0;
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.15s, padding-left 0.15s;
}

.article-list-item:hover {
  background: var(--bg-warm);
  padding-left: 16px;
}

.article-list-item .ali-date {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  white-space: nowrap;
  min-width: 90px;
}

.article-list-item .ali-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  flex: 1;
}

.article-list-item .ali-meta {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  white-space: nowrap;
}

.article-list-item .ali-actions {
  display: flex;
  gap: 6px;
}

/* Article detail */
.article-detail {
  max-width: 780px;
}

.article-detail-header {
  margin-bottom: 32px;
}

.article-detail-header .tag {
  display: inline-block;
  background: var(--rust);
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  margin-bottom: 16px;
}

.article-detail-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}

.article-detail-header .lead {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.article-meta {
  font-family: 'Special Elite', monospace;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.article-meta a {
  color: var(--rust);
  text-decoration: none;
}

.article-meta a:hover { text-decoration: underline; }

.article-divider {
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--rust) 0px, var(--rust) 20px, transparent 20px, transparent 25px);
  opacity: 0.4;
  margin: 24px 0;
}

.article-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
}

.article-body p { margin-bottom: 16px; }
.article-body h2 { font-size: 22px; font-weight: 700; margin: 28px 0 12px; }
.article-body h3 { font-size: 18px; font-weight: 600; margin: 20px 0 10px; }
.article-body img { max-width: 100%; margin: 20px 0; }
.article-body a { color: var(--rust); }
.article-body blockquote {
  border-left: 3px solid var(--rust);
  padding-left: 16px;
  color: var(--text-secondary);
  font-style: italic;
  margin: 20px 0;
}

/* Auth forms */
.auth-wrap {
  max-width: 480px;
  margin: 60px auto;
  padding: 40px;
  background: var(--bg-warm);
  border: 1px solid #D8D0C0;
}

.auth-wrap h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-wrap .auth-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.auth-links {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  color: var(--rust);
  text-decoration: none;
}

.auth-links a:hover { text-decoration: underline; }

.form-errors {
  list-style: none;
  margin: 4px 0 0;
}

.form-errors li {
  font-size: 12px;
  color: var(--rust);
  margin-top: 2px;
}

/* Links page */
.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.links-block {
  background: var(--bg-warm);
  border: 1px solid #D8D0C0;
  padding: 20px;
}

.links-block h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-dark);
}

.links-block ul { list-style: none; }

.links-block ul li { margin-bottom: 8px; }

.links-block ul li a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.links-block ul li a:hover { color: var(--rust); }

/* Spot full list */
.spot-full-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 8px;
  border-bottom: 1px solid #D8D0C0;
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.15s, padding-left 0.15s;
}

.spot-full-item:hover {
  background: var(--bg-warm);
  padding-left: 16px;
}

.spot-full-item h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  flex: 1;
}

.spot-full-item .spot-meta {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* Playlist / YouTube */
.playlist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.playlist-card {
  text-decoration: none;
  color: var(--text-primary);
  background: var(--bg-warm);
  border: 1px solid #D8D0C0;
  overflow: hidden;
  transition: transform 0.2s;
  display: block;
}

.playlist-card:hover { transform: translateY(-3px); }

.playlist-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.playlist-card-body { padding: 12px; }

.playlist-card-body h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.yt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.yt-item iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

.yt-item h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-top: 10px;
}

/* Admin/edit buttons in lists */
.btn-sm {
  padding: 5px 12px;
  font-size: 11px;
  letter-spacing: 1px;
}

/* Error pages */
.error-page {
  text-align: center;
  padding: 80px 40px;
}

.error-page .error-code {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 120px;
  font-weight: 700;
  color: var(--rust);
  line-height: 1;
  display: block;
}

.error-page h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 16px 0 8px;
}

.error-page p {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

@media (max-width: 767px) {
  .page-wrap { padding: 20px 16px; }
  .playlist-grid { grid-template-columns: repeat(2, 1fr); }
  .yt-grid { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: 1fr; }
  .auth-wrap { margin: 20px 16px; padding: 24px; }
  .article-detail-header h1 { font-size: 26px; }
  .article-list-item .ali-meta { display: none; }
}

/* ── Auth Forms ─────────────────────────────── */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: .4rem; font-weight: 600; font-size: .9rem; }
.form-control {
  width: 100%; padding: .65rem 1rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 4px;
  background: rgba(255,255,255,.05);
  color: var(--color-text);
  font-size: 1rem;
  box-sizing: border-box;
}
.form-control:focus { outline: none; border-color: var(--color-accent); }
.btn { display: inline-block; padding: .65rem 1.5rem; border: none; border-radius: 4px; cursor: pointer; font-weight: 700; font-size: .95rem; transition: opacity .2s; text-decoration: none; }
.btn:hover { opacity: .85; }
.btn-primary { background: var(--color-accent); color: #000; }
.btn-success { background: #2ecc71; color: #000; }
.btn-danger  { background: #e74c3c; color: #fff; }
.btn-secondary { background: rgba(255,255,255,.12); color: var(--color-text); }
