:root {
  --bg: #020308;
  --panel: #05070d;
  --accent: #e63946;
  --accent-alt: #f4a261;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --text-main: #fdf6e3;
  --muted: #a9a6a0;
  --radius-pill: 999px;
  --radius-card: 14px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.6);
  --transition-fast: 0.2s ease;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Global */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-main);
  font-size: 20px;
  line-height: 1.5;
}

.page {
  max-width: 960px;           /* matches the tall, single-column wireframe */
  margin: 0 auto;
  padding: 24px 18px 40px;
}

/* Top Bar */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 26px;
}

.pill {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-main);
  text-decoration: none;
  background: transparent;
  transition: background var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast), box-shadow var(--transition-fast);
}

.pill-cta {
  background: var(--accent);
  border-color: transparent;
}

.pill-alt {
  background: var(--accent-alt);
  color: #000;
}

.pill-logo {
  padding: 4px 14px;
  border: none;
}

.pill-logo img {
  display: block;
  height: 252px;
  width: auto;
}

.pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

/* Sections */

.section {
  margin-bottom: 40px;
}

/* Hero */

.hero-title {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 16px;
}

.hero-video {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-bottom: 14px;
}

.hero-video iframe {
  width: 100%;
  height: 230px;
  border: none;
}

.hero-copy {
  font-size: 1rem;
  color: var(--muted);
  text-align: center;
  margin: 0;
}

/* Story + Video */

.story-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
}

.story-text h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.story-text p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--muted);
}

.story-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.highlight {
  background: var(--panel);
  border-radius: 10px;
  padding: 8px 9px;
  border: 1px solid var(--border-subtle);
}

.highlight h3 {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: var(--accent-alt);
}

.highlight p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.story-video .video-frame {
  width: 100%;
  height: 100%;
  min-height: 120px;
  border-radius: var(--radius-card);
  border: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
}

/* What's in the Box */

.box h2 {
  text-align: center;
  margin: 0 0 14px;
  font-size: 1.6rem;
}

.box-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.box-item {
  background: var(--panel);
  border-radius: var(--radius-card);
  padding: 10px 8px;
  text-align: center;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.box-item img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 12px;
}

.box-item h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.box-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Secondary Story block */

.story-secondary-inner {
  background: var(--panel);
  border-radius: var(--radius-card);
  padding: 14px 12px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.story-secondary-inner h2 {
  margin: 0 0 6px;
  font-size: 1.6rem;
}

.story-secondary-inner p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Team */

.team h2 {
  text-align: center;
  margin: 0 0 18px;
  font-size: 1.6rem;
}

.team-label {
  margin: 0 0 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-alt);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.team-member {
  margin: 0;
  background: var(--panel);
  padding: 6px 6px 8px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.team-member a {
  text-decoration: none;
}

.team-member img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 4px;
}

.team-member figcaption {
  font-size: 0.8rem;
  color: var(--muted);
}

.designers p {
  margin: 4px 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Footer */

.footer {
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.social-icons img {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.social-icons a:hover img {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.footer p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Modal */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: black;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  margin: 10% auto;
  border-radius: 8px;
  max-width: 400px;
  position: relative;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  margin: 0.5rem 0;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.sb-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.75rem;
  width: 100%;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.hidden-honeypot {
  display: none;
}

/* Responsive tweaks */

@media (max-width: 420px) {
  .story-layout {
    grid-template-columns: 1fr;
  }

  .hero-video iframe {
    height: 210px;
  }
}

@media (max-width: 520px) {
  .top-bar {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  /* Put logo on top */
  .top-bar .pill-logo {
    order: 0;
  }

  /* Buttons underneath */
  .top-bar .pill-cta {
    order: 1;
    width: 100%;
    max-width: 260px;     /* keeps them from causing overflow */
    justify-content: center;
  }

  .top-bar .pill-cta.pill-alt {
    order: 2;             /* Ko-fi under Kickstarter */
  }
}

@media (min-width: 768px) {
  .box-item img {
    width: 320px;
    height: 320px;
    margin-bottom: 20px;
  }

  .box-item h3 {
    font-size: 1.1rem;
  }

  .box-item p {
    font-size: 0.95rem;
  }
}
