/* -----------------------------------------------------------
   Exchange of Ideas – Base styles
   -------------------------------------------------------- */

:root {
  --bg-page: #0f172a;
  --bg-alt: #0b1120;
  --bg-card: #111827;
  --bg-pill: #1e293b;

  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-strong: #f9fafb;
  --accent: #22c55e;
  --accent-soft: #4ade80;
  --border-subtle: #1f2937;

  --shadow-soft: 0 18px 35px rgba(0, 0, 0, 0.65);
  --radius-lg: 1.25rem;
  --radius-md: 0.75rem;

  --font-body: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", sans-serif;
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont,
                  "Segoe UI", sans-serif;

  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-main);
  background: radial-gradient(circle at top, #1e293b 0, #020617 55%);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: rgba(15, 23, 42, 0.9);
}

a {
  color: var(--accent-soft);
  text-decoration-color: rgba(34, 197, 94, 0.4);
}

a:hover,
a:focus-visible {
  text-decoration-color: var(--accent-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease,
              transform 0.1s ease, box-shadow 0.1s ease;
}

.btn.primary {
  background: var(--accent);
  color: #022c22;
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: var(--text-main);
  border-color: #374151;
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  border-color: var(--accent-soft);
}

.skip-link {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -120%);
  padding: 0.5rem 1rem;
  background: #111827;
  color: var(--text-main);
  border-radius: 999px;
  border: 1px solid #4b5563;
  z-index: 1000;
}

.skip-link:focus {
  transform: translate(-50%, 10%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.88)
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-strong);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text-strong);
  background: rgba(15, 118, 110, 0.18);
}

.site-nav a[aria-current="page"] {
  color: var(--text-strong);
  background: rgba(22, 163, 74, 0.22);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid #1f2937;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
}

.nav-toggle-line {
  width: 16px;
  height: 2px;
  background: var(--text-muted);
  display: block;
}

.nav-toggle-label {
  font-size: 0.75rem;
}

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

.hero-sub {
  padding-top: 3.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2.5rem;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--accent-soft);
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--text-strong);
}

.hero-lede {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-side {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.quote-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.2rem 1.1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  max-width: 20rem;
}

.quote-text {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
}

.quote-meta {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-muted);
}

.section-header {
  max-width: 40rem;
  margin: 0 auto 2rem;
  text-align: left;
}

.section-header h2 {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
  color: var(--text-strong);
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.3rem 1.2rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--text-strong);
}

.card p {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  color: var(--text-main);
}

.card-note {
  margin-top: 2rem;
}

.principle {
  background: rgba(15, 23, 42, 0.8);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border-subtle);
}

.principle h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.principle p {
  margin: 0;
  font-size: 0.95rem;
}

.skills-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skill {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--border-subtle);
}

.skill h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.skill ul {
  padding-left: 1.1rem;
  margin: 0.3rem 0 0;
  font-size: 0.93rem;
}

.scenario-groups {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scenario-group {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--border-subtle);
}

.scenario-group h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.scenario-group ul {
  padding-left: 1.1rem;
  margin: 0.3rem 0 0;
  font-size: 0.94rem;
}

.resources-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checklist {
  padding-left: 1.2rem;
  margin: 0.3rem 0 0;
  font-size: 0.93rem;
}

.checklist li {
  margin-bottom: 0.25rem;
}

.contribute-form {
  max-width: 40rem;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem 1.7rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.contribute-form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1.5rem;
}

.contribute-form legend {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-strong);
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.9rem;
}

.form-row label {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  border-radius: 0.6rem;
  border: 1px solid #374151;
  padding: 0.55rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--text-main);
  background: #020617;
}

.form-row input:focus-visible,
.form-row select:focus-visible,
.form-row textarea:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 1px;
  border-color: var(--accent-soft);
}

.form-note {
  margin-top: 0.7rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid #111827;
  padding: 1.5rem 0 2rem;
  background: #020617;
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.back-to-top {
  font-size: 0.85rem;
  text-decoration: none;
}

.hero-inner,
.section-header,
.card,
.skill,
.scenario-group,
.resources-grid,
.contribute-form {
  -webkit-font-smoothing: antialiased;
}

/* Anchor offset so sticky header does not cover headings */
#why,
#principles,
#skills,
#practice,
#debate,
#scenarios,
#resources {
  scroll-margin-top: 80px; /* roughly header height */
}

@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-side {
    justify-content: flex-start;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .skills-grid,
  .scenario-groups,
  .resources-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-header-inner {
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    inset: auto 0 0 0;
    transform: translateY(-200%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease-out, opacity 0.18s ease-out;
    background: rgba(15, 23, 42, 0.98);
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 0.5rem 1.2rem 0.9rem;
    gap: 0.25rem;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
