:root {
  --brand: #29153e;
  --brand-dark: #20112e;
  --brand-light: #50346b;
  --accent: #f39a4a;
  --accent-hover: #ffb36d;
  --accent-text: #a64b12;
  --text: #261d2e;
  --muted: #675e70;
  --surface: #fff;
  --surface-muted: #f8f6fa;
  --line: #e7e0ec;
  --content-width: 1160px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bulma-family-primary: var(--font);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
}

h1, h2, h3 {
  line-height: 1.2;
}

p {
  margin-top: 0;
}

a {
  color: var(--brand-light);
  text-underline-offset: 3px;
}

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

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.site-container {
  width: min(calc(100% - 3rem), var(--content-width));
  max-width: var(--content-width);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: .6rem 1rem;
  background: white;
}

.skip-link:focus {
  top: .5rem;
}

/* Header and navigation */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  position: relative;
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-brand {
  flex: none;
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--text);
  text-decoration: none;
}

.site-brand:hover {
  color: var(--text);
}

.brand-symbol {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--brand);
  color: white;
  border-radius: 5px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.brand-type {
  display: grid;
  font-size: .91rem;
  line-height: 1.22;
}

.brand-type strong {
  font-weight: 800;
}

.brand-type span {
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.35rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--text);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--accent-text);
}

.site-nav .nav-github {
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
}

.nav-github span {
  color: var(--accent-text);
}

.menu-toggle {
  display: none;
  border: 0;
  padding: .75rem;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--brand);
}

/* Hero */
.hero-section {
  background: var(--brand);
  color: white;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(4rem, 7vw, 6rem);
}

.eyebrow {
  margin-bottom: 1.35rem;
  color: var(--brand-light);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #e6dbe9;
}

.hero-copy h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.6rem, 4.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -.045em;
}

.hero-copy h1 span {
  color: var(--accent);
}

.hero-lede {
  max-width: 35rem;
  margin-bottom: 1.7rem;
  color: #e6dbe9;
  font-size: 1.1rem;
}

.edition-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem;
  margin-bottom: 2rem;
  color: #e6dbe9;
}

.edition-intro strong {
  padding: .2rem .65rem;
  border-radius: 3px;
  background: #4e3066;
  color: white;
  font-size: .88rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.hero-actions .button {
  height: auto;
  min-height: 2.85rem;
  padding: .65rem 1rem;
  font-size: .91rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: normal;
  box-shadow: none;
}

.action-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--brand-dark);
}

.action-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--brand-dark);
}

.action-secondary {
  background: transparent;
  border: 1px solid #977ba9;
  color: white;
}

.action-secondary:hover {
  background: #49305f;
  border-color: white;
  color: white;
}

/* Announcements and shared editorial sections */
.announcement-wrap {
  border-bottom: 1px solid var(--line);
}

.announcement {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-block: 1.4rem;
}

.announcement-label {
  flex: none;
  color: var(--brand-light);
  font-size: .8rem;
  letter-spacing: .07em;
  font-weight: 800;
}

.announcement p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
}

.announcement a {
  flex: none;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.site-section {
  padding-block: clamp(4rem, 7vw, 6.5rem);
}

.section-muted {
  background: var(--surface-muted);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 7vw, 6rem);
}

.split-layout > * {
  min-width: 0;
}

