/* TruckMeta — Cloudflare static site */
:root {
  --bg: #050508;
  --bg-elevated: #0b0b0d;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --accent: #8ec8e8;
  --border: rgba(255, 255, 255, 0.35);
  --pill-bg: #0b0b0b;
  --max: 1100px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  text-align: center;
}

a { color: var(--accent); }
a:hover { color: #fff; }

img { max-width: 100%; height: auto; display: block; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-decoration: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  border: 2px solid #fff;
  border-radius: 9999px;
  padding: 0.4rem 0.95rem;
  background: #0b0b0b;
}
.brand:hover {
  background: #fff;
  color: #0b0b0b !important;
  -webkit-text-fill-color: #0b0b0b;
}

.nav-desktop {
  display: none;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  align-items: center;
}
.nav-desktop a,
.nav-desktop a.nav-pill {
  text-decoration: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid #fff;
  border-radius: 9999px;
  padding: 0.4rem 0.65rem;
  background: #0b0b0b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  line-height: 1.1;
  white-space: nowrap;
  text-align: center;
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  background: #fff;
  color: #0b0b0b !important;
  -webkit-text-fill-color: #0b0b0b;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 2px solid #fff;
  border-radius: 9999px;
  background: #0b0b0b;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}
.menu-toggle:hover { background: #fff; color: #0b0b0b; }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0 1rem 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a,
.nav-mobile a.nav-pill {
  text-decoration: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid #fff;
  border-radius: 9999px;
  padding: 0.65rem 1rem;
  background: #0b0b0b;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.nav-mobile a:hover {
  background: #fff;
  color: #0b0b0b !important;
  -webkit-text-fill-color: #0b0b0b;
}
.nav-mobile a:hover {
  background: #fff;
  color: #0b0b0b !important;
  -webkit-text-fill-color: #0b0b0b;
}

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* Layout */
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
.wrap-wide { max-width: var(--max); }

h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
}
h2 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 800;
  margin: 2rem 0 0.75rem;
  line-height: 1.25;
}
p { color: var(--muted); margin: 0 0 1rem; font-size: 1.05rem; line-height: 1.75; }
.lead { font-size: 1.12rem; color: rgba(255,255,255,0.92); }
strong { color: #fff; }

.tags { margin: 0 0 1.5rem; }
.tag {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0.2rem;
  color: rgba(255,255,255,0.9);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin: 1.5rem auto 2rem;
}
a.btn, button.btn {
  display: inline-block;
  border-radius: 9999px;
  border: 2px solid #fff;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  background: #0b0b0b;
  padding: 0.55rem 1.15rem;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  font-size: 0.95rem;
}
a.btn:hover, button.btn:hover {
  background: #fff;
  color: #0b0b0b !important;
  -webkit-text-fill-color: #0b0b0b;
}

.hero-img {
  width: min(340px, 70vw);
  margin: 1rem auto 1.5rem;
}
.hero-img img {
  width: 100%;
  height: auto;
  margin: 0 auto;
  background: transparent;
}

.card {
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  margin: 0.85rem auto;
  max-width: 34rem;
  background: rgba(0,0,0,0.25);
  text-align: center;
}
.card h3 { margin: 0 0 0.45rem; font-size: 1.15rem; font-weight: 800; color: #fff; }
.card p { margin: 0; font-size: 0.98rem; }

.list {
  list-style-position: inside;
  padding: 0;
  margin: 0.5rem auto 1.25rem;
  max-width: 40rem;
  text-align: center;
}
.list li {
  margin: 0.45rem 0;
  color: var(--muted);
}

/* Releases grid */
.release-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 720px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
}
@media (min-width: 900px) {
  .release-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    gap: 2.25rem 1.75rem;
  }
}
.release-card { text-align: center; }
.release-thumb {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: #0a0a0c;
  line-height: 0;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.release-thumb:hover { border-color: #fff; transform: translateY(-2px); }
.release-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.badge {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 1rem 0 0.35rem;
}
.release-title {
  color: #fff;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 800;
  margin: 0.25rem 0 0.35rem;
  line-height: 1.25;
}
.note { color: rgba(255,255,255,0.8); margin: 0 0 0.5rem; font-size: 1rem; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 2rem 1rem 2.5rem;
  margin-top: 2rem;
}
.footer-label {
  color: rgba(255,255,255,0.78);
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}
.footer-credit {
  margin: 1rem 0 0;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
}
.footer-links {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  margin: 0 0.35rem;
}
.footer-links a:hover { color: #fff; }

.stream-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin: 1.25rem 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 0.5rem 1rem;
  z-index: 1000;
  font-weight: 700;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }
