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

body {
  font-family: 'Courier New', Courier, monospace;
  background: #fff;
  color: #111;
  min-height: 100vh;
}

/* ── Top bar ── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  z-index: 100;
}

.logo {
  width: 44px;
  height: 44px;
  display: block;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0;
  color: #111;
  margin-top: 2px;
}

/* ── Side drawer ── */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
}
.drawer-overlay.open { display: block; }

.drawer {
  position: absolute;
  top: 0; right: 0;
  width: 260px;
  height: 100%;
  background: #fff;
  border-left: 1px solid #ddd;
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  color: #111;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.drawer nav a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
  text-decoration: none;
  color: #111;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
}
.drawer nav a:first-child { border-top: 1px solid #ddd; }
.drawer nav a:hover { opacity: 0.6; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  position: relative;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, #f0ebf8 0%, #fff 70%);
}

.hero-logo {
  margin-bottom: 2.5rem;
  text-align: center;
}

.hero-wordmark {
  font-family: 'Titan One', sans-serif;
  font-size: clamp(5rem, 22vw, 16rem);
  color: #7b5aa6;
  display: inline-flex;
  line-height: 1;
  margin-bottom: 0;
}

.hero-wordmark span {
  display: inline-block;
  animation: dropBounce 10s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}
.hero-wordmark span:nth-child(1) { animation-delay: 0s; }
.hero-wordmark span:nth-child(2) { animation-delay: 0.6s; }
.hero-wordmark span:nth-child(3) { animation-delay: 1.2s; }

@keyframes dropBounce {
  0%, 100% { opacity: 0; transform: translateY(-60px); }
  25%, 75% { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(0.7rem, 2vw, 1.1rem);
  letter-spacing: 0.35em;
  color: #6d6d6d;
  text-transform: uppercase;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.3rem;
  border-radius: 3px;
  border: 1.5px solid #7b5aa6;
  font-family: 'Titan One', sans-serif;
  font-size: 0.95rem;
  text-decoration: none;
  color: #7b5aa6;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: -4px;
  bottom: -4px;
  border: 1px solid #7b5aa6;
  border-radius: 2px;
  z-index: -1;
  transition: border-color 0.15s;
}
.btn:hover { background: #7b5aa6; color: #fff; border-color: #7b5aa6; }
.btn:hover::after { border-color: #57068c; }
.btn.filled { background: #7b5aa6; color: #fff; border-color: #7b5aa6; }
.btn.filled::after { border-color: #57068c; }
.btn.filled:hover { background: #57068c; border-color: #57068c; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.6rem;
  color: #7b5aa6;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  animation: arrowBob 1.8s ease-in-out infinite;
  line-height: 1;
}
.hero-scroll:hover { opacity: 0.6; }

@keyframes arrowBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── NUX word reveal ── */
.nux-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.nux-reveal-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem;
  width: 100%;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.nux-reveal-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.nux-reveal-def {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: #6d6d6d;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.nux-reveal-word {
  font-family: 'Titan One', sans-serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: #7b5aa6;
  line-height: 1;
}

.nux-reveal-sep {
  width: 60px;
  height: 1px;
  background: #ddd;
}

/* ── Content sections ── */
.section {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-title {
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3rem);
  
  color: #7b5aa6;
  text-align: center;
  margin-bottom: 2rem;
}

.title-letter {
  display: inline-block;
  animation: dropBounce 10s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

/* ── Accordion ── */
.accordion { margin-top: 1.5rem; }

.accordion-item { border-bottom: 1px solid #ddd; }
.accordion-item:first-child { border-top: 1px solid #ddd; }

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  color: #111;
  text-align: left;
}
.accordion-header:hover { opacity: 0.6; }

.accordion-icon {
  font-size: 1.3rem;
  font-family: sans-serif;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.accordion-header[aria-expanded="true"] .accordion-icon { transform: rotate(45deg); }

.accordion-body {
  padding-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.75;
}
.accordion-body p + p { margin-top: 0.75rem; }
.accordion-body ul { padding-left: 1.2rem; }
.accordion-body li + li { margin-top: 0.5rem; }
.accordion-body a { color: #111; }

/* ── Hosts grid ── */
.hosts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.host-card {
  border: 1px solid #ddd;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}
.host-card::after {
  content: '';
  position: absolute;
  top: 4px; left: 4px; right: -4px; bottom: -4px;
  border: 1px solid #ddd;
  z-index: -1;
}
.host-photo {
  width: calc(100% + 2.5rem);
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: top;
  display: block;
  margin: -1.25rem -1.25rem 1rem -1.25rem;
}
.host-card h3 {
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #7b5aa6;
  margin-bottom: 0.2rem;
}
.host-card .role { font-size: 0.72rem; color: #6d6d6d; letter-spacing: 0.05em; margin-bottom: 0.1rem; }
.host-card .dept { font-size: 0.72rem; color: #6d6d6d; letter-spacing: 0.05em; margin-bottom: 0.75rem; line-height: 1.5; }
.host-card .bio { font-size: 0.75rem; color: #444; line-height: 1.65; margin-bottom: 1rem; }
.host-links { display: flex; flex-direction: column; gap: 4px; }
.host-links a { font-size: 0.72rem; color: #7b5aa6; text-decoration: none; letter-spacing: 0.03em; }
.host-links a:hover { text-decoration: underline; }

/* ── Readings C1 layout ── */
.readings-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 2.5rem; }

.r-theme { border-left: 3px solid #7b5aa6; padding-left: 1.5rem; position: relative; }

.r-header { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 0.85rem; }

.r-num {
  font-family: 'Titan One', sans-serif;
  font-size: 3rem;
  color: #b8a0d4;
  line-height: 1;
  flex-shrink: 0;
}

.r-label { font-size: 0.65rem; color: #7b5aa6; letter-spacing: 0.12em; text-transform: uppercase; }
.r-name { font-family: 'Libre Baskerville', serif; font-weight: 700; font-size: 1.4rem; color: #111; }
.r-dates { font-size: 0.65rem; color: #6d6d6d; margin-top: 0.1rem; }
.r-icon {
  position: absolute;
  right: 0;
  top: 0;
  width: 72px;
  height: auto;
  opacity: 0.9;
}

.r-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  border-top: 1px solid #eee;
  padding-top: 0.85rem;
}

.r-session-label {
  font-size: 0.65rem;
  color: #7b5aa6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.r-paper { margin-bottom: 0.85rem; }
.r-paper:last-child { margin-bottom: 0; }

.r-title {
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #111;
  line-height: 1.35;
  margin-bottom: 0.15rem;
}

.r-authors { font-size: 0.68rem; color: #6d6d6d; margin-bottom: 0.2rem; }

.r-links { font-size: 0.68rem; }
.r-links a { color: #7b5aa6; text-decoration: none; margin-right: 0.4rem; }
.r-links a:hover { text-decoration: underline; }

/* ── Readings table ── */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}
th {
  text-align: left;
  border-bottom: 2px solid #111;
  padding: 0.5rem 0.75rem;
  font-weight: bold;
}
td {
  padding: 0.6rem 0.75rem;
  vertical-align: top;
  border-bottom: 1px solid #eee;
}
tr:last-child td { border-bottom: none; }
td a { color: #111; }

/* ── Resources ── */
.resource-list { list-style: none; margin-top: 1.5rem; }
.resource-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.92rem;
}
.resource-list li:first-child { border-top: 1px solid #eee; }
.resource-list a { color: #111; font-weight: bold; }
.resource-list .desc { display: block; font-size: 0.82rem; color: #555; margin-top: 0.15rem; }

/* ── Footer ── */
footer {
  border-top: 1px solid #ddd;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: #555;
}
footer a { color: #555; }
