:root {
  color-scheme: light;
  --rose: #9a4f47;
  --rose-dark: #7e3d37;
  --sage: #749e94;
  --bg-white: #ffffff;
  --text-dark: #1c1c1c;
  --text-on-rose: #ffffff;
  --muted: #5a5a5a;

  --scale-h2: clamp(2.2rem, 4vw + 0.6rem, 3.6rem);
  --scale-h3: clamp(1.35rem, 1.4vw + 0.85rem, 2rem);
  --scale-body: clamp(1.05rem, 0.9vw + 0.75rem, 1.35rem);
  --scale-body-sm: clamp(1rem, 0.6vw + 0.75rem, 1.2rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "EB Garamond", Garamond, "Times New Roman", serif;
  font-weight: 500;
  color: var(--text-dark);
  background-color: var(--rose);
  scroll-behavior: smooth;
}

h1,
h2,
h3 {
  font-weight: 500;
}

.top-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  overflow-x: auto;
  padding: 0.55rem 0.5rem;
  background-color: rgba(154, 79, 71, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.top-nav a {
  position: relative;
  color: var(--text-on-rose);
  text-decoration: none;
  white-space: nowrap;
  font-size: clamp(0.72rem, 0.55vw + 0.42rem, 0.95rem);
  font-weight: 600;
  padding: 0.3rem 0.4rem;
  border-radius: 6px;
  transition: background-color 0.25s ease;
}

.top-nav a:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.top-nav a::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.04rem;
  height: 2px;
  background-color: #f3e6e3;
  border-radius: 999px;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.3s ease;
}

.top-nav a.active::after {
  clip-path: inset(0 0 0 0);
}

.section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 3.2rem 1.25rem;
  scroll-margin-top: 0;
}

.section > .container > h2,
.section-heading {
  margin: 0 0 1.6rem;
  text-align: center;
  font-size: var(--scale-h2);
  font-weight: 500;
}

.section-rose {
  background-color: var(--rose);
  color: var(--text-on-rose);
}

.section-white {
  background-color: var(--bg-white);
  color: var(--text-dark);
}

.section-white h2 {
  color: var(--rose);
}

.section-rose h2,
.section-rose h3 {
  color: var(--text-on-rose);
}

.hero-logo-only {
  flex-direction: column;
  gap: 1.6rem;
  padding: 2rem 1rem;
}

.conference-logo {
  width: min(560px, 86vw);
  height: auto;
  display: block;
  border-radius: 50%;
}

.signup-button {
  display: inline-block;
  padding: 0.85rem 2.6rem;
  background-color: #ffffff;
  color: var(--rose);
  font-family: inherit;
  font-size: var(--scale-body-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: background-color 0.25s ease, transform 0.2s ease,
    box-shadow 0.25s ease;
}

.signup-button:hover,
.signup-button:focus-visible {
  background-color: #f3e6e3;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  outline: none;
}

.signup-button:active {
  transform: translateY(0);
}

.description-container {
  width: min(980px, 100%);
}

.description-header {
  margin: 0 0 1.6rem;
  color: var(--rose);
  font-size: var(--scale-h2);
  font-weight: 500;
  line-height: 1.2;
}

.description-content p {
  margin: 0 0 1.1rem;
  font-size: var(--scale-body);
  line-height: 1.45;
}

.speakers-container {
  width: min(1100px, 100%);
}

.speakers-grid {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.4rem 0 1rem;
  margin: 0 -1rem;
  scrollbar-width: none;
}

.speakers-grid::-webkit-scrollbar {
  display: none;
}

.speakers-row {
  display: contents;
}

.speaker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  padding: 0 1rem;
}

.speaker-card--clone {
  user-select: none;
}

