﻿:root {
  --bg: #fff7fb;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-alt: rgba(255, 255, 255, 0.92);
  --card: rgba(255, 255, 255, 0.9);
  --border: rgba(148, 114, 199, 0.25);
  --text: #2a0e3f;
  --muted: #5d436f;
  --accent: #b04bff;
  --accent-strong: #301CA0;
  --accent-soft: rgba(176, 75, 255, 0.12);
  --shadow: 0 25px 65px rgba(93, 67, 111, 0.2);
}

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

.solid {
  padding: 1px 2px;
  border: 2px solid #000;
  background: #fff;
}
.hatched {
  padding: 1px 2px;
  border: 2px solid #000;
  background: repeating-linear-gradient(
      315deg,
      #fff,
      #fff 4px,
      #7594e993 5px,
      #7594e993 6px
  );
  color: #000;
}
.dashed-hatched {
  padding: 1px 2px;
  border: 2px dashed #000;
  background: repeating-linear-gradient(
      90deg,
      #fff,
      #fff 4px,
      #7594e993 5px,
      #7594e993 6px
  );
  color: #000;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: radial-gradient(140% 120% at 10% 0%, #ffe6f0 0%, #fdf4ff 40%, #f6f3ff 100%);
  line-height: 1.65;
}

img {
  width: 100%;
  height: auto;
  display: block;
  /* border-radius: 1.3rem; */
  /* border: 1px solid var(--border); */
  background: rgba(255, 255, 255, 0.6);
}

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

a:hover {
  text-decoration: underline;
}

p {
  color: var(--muted);
  margin-top: 0;
}

ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

li + li {
  margin-top: 0.3rem;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  color: var(--text);
  margin-top: 0;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

button {
  font-family: inherit;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-hero {
  padding: 2.5rem 0 4rem;
  background: radial-gradient(160% 140% at 20% 0%, rgba(255, 211, 238, 0.9), transparent 60%),
    linear-gradient(270deg, rgba(255, 255, 255, 0.95), rgba(253, 244, 255, 0.8));
  border-bottom: 1px solid var(--border);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0 2rem;
  position: relative;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--accent-strong);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  align-items: center;
  padding-bottom: 2rem;
}

.hero-media {
  display: flex;
  flex-direction: column;
}

.authors {
  color: var(--muted);
}

.affiliations-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.affiliations-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0rem;
  /* border: 1px solid var(--border); */
  /* border-radius: 999px; */
  /* background: rgba(255, 255, 255, 0.9); */
  color: var(--accent-strong);
  font-weight: 600;
  /* box-shadow: 0 8px 20px rgba(118, 75, 135, 0.15); */
}

.affiliation-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(122, 58, 173, 0.2);
  padding: 3px;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  /* backdrop-filter: blur(6px); */
}

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

.hero-card--stacked {
  margin-top: 1.25rem;
}

.hero-copy .lead {
  font-size: 1.1rem;
  max-width: 640px;
  color: #4b315f;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  color: var(--accent-strong);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: rgba(122, 71, 138, 0.8);
  margin-bottom: 0.5rem;
}

.caption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

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

.btn {
  /* background: linear-gradient(120deg, #5db4c2, #a855f7); */
  background: linear-gradient(120deg, #f472b6, #a855f7);
  color: #fff;
  box-shadow: 3px 5px 11px 0PX rgba(244, 114, 182, 0.35);
}

.btn:hover {
  transform: translateY(-5px);
  transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
  text-decoration: none;
}

.btn--ghost,
.pill {
  background: transparent;
  border-color: #9a60cd;
  color: var(--accent-strong);
}

.pill--ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--muted);
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--raised {
  background: rgba(255, 255, 255, 0.85);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__header {
  margin-bottom: 2.5rem;
}

.section__header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.metrics-grid,
.split-grid,
.resource-grid,
.intervention-grid,
.stability-grid {
  display: grid;
  gap: 1.5rem;
}

.metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-bottom: 2rem;
}

.insight__points {
  padding-left: 1.1rem;
  color: var(--muted);
}

.metric-card {
  padding: 1.5rem;
  border-radius: 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.split-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.highlight-card {
  background: var(--surface-alt);
  border-radius: 1.3rem;
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  /* backdrop-filter: blur(6px); */
}

.timeline {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.timeline__steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timeline__btn {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  text-align: left;
  padding: 1rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: border 0.2s ease, color 0.2s, background 0.2s;
}

.timeline__btn.is-active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(244, 114, 182, 0.15);
  box-shadow: 3px 5px 11px 0PX rgba(241, 180, 212, 0.35);
}

.timeline__panel {
  border-radius: 1.3rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  /* backdrop-filter: blur(4px); */
}

.timeline__media {
  margin-top: 1.5rem;
}

.finding-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  /* backdrop-filter: blur(6px); */
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: start;
}

.case-text,
.case-figure {
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  /* backdrop-filter: blur(6px); */
}

.case-media {
  border-radius: 1.25rem;
  border: 1px dashed var(--border);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.75rem;
}

.case-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.case-nav span {
  color: var(--muted);
  font-weight: 600;
}

.pattern-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.case-points {
  padding-left: 1.1rem;
}

.intervention-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
  margin-bottom: 2rem;
}

.figure-card {
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  /* backdrop-filter: blur(4px); */
}

.callout {
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  background: rgba(255, 203, 235, 0.4);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.resource-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.resource-card {
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  /* backdrop-filter: blur(4px); */
}

.resource-card a {
  align-self: flex-start;
}

.citation pre {
  background: #f6edff;
  color: #3d1d59;
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(122, 58, 173, 0.2);
  overflow-x: auto;
}

footer {
  padding: 2rem 0;
  background: #fef1fb;
  border-top: 1px solid var(--border);
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 960px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 24px;
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

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

  .timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .case-nav {
    flex-direction: column;
    align-items: flex-start;
  }

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