:root {
  --navy: #17335f;
  --navy-70: rgba(23, 51, 95, 0.7);
  --navy-55: rgba(23, 51, 95, 0.55);
  --navy-16: rgba(23, 51, 95, 0.16);
  --rust: #c9522f;
  --rust-dark: #9b3d1f;
  --amber: #f0a04b;
  --sage: #7a8a5e;
  --paper: #f4eedd;
  --sand: #e9e3d6;
  --banner: radial-gradient(60% 90% at 80% 12%, rgba(240, 138, 79, 0.9), transparent 60%),
    radial-gradient(48% 85% at 98% 96%, rgba(232, 86, 42, 0.92), transparent 55%),
    radial-gradient(80% 120% at 58% 62%, rgba(79, 116, 196, 0.8), transparent 66%),
    radial-gradient(72% 105% at 26% 82%, rgba(169, 188, 232, 0.95), transparent 72%),
    linear-gradient(120deg, #cdd8f0, #efe7d0);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--navy);
  font: 400 16px/1.6 "Figtree", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--rust);
}

a:hover {
  color: var(--rust-dark);
}

.page {
  max-width: 1120px;
  margin: 32px auto;
  background: var(--paper);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 46px -22px rgba(23, 51, 95, 0.4);
}

/* ===== BANNER ===== */
.banner {
  position: relative;
  padding: 22px 40px 46px;
  background: var(--banner);
}

.grain,
.scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grain {
  mix-blend-mode: overlay;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 150px 150px;
}

.scan {
  opacity: 0.5;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 3px);
}

.banner > *:not(.grain):not(.scan) {
  position: relative;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.wordmark {
  font: 700 15px "Space Mono", monospace;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 14px;
  align-items: center;
  font: 400 14px "Space Mono", monospace;
}

.nav a {
  color: var(--navy);
  text-decoration: none;
  padding-bottom: 2px;
}

.nav a:hover {
  color: var(--navy);
  border-bottom: 2px solid rgba(23, 51, 95, 0.4);
}

.nav a[aria-current="page"] {
  font-weight: 700;
  border-bottom: 2px solid var(--navy);
}

.nav .sep {
  color: rgba(23, 51, 95, 0.4);
}

.banner h1 {
  margin: 30px 0 0;
  font: 400 46px/0.98 "Archivo Black", "Archivo", sans-serif;
  letter-spacing: -0.01em;
}

.banner .lede {
  margin: 14px 0 0;
  font: 400 14px "Space Mono", monospace;
}

.home .banner h1 {
  font-size: 52px;
  margin-top: 34px;
}

.home .banner .lede {
  font-size: 15px;
  margin-top: 16px;
}

/* ===== HOME ===== */
.home-body {
  padding: 32px 40px 0;
}

.hero-slot {
  border: 2px dashed rgba(23, 51, 95, 0.35);
  border-radius: 16px;
  background: rgba(23, 51, 95, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  font: 400 20px "Space Mono", monospace;
  color: rgba(23, 51, 95, 0.45);
}

.hero-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 0;
}

.home-links a {
  flex: 1 1 240px;
  padding: 18px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 10px -5px rgba(23, 51, 95, 0.5);
  text-decoration: none;
  color: var(--navy);
  transition: transform 0.12s, box-shadow 0.12s;
}

.home-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(23, 51, 95, 0.55);
}

.home-links .label {
  display: block;
  font: 700 11px "Space Mono", monospace;
  color: var(--rust);
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}

.home-links .name {
  font: 800 18px "Archivo", sans-serif;
}

.home-links .note {
  display: block;
  margin-top: 4px;
  font: 400 13px/1.4 "Figtree", sans-serif;
  color: var(--navy-70);
}

/* ===== SCHEDULE ===== */
.week-scroll {
  padding: 28px 32px 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.week {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.day-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* Slots that run identically every day: one bar across the whole week. */
.session.span {
  grid-column: 1 / -1;
}

.session.span .session-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 16px;
}

.session.span .time {
  flex: none;
  width: 104px;
  margin-bottom: 0;
}

.session.span .name {
  margin-bottom: 0;
  font-size: 14px;
}

.session.span .talk {
  font-style: normal;
  font-size: 12px;
  color: var(--navy-70);
}

.day-head {
  text-align: center;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--navy);
}

.day-head .dow {
  font: 700 13px "Space Mono", monospace;
  letter-spacing: 0.08em;
}

.day-head .date {
  font: 400 22px/1 "Archivo Black", "Archivo", sans-serif;
}

.session {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px -5px rgba(23, 51, 95, 0.5);
  overflow: hidden;
}

.session.daily {
  background: rgba(255, 255, 255, 0.72);
}

.session.break {
  background: rgba(122, 138, 94, 0.16);
  border: 1px dashed rgba(23, 51, 95, 0.3);
  box-shadow: none;
}

.session-main {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
}

