:root {
  --ink: #14213d;
  --ink-soft: #33415c;
  --paper: #f3f6fa;
  --surface: #ffffff;
  --line: #cbd5e1;
  --line-dark: #8c9aae;
  --blue: #2457a6;
  --blue-dark: #183b70;
  --red: #d94b3d;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --shell: min(1180px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--blue);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.wordmark-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.wordmark-name {
  font-size: 0.9rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  position: relative;
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}

a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent);
  outline-offset: 4px;
}

.hero {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: flex;
  align-items: center;
  padding-top: clamp(86px, 11vw, 150px);
  padding-bottom: clamp(92px, 12vw, 164px);
}

.hero-heading {
  align-self: start;
}

.card-label {
  margin: 0;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 1180px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 6.55vw, 6.55rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

h1 em {
  color: var(--blue);
  font-weight: 400;
}

.section {
  padding: clamp(84px, 10vw, 144px) 0;
  border-bottom: 1px solid var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1fr);
  gap: clamp(42px, 8vw, 112px);
}

.section-heading {
  align-self: start;
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.1vw, 2.9rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.large-copy {
  max-width: 810px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.32rem, 2.3vw, 1.92rem);
  line-height: 1.42;
}

.about-secondary {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.focus-statement {
  margin: 64px 0 0;
  padding: 28px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 1rem;
}

.focus-statement strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 400;
}

.programme-section {
  background: var(--ink);
  color: #f7f9fc;
}

.programme-term {
  margin: 0 0 26px;
  color: #f7f9fc;
  font-family: var(--serif);
  font-size: clamp(1.62rem, 2.7vw, 2.3rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.programme-content,
.programme-list,
.session > * {
  min-width: 0;
}

.empty-programme {
  min-height: 230px;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid #60708a;
  border-bottom: 1px solid #60708a;
}

.empty-mark {
  color: #ff7a68;
  font-family: var(--serif);
  font-size: 3.2rem;
}

.empty-programme h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.7vw, 2.3rem);
  font-weight: 400;
}

.empty-programme p {
  margin: 0;
  color: #b8c4d7;
}

.session {
  display: grid;
  grid-template-columns: minmax(130px, 0.28fr) minmax(150px, 0.35fr) 1fr;
  gap: 30px;
  padding: 34px 0;
  border-top: 1px solid #60708a;
}

.session:last-child {
  border-bottom: 1px solid #60708a;
}

.session-date,
.session-speaker {
  color: #c7d1df;
  font-size: 0.95rem;
}

.session-speaker {
  font-weight: 700;
}

.session-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.session-reading,
.session-note {
  margin: 8px 0 0;
  color: #b8c4d7;
  font-size: 0.92rem;
}

.session a {
  color: #ffffff;
  text-decoration-color: #ff7a68;
  text-underline-offset: 4px;
}

.programme-archive {
  margin-top: clamp(64px, 8vw, 92px);
}

.programme-archive > h3 {
  margin: 0 0 20px;
  color: #adbed8;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.archive-list {
  border-top: 1px solid #60708a;
}

.archive-term {
  border-bottom: 1px solid #60708a;
}

.archive-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 22px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
}

.archive-summary::-webkit-details-marker {
  display: none;
}

.archive-summary::after {
  color: #ff7a68;
  content: "+";
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1;
  text-align: right;
  transition: transform 180ms ease;
}

.archive-term[open] > .archive-summary::after {
  transform: rotate(45deg);
}

.archive-summary:hover .archive-term-name,
.archive-summary:focus-visible .archive-term-name {
  color: #ffffff;
}

.archive-term-name {
  color: #e5ebf4;
  font-family: var(--serif);
  font-size: clamp(1.22rem, 2vw, 1.62rem);
  line-height: 1.2;
  transition: color 180ms ease;
}

.archive-count {
  color: #adbed8;
  font-size: 0.82rem;
  white-space: nowrap;
}

.archive-panel {
  padding: 4px 0 34px;
}

.archive-host {
  display: inline-block;
  margin: 0 0 16px;
  padding: 7px 11px;
  color: #f7f9fc;
  border: 1px solid #74839b;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.archive-metadata {
  max-width: 760px;
  margin: 0 0 24px;
  color: #adbed8;
  font-size: 0.9rem;
}

.archive-sessions .session:first-child {
  border-top-color: #74839b;
}

.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: clamp(40px, 5vw, 70px);
}

.details-list {
  margin: 66px 0 0;
  border-top: 1px solid var(--line-dark);
}

.details-list div {
  display: grid;
  grid-template-columns: 100px 1fr;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.details-list dt {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.details-list dd {
  margin: 0;
  font-weight: 650;
}

.mailing-card {
  min-width: 0;
  align-self: start;
  padding: clamp(30px, 3.2vw, 42px);
  background: var(--surface);
  border-top: 5px solid var(--red);
  box-shadow: 0 20px 60px rgb(20 33 61 / 8%);
}

.mailing-card h3 {
  margin: 20px 0 18px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.mailing-card p:not(.card-label) {
  color: var(--ink-soft);
}

.email-link {
  display: inline-block;
  max-width: 100%;
  margin-top: 18px;
  color: var(--blue-dark);
  font-size: 0.95rem;
  font-weight: 750;
  overflow-wrap: anywhere;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.site-footer {
  padding: 34px 0;
  background: #0d172d;
  color: #c2cddd;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
  font-size: 0.84rem;
}

@media (max-width: 860px) {
  :root {
    --shell: min(100% - 36px, 680px);
  }

  .header-inner {
    min-height: 68px;
  }

  .wordmark-name {
    display: none;
  }

  nav {
    gap: 18px;
  }

  .hero-grid {
    padding-top: 72px;
    padding-bottom: 86px;
  }

  h1 {
    font-size: clamp(3rem, 11.7vw, 5.4rem);
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    padding-bottom: 8px;
  }

  .join-grid {
    grid-template-columns: 1fr;
  }

  .session {
    grid-template-columns: 1fr 1fr;
  }

  .session-main {
    grid-column: 1 / -1;
  }

  .archive-summary {
    gap: 16px;
  }
}

@media (max-width: 560px) {
  :root {
    --shell: calc(100% - 28px);
  }

  html {
    scroll-padding-top: 76px;
  }

  nav a:first-child {
    display: none;
  }

  nav {
    gap: 16px;
  }

  nav a {
    font-size: 0.82rem;
  }

  .wordmark-mark {
    width: 38px;
    height: 38px;
  }

  .hero-grid {
    padding-top: 58px;
    padding-bottom: 70px;
  }

  h1 {
    font-size: clamp(2.75rem, 15.2vw, 4.3rem);
  }

  .focus-statement {
    margin-top: 48px;
  }

  .empty-programme {
    grid-template-columns: 42px 1fr;
  }

  .empty-mark {
    font-size: 2.3rem;
  }

  .session {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .session-main {
    grid-column: auto;
    margin-top: 12px;
  }

  .archive-summary {
    grid-template-columns: minmax(0, 1fr) 24px;
  }

  .archive-count {
    display: none;
  }

  .details-list div {
    grid-template-columns: 78px 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 4px;
  }
}

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

  nav a::after {
    transition: none;
  }

  .archive-summary::after,
  .archive-term-name {
    transition: none;
  }
}

@supports not (color: color-mix(in srgb, white, black)) {
  .site-header {
    background: rgb(243 246 250 / 96%);
  }

  a:focus-visible {
    outline-color: #7999ca;
  }
}
