/**
 * Page sections, in document order: header, info bar, hero, talk, recordings,
 * history, join, footer — plus interior-page furniture the prototype (a single
 * page) never needed.
 */

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: none;
}

.brand img {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  box-shadow: 0 2px 6px rgba(44, 33, 96, 0.18);
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name b {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--purple);
}

.brand-name small {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

/**
 * The menu block nests its links inside two wrappers, which would otherwise
 * absorb the flex gap. `display: contents` promotes the links to flex items.
 */
.nav > div,
.nav > div > nav,
.nav .block {
  display: contents;
}

.nav .visually-hidden {
  display: none;
}

.nav a {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--body);
  transition: color 0.15s;
}

.nav a:hover,
.nav a.is-active {
  color: var(--purple);
}

/* The CTA keeps its button treatment inside the nav. */
.nav a.btn-purple {
  color: #fff;
}

.nav a.btn-purple:hover {
  color: #fff;
}

/**
 * Mobile navigation.
 *
 * The prototype simply did `display:none` on .nav below 760px and offered no
 * replacement, so small screens had no navigation at all. This is new.
 */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--purple);
  transition: background 0.2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--purple);
  transition: transform 0.2s;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded='true'] span {
  background: transparent;
}

.nav-toggle[aria-expanded='true'] span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/**
 * The nav switches to the hamburger at 900px, not at the 760px the rest of the
 * layout uses: the five links plus the CTA measure ~443px, and together with
 * the brand they stop fitting well before 760px. The prototype hid the nav at
 * 760 with nothing in its place, so the gap never showed up there.
 */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px var(--gutter) 20px;
    background: #fff;
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 18px 30px -18px rgba(26, 26, 26, 0.4);
  }

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

  .nav a {
    padding: 14px 0;
    font-size: var(--fs-base);
    border-bottom: 1px solid var(--hairline-soft);
  }

  .nav a.btn-purple {
    margin-top: 14px;
    padding: 14px 20px;
    text-align: center;
    border-bottom: none;
  }

  .site-header {
    position: relative;
  }
}

/* ---------- info bar ---------- */

.infobar {
  background: var(--infobar-bg);
  color: var(--cream-soft);
}

.infobar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 11px;
  padding-bottom: 11px;
  font-size: var(--fs-xs);
}

.infobar .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--infobar-accent);
}

.infobar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--infobar-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--infobar-accent) 22%, transparent);
}

.infobar .sep {
  opacity: 0.55;
}

.infobar .new-badge {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.78125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.infobar .rsvp {
  margin-left: auto;
  padding-bottom: 1px;
  border-bottom: 2px solid var(--infobar-accent);
  color: #fff;
  font-weight: 700;
}

/* ---------- hero: poster treatment ---------- */

.hero-poster {
  background: var(--cream-soft);
  border-bottom: 6px solid var(--ink);
}

.hero-poster-inner {
  padding-top: 38px;
  padding-bottom: 34px;
}

.promo {
  display: block;
  overflow: hidden;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 0 22px 50px -18px rgba(26, 26, 26, 0.45);
}

.promo img {
  width: 100%;
  height: auto;
}

.datebar {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding: 18px 24px;
  background: var(--ink);
  border-radius: 12px;
}

.datebar .d-date {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.datebar .d-time {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
}

.datebar .d-where {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

.datebar .vrule {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.28);
}

.datebar .btn-accent {
  margin-left: auto;
}

@media (max-width: 760px) {
  .datebar {
    gap: 14px;
    padding: 16px 18px;
  }

  .datebar .d-date {
    font-size: 1.1875rem;
  }

  .datebar .btn-accent {
    margin-left: 0;
  }
}

/**
 * Hero: photo treatment.
 *
 * The alternate hero from the June edition — a photographic background with
 * circular speaker portraits. Kept as a variant; add the `hero--photo` class
 * and a background image to use it instead of the poster.
 */
.hero--photo {
  position: relative;
  overflow: hidden;
  background: var(--purple);
  border-bottom: 6px solid var(--purple-deep);
}

.hero--photo .hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 64%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.hero--photo .hero-fade1 {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, #2c2160 0%, #2c2160 30%, rgba(44, 33, 96, 0.86) 46%, rgba(58, 44, 150, 0.35) 60%, rgba(58, 44, 150, 0) 74%);
}

.hero--photo .hero-fade2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 14, 52, 0.55) 0%, rgba(20, 14, 52, 0) 34%);
}

