/* ===== ROOT VARIABLES ===== */
:root {
  --bg-main: #111213;
  --bg-panel: #16181a;
  --text-main: #d6d6d6;
  --text-soft: #a8a8a8;
  --accent: #7aa2ff;
  --border-soft: #23262a;
}

/* ===== RESET ===== */
* {
  box-sizing: border-box;
}

/* ===== BASE PAGE ===== */
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ===== LAYOUT ===== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

h1 {
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

section {
  padding: 1.25rem;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
}

/* ===== EMBEDS ===== */
.embed {
  margin-top: 0.5rem;
}

.note {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 0.8rem;
}

/* ===== LINKS ===== */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== FOOTER BANNER (CENTERED) ===== */
.footer-banner {
  display: grid;
  grid-template-columns: 120px auto;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  margin: 3rem auto 2rem;
  padding: 1rem 1.5rem;
  max-width: 960px;
  background-color: var(--bg-panel);
  border-top: 1px solid var(--border-soft);
  font-size: 0.8rem;
  color: var(--text-soft);
}

.footer-banner img {
  width: 120px;
  height: 90px;
  object-fit: contain;
  opacity: 0.4;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

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

  .footer-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-banner img {
    margin: 0 auto;
  }

}

/* ===== EXTERNAL EMBEDS ===== */
.external-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.external-embed iframe {
  width: 100%;
  height: 180px;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
}

.external-links {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 1rem;
}