:root {
  --bg: #141414;
  --fg: #fff;
  --menu-bg: #202020;
  --river-bg: #fff;
  --line-soft: rgba(255, 255, 255, 0.16);
  --line-mid: rgba(255, 255, 255, 0.48);

  --font: "Onul담소", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --regular: 400;
  --bold: 700;
  --heavy: 900;

  --panel-w: clamp(560px, 50vw, 760px);
  --pad-l: 36px;
  --pad-r: 46px;
  --indent: 55px;
  --nav-pad-r: 20px;
  --time-w: 128px;
  --header-gap: 104px;
  --section-gap: 80px;

  --river-cols-min: 4;
  --river-cols-max: 9;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

*::selection {
  background: white;
  color: black;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: var(--bold);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.03em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1,
h2,
p,
ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.6;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

:lang(en) {
  -webkit-hyphens: auto;
  hyphens: auto;
}

button {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: inherit;
}

.panel {
  position: relative;
  z-index: 2;
  width: var(--panel-w);
  min-height: 100vh;
  padding: 0 var(--pad-r) 40px var(--pad-l);
  background: var(--bg);
}

.nav {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  margin-right: calc(var(--nav-pad-r) - var(--pad-r));
  font-weight: var(--heavy);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav__link {
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
}

.nav__toggle:hover {
  opacity: 0.6;
}

.nav__menu {
  position: relative;
}

.nav__cta {
  display: inline-block;
  padding: 7px 10px 5px;
  background: var(--fg);
  color: #000;
}

.nav__cta:hover {
  opacity: 0.85;
}

.dropdown {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 10;
  width: 220px;
  font-size: 15px;
  line-height: 18px;
  letter-spacing: -0.02em;
  white-space: normal;
}

.dropdown a {
  display: block;
  padding: 14px 14px 12px;
  background: var(--menu-bg);
}

.dropdown a:hover {
  opacity: 1;
  background: #2c2c2c;
}

.js .dropdown {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.js .nav__menu.is-open .dropdown {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}

.title {
  word-break: keep-all;
  margin-top: 44px;
  font-weight: var(--heavy);
  font-size: 32px;
  line-height: 46px;
  letter-spacing: -0.02em;
}

.facts {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}

.facts__row {
  display: grid;
  grid-template-columns: var(--indent) minmax(0, 1fr);
  align-items: start;
}

.facts dt {
  font-weight: var(--heavy);
  font-size: 15px;
  line-height: 28px;
  letter-spacing: 0.03em;
  opacity: 0.66;
}

.facts dd {
  font-size: 18px;
  line-height: 28px;
}

.speakers {
  line-height: 30px;
}

.section {
  margin-top: var(--section-gap);
}

.masthead + .section {
  margin-top: var(--header-gap);
}

.section__label {
  font-weight: var(--heavy);
  font-size: 16px;
  line-height: 34px;
  opacity: 0.66;
}

.section__body {
  margin-top: 10px;
  margin-left: var(--indent);
}

.prose {
  font-size: 16px;
  line-height: 30px;
  text-align: justify;
}

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

.prose--lead {
  font-size: 20px;
  line-height: 36px;
}

.slot {
  border-top: 1px solid var(--fg);
  padding: 10px 0 20px;
  scroll-margin-top: 24px;
}

.slot__head {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.slot__time {
  flex: 0 0 var(--time-w);
  font-weight: var(--heavy);
  font-size: 16px;
  line-height: 28px;
  opacity: 0.5;
}

.slot__main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.slot__title {
  word-break: keep-all;
  font-weight: var(--heavy);
  font-size: 18px;
  line-height: 28px;
}

.slot__speaker {
  font-size: 16px;
  line-height: 28px;
  opacity: 0.85;
}

.slot__chevron {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  transform: rotate(180deg);
  transition: transform 0.35s ease;
}

.slot.is-open .slot__chevron {
  transform: none;
}

button.slot__head:hover .slot__title {
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
}

.slot__body {
  display: grid;
  grid-template-rows: 1fr;
}

.js .slot__body {
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .slot.is-open .slot__body {
  grid-template-rows: 1fr;
}

.slot__inner {
  min-height: 0;
  overflow: hidden;
}

.slot__desc {
  margin-top: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.figures {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 0;
}

.figures__img {
  display: block;
  height: auto;
  background: #2a2a2a;
}

.figures__img--wide {
  width: 82.7%;
}

.figures__img--square {
  width: 62%;
}

.figures__img--tall {
  width: 51.7%;
}

.figures + .profile {
  margin-top: 10px;
}

.profile {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 22px;
  padding: 0 60px 0 24px;
  border-left: 1px solid var(--line-mid);
  border-right: 1px solid var(--line-mid);
}

.person {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.person__photo {
  display: block;
  width: 160px;
  height: auto;
  aspect-ratio: 480 / 722;
  object-fit: cover;
  background: #2a2a2a;
}

.person__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.person__name {
  word-break: keep-all;
  font-weight: var(--heavy);
  font-size: 16px;
  line-height: 30px;
}

.person__note {
  font-weight: var(--bold);
  font-size: 15px;
  opacity: 0.6;
}

.person__bio {
  font-size: 16px;
  line-height: 27px;
  text-align: justify;
}

.person__sns {
  font-size: 15px;
  line-height: 27px;
  opacity: 0.6;
}

.credits {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 16px;
  line-height: 30px;
}

.credits__row {
  display: grid;
  grid-template-columns: var(--time-w) minmax(0, 1fr);
  align-items: start;
}

.credits dt {
  font-weight: var(--heavy);
  opacity: 0.66;
}

.colophon {
  margin-top: 96px;
  font-weight: var(--heavy);
  font-size: 14px;
  line-height: 22px;
  opacity: 0.3;
}

.river {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--panel-w);
  z-index: 1;
  overflow: hidden;
  background: var(--river-bg);
}

.river__cols {
  position: absolute;
  inset: 0;
  display: flex;
}

.river__col {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.river__col + .river__col::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 1px;
  background: #000;
  pointer-events: none;
}

.river__col.is-dragging {
  cursor: grabbing;
}

.river__track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  will-change: transform;
}

.river__track img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
}

@media (max-width: 1023px) {
  :root {
    --panel-w: 62vw;
    --pad-l: 28px;
    --pad-r: 28px;
    --indent: 44px;
    --nav-pad-r: 16px;
    --time-w: 108px;
    --header-gap: 88px;
    --section-gap: 72px;
    --river-cols-min: 2;
    --river-cols-max: 3;
  }

  .prose--lead {
    font-size: 18px;
    line-height: 32px;
  }

  .profile {
    padding-right: 32px;
  }
}

@media (max-width: 719px) {
  :root {
    --river-w: clamp(52px, 16vw, 96px);
    --panel-w: calc(100vw - var(--river-w));
    --pad-l: 16px;
    --pad-r: 16px;
    --indent: 0px;
    --nav-pad-r: 12px;
    --time-w: 84px;
    --header-gap: 72px;
    --section-gap: 60px;
    --river-cols-min: 1;
    --river-cols-max: 1;
  }

  .nav {
    position: relative;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-top: 14px;
    font-size: 14px;
    line-height: 20px;
  }

  .nav__menu {
    position: static;
  }

  .nav__cta {
    padding: 6px 8px 4px;
  }

  .dropdown {
    top: calc(100% + 6px);
    width: min(220px, 100%);
    font-size: 14px;
  }

  .title {
    margin-top: 36px;
    font-size: 25px;
    line-height: 36px;
  }

  .facts {
    gap: 16px;
    margin-top: 28px;
  }

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

  .facts dt {
    font-size: 13px;
    line-height: 26px;
  }

  .facts dd {
    font-size: 16px;
    line-height: 26px;
  }

  .speakers {
    line-height: 28px;
  }

  .section__label {
    font-size: 14px;
    line-height: 30px;
  }

  .prose {
    font-size: 15px;
    line-height: 27px;
  }

  .prose--lead {
    font-size: 17px;
    line-height: 30px;
  }

  .slot__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    grid-template-areas:
      "time chevron"
      "main chevron";
    column-gap: 8px;
  }

  .slot__time {
    grid-area: time;
    font-size: 14px;
    line-height: 24px;
  }

  .slot__main {
    grid-area: main;
  }

  .slot__title {
    font-size: 16px;
    line-height: 26px;
  }

  .slot__speaker {
    font-size: 14px;
    line-height: 24px;
  }

  .slot__chevron {
    grid-area: chevron;
    width: 24px;
    height: 24px;
  }

  .figures__img--wide {
    width: 100%;
  }

  .figures__img--square {
    width: 80%;
  }

  .figures__img--tall {
    width: 66%;
  }

  .profile {
    gap: 28px;
    margin-top: 18px;
    padding: 0 14px;
  }

  .person {
    gap: 14px;
  }

  .person__photo {
    width: 120px;
  }

  .person__bio {
    font-size: 15px;
    line-height: 25px;
  }

  .person__sns {
    font-size: 14px;
  }

  .credits {
    gap: 4px;
    font-size: 14px;
    line-height: 26px;
  }

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

  .colophon {
    margin-top: 72px;
    font-size: 12px;
    line-height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .slot__body,
  .slot__chevron,
  .js .dropdown {
    transition: none;
  }
}