.hero--photo .hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding-top: 46px;
}

.hero--photo .hero-body {
  margin-top: auto;
  padding-bottom: 128px;
  max-width: 680px;
}

.hero--photo .hero-eyebrow {
  margin-bottom: 14px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero--photo h1 {
  margin: 0;
  font-size: var(--fs-hero);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(20, 14, 52, 0.4);
}

.hero--photo .hero-with {
  margin-top: 14px;
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--gold);
}

.hero--photo .hero-tagline {
  margin-top: 16px;
  max-width: 560px;
  font-size: var(--fs-prose);
  font-weight: 500;
  font-style: italic;
  color: rgba(255, 255, 255, 0.82);
}

.hero--photo .hero-portraits {
  position: absolute;
  top: 46%;
  right: 6%;
  transform: translateY(-54%);
  display: flex;
  align-items: center;
}

.hero--photo .portrait {
  width: 170px;
  height: 170px;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--gold), #e0a94a);
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.55);
}

.hero--photo .portrait img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.92);
}

.hero--photo .portrait--front {
  position: relative;
  z-index: 2;
}

.hero--photo .portrait--back {
  position: relative;
  z-index: 1;
  margin-left: -34px;
}

@media (max-width: 760px) {
  .hero--photo h1 {
    font-size: 2.625rem;
  }

  .hero--photo .hero-with {
    font-size: 1.5rem;
  }

  .hero--photo .hero-portraits {
    display: none;
  }

  .hero--photo .hero-body {
    padding-bottom: 170px;
  }
}

/* ---------- talk ---------- */

.talk {
  background: #fff;
}

