/* Base */

* {
  box-sizing: border-box;
}

html {
  font-family: Arial, Helvetica, sans-serif;
  color: #17202a;
  background: #f5f7fa;
}

body {
  margin: 0;
  line-height: 1.5;
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 3px solid #1d6fd1;
  outline-offset: 3px;
}


/* Layout */

.container {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}


/* Header */

.site-header {
  padding: 48px 0 32px;
  background: #ffffff;
  border-bottom: 1px solid #d9dee5;
}

.eyebrow {
  margin: 0 0 8px;

  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header h1 {
  margin: 0;

  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
}

.intro {
  max-width: 600px;
  margin: 16px 0 0;

  color: #53606d;
  font-size: 1.05rem;
}


/* Day Navigation */

.day-navigation {
  display: flex;
  gap: 8px;

  margin: 32px 0 16px;
}

.day-button {
  padding: 10px 20px;

  border: 2px solid #cbd2da;
  border-radius: 8px;

  background: #ffffff;
  color: #17202a;

  font-weight: 700;

  cursor: pointer;
}

.day-button:hover {
  border-color: #17202a;
}

.day-button--active {
  border-color: #17202a;
  background: #17202a;
  color: #ffffff;
}


/* Track Navigation */

.track-navigation {
  display: flex;
  gap: 8px;

  width: 100%;
  max-width: 100%;

  margin-bottom: 24px;
  padding-bottom: 4px;

  overflow-x: auto;

  scrollbar-width: thin;
}

.track-button {
  flex: 0 0 auto;

  padding: 9px 16px;

  border: 1px solid #cbd2da;
  border-radius: 999px;

  background: #ffffff;
  color: #303b46;

  white-space: nowrap;

  cursor: pointer;
}

.track-button:hover {
  border-color: #17202a;
}

.track-button--active {
  border-color: #17202a;
  background: #e9edf2;
  color: #17202a;

  font-weight: 700;
}


/* Schedule */

.schedule {
  margin-bottom: 64px;
}

.schedule-header {
  margin-bottom: 20px;
}

.schedule-header h2 {
  margin: 0;

  font-size: 1.5rem;
}

.schedule-header p {
  margin: 4px 0 0;

  color: #66727e;
}


/* Schedule Grid */

.schedule-grid {
  display: grid;

  grid-template-columns:
    90px repeat(3, minmax(0, 1fr));

  gap: 1px;

  overflow: hidden;

  border: 1px solid #d9dee5;
  border-radius: 12px;

  background: #d9dee5;
}

.schedule-column {
  min-width: 0;

  background: #ffffff;
}

.schedule-column--time {
  background: #f8f9fb;
}

.schedule-column__header {
  min-height: 60px;

  display: flex;
  align-items: center;

  padding: 12px;

  border-bottom: 1px solid #d9dee5;

  background: #f1f3f6;

  font-weight: 700;
}


/* Time Slots */

.time-slot {
  min-height: 190px;

  padding: 16px 10px;

  border-bottom: 1px solid #d9dee5;

  color: #66727e;

  font-size: 0.875rem;
  font-weight: 700;
}


/* Session Cards */

.session-card {
  min-height: 190px;

  padding: 16px;

  border-bottom: 1px solid #d9dee5;
}

.session-card__time {
  margin: 0 0 8px;

  color: #53606d;

  font-size: 0.8rem;
  font-weight: 700;
}

.session-card h3 {
  margin: 0;

  font-size: 1.05rem;
  line-height: 1.3;
}

.session-card__speaker {
  margin: 8px 0 0;

  color: #303b46;

  font-size: 0.9rem;
  font-weight: 700;
}

.session-card__description {
  margin: 8px 0 16px;

  color: #66727e;

  font-size: 0.9rem;
}

.session-card__button {
  padding: 8px 12px;

  border: 1px solid #17202a;
  border-radius: 6px;

  background: #ffffff;
  color: #17202a;

  cursor: pointer;
}

.session-card__button:hover {
  background: #17202a;
  color: #ffffff;
}


/* Tablet */

@media (max-width: 900px) {

  .container {
    width: min(100% - 24px, 900px);
  }

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

  .schedule-column__header {
    font-size: 0.9rem;
  }

  .session-card {
    padding: 12px;
  }

  .session-card h3 {
    font-size: 0.95rem;
  }

  .session-card__description {
    font-size: 0.85rem;
  }
}


/* Mobile */

@media (max-width: 600px) {

  .container {
    width: calc(100% - 24px);
  }

  .site-header {
    padding: 32px 0 24px;
  }

  .day-navigation {
    margin-top: 24px;
  }

  .track-navigation {
    margin-bottom: 20px;

    -webkit-overflow-scrolling: touch;
  }

  .schedule-grid {
    grid-template-columns:
      70px minmax(0, 1fr);
  }

  .schedule-column--mobile-hidden {
    display: none;
  }

  .schedule-column__header {
    min-height: 56px;
    padding: 14px 12px;
  }

  .time-slot {
    min-height: 190px;

    padding: 16px 8px;

    font-size: 0.8rem;
  }

  .session-card {
    min-height: 190px;

    padding: 18px 16px;
  }
}


/* Very Small Screens */

@media (max-width: 360px) {

  .container {
    width: calc(100% - 20px);
  }

  .site-header h1 {
    font-size: 2rem;
  }

  .day-button {
    padding: 9px 14px;
  }

  .track-button {
    padding: 8px 12px;
  }

  .schedule-grid {
    grid-template-columns:
      58px minmax(0, 1fr);
  }

  .time-slot {
    padding-inline: 6px;

    font-size: 0.75rem;
  }

  .session-card {
    padding: 16px 12px;
  }

  .session-card h3 {
    font-size: 0.95rem;
  }

  .session-card__description {
    font-size: 0.85rem;
  }
}


/* Session Dialog */

.session-dialog {
  position: fixed;
  inset: 0;

  z-index: 1000;
}

.session-dialog__backdrop {
  position: absolute;
  inset: 0;

  background: rgb(0 0 0 / 60%);
}

.session-dialog__content {
  position: relative;

  width: min(500px, calc(100% - 32px));
  max-height: calc(100vh - 32px);

  overflow-y: auto;

  margin: 16px auto;
  padding: 32px;

  border-radius: 12px;

  background: #ffffff;

  box-shadow: 0 20px 50px rgb(0 0 0 / 25%);
}

.session-dialog__content:focus {
  outline: none;
}

.session-dialog__content h2 {
  margin: 0 0 8px;

  font-size: 1.5rem;
}

.session-dialog__content>p {
  color: #53606d;
}

.session-dialog__close {
  position: absolute;

  top: 12px;
  right: 12px;

  width: 40px;
  height: 40px;

  border: 0;
  border-radius: 6px;

  background: transparent;

  font-size: 1.75rem;
  line-height: 1;

  cursor: pointer;
}

.session-dialog__close:hover {
  background: #f1f3f6;
}

.session-dialog__done {
  margin-top: 16px;

  padding: 10px 16px;

  border: 1px solid #17202a;
  border-radius: 6px;

  background: #17202a;
  color: #ffffff;

  cursor: pointer;
}

.session-dialog__done:hover {
  background: #303b46;
}


/* Mobile Dialog */

@media (max-width: 600px) {

  .session-dialog__content {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);

    margin: 12px auto;
    padding: 28px 20px 20px;
  }
}


/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}