:root {
  color-scheme: light dark;
  --bg: #050505;
  --text: #f5f5f5;
  --muted: #c7c7c7;
  --accent: #ff4d8a;
  --accent-dark: #ff236f;
  --panel: #101010;
  --panel-accent: #131b2c;
  --card: #181818;
  --border: rgba(255, 255, 255, 0.12);
  --font: "Space Grotesk", "Soehne", "Space Mono", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}


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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 18px;
}

.notice {
  font-size: 0.95rem;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  background: rgba(255, 77, 138, 0.08);
  border-radius: 8px;
}

.notice--success {
  border-left-color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  color: #bbf7d0;
}

.notice--error {
  border-left-color: #ff4d8a;
  background: rgba(255, 77, 138, 0.15);
  color: #ffd9e6;
}

.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 640px;
}

.data-table th,
.data-table td {
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  text-align: left;
}

.data-table th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.data-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 5, 5, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  padding: 0.35rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 56px;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-icon {
  width: 20px;
  height: 20px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  transition: color 150ms ease, background 150ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 11;
}

.burger-menu span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.burger-menu.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

a {
  color: inherit;
}

.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.hero {
  background: radial-gradient(circle at top, #1a2744, #050505);
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0.4em;
  margin-bottom: 0.3em;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.25rem;
  max-width: 720px;
  color: rgba(245, 245, 245, 0.88);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cta {
  text-decoration: none;
  border: 1px solid transparent;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 150ms ease, background 150ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta.primary {
  background: var(--accent);
  color: #050505;
}

.cta.secondary {
  border-color: var(--accent);
  color: var(--accent);
}

.cta.tertiary {
  border-color: var(--border);
  color: var(--text);
}

.cta:hover {
  transform: translateY(-2px);
}

.panel {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.panel.accent {
  background: var(--panel-accent);
}

.two-col,
.split {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: flex-start;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2rem;
}

.principle,
.card,
.list-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.list-card ul,
.card ul {
  padding-left: 1.1rem;
}

.list-card li,
.card li {
  margin-bottom: 0.5rem;
}

.scenario-grid {
  margin-top: 2rem;
}

.story-excerpts article {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.excerpt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.status-badge {
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--text);
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
}

.merch-grid article {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.scenario-grid article {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.scenario-grid ul {
  padding-left: 1rem;
  margin: 0;
}

.scenario-grid li {
  margin-bottom: 0.35rem;
}

.sources {
  font-size: 0.85rem;
  color: var(--muted);
}

.research-cards article {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.manifesto-link {
  margin-top: 1.5rem;
  display: inline-flex;
}

.contributions article {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1.25rem;
}

.hint {
  font-size: 0.95rem;
  color: var(--muted);
}

.manifesto-download {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.footer {
  background: #050505;
  padding: 3rem 0 2rem;
}

.footer .logo {
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer .small {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .burger-menu {
    display: flex;
  }

  .nav-inner {
    flex-direction: row;
    align-items: center;
    position: relative;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(18px);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    border-bottom: 1px solid transparent;
  }

  .nav-links.active {
    max-height: 400px;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a {
    width: 100%;
    padding: 0.75rem 1.75rem;
    border-radius: 0;
    display: block;
  }

  .cta-group {
    flex-direction: column;
  }

  .cta {
    width: 100%;
  }
}

/* Punk Society – story submission form */
.story-form {
  max-width: 720px;
  margin: 2.5rem auto 0;
  padding: 2rem 2.25rem;
  border-radius: 1.25rem;
  background: radial-gradient(circle at top left, rgba(255, 0, 128, 0.18), transparent 55%),
              radial-gradient(circle at bottom right, rgba(80, 200, 255, 0.16), transparent 55%),
              rgba(8, 8, 16, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease;
  max-height: 2000px;
  overflow: hidden;
}

.story-form.is-hidden {
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0;
}

.story-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.story-form label {
  font-weight: 500;
  font-size: 0.95rem;
}

.story-form input,
.story-form select,
.story-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 5, 12, 0.96);
  color: inherit;
  font: inherit;
}

.story-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.story-form input:focus,
.story-form select:focus,
.story-form textarea:focus {
  outline: none;
  border-color: rgba(255, 0, 128, 0.8);
  box-shadow: 0 0 0 1px rgba(255, 0, 128, 0.8), 0 0 0 8px rgba(255, 0, 128, 0.15);
}

.story-form .checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}

.story-form .checkbox input[type="checkbox"] {
  width: auto;
}

.story-form .cta.primary {
  align-self: flex-start;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .story-form {
    padding: 1.25rem 1.15rem;
    margin: 1.75rem auto 0;
    border-radius: 1rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    gap: 1rem;
  }

  .story-form label {
    font-size: 0.9rem;
  }

  .story-form input,
  .story-form select,
  .story-form textarea {
    font-size: 0.95rem;
  }

  .story-form textarea {
    min-height: 6rem;
  }
}
