:root {
  --ink: #151827;
  --muted: #5f6474;
  --line: #dfe2ea;
  --paper: #ffffff;
  --soft: #f4f6fa;
  --red: #d6001c;
  --magenta: #9d0f61;
  --blue: #244da1;
  --teal: #0d766e;
  --gold: #a76a05;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.brand {
  display: block;
  background: #fff;
}

.brand img {
  display: block;
  width: 100%;
  max-width: 1120px;
  height: auto;
  margin: 0 auto;
}

.nav {
  display: flex;
  gap: .5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: .85rem 1rem;
  overflow-x: auto;
  white-space: nowrap;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  padding: .55rem .8rem;
  border-radius: 6px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: #f1f3f8;
  color: var(--red);
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: end;
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.session-type {
  color: var(--red);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  margin: 0 0 .65rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.45rem, 8vw, 5rem);
  line-height: 1;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.15;
  margin-bottom: .75rem;
}

h3 {
  font-size: 1rem;
  margin-bottom: .35rem;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 780px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .75rem 1rem;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.primary {
  background: var(--red);
  color: #fff;
}

.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
}

.event-card,
.highlights article,
.info-list article,
.session {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.event-card {
  padding: 1.25rem;
  box-shadow: 0 18px 45px rgba(21, 24, 39, .08);
}

.event-card span {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-card strong {
  display: block;
  margin: .2rem 0 1rem;
  font-size: 1.05rem;
}

.event-card strong:last-child {
  margin-bottom: 0;
}

.content-band {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

.section-heading h2 {
  font-size: clamp(1.65rem, 4vw, 2.7rem);
}

.text-grid {
  columns: 2 260px;
  column-gap: 2rem;
}

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

.highlights article {
  padding: 1.3rem;
  background: var(--soft);
}

.highlights h3 {
  color: var(--red);
}

.page-title {
  padding: clamp(2rem, 6vw, 4.5rem) 0 2rem;
  border-bottom: 1px solid var(--line);
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 2rem;
}

.info-list article {
  padding: 1.25rem;
}

.programme {
  display: grid;
  gap: 1rem;
  padding-top: 2rem;
}

.session {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem;
}

.session time {
  color: var(--red);
  font-size: 1.1rem;
  font-weight: 900;
}

.session.simple {
  background: var(--soft);
}

.speaker-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 1rem;
}

.headshot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  width: 112px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #1f2f79, #a20f63);
}

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

.avatar-upload {
  position: absolute;
  right: .35rem;
  bottom: .35rem;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 999px;
  display: none;
  place-items: center;
  color: #fff;
  background: rgba(21, 24, 39, .78);
  box-shadow: 0 8px 22px rgba(21, 24, 39, .22);
  cursor: pointer;
}

.avatar-upload svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.avatar-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.is-editing .headshot:hover .avatar-upload,
.is-editing .headshot:focus-within .avatar-upload {
  display: grid;
}

.headshot.accent {
  background: linear-gradient(135deg, #244da1, #0d766e);
}

.headshot.green {
  background: linear-gradient(135deg, #0d766e, #86a315);
}

.headshot.gold {
  background: linear-gradient(135deg, #a76a05, #d6001c);
}

.headshot.violet {
  background: linear-gradient(135deg, #6122a6, #244da1);
}

.headshot.coral {
  background: linear-gradient(135deg, #d6001c, #de7a22);
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

footer p {
  margin: 0;
}

@media (max-width: 780px) {
  .brand img {
    min-height: 188px;
    max-width: none;
    object-fit: cover;
    object-position: center top;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .content-band,
  .info-list,
  .highlights,
  .session,
  .speaker-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .event-card {
    box-shadow: none;
  }


  .session {
    gap: .65rem;
  }

  .speaker-card {
    gap: .8rem;
  }

  .headshot {
    width: 88px;
    font-size: 1.5rem;
  }

  footer {
    display: block;
  }

  footer p + p {
    margin-top: .35rem;
  }
}
