:root {
  color-scheme: dark;
  --background: #050507;
  --surface: #0b0b10;
  --surface-hover: #11111a;
  --text: #f4f0ff;
  --muted: #8f8a9d;
  --line: #292535;
  --accent: #a970ff;
  --accent-bright: #d7baff;
  --cyan: #62efff;
  --content-width: 64rem;
  --side-padding: clamp(1.4rem, 5vw, 4.5rem);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-width: 20rem;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  border-radius: 0.2rem;
  outline: 0.16rem solid var(--accent);
  outline-offset: 0.28rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  position: relative;
  width: min(100%, calc(var(--content-width) + (var(--side-padding) * 2)));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(5.5rem, 12vh, 8rem) var(--side-padding) clamp(4rem, 8vh, 6rem);
}

.intro {
  padding-bottom: clamp(4.5rem, 11vw, 8rem);
}

.section h2,
.talk-meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: clamp(3.7rem, 12vw, 8.8rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.role {
  max-width: 38rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.role a {
  border-bottom: 1px dashed var(--accent);
  color: var(--accent-bright);
  font-weight: 580;
  white-space: nowrap;
}

.role a:hover,
.role a:focus-visible {
  border-bottom-color: var(--cyan);
  color: var(--cyan);
}

.arrow {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--cyan);
  transition: transform 180ms ease;
}

a:hover .arrow {
  transform: translate(0.15rem, -0.15rem);
}

.section {
  display: grid;
  grid-template-columns: minmax(8rem, 0.34fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 2.1rem 0;
  border-top: 1px dashed var(--line);
}

.section h2 {
  margin: 0.35rem 0 0;
}

.section h2::before {
  color: var(--accent);
  content: "## ";
}

.link-list,
.talk-list {
  counter-reset: item;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list li {
  counter-increment: item;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.25rem;
  padding: 0.35rem 0.65rem;
  border-left: 2px solid transparent;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 540;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.link-list a span:first-child::before {
  margin-right: 0.8rem;
  color: var(--muted);
  font-size: 0.75rem;
  content: "0" counter(item) "/";
}

.link-list a:hover,
.link-list a:focus-visible,
.talk-list a:hover .talk-name,
.talk-list a:focus-visible .talk-name {
  color: var(--cyan);
}

.link-list a:hover {
  border-left-color: var(--cyan);
  background: rgb(98 239 255 / 6%);
}

.talk-list {
  display: grid;
  gap: 0.8rem;
}

.talk-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  box-shadow: 0.32rem 0.32rem 0 rgb(169 112 255 / 17%);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.talk-list a:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  box-shadow: 0.42rem 0.42rem 0 rgb(169 112 255 / 32%);
  transform: translate(-0.1rem, -0.1rem);
}

.talk-meta {
  grid-column: 1;
}

.talk-name {
  grid-column: 1;
  font-size: clamp(1.15rem, 2.3vw, 1.45rem);
  font-weight: 610;
  transition: color 180ms ease;
}

.talk-name::before {
  color: var(--accent);
  content: "> ";
}

.talk-list .arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 1.25rem;
}

.js .reveal {
  opacity: 0;
  transform: translateY(0.85rem);
  animation: reveal 550ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.js .reveal:nth-child(2) {
  animation-delay: 90ms;
}

.js .reveal:nth-child(3) {
  animation-delay: 180ms;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 42rem) {
  .section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section h2 {
    margin: 0;
  }

  .intro {
    padding-bottom: 4.5rem;
  }
}

@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;
  }
}
