@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600&family=Manrope:wght@300;400;500;600;700&display=swap");

:root {
  --ink: #1e1a16;
  --muted: #6f655c;
  --paper: #f7f1e8;
  --card: #ffffff;
  --accent: #e04f2d;
  --accent-2: #0b7a75;
  --accent-3: #f2b134;
  --shadow: 0 20px 45px rgba(18, 16, 14, 0.15);
  --radius: 20px;
}

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

body {
  margin: 0;
  font-family: "Manrope", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Fraunces", "Georgia", serif;
  margin: 0 0 0.6rem;
  letter-spacing: 0.3px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

img,
video {
  max-width: 100%;
  border-radius: 14px;
  display: block;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.7;
  animation: float 18s ease-in-out infinite;
}

.glow-one {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #ffd5c7, transparent 70%);
  top: -120px;
  left: -80px;
}

.glow-two {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #c6f6f3, transparent 70%);
  bottom: -140px;
  right: -120px;
  animation-delay: -7s;
}

.glow-three {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, #fff3c7, transparent 70%);
  top: 40%;
  right: 18%;
  animation-delay: -11s;
}

.mesh {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(30, 26, 22, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(30, 26, 22, 0.06) 1px,
      transparent 1px
    );
  background-size: 140px 140px;
  opacity: 0.25;
}

.hero {
  padding: 5rem 8vw 4rem;
}

.hero-content {
  max-width: 920px;
  animation: fadeUp 0.9s ease-out both;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

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

.btn {
  border: none;
  background: var(--card);
  color: var(--ink);
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.8);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(18, 16, 14, 0.2);
}

.hero-meta {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.meta-card {
  background: rgba(255, 255, 255, 0.85);
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.4rem;
}

.meta-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.stat {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.controls {
  margin: 0 6vw;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label,
.label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

input[type="search"],
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(30, 26, 22, 0.15);
  font-size: 1rem;
  background: #fff;
  font-family: inherit;
}

.count {
  font-weight: 600;
  margin: 0;
}

.overview {
  padding: 3rem 6vw 1rem;
}

.front-matter {
  padding: 1rem 6vw 0;
}

.front-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.info-list {
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.info-list div {
  display: grid;
  gap: 0.2rem;
}

.info-list dt {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--muted);
}

.info-list dd {
  margin: 0;
  font-weight: 600;
}

.panel.wide {
  grid-column: 1 / -1;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--accent);
}

.overview-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.panel {
  background: rgba(255, 255, 255, 0.92);
  padding: 1.2rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.pill-list,
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill-list li {
  background: rgba(11, 122, 117, 0.12);
  color: var(--accent-2);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
}

.link-list {
  display: grid;
  gap: 0.4rem;
}

.link-list li a {
  color: var(--accent);
  font-weight: 600;
}

.empty {
  color: var(--muted);
  margin: 0.6rem 0 0;
}

.section-nav {
  padding: 2rem 6vw 0.5rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  border: 1px solid rgba(30, 26, 22, 0.15);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  cursor: pointer;
}

.content {
  padding: 1.5rem 6vw 4rem;
  display: grid;
  gap: 2.5rem;
}

.session-section {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.section-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.summary-list {
  padding-left: 1.1rem;
  margin: 0.4rem 0 0;
}

.summary-list li {
  margin-bottom: 0.4rem;
}

.supporting {
  display: grid;
  gap: 0.8rem;
}

.supporting h3 {
  margin-bottom: 0.2rem;
}

.support-card {
  background: #fff;
  border-radius: 16px;
  padding: 0.6rem 1rem 1rem;
  border: 1px solid rgba(30, 26, 22, 0.08);
}

.support-card summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.4rem 0;
}

.support-card summary::-webkit-details-marker {
  display: none;
}

.support-card summary::after {
  content: "+";
  float: right;
  font-size: 1.1rem;
  color: var(--accent);
}

.support-card[open] summary::after {
  content: "-";
}

.slide-body {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.content-block {
  background: rgba(248, 244, 237, 0.9);
  padding: 1rem 1.2rem;
  border-radius: 14px;
}

.content-block ul,
.content-block ol {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.content-block li {
  margin-bottom: 0.4rem;
}

.smart-art {
  display: grid;
  gap: 0.8rem;
}

.smart-node {
  background: rgba(11, 122, 117, 0.1);
  border-radius: 12px;
  padding: 0.8rem;
  display: grid;
  gap: 0.6rem;
}

.smart-node-header {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-weight: 600;
}

.smart-node img,
.smart-child img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.smart-children {
  display: grid;
  gap: 0.5rem;
}

.smart-child {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
}

.figure {
  display: grid;
  gap: 0.4rem;
}

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

.license {
  margin: 0 6vw 3rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.footer {
  padding: 2rem 6vw 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: var(--muted);
}

.noscript {
  background: #fff1e8;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
}

.preline {
  white-space: pre-line;
}

.hidden {
  display: none;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-18px);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 4rem 6vw 3rem;
  }

  .controls,
  .overview,
  .section-nav,
  .content,
  .license,
  .footer {
    padding-left: 6vw;
    padding-right: 6vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