.talk h2 {
  margin: 0 0 22px;
  font-size: var(--fs-h2);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.talk-hook {
  margin: 0 0 26px;
  max-width: 640px;
  font-size: var(--fs-lead);
  line-height: 1.5;
  font-weight: 600;
  font-style: italic;
  color: var(--body);
}

/* ---------- recordings ---------- */

.recordings {
  background: var(--cream);
  border-top: 1px solid var(--hairline-soft);
}

.recordings-inner {
  padding-top: 78px;
  padding-bottom: 78px;
}

.rec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.rec-head h2 {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.rec-head p {
  margin: 10px 0 0;
  max-width: 560px;
  font-size: var(--fs-base);
  color: var(--muted);
}

/* ---------- twenty years ---------- */

.history {
  background: var(--purple);
  color: var(--cream-soft);
}

.history-inner {
  padding-top: 74px;
  padding-bottom: 74px;
  text-align: center;
}

.history .eyebrow {
  color: var(--gold);
  letter-spacing: 0.16em;
}

.history h2 {
  margin: 14px 0 0;
  font-size: var(--fs-h2-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.history p {
  margin: 22px auto 0;
  max-width: 720px;
  font-size: var(--fs-prose);
  line-height: 1.6;
  color: rgba(252, 242, 226, 0.86);
}

.history .closer {
  margin-top: 16px;
  font-size: var(--fs-card-title);
  font-weight: 700;
  color: var(--gold);
}

/* ---------- join ---------- */

.join {
  background: #fff;
}

.badcamp {
  background: var(--cream);
  border: 1px solid var(--hairline);
}

.badcamp h3 {
  margin: 20px 0 0;
  font-size: var(--fs-h3);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.badcamp h3 span {
  color: var(--teal);
}

.badcamp p {
  margin: 14px 0 0;
  font-size: 1.03125rem;
  line-height: 1.6;
  color: var(--body);
}

.badcamp .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--teal);
  font-weight: 800;
  font-size: 0.96875rem;
}

.newsletter {
  background: linear-gradient(150deg, #3a2c7e, var(--purple-mid));
  color: #fff;
  box-shadow: 0 16px 40px -14px rgba(44, 33, 96, 0.5);
}

.newsletter h3 {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.newsletter p {
  margin: 14px 0 0;
  font-size: 1.03125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.news-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.news-form input {
  flex: 1;
  min-width: 180px;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-family: inherit;
  color: var(--ink);
  outline: none;
}

.news-form button {
  padding: 14px 26px;
  border: none;
  border-radius: 999px;
  background: var(--gold);
  color: var(--purple);
  font-weight: 800;
  font-size: var(--fs-sm);
  font-family: inherit;
  cursor: pointer;
  transition: background 0.22s;
}

.news-form button:hover {
  background: var(--gold-hover);
}

.news-fine {
  margin-top: 18px;
  font-size: 0.84375rem;
  color: rgba(255, 255, 255, 0.7);
}

.news-msg {
  margin-top: 14px;
  min-height: 1px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--gold);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--footer-bg);
  color: rgba(252, 242, 226, 0.78);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.footer-brand span {
  font-size: var(--fs-prose);
  font-weight: 800;
  color: #fff;
}

.about-blurb {
  margin: 16px 0 0;
  max-width: 300px;
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: rgba(252, 242, 226, 0.66);
}

/* The menu block renders its label as an <h2> inside a <nav>, not a .block. */
.footer-col h4,
.footer-col h2 {
  margin: 0 0 14px;
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.footer-col .links,
.footer-col .menu {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-xs);
}

.footer-col .links a,
.footer-col .menu a {
  color: rgba(252, 242, 226, 0.78);
  transition: color 0.15s;
}

.footer-col .links a:hover,
.footer-col .menu a:hover {
  color: #fff;
}

.social {
  display: flex;
  gap: 12px;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.15s;
}

.social a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: var(--fs-tiny);
  color: rgba(252, 242, 226, 0.55);
}

/* ---------- interior pages ---------- */

.page-title {
  margin: 0 0 8px;
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-header {
  margin-bottom: 38px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 10px;
  opacity: 0.5;
}

.breadcrumb a {
  color: var(--purple-mid);
}

/* Session detail page. */
.session-full__title {
  margin: 0 0 18px;
  font-size: var(--fs-h2);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.session-full__video {
  margin: 0 0 30px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-card);
}

.session-full__video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

.session-full__section {
  margin-top: 34px;
}

.session-full__section h3 {
  margin: 0 0 14px;
  font-size: var(--fs-lead);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--accent-strong);
}

/* Views listings reuse the card grid. */
.view-content .grid-3,
.view-content .grid-2 {
  margin-bottom: 0;
}

.views-row + .views-row {
  margin-top: 0;
}

/* ---------- pager ---------- */

.pager__items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 54px 0 0;
  padding: 0;
  list-style: none;
}

.pager__item a {
  display: block;
  padding: 12px 18px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: #fff;
  color: var(--body);
  font-weight: 700;
  font-size: var(--fs-xs);
  transition: all 0.2s;
}

.pager__item a:hover {
  border-color: var(--purple-mid);
  color: var(--purple);
}

.pager__item.is-active a {
  background: var(--purple-mid);
  border-color: var(--purple-mid);
  color: #fff;
}

/* ---------- messages / admin bits ---------- */

/**
 * No padding of its own: on the front page this region sits between the info
 * bar and the hero, and any padding shows as a white band that the design
 * does not have. Children below carry their own spacing.
 */
.highlighted {
  padding-top: 0;
}

.messages {
  max-width: var(--maxw);
  margin: 0 auto 20px;
  padding: 14px 20px;
  border-radius: 12px;
  border-left: 5px solid var(--purple-mid);
  background: var(--cream);
  font-size: var(--fs-xs);
}

.messages--error {
  border-left-color: var(--yt);
}

.messages--warning {
  border-left-color: var(--gold);
}

/* ---------- admin local tasks ---------- */

/**
 * Only editors ever see these, but unstyled they render as bare bullet lists
 * and wreck the page they sit on.
 */
.tabs {
  margin: 0 0 28px;
}

.tabs__tab,
.tabs ul {
  list-style: none;
}

.tabs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
}

.tabs a,
.block-local-tasks-block a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--cream);
  color: var(--body);
  font-size: var(--fs-xs);
  font-weight: 700;
  transition: all 0.15s;
}

.tabs a:hover,
.block-local-tasks-block a:hover {
  border-color: var(--purple-mid);
  color: var(--purple);
}

.tabs a.is-active,
.block-local-tasks-block a.is-active {
  background: var(--purple-mid);
  border-color: var(--purple-mid);
  color: #fff;
}

.block-local-tasks-block ul,
.block-local-actions-block ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