button.session-main {
  cursor: pointer;
}

button.session-main:hover {
  background: rgba(23, 51, 95, 0.045);
}

button.session-main:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: -2px;
}

.session .time {
  font: 700 11px "Space Mono", monospace;
  color: var(--rust);
  margin-bottom: 4px;
}

.session.daily .time,
.session.break .time {
  color: var(--sage);
}

.session .name {
  font: 800 13px/1.15 "Archivo", sans-serif;
  margin-bottom: 3px;
}

.session .talk {
  font: italic 400 11.5px/1.3 "Figtree", sans-serif;
  color: var(--navy-70);
}

.session .chevron {
  float: right;
  margin-left: 8px;
  font: 400 10px "Space Mono", monospace;
  color: var(--navy-55);
}

button[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
  display: inline-block;
}

.blurb {
  margin: 0 8px 8px;
  background: var(--navy);
  color: var(--paper);
  padding: 11px 13px;
  border-radius: 11px;
  font: 400 11.5px/1.45 "Figtree", sans-serif;
}

.blurb[hidden] {
  display: none;
}

.blurb .label {
  display: block;
  font: 700 10px "Space Mono", monospace;
  color: var(--amber);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

/* ===== SPEAKERS ===== */
.speaker-list {
  padding: 8px 40px 0;
}

.speaker {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1.5px solid var(--navy-16);
  align-items: start;
}

.speaker-photo {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(169, 188, 232, 0.6), rgba(240, 138, 79, 0.35));
  display: flex;
  align-items: center;
  justify-content: center;
  font: 400 34px "Archivo Black", "Archivo", sans-serif;
  color: rgba(23, 51, 95, 0.4);
  overflow: hidden;
}

.speaker-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.speaker-photo.multi {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--paper);
}

.speaker-photo.multi img {
  min-width: 0;
  height: 100%;
}

.speaker-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.speaker h2 {
  margin: 0;
  font: 400 26px/1 "Archivo Black", "Archivo", sans-serif;
}

.speaker .talk {
  font: italic 600 16px/1.3 "Figtree", sans-serif;
  color: var(--rust);
}

.speaker p {
  margin: 2px 0 0;
  font: 400 14px/1.6 "Figtree", sans-serif;
  color: rgba(23, 51, 95, 0.85);
}

.speaker p.pending {
  color: var(--navy-55);
  font-style: italic;
}

.speaker-count {
  padding: 16px 40px 0;
  font: 400 13px "Space Mono", monospace;
  color: var(--navy-55);
}

/* ===== FOOTER ===== */
.page-footer {
  text-align: center;
  padding: 26px 40px 30px;
  margin-top: 20px;
  border-top: 1.5px solid rgba(23, 51, 95, 0.14);
  font: 400 14px/1.6 "Space Mono", monospace;
  color: var(--navy);
}

.page-footer a {
  color: var(--navy);
}

/* ===== RESPONSIVE ===== */
/* The day columns stay side by side at every width so the Morning Yoga and
   Lunch bars can span them; below this the week scrolls sideways instead. */
@media (max-width: 980px) {
  .week {
    min-width: 860px;
  }
}

