:root {
  --navy: #03346f;
  --navy-deep: #022448;
  --gold: #f0c239;
  --paper: #f6f3ea;
  --white: #fffcf6;
  --ink: #142033;
  --muted: #3e4e63;
  --line: rgba(3, 52, 111, 0.16);
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --wrap: 72rem;
  --header: 4.75rem;
  --radius: 0.7rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--navy-deep);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--gold);
  color: var(--navy);
  padding: 0.5rem 0.8rem;
  z-index: 20;
  font-weight: 700;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
  color: var(--white);
  border-bottom: 3px solid var(--gold);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
}

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

.brand img {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
}

.brand-name,
.brand-sub {
  display: block;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 640;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-sub {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  font: inherit;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  min-height: 2.75rem;
  border-radius: var(--radius);
}

#site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

#site-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

#site-nav a:hover {
  color: var(--gold);
}

.hero {
  background:
    linear-gradient(180deg, rgba(3, 52, 111, 0.05), transparent 8rem),
    var(--paper);
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.8fr);
  gap: 3rem;
  align-items: end;
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker-on-navy {
  color: var(--gold);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.2rem);
  color: var(--navy);
}

h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 3vw, 2.75rem);
  color: var(--navy);
}

h3 {
  margin: 0 0 0.3rem;
  font-size: 1.45rem;
  color: var(--navy);
}

.lede {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  font-size: 1.3rem;
  color: var(--ink);
}

.next {
  background: var(--navy);
  color: var(--white);
  padding: 1.5rem 1.4rem 1.4rem;
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 252, 246, 0.22),
    0 1px 1px rgba(2, 36, 72, 0.12),
    0 14px 28px rgba(2, 36, 72, 0.16);
}

.next-date {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.4vw, 2.3rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--gold);
}

.next-detail,
.next-note {
  margin: 0.85rem 0 0;
}

.next-note {
  color: rgba(255, 252, 246, 0.78);
  font-size: 0.98rem;
}

.button {
  display: inline-block;
  margin-top: 1.15rem;
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  padding: 0.65rem 1rem;
  min-height: 2.75rem;
  border-radius: var(--radius);
}

.button:hover {
  background: #ffd45a;
  color: var(--navy-deep);
}

.band {
  padding: 1rem 0 4rem;
}

.band-paper {
  background: var(--white);
  border-block: 1px solid var(--line);
  padding: 4rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 1.75rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.programme {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.programme li {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.programme time {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.programme p {
  margin: 0;
  color: var(--muted);
}

.flag {
  justify-self: end;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius);
}

.flag-live {
  color: var(--navy);
  border-color: var(--navy);
}

.kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.4rem 0 0.35rem;
}

.kind {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  border-radius: var(--radius);
  padding: 0.2rem 0.45rem;
}

.kind-academic {
  background: var(--navy);
  color: var(--paper);
}

.kind-social {
  background: var(--gold);
  color: var(--navy);
}

.next .kind-academic {
  background: var(--paper);
  color: var(--navy);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 1px rgba(3, 52, 111, 0.05),
    0 12px 26px rgba(3, 52, 111, 0.08);
}

.steps article {
  background: var(--white);
  padding: 1.75rem 1.5rem 1.6rem;
}

.step-time {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  color: var(--paper);
  background: var(--navy);
  display: inline-block;
  padding: 0.15rem 0.55rem 0.25rem;
  line-height: 1;
  border-radius: var(--radius);
}

.step-time-social {
  color: var(--navy);
  background: var(--gold);
}

.steps p:last-child {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
}

.lecture {
  background: var(--navy-deep);
  color: var(--white);
  padding: 4.5rem 0;
}

.lecture-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.9fr);
  gap: 3rem;
  align-items: end;
}

.lecture h2 {
  color: var(--gold);
  font-style: italic;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
}

.lecture-lead {
  margin: 1rem 0 0;
  max-width: 32rem;
  font-size: 1.3rem;
}

.facts {
  margin: 0;
  display: grid;
  gap: 0;
}

.facts div {
  padding: 0.95rem 0;
  border-top: 1px solid rgba(240, 194, 57, 0.45);
}

.facts div:last-child {
  border-bottom: 1px solid rgba(240, 194, 57, 0.45);
}

.facts dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.facts dd {
  margin: 0.15rem 0 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

.about-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 40rem);
  gap: 2rem;
  align-items: center;
}

.about-mark {
  width: 13.5rem;
  height: 13.5rem;
  border-radius: 50%;
}

.about-grid p {
  margin: 0 0 0.9rem;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.4rem;
}

.about-links .button {
  margin-top: 0;
}

.socials {
  display: grid;
  grid-template-columns: minmax(0, 36rem) auto;
  gap: 2.5rem;
  align-items: center;
}

.socials p {
  max-width: 36rem;
}

.qr-link {
  display: block;
  justify-self: start;
  width: fit-content;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 1px rgba(3, 52, 111, 0.05),
    0 12px 26px rgba(3, 52, 111, 0.08);
}

.qr-link img {
  display: block;
  width: 11rem;
  height: 11rem;
}

.text-link {
  font-weight: 700;
}

.site-footer {
  background: var(--navy);
  color: rgba(255, 252, 246, 0.82);
  padding: 1.4rem 0;
  font-size: 0.98rem;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--gold);
  font-weight: 700;
}

@media (max-width: 800px) {
  .hero-grid,
  .lecture-grid,
  .steps,
  .about-grid,
  .socials,
  .programme li {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .programme li {
    gap: 0.35rem;
  }

  .flag {
    justify-self: start;
  }

  .about-mark {
    width: 9.5rem;
    height: 9.5rem;
  }

  .nav-toggle {
    display: inline-block;
  }

  #site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 1.25rem 1rem;
    border-bottom: 3px solid var(--gold);
  }

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

  #site-nav a {
    padding: 0.75rem 0;
    border-top: 1px solid rgba(240, 194, 57, 0.28);
  }

  .header-bar {
    position: relative;
  }
}

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