@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap');

:root {
  --navy: #13294b;
  --navy-2: #1c3d68;
  --text-muted: #536475;
  --line: #dce3e9;
  --paper: #ffffff;
  --page: #fbfaf8;
  --soft: #f7f5f2;
  --soft-blue: #eef4f8;
  --soft-blue-hover: #e5eef5;
  --accent: #936b55;
  --accent-light: #d7aa91;
  --max-width: 1200px;
  --logo-rail: 300px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--navy);
  background: var(--paper);
  font-family: 'Lato', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

a { color: inherit; }

/* Hero */
.site-header {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.hero {
  position: relative;
  width: min(var(--max-width), calc(100% - 64px));
  min-height: 540px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--logo-rail);
  align-items: stretch;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: end;
  max-width: 825px;
  padding: 76px 70px 70px 0;
}

.hero h1 {
  max-width: 810px;
  margin: 0;
  color: #F5F3EE;
  font-size: clamp(58px, 7vw, 92px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: .92;
}

.theme {
  max-width: 720px;
  margin: 32px 0 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(23px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1.25;
}

.hero-date {
  margin: 28px 0 0;
  color: rgba(255,255,255,.96);
  font-size: 18px;
  font-weight: 700;
}

.hero-date span {
  padding: 0 7px;
  color: var(--accent-light);
}

.hero-location {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 18px;
  max-width: 650px;
  margin-top: 24px;
  padding-top: 17px;
  border-top: 1px solid rgba(255,255,255,.2);
}

.hero-location span {
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-location p {
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: 15px;
  line-height: 1.5;
}

.hero-partners {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 48px 34px;
  background: var(--page);
  border-left: 1px solid rgba(255,255,255,.12);
}

.hero-partners img {
  display: block;
  width: 225px;
  max-width: 100%;
  height: auto;
}

.hero-year {
  position: absolute;
  z-index: 1;
  right: calc(var(--logo-rail) + 12px);
  bottom: -.27em;
  color: rgba(255,255,255,.045);
  font-size: clamp(190px, 25vw, 365px);
  font-weight: 900;
  letter-spacing: -.08em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav-inner {
  width: min(var(--max-width), calc(100% - 64px));
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  color: var(--navy);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
  outline: none;
}

main {
  width: min(var(--max-width), calc(100% - 64px));
  margin: 0 auto;
}

/* Overview */
.overview {
  max-width: 920px;
  padding: 72px 0 64px;
}

.overview p {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 20px;
}

.overview .host {
  margin-bottom: 25px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.invitation {
  margin-top: 30px;
  padding: 18px 22px;
  background: var(--soft);
  border-left: 4px solid var(--accent);
}

.invitation span {
  display: block;
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.invitation strong {
  color: var(--navy);
  font-size: 17px;
}

/* Shared sections */
.content-section {
  padding: 78px 0;
  scroll-margin-top: 76px;
}

.section-heading {
  margin-bottom: 38px;
}

.section-heading .eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .16em;
}

.section-heading h2,
.program-intro h2 {
  margin: 0;
  color: var(--navy);
  font-size: 42px;
  letter-spacing: -.025em;
  line-height: 1.05;
}

/* Program controls */
.program-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 46px;
}

.program-days {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.day-tab {
  min-width: 112px;
  margin-bottom: -1px;
  padding: 11px 14px;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.day-tab span {
  font-weight: 700;
  opacity: .76;
}

.day-tab:hover,
.day-tab:focus-visible {
  border-bottom-color: #b6c3ce;
  outline: none;
}

.day-tab.active {
  border-bottom-color: var(--accent);
}

.day {
  margin-bottom: 20px;
  padding-inline: 18px;
  scroll-margin-top: 85px;
}

.day-title {
  margin: 0 0 6px;
  padding: 0 0 21px;
}

.day-title span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .14em;
}

.day-title h3 {
  margin: 0;
  color: var(--navy);
  font-size: 27px;
  letter-spacing: -.015em;
  line-height: 1.2;
}

/* Editorial schedule */
.item {
  position: relative;
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  margin: 0;
  background: transparent;
  border-bottom: 1px solid var(--line);
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.item time {
  display: block;
  padding: 27px 26px 27px 12px;
  color: var(--text-muted);
  border-right: 1px solid var(--line);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  transition: color .2s ease, border-color .2s ease;
}

.item > div {
  position: relative;
  min-width: 0;
  padding: 27px 0 28px 30px;
}

.item h4 {
  max-width: 820px;
  margin: 0 0 5px;
  color: var(--navy);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.3;
}

.item em {
  display: block;
  max-width: 820px;
  margin: -1px 0 10px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.45;
}

.item p {
  margin: 12px 0 0;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.5;
}

.item .tag {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}

.item.featured > div::before,
.item.panel > div::before,
.item.keynote > div::before {
  content: '';
  position: absolute;
  top: 27px;
  bottom: 27px;
  left: -1px;
  width: 2px;
  background: var(--accent);
}

/* Regular sessions use the warm editorial hover from the refined version. */
.item:not(.break):hover,
.item:not(.break):focus-within {
  background: #f8f4f0;
  border-bottom-color: #c7b3a5;
}

.item:not(.break):hover time,
.item:not(.break):focus-within time {
  color: var(--navy);
  border-right-color: #c7b3a5;
}

/* Breaks remain visually distinct even without interaction. */
.item.break {
  background: var(--soft-blue);
  border-bottom-color: #d4e0e8;
}

.item.break time,
.item.break > div {
  padding-top: 14px;
  padding-bottom: 14px;
}

.item.break time {
  color: #557086;
  border-right-color: #d4e0e8;
}

.item.break h4 {
  margin: 0;
  color: #3e5b73;
  font-size: 16px;
  font-weight: 700;
}

.item.break:hover,
.item.break:focus-within {
  background: var(--soft-blue-hover);
}

.speaker-name {
  display: inline;
  color: var(--navy);
  font-size: 17px;
  font-weight: 900;
}

.speaker-role {
  display: inline;
  color: var(--accent);
  font-size: 16px;
  font-weight: 900;
}

.speaker-role-regular {
  color: var(--text-muted);
  font-weight: 500;
}

.speaker-affiliation {
  display: inline;
  color: var(--text-muted);
  font-size: 16px;
}

.speaker-role::before,
.speaker-affiliation::before {
  content: ' · ';
  color: #9da8b1;
  font-weight: 400;
}

.item p > br {
  display: block;
  content: '';
  margin: 7px 0;
}

.role-label {
  display: block;
  margin: 14px 0 3px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.day-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 8px;
}

.day-nav-button {
  padding: 11px 17px;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid #cbd6df;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease;
}

.day-nav-button:hover,
.day-nav-button:focus-visible {
  border-color: var(--navy);
  outline: none;
  transform: translateY(-1px);
}

.day-nav-button.next,
.day-nav-button.schedule-top {
  margin-left: auto;
}

/* Organizers */
.people-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 38px 24px;
  width: 100%;
  max-width: 1200px;
}

.person {
  min-width: 0;
  text-align: left;
}

.person img {
  display: block;
  width: 145px;
  height: 174px;
  margin-bottom: 16px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 2px;
}

.person img[alt="Ana Simpson"] {
  object-position: center center;
}

.person img[alt="Jenny Li Zhang"] {
  object-position: 50% 18%;
}

.person h3 {
  margin: 0 0 5px;
  color: var(--navy);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
}

.person p {
  max-width: 220px;
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.45;
}

.person .role {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

/* Editors */
.editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 36px;
}

.editor-grid article {
  min-width: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.editor-grid h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.25;
}

.editor-grid p {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.45;
}

.editor-grid .editor-role {
  margin: -1px 0 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}

/* Contact */
.contact-section {
  width: min(var(--max-width), calc(100% - 64px));
  margin: 0 auto;
  padding: 70px 0 82px;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 32px;
  background: var(--soft-blue);
}

.contact-card > div {
  flex: 1 1 auto;
  min-width: 0;
}

.contact-card h2 {
  margin: 0 0 6px;
  color: var(--navy);
}

.contact-card p {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
}

.contact-card p + p {
  margin-top: 10px;
}

.contact-email {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 8px 0 6px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  transition: color .18s ease;
}

.contact-email > span:first-child {
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}

.contact-email .mail-icon {
  display: inline-flex;
  width: 1.5em;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .18s ease, transform .18s ease;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--accent);
  outline: none;
}

.contact-email:hover .mail-icon,
.contact-email:focus-visible .mail-icon {
  opacity: 1;
  transform: translateX(0);
}

/* Tablet */
@media (max-width: 900px) {
  :root { --logo-rail: 240px; }

  .hero-copy { padding-right: 44px; }
  .hero-partners { padding-inline: 22px; }
  .hero-partners img { width: 200px; }

  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 620px;
  }

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

/* Mobile */
@media (max-width: 650px) {
  body { font-size: 17px; }

  .hero,
  main,
  .nav-inner,
  .contact-section {
    width: min(100% - 32px, var(--max-width));
  }

  .hero {
    min-height: 500px;
    display: block;
  }

  .hero-copy {
    max-width: none;
    padding: 48px 0 66px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 64px);
    line-height: .94;
  }

  .theme {
    margin-top: 24px;
    font-size: 21px;
  }

  .hero-date {
    margin-top: 23px;
    font-size: 16px;
  }

  .hero-location {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 20px;
  }

  .hero-partners { display: none; }

  .hero-year {
    right: -.03em;
    bottom: -.17em;
    font-size: 205px;
    color: rgba(255,255,255,.04);
  }

  .nav-inner {
    min-height: 50px;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-inner::-webkit-scrollbar { display: none; }
  .nav a { font-size: 14px; white-space: nowrap; }

  .overview { padding: 50px 0 46px; }
  .overview p { font-size: 18px; }
  .content-section { padding: 60px 0; }

  .section-heading h2,
  .program-intro h2 { font-size: 35px; }

  .program-intro {
    display: block;
    margin-bottom: 38px;
  }

  .program-days {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 24px;
  }

  .day-tab {
    min-width: 0;
    padding: 11px 4px;
    font-size: 14px;
  }

  .day { padding-inline: 0; }
  .day-title { padding-bottom: 18px; }
  .day-title span { font-size: 15px; }
  .day-title h3 { font-size: 23px; }

  .item {
    display: block;
    padding: 22px 0 24px;
  }

  .item time {
    padding: 0 0 8px;
    color: var(--accent);
    border-right: 0;
    font-size: 14px;
  }

  .item > div { padding: 0; }
  .item h4 { font-size: 20px; }

  .item.featured > div::before,
  .item.panel > div::before,
  .item.keynote > div::before { display: none; }

  .item:not(.break):hover,
  .item:not(.break):focus-within {
    background: #f8f4f0;
  }

  .item.break {
    margin-inline: -10px;
    padding: 14px 10px;
  }

  .item.break time,
  .item.break > div { padding: 0; }

  .speaker-name { font-size: 16px; }
  .speaker-role,
  .speaker-affiliation { font-size: 15px; }

  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 18px;
  }

  .person img {
    width: 116px;
    height: 140px;
  }

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

  .contact-card {
    display: block;
    padding: 24px;
  }

  .contact-email {
    margin-top: 16px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