@media (max-width: 720px) {
  .page {
    margin: 0;
    border-radius: 0;
  }

  .banner {
    padding: 20px 22px 34px;
  }

  .banner h1,
  .home .banner h1 {
    font-size: 34px;
  }

  .week-scroll {
    padding: 24px 22px 8px;
  }

  .home-body,
  .speaker-list,
  .speaker-count {
    padding-left: 22px;
    padding-right: 22px;
  }

  .speaker {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .speaker-photo {
    max-width: 220px;
  }

  .page-footer {
    padding: 22px;
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ===== MOBILE IMPROVEMENTS ===== */
@media (max-width: 720px) {
  body {
    font-size: 15px;
    line-height: 1.5;
  }

  .page {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    box-shadow: none;
  }

  .topbar {
    align-items: flex-start;
  }

  .wordmark {
    font-size: 13px;
  }

  .nav {
    gap: 10px;
    font-size: 13px;
  }

  .banner {
    padding: 18px 18px 28px;
  }

  .banner h1,
  .home .banner h1 {
    margin-top: 24px;
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .banner .lede,
  .home .banner .lede {
    font-size: 13px;
    line-height: 1.5;
  }

  .home-body {
    padding: 20px 18px 0;
  }

  .hero-slot {
    min-height: 220px;
    border-radius: 12px;
    font-size: 15px;
    text-align: center;
    padding: 20px;
  }

  .home-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
  }

  .home-links a {
    padding: 16px;
    border-radius: 12px;
  }

  .home-links .name {
    font-size: 17px;
  }

  .week-scroll {
    overflow-x: visible;
    padding: 20px 18px 8px;
  }

  .week {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 14px;
  }

  .day-head {
    text-align: left;
    padding: 10px 0 6px;
    border-bottom-width: 1.5px;
  }

  .day-head .dow,
  .day-head .date {
    display: inline;
  }

  .day-head .date {
    margin-left: 8px;
    font-size: 18px;
  }

  .day-col {
    gap: 8px;
  }

  .session.span {
    width: 100%;
  }

  .session.span .session-main {
    display: block;
    padding: 11px 12px;
  }

  .session.span .time {
    width: auto;
    margin-bottom: 4px;
  }

  .session {
    border-radius: 10px;
  }

  .session-main {
    padding: 12px;
  }

  .session .time {
    font-size: 11px;
  }

  .session .name {
    font-size: 14px;
    line-height: 1.2;
  }

  .session .talk {
    font-size: 12px;
    line-height: 1.4;
  }

  .blurb {
    margin: 0 8px 8px;
    font-size: 12px;
  }

  .speaker-list,
  .speaker-count {
    padding-left: 18px;
    padding-right: 18px;
  }

  .speaker-count {
    padding-top: 14px;
  }

  .speaker {
    grid-template-columns: 88px 1fr;
    gap: 14px;
    padding: 18px 0;
  }

  .speaker-photo {
    width: 88px;
    max-width: none;
    border-radius: 12px;
  }

  .speaker h2 {
    font-size: 21px;
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .speaker .talk {
    font-size: 14px;
  }

  .speaker p {
    font-size: 13px;
    line-height: 1.5;
  }

  .page-footer {
    padding: 20px 18px 24px;
    font-size: 11.5px;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .topbar {
    flex-direction: column;
    gap: 8px;
  }

  .nav {
    width: 100%;
  }

  .speaker {
    grid-template-columns: 72px 1fr;
  }

  .speaker-photo {
    width: 72px;
  }

  .speaker h2 {
    font-size: 19px;
  }
}

.mobile-week {
  display: none;
}

@media (max-width: 720px) {
  .week {
    display: none;
  }

  .mobile-week {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .mobile-day {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mobile-day .day-head {
    margin-bottom: 2px;
  }
}


/* ===== CONTENT PAGES ===== */
.content-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 40px 12px;
}
.content-page p { margin: 0 0 20px; }
.content-page .standout, .content-page .closing-line {
  font: 700 18px/1.45 "Space Mono", monospace;
}
.application-intro { font-size: 18px; line-height: 1.6; }
.status-box {
  max-width: 440px;
  margin: 34px auto;
  padding: 26px;
  text-align: center;
  border: 2px solid var(--navy);
  border-radius: 14px;
  background: #fff;
}
.status-label { font: 700 13px "Space Mono", monospace; letter-spacing: .06em; }
.status-closed { margin-top: 6px; color: #c62828; font: 400 34px "Archivo Black", "Archivo", sans-serif; }
.interest-copy { text-align: center; }
@media (max-width: 720px) {
  .content-page { padding: 26px 22px 8px; }
  .application-intro { font-size: 16px; }
  .status-box { margin: 26px auto; padding: 22px 16px; }
}


/* Speaker bios supplied separately from talk blurbs. */
.speaker .bio-label {
  margin-top: 6px;
  font: 700 10px "Space Mono", monospace;
  letter-spacing: .08em;
  color: var(--navy-55);
}
.speaker p.bio {
  white-space: pre-line;
}

/* Speaker photo credits */
.speaker-photo-wrap {
  min-width: 0;
}
.photo-credit {
  margin-top: 6px;
  text-align: center;
  font: italic 400 11px/1.35 "Figtree", sans-serif;
  color: var(--navy-70);
}
@media (max-width: 720px) {
  .speaker-photo-wrap {
    width: 88px;
  }
  .photo-credit {
    font-size: 10px;
  }
}
@media (max-width: 420px) {
  .speaker-photo-wrap {
    width: 72px;
  }
}

/* Home rotating photo gallery */
.home-slideshow {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #111;
  aspect-ratio: 16 / 9;
  min-height: 0;
}
.home-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.home-slideshow img.active { opacity: 1; }
@media (max-width: 720px) {
  .home-slideshow { min-height: 0; padding: 0; aspect-ratio: 4 / 3; }
  .home-slideshow img { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-slideshow img { transition: none; }
}


/* Palenque Norte Presents: Nectarpalooza nested overnight lineup */
.session.buzz-base {
  border: 2px solid var(--rust);
}
.session.buzz-base .name {
  font-size: 15px;
  margin-bottom: 10px;
}
.buzz-lineup {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(23, 51, 95, 0.18);
}
.buzz-lineup-row {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 8px;
  padding: 4px 0;
  align-items: baseline;
}
.buzz-lineup-time {
  font: 700 9.5px "Space Mono", monospace;
  color: var(--rust);
  white-space: nowrap;
}
.buzz-lineup-name {
  font: 700 11px/1.2 "Archivo", sans-serif;
  color: var(--navy);
}
