:root {
  --bg: #0b0b0f;
  --panel: #15151d;
  --text: #f2f2f2;
  --muted: #b3b3c2;
  --accent: #d22;
  --border: #2a2a38;
  --link: #ffffff;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header,
.site-footer {
  border-bottom: 1px solid var(--border);
  background: #101018;
}

.site-footer {
  border-top: 1px solid var(--border);
  border-bottom: 0;
  margin-top: 3rem;
}

.site-header .wrap,
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.site-footer .wrap {
  justify-content: center;
}

.footer-line {
  margin: 0;
  text-align: center;
  line-height: 1.6;
  word-break: break-word;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 1rem;
}

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

/* Wordmark is the visible title; screen readers get <h1> + image alt */
.hero-title {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: 0;
}

.hero-logo {
  display: block;
  width: min(420px, 88vw);
  height: auto;
  margin: 1.25rem auto 0;
}

.kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
}

h1, h2, h3 {
  line-height: 1.2;
}

.tagline,
.meta {
  color: var(--muted);
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.card-thumb-link {
  display: block;
  margin: 0 0 0.5rem;
  width: fit-content;
  max-width: 200px;
}

.card-thumb {
  display: block;
  width: auto;
  max-width: 200px;
  height: auto;
  border-radius: 6px;
}

.content p,
.content ul,
.content ol {
  max-width: 75ch;
}

.content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* YouTube embed — no inline styles (Firefox-friendly); aspect-ratio sizes height */
.content .embed-youtube {
  position: relative;
  display: block;
  width: min(100%, 480px);
  max-width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1rem 0;
  border-radius: 8px;
  overflow: hidden;
  background: #0a0a0f;
}

.content .embed-youtube__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 720px) {
  .content .embed-youtube {
    width: min(100%, 420px);
  }
}

@media (min-width: 1100px) {
  .content .embed-youtube {
    width: min(100%, 380px);
  }
}

code {
  background: #1a1a24;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
}