.speaker-photo {
  width: clamp(180px, 55vw, 250px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.speaker-photo--wasinski {
  object-position: center 18%;
}

.speaker-photo--namiotko {
  object-position: center 22%;
}

.speaker-card p {
  margin: 0.9rem 0 0;
  font-size: var(--scale-body-sm);
  line-height: 1.25;
  max-width: 270px;
  color: var(--text-dark);
}

.program-container,
.workshop-container,
.poster-container,
.committee-container,
.contact-container,
.patrons-container {
  width: min(980px, 100%);
}

.program-list {
  font-size: var(--scale-body);
  line-height: 1.45;
}

.program-list p {
  margin: 0 0 1rem;
}

.program-time {
  display: block;
  margin-bottom: 0.15rem;
  font-weight: 600;
}

.workshop-time {
  margin: 0 0 1.6rem;
  text-align: center;
  font-size: var(--scale-h3);
  color: var(--text-dark);
}

.workshop-tba {
  margin: 0;
  text-align: center;
  font-size: var(--scale-h3);
  font-style: italic;
  font-weight: 500;
  color: var(--text-dark);
}

.poster-content {
  font-size: var(--scale-body);
  line-height: 1.45;
}

.poster-content p {
  margin: 0 0 1.2rem;
}

.poster-content h3 {
  margin: 1.6rem 0 0.7rem;
  text-align: center;
  font-size: var(--scale-h3);
  font-weight: 500;
}

.poster-list {
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
}

.poster-list li {
  margin-bottom: 0.35rem;
}

.committee-container {
  text-align: center;
}

.committee-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.committee-list li {
  font-size: var(--scale-body);
  line-height: 1.45;
  margin: 0.7rem 0;
}

.organizers-container {
  width: min(1060px, 100%);
}

.organizers-list {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.organizer-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.organizer-logo {
  width: 180px;
  max-width: 100%;
  height: auto;
  display: block;
  justify-self: center;
}

.organizer-logo--uwm {
  width: 200px;
  border-radius: 50%;
}

.organizer-logo--blizej {
  width: 240px;
}

.organizer-content h3 {
  margin: 0 0 0.7rem;
  font-size: var(--scale-h3);
  font-weight: 500;
  color: var(--text-on-rose);
}

.organizer-content p {
  margin: 0;
  font-size: var(--scale-body);
  line-height: 1.4;
}

.contact-container h2 {
  margin: 0 0 0.4rem;
  letter-spacing: 0.08em;
}

.contact-signup-label {
  margin: 0;
  text-align: center;
  font-size: var(--scale-h3);
  color: var(--rose);
  letter-spacing: 0.04em;
}

.contact-signup-link {
  margin: 0.6rem 0 1.8rem;
  text-align: center;
  font-size: var(--scale-body);
  color: var(--rose);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-width: 720px;
  margin: 0 auto;
}

.contact-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 0.9rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
}

.contact-item p,
.contact-item a {
  margin: 0;
  color: var(--rose);
  font-size: var(--scale-body);
  line-height: 1.3;
  text-decoration: none;
}

.contact-item a {
  text-decoration: underline;
}

.contact-soon {
  font-size: 0.85em;
  opacity: 0.8;
}

.patrons-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 1.6rem;
}

.patron-item {
  display: inline-flex;
  background: #ffffff;
  border-radius: 18px;
  padding: 0.85rem 1rem;
}

.patron-logo {
  width: 180px;
  height: auto;
  display: block;
  object-fit: contain;
}

@media (min-width: 640px) {
  .section {
    padding: 3.8rem 1.75rem;
  }

  .program-list p {
    margin: 0 0 0.7rem;
  }

  .program-time {
    display: inline;
    margin-bottom: 0;
    font-weight: inherit;
  }

  .speakers-grid {
    gap: 1.5rem;
    padding: 0.4rem 1rem 1rem;
  }

  .speaker-card {
    flex: 0 0 auto;
    width: 210px;
    padding: 0;
    scroll-snap-stop: normal;
  }

  .speaker-photo {
    width: 180px;
  }

  .contact-item {
    grid-template-columns: 56px 1fr;
  }

  .contact-icon {
    width: 52px;
    height: 52px;
  }
}

@media (min-width: 768px) {
  .top-nav {
    display: flex;
  }

  .section {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 5rem 2rem 4.2rem;
    scroll-margin-top: 0;
  }

  .hero-logo-only {
    padding-top: 5rem;
  }

  .speakers-grid {
    gap: 2rem;
    padding: 0.6rem 1.5rem 1.2rem;
  }

  .speaker-card {
    width: 230px;
  }

  .speaker-photo {
    width: 200px;
  }

  .organizer-item {
    grid-template-columns: 240px 1fr;
    gap: 1.8rem;
    text-align: left;
  }

  .organizer-logo {
    justify-self: start;
  }

  .patron-logo {
    width: 210px;
  }
}

@media (min-width: 1024px) {
  .top-nav {
    gap: 1.1rem;
    padding: 0.85rem 1rem;
  }

  .section {
    padding: 5rem 2.2rem 4.6rem;
  }

  .conference-logo {
    width: min(620px, 52vw);
  }

  .speakers-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow-x: visible;
    scroll-snap-type: none;
    padding: 0;
    margin: 0;
  }

  .speakers-row {
    display: grid;
    justify-content: center;
  }

  .speakers-row-top {
    grid-template-columns: repeat(2, minmax(180px, 240px));
    gap: 2.2rem 5rem;
  }

  .speakers-row-bottom {
    grid-template-columns: repeat(3, minmax(180px, 240px));
    gap: 2.2rem 3.2rem;
  }

  .speaker-card {
    width: 100%;
    flex: initial;
    scroll-snap-align: none;
  }

  .speaker-photo {
    width: 210px;
  }
}
