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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Verdana, Geneva, sans-serif;
  color: #e0e0e0;
  background: #111;
  min-height: 100vh;
}

a {
  color: inherit;
}

/* --- Nav bar --- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 24px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav .nav-brand {
  margin-right: auto;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
}

.site-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  padding: 14px 16px;
  cursor: pointer;
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-nav a:hover {
  color: #fff;
}

/* --- Sections --- */

section {
  padding: 80px 24px;
}

section:first-of-type {
  padding-top: 128px;
}

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 40px;
}

/* --- Hero / Intro --- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  background:
    linear-gradient(180deg, rgba(17,17,17,0) 60%, #111 100%),
    url('/images/952banner.jpg') repeat-x center top;
  background-size: auto, auto 120px;
}

.hero-inner {
  max-width: 680px;
}

.hero-sticker {
  width: 200px;
  height: auto;
  margin-bottom: 40px;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.5));
}

.hero-text {
  font-size: 1.15rem;
  line-height: 1.9;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
}

.hero-text .highlight {
  color: #fff;
  font-weight: bold;
  font-style: normal;
}

.hero-tagline {
  margin-top: 32px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Albums grid --- */

.albums-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.album-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.7);
}

.album-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.9);
}

.album-card .album-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
  font-size: 0.95rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.album-card .album-count {
  display: block;
  font-size: 0.75rem;
  font-weight: normal;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* --- SIDs / Links page --- */

.sids-notice {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 32px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.sids-notice a {
  color: rgba(255, 255, 255, 0.6);
}

.sids-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.sids-grid .cell {
  padding: 6px 8px;
  font-size: 0.8rem;
  min-height: 28px;
  border-radius: 2px;
}

.sids-grid .cell a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: color 0.15s;
}

.sids-grid .cell a:hover {
  color: #fff;
}

.sids-grid .cell b {
  color: #fff;
}

/* --- METAR page --- */

.metar-page {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
}

.metar-page table {
  width: 100%;
}

.metar-page .lnx {
  text-decoration: none;
  color: #7aa2f7;
  cursor: pointer;
}

.metar-page .lnx:hover {
  color: #fff;
}

/* --- Photo gallery (full album view) --- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
  margin-bottom: 32px;
}

.photo-grid img {
  width: 100%;
  height: auto;
  display: block;
  border: 0;
  border-radius: 2px;
}

.photo-extra {
  text-align: center;
  margin-bottom: 24px;
}

.photo-extra img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  margin-bottom: 16px;
  border: 0;
}

/* --- Photo album menu --- */

.album-menu {
  text-align: center;
  margin-top: 32px;
}

.album-menu-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  border-radius: 4px;
  overflow: hidden;
  list-style: none;
}

.album-menu-list a {
  display: block;
  padding: 8px 20px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-weight: normal;
  cursor: pointer;
  font-family: Verdana, sans-serif;
  font-size: 0.8rem;
  transition: background 0.2s, color 0.2s;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.album-menu-list a:last-child {
  border-right: none;
}

.album-menu-list a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.album-menu-list a.active {
  background: #fff;
  color: #111;
  font-weight: bold;
}

/* --- Status bar --- */

.status-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #7aa2f7;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
}

.status-bar a {
  color: #7aa2f7;
  text-decoration: none;
}

.status-bar a:hover {
  color: #fff;
}

/* --- Footer --- */

.site-footer {
  text-align: center;
  padding: 40px 24px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* --- Responsive --- */

@media (max-width: 768px) {
  .albums-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sids-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-sticker {
    width: 150px;
  }

  .hero-text {
    font-size: 1rem;
  }

  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  section {
    padding: 60px 16px;
  }
}

@media (max-width: 480px) {
  .albums-grid {
    grid-template-columns: 1fr;
  }

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

  .site-nav {
    padding: 0 12px;
  }

  .site-nav a {
    padding: 14px 10px;
    font-size: 0.8rem;
  }

  .hero-sticker {
    width: 120px;
  }

  .hero-text {
    font-size: 0.9rem;
  }

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

  section {
    padding: 48px 12px;
  }
}
