/* === Variables === */
:root {
  --primary: #414042;
  --secondary: #961b20;
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --text: #414042;
  --text-muted: #6b6b6b;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  font-family: "Nunito", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg-alt);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

/* === Container === */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1rem;
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.header-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.header-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
}

/* ============================================================
   TOPIC NAV (sticky)
   ============================================================ */
.topic-nav {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.topic-nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1rem;
  background: transparent;
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1.5px solid var(--primary);
  min-height: 32px;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
  cursor: pointer;
}

.topic-chip:hover {
  background: rgba(150, 27, 32, 0.08);
  border-color: var(--secondary);
  color: var(--secondary);
  text-decoration: none;
}

.topic-chip.active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   POSTER
   ============================================================ */
.poster-section {
  padding: 2rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.poster-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.06);
  background: #fff;
}

/* swap .poster-img back in when the real poster is ready */
.poster-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Coming-soon poster */
.poster-coming-soon {
  display: flex;
  flex-direction: column;
  background: var(--primary);
  color: #fff;
  min-height: 320px;
  text-align: center;
}

.poster-cs-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.75rem 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.poster-cs-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  opacity: 0.9;
}

.poster-cs-org {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.poster-cs-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  gap: 0.5rem;
}

.poster-cs-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.poster-cs-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: 0.25rem 0 0.75rem;
}

.poster-cs-divider {
  width: 40px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
  margin: 0.25rem auto 0.75rem;
}

.poster-cs-soon {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.poster-cs-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.poster-cs-bottom {
  padding: 0.9rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
}

@media (min-width: 600px) {
  .poster-coming-soon {
    min-height: 380px;
  }

  .poster-cs-title {
    font-size: 1.85rem;
  }
}

/* ============================================================
   Q&A SECTION
   ============================================================ */
.qa-section {
  padding: 2rem 0 3rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.45rem;
  border-bottom: 3px solid var(--secondary);
  display: inline-block;
}

/* ============================================================
   Q&A CARD
   ============================================================ */
.qa-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  scroll-margin-top: var(--nav-height, 90px);
}

.qa-card-title {
  background: var(--secondary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  letter-spacing: 0.01em;
}

/* ============================================================
   Q&A ITEM (details / summary)
   ============================================================ */
.qa-item {
  border-top: 1px solid var(--border);
}

.qa-item:first-of-type {
  border-top: none;
}

.qa-item summary {
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  transition: background 0.12s;
  user-select: none;
  -webkit-user-select: none;
}

.qa-item summary::-webkit-details-marker {
  display: none;
}

.qa-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--secondary);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s ease;
}

.qa-item[open] > summary::after {
  content: "−";
}

.qa-item summary:hover {
  background: #fafafa;
}

.qa-item[open] > summary {
  background: #fdf3f3;
  color: var(--secondary);
}

.qa-answer {
  padding: 0.1rem 1.25rem 1.1rem;
  font-size: 0.88rem;
  color: #444;
  line-height: 1.75;
  animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.qa-answer p + p {
  margin-top: 0.5rem;
}

.qa-answer ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}

.qa-answer li {
  margin-bottom: 0.3rem;
}

.qa-answer a {
  color: var(--secondary);
  font-weight: 500;
}

.qa-answer strong {
  color: var(--primary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 2.5rem 1rem 2rem;
}

.footer-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.footer-org {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.1rem;
}

.footer-tagline {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  transition: color 0.2s;
  text-decoration: none;
}

.footer-social:hover {
  color: #fff;
  text-decoration: none;
}

.footer-social-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: inherit;
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   RESPONSIVE — tablet / desktop (min-width: 600px)
   ============================================================ */
@media (min-width: 600px) {
  .header-title {
    font-size: 1.4rem;
  }

  .logo {
    width: 64px;
    height: 64px;
  }

  .topic-chip {
    font-size: 0.82rem;
    padding: 0.38rem 1.1rem;
  }

  .poster-section {
    padding: 2.25rem 0;
  }

  .qa-section {
    padding: 2.25rem 0 4rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .qa-card-title {
    font-size: 1rem;
    padding: 0.95rem 1.5rem;
  }

  .qa-item summary {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
  }

  .qa-answer {
    padding: 0.1rem 1.5rem 1.25rem;
    font-size: 0.92rem;
  }

  .poster-placeholder {
    min-height: 300px;
  }
}
