:root {
  /* Palette: calm, modern */
  --bg-page: #0b0f19;
  --bg-elevated: #0f172a;
  --bg-soft: #020617;
  --bg-section: #f9fafb;
  --bg-section-alt: #eff1f5;

  --accent: #0ea5e9;
  --accent-soft: rgba(14, 165, 233, 0.12);
  --accent-strong: #0284c7;

  --text-main: #020617;
  --text-invert: #f9fafb;
  --text-muted: #6b7280;

  --border-subtle: #e5e7eb;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.35);
}

/* Base */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #020617, #020617 40%, #020617 100%);
  color: var(--text-main);
  line-height: 1.6;
}

/* Layout helpers */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.4rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.9)
  );
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: #e5e7eb;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.85rem;
}

.main-nav a {
  color: #e5e7eb;
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background-color: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.7);
}

/* Hero */

.hero {
  position: relative;
  padding: 5rem 0 4.5rem; /* was 3.5rem 0 3.25rem */
  color: #f9fafb;
  overflow: hidden;

  background-image:
    /* lower alpha from 0.82/0.94 to e.g. 0.6/0.8 */
    linear-gradient(to bottom, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.8)),
    url("images/ospo-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Optional overlay: make this lighter too or remove it */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.1), transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-text {
  position: relative;
  max-width: 720px;
  padding: 1.8rem 1.8rem 2rem;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.7); /* was 0.82 */
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.65);
}

.hero h1 {
  font-size: clamp(2.25rem, 3vw, 2.8rem);
  margin: 0 0 0.7rem;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 0 1.6rem;
  color: #e5e7eb;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 0 2.6rem;
  }

  .hero-text {
    padding: 1.5rem 1.3rem 1.7rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Buttons */

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

.btn.primary {
  background: linear-gradient(to right, var(--accent), var(--accent-strong));
  color: #0f172a;
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.45);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(14, 165, 233, 0.6);
}

.btn.secondary {
  background-color: rgba(15, 23, 42, 0.6);
  border-color: rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

.btn.secondary:hover,
.btn.secondary:focus-visible {
  background-color: rgba(15, 23, 42, 0.9);
}

/* Sections */

.section {
  padding: 3rem 0;
  background: #ffffff;
}

.section:nth-of-type(odd) {
  background: #f9fafb;
}

.section-alt {
  background: #ffffff;
}

.section-accent {
  background: #e0f2fe;
}

.section h2 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.section p {
  margin: 0 0 1rem;
  color: var(--text-main);
}

.section a {
  color: var(--accent-strong);
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.6rem;
  margin-top: 1.4rem;
}

.card {
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.card-links a {
  font-weight: 500;
}

/* Join section */

.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.5fr);
  gap: 1.6rem;
  align-items: stretch;
}

.join-cta {
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
  background: #f9fafb;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.join-cta h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.join-cta a {
  font-weight: 500;
}

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

/* Resources */

.resource-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.resource-list li + li {
  margin-top: 0.45rem;
}

.resource-list a {
  position: relative;
  padding-left: 1.05rem;
  text-decoration: none;
}

.resource-list a::before {
  content: "↗";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.8rem;
}

/* Footer */

.site-footer {
  background: #020617;
  color: #9ca3af;
  padding: 1.8rem 0 2.2rem;
  border-top: 1px solid rgba(30, 64, 175, 0.6);
}

.footer-inner {
  text-align: center;
  font-size: 0.9rem;
}

.footer-meta a {
  color: #e5e7eb;
  text-decoration: none;
}

.footer-meta a:hover {
  text-decoration: underline;
}

/* Global links */

a {
  color: var(--accent-strong);
}

a:hover {
  color: #0369a1;
}

.workshop-list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}

.workshop-list li + li {
  margin-top: 0.5rem;
}

/* Responsive */

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
  }

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

  .hero-text {
    padding: 1.4rem 1.25rem 1.6rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .card {
    padding: 1.2rem 1.25rem;
  }
}

/* Workshop subpage hero: reuse front-page style but taller if you want */
.hero--workshop {
  padding: 4.5rem 0 3.5rem;
  background-image:
    linear-gradient(to bottom, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.8)),
    url("images/workshop-7.jpg"); /* same image as in the figure or another */
  background-size: cover;
  background-position: center;
}

/* Figure styling for workshop image in content */
.workshop-figure {
  margin: 1.5rem 0 2rem;
}

.workshop-figure img {
  display: block;
  max-width: 100%;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
}

.workshop-figure figcaption {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.5rem;
}