:root {
  --tv-bg-deep: #0b0614;
  --tv-bg-mid: #1a0a24;
  --tv-cream: #f5e6d3;
  --tv-cream-muted: #d4c4b0;
  --tv-red: #c41e3a;
  --tv-red-bright: #e8324f;
  --tv-purple: #6b2d7a;
  --tv-navy: #12102a;
  --tv-card: rgba(20, 10, 35, 0.85);
  --tv-border: rgba(245, 230, 211, 0.12);
  --tv-max-width: 1180px;
  --font-display: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-display);
  background: linear-gradient(160deg, var(--tv-bg-deep) 0%, var(--tv-bg-mid) 40%, var(--tv-navy) 100%);
  color: var(--tv-cream);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--tv-cream);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 2rem, var(--tv-max-width));
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 6, 20, 0.92);
  border-bottom: 1px solid var(--tv-border);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--tv-cream);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0.9;
}

.nav a:hover,
.nav a[aria-current="page"] {
  opacity: 1;
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-display);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn:focus-visible,
.menu-toggle:focus-visible,
a:focus-visible {
  outline: 3px solid var(--tv-red-bright);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--tv-red) 0%, var(--tv-red-bright) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(196, 30, 58, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--tv-cream-muted);
  color: var(--tv-cream);
}

.btn-outline:hover {
  border-color: var(--tv-cream);
  color: #fff;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--tv-cream);
}

.hero h1,
.post h1,
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 1rem;
  color: var(--tv-cream);
  line-height: 1.2;
}

.lede,
.section-lead {
  color: var(--tv-cream-muted);
  font-size: 1.1rem;
  max-width: 62ch;
}

.card {
  background: var(--tv-card);
  border: 1px solid var(--tv-border);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.post-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.post-card h2 {
  margin: 0.4rem 0 0.6rem;
  font-size: 1.45rem;
}

.post-card p {
  margin: 0 0 1rem;
  color: var(--tv-cream-muted);
}

.meta {
  color: var(--tv-cream-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--tv-red-bright);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 280px;
  gap: 2rem;
  align-items: start;
}

.post-body h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.45rem;
}

.post-body p,
.post-body li {
  color: var(--tv-cream);
}

.post-body ul {
  padding-left: 1.2rem;
}

.post-body li + li {
  margin-top: 0.45rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.side-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.side-card p {
  color: var(--tv-cream-muted);
  margin-top: 0;
}

.footer {
  border-top: 1px solid var(--tv-border);
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

.footer-brand p,
.copyright,
.footer-links a {
  color: var(--tv-cream-muted);
}

.footer-brand p {
  max-width: 46ch;
}

.footer-cta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.footer-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.copyright {
  margin-top: 2rem;
  font-size: 0.85rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(11, 6, 20, 0.98);
    border-bottom: 1px solid var(--tv-border);
  }

  .header.menu-open .nav {
    display: flex;
  }

  .layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
