:root {
  --page: #ece7df;
  --paper: #f7f4ef;
  --panel: rgba(255, 252, 247, 0.94);
  --ink: #151515;
  --muted: #5d5b57;
  --line: rgba(21, 21, 21, 0.12);
  --line-strong: rgba(21, 21, 21, 0.22);
  --accent: #11aa42;
  --accent-dark: #0b7b31;
  --warm: #d7b18a;
  --shadow: 0 20px 60px rgba(15, 15, 15, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(215, 177, 138, 0.24), transparent 24%),
    linear-gradient(180deg, #f2ede6 0%, #e9e4dd 100%);
  font-family: Avenir Next, Avenir, Helvetica Neue, Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

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

h1,
h2,
.brand {
  font-family: Iowan Old Style, Palatino Linotype, Book Antiqua, Georgia, serif;
}

.container {
  width: min(1240px, calc(100% - 1.5rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 239, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  text-decoration: none;
  font-size: 1.55rem;
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.poster-shell {
  padding: 1rem 0 2rem;
}

.poster {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.poster-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.5rem 1.4rem 0.55rem;
  border-bottom: 2px solid var(--ink);
}

.poster-topline h1 {
  font-size: clamp(2.55rem, 4vw, 4rem);
  line-height: 0.97;
  letter-spacing: -0.03em;
}

.poster-eventline {
  margin-top: 0.28rem;
  font-size: clamp(1.15rem, 1.85vw, 1.95rem);
  line-height: 1.1;
}

.poster-room {
  margin-top: 0.4rem;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.poster-badge {
  display: grid;
  justify-items: end;
  gap: 0.15rem;
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
}

.poster-badge-mark {
  font-size: 1.9rem;
  line-height: 0.95;
}

.poster-stage {
  position: relative;
  display: block;
  min-height: 780px;
}

.poster-visual {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.04) 44%, rgba(0, 0, 0, 0.08) 58%, rgba(0, 0, 0, 0.14) 100%),
    url("./speakers/background.png");
  background-size: cover;
  background-position: center center;
}

.poster-visual-copy {
  position: absolute;
  left: 1.2rem;
  top: 1.1rem;
  z-index: 2;
  max-width: 18rem;
  padding: 0.8rem 0.9rem;
  background: rgba(247, 244, 239, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.poster-kicker {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.poster-sidecard {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: min(290px, calc(100% - 2rem));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 240, 234, 0.96));
  border: 1px solid var(--line-strong);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 14px 34px rgba(15, 15, 15, 0.12);
  z-index: 3;
}

.eyebrow {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.poster-sidecard ul,
.contact-list {
  margin: 0;
  padding-left: 1.15rem;
}

.poster-sidecard li,
.section-intro,
.panel p,
.topic-card p,
.person-card p,
.contact-panel p,
.agenda-row span,
.speaker-role,
.speaker-bio p,
.nav a,
.contact-list {
  color: var(--muted);
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.meta-pills span {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
}

.poster-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent-dark);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.85);
}

.speaker-strip {
  position: static;
  padding: 1rem 1.35rem 1.2rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.speaker-card {
  position: relative;
  align-self: start;
}

.speaker-card-white .speaker-portrait {
  background: #fff;
}

.speaker-card-white .speaker-portrait img {
  object-fit: contain;
  background: #fff;
}

.speaker-trigger {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.speaker-trigger:focus-visible {
  outline: 3px solid rgba(17, 170, 66, 0.35);
  outline-offset: 4px;
}

.speaker-portrait {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 2px solid rgba(21, 21, 21, 0.58);
  background: #f3efe9;
  box-shadow: 0 8px 24px rgba(15, 15, 15, 0.14);
}

.speaker-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.speaker-summary {
  display: block;
  padding: 0.55rem 0.1rem 0;
  background: rgba(247, 244, 239, 0.96);
}

.speaker-name {
  display: block;
  font-family: Iowan Old Style, Palatino Linotype, Book Antiqua, Georgia, serif;
  font-size: clamp(1.1rem, 1.55vw, 1.7rem);
  font-weight: 700;
  line-height: 0.96;
}

.speaker-role {
  display: block;
}

.speaker-role {
  margin-top: 0.15rem;
  font-size: 0.86rem;
}

.speaker-bio {
  margin-top: 0.6rem;
  /* padding: 0.85rem 0.95rem; */
  /* background: rgba(255, 252, 247, 0.96); */
  /* border: 1px solid var(--line-strong); */
  /* box-shadow: 0 16px 30px rgba(10, 10, 10, 0.09); */
}

.speaker-card.is-open .speaker-summary {
  position: relative;
}

.speaker-card.is-open .speaker-summary::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 2.75rem;
  height: 3px;
  background: var(--accent);
}

.section {
  padding: 3.25rem 0;
}

.section:first-of-type {
  padding-top: 3.25rem;
}

.section-tinted {
  background: rgba(255, 252, 247, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.section-heading {
  margin-bottom: 1.4rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.section-intro {
  max-width: 56rem;
  margin-top: 0.55rem;
}

.panel-grid,
.topic-grid,
.organizer-grid {
  display: grid;
  gap: 1rem;
}

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

.panel,
.topic-card,
.person-card,
.agenda,
.contact-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel,
.topic-card,
.person-card {
  padding: 1.25rem;
}

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

.topic-card h3,
.person-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

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

.person-role {
  margin-bottom: 0.7rem;
  color: var(--accent-dark);
  font-weight: 700;
}

.agenda {
  overflow: hidden;
}

.agenda-row {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

.agenda-row:last-child {
  border-bottom: 0;
}

.contact-panel {
  padding: 1.45rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.contact-copy {
  max-width: 46rem;
}

.contact-copy h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
  margin: 0.15rem 0 0.8rem;
}

.contact-list {
  margin-top: 0.9rem;
}

@media (max-width: 1080px) {
  .poster-sidecard {
    position: static;
    width: auto;
    margin: 0.9rem 1rem 0;
  }

  .speaker-strip {
    padding: 1rem 1rem 1.2rem;
  }

  .section:first-of-type {
    padding-top: 3.25rem;
  }

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

@media (max-width: 840px) {
  .poster-topline,
  .nav-wrap,
  .contact-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .poster-badge {
    justify-items: start;
    text-align: left;
    white-space: normal;
  }

  .speaker-strip,
  .panel-grid-wide,
  .topic-grid,
  .organizer-grid {
    grid-template-columns: 1fr;
  }

  .agenda-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100%, calc(100% - 1rem));
  }

  .poster-shell {
    padding-top: 0.5rem;
  }

  .poster-topline {
    padding: 0.55rem 0.65rem 0.8rem;
  }

  .poster-stage {
    overflow: hidden;
  }

  .poster-visual {
    min-height: 420px;
  }

  .poster-visual-copy {
    left: 0.75rem;
    top: 0.75rem;
    right: 0.75rem;
    max-width: none;
  }

  .speaker-strip {
    padding-inline: 0.75rem;
  }

  .speaker-name {
    font-size: 1.75rem;
  }

  .section {
    padding: 2.5rem 0;
  }
}