.section-title {
  max-width: 30rem;
  margin-bottom: 1.45rem;
  font-size: clamp(2rem, 3.2vw, 3.15rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.035em;
}

.accent-mark {
  color: var(--accent-text);
}

.section-intro {
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.body-lede {
  margin-bottom: 1.7rem;
  font-size: 1.15rem;
  line-height: 1.75;
}

.body-lede strong {
  color: var(--brand-light);
}

.text-link {
  display: inline-block;
  padding-bottom: .15rem;
  border-bottom: 1px solid #b8a4c8;
  font-size: .94rem;
  font-weight: 750;
  text-decoration: none;
}

/* Challenge steps and calendar share the same list typography. */
.concept-list, .dates-list {
  margin: 0 0 1.8rem;
  padding: 0;
  border-top: 1px solid var(--line);
}

.concept-item, .dates-list li {
  display: grid;
  align-items: start;
  gap: 1rem;
  padding-block: 1.2rem;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

.concept-item {
  grid-template-columns: 2.7rem minmax(0, 1fr);
}

.list-number {
  color: var(--accent-text);
  font-size: 1rem;
  font-weight: 800;
}

.concept-item h3 {
  margin: 0 0 .3rem;
  font-size: 1rem;
  font-weight: 750;
}

.concept-item p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

.date-note {
  max-width: 29rem;
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .94rem;
}

.dates-list {
  list-style: none;
}

.dates-list li {
  grid-template-columns: minmax(8.6rem, .42fr) minmax(0, 1fr);
}

.dates-list time {
  color: var(--brand-light);
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.dates-list .date-highlight time {
  color: var(--accent-text);
}

/* Participation */
.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .75fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.section-heading-row .section-title {
  margin-bottom: 0;
}

.section-heading-row > p {
  max-width: 27rem;
  margin: 0;
  color: var(--muted);
}

.participation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

.participation-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.participation-step .list-number {
  margin-bottom: 1.1rem;
}

.participation-step h3 {
  margin-bottom: .7rem;
  font-size: 1.2rem;
  font-weight: 750;
}

.participation-step p {
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: .95rem;
}

.participation-step .text-link {
  margin-top: auto;
}

.help-strip {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .95rem;
}

.help-strip span {
  color: var(--muted);
}

.help-strip a {
  font-weight: 750;
  text-decoration: none;
}

/* Organizers: equal-width columns, equal-sized photograph placeholders. */
.organizers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.organizer {
  min-width: 0;
}

.organizer-photo {
  display: block;
  width: 100%;
  max-width: 150px;
  aspect-ratio: 4 / 4;
  margin-bottom: 1.3rem;
  background: #e9e3ed;
  object-fit: cover;
  border-radius: 100%;
}

.organizer h3 {
  margin-bottom: .35rem;
  font-size: 1.2rem;
  font-weight: 750;
}

.organizer p {
  min-height: 3.5rem;
  margin-bottom: .65rem;
  color: var(--muted);
  font-size: .95rem;
}

.organizer a {
  font-size: .9rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* Previous editions */
.archive-edition {
  padding-block: 1.35rem;
  border-top: 1px solid var(--line);
}

.archive-edition:last-child {
  border-bottom: 1px solid var(--line);
}

.archive-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.archive-head h3 {
  margin: 0 0 .75rem;
  font-size: 1.8rem;
  font-weight: 800;
}

.archive-head span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 750;
}

.archive-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.6rem;
}

.archive-links a {
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
}

.archive-edition details {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .92rem;
}

.archive-edition summary {
  color: var(--brand-light);
  cursor: pointer;
  font-weight: 700;
}

.archive-people {
  padding: 0;
  margin: .7rem 0 0;
  list-style: none;
}

.archive-people li {
  margin-block: .4rem;
  overflow-wrap: anywhere;
}

/* Footer */
.site-footer {
  padding-top: 3rem;
  background: var(--brand-dark);
  color: #e6dbe9;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-content strong {
  color: white;
  font-size: 1.05rem;
}

.footer-content p {
  max-width: 25rem;
  margin-top: .55rem;
  color: #cfbfdc;
  font-size: .95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 1rem 1.7rem;
}

.footer-links a {
  color: white;
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
}

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

.footer-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem 2rem;
  padding-block: 1.2rem;
  border-top: 1px solid #4d3b5e;
  color: #cfbfdc;
  font-size: .85rem;
}

/* Keep editorial columns readable when the available viewport becomes narrow. */
@media (max-width: 1080px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-title, .section-intro {
    max-width: 43rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .scenario-figure, scenario-figure img {
    width: min(100%, 650px);
    /*display: none;*/
  }

  .organizers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .header-inner {
    min-height: 76px;
    gap: .5rem;
  }

  .site-brand {
    margin-right: auto;
  }

  .menu-ready .menu-toggle {
    display: block;
  }

  .site-nav {
    flex-basis: 100%;
    justify-content: flex-start;
    padding-block: 1rem;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .menu-ready .site-nav {
    display: none;
  }

  .menu-ready .site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
  }

  .site-nav a {
    padding: .65rem 0;
  }

  .site-nav .nav-github {
    border-left: 0;
    padding-left: 0;
  }

  .section-heading-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .participation-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .participation-step {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
  }

  .participation-step .list-number {
    margin-bottom: .5rem;
  }

  .announcement {
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
  }

  .announcement p {
    flex-basis: 100%;
    order: 2;
  }

  .announcement a {
    order: 3;
  }
}

@media (max-width: 560px) {
  .site-container {
    width: min(calc(100% - 2rem), var(--content-width));
  }

  .hero-inner {
    padding-block: 3.3rem;
    gap: 3rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.3rem, 9vw, 3rem);
  }

  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .site-section {
    padding-block: 3.6rem;
  }

  .section-title {
    font-size: 2.1rem;
  }

  .dates-list li {
    grid-template-columns: 1fr;
    gap: .25rem;
  }

  .organizers-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

/*  .organizer-photo {
    max-width: 320px;
  }*/

  .organizer p {
    min-height: 0;
  }

  .figure-heading, .figure-label {
    gap: .5rem;
  }

  .figure-label {
    flex-wrap: wrap;
  }

  .footer-content {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
