:root {
  color-scheme: dark;
  --bg: #1a1a1a;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-border: rgba(255, 255, 255, 0.12);
  --text: #e8e1da;
  --muted: #d2c8bf;
  --link: #ddd3ca;
  --link-hover: #ffffff;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.scheduler-page-body {
  overflow: hidden;
}

.page {
  min-height: 100vh;
  padding: 8.75rem 1.5rem 6rem;
}

.content {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.content--wide {
  width: min(100%, 1100px);
}

h1,
h2,
p,
ul {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.name-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.name-trigger:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 2px solid var(--link-hover);
  outline-offset: 0.15em;
}

.wave {
  display: inline-block;
  opacity: 0;
  transform: translateY(-0.02em) rotate(0deg);
  transform-origin: 70% 70%;
  transition: opacity 140ms ease;
}

.name-trigger.is-waving .wave {
  opacity: 1;
  animation: wave-hi 700ms ease-in-out 2;
}

p,
li {
  font-size: 1rem;
}

p {
  max-width: 36rem;
  margin-bottom: 1.25rem;
}

ul {
  max-width: 36rem;
  margin-bottom: 1.25rem;
  padding-left: 1.2rem;
  color: var(--muted);
  list-style-type: square;
}

li + li {
  margin-top: 0.2rem;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 0.04em;
  text-underline-offset: 0.11em;
  transition: color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumb a {
  color: inherit;
}

.content--document > h1 {
  margin-bottom: 0.9rem;
}

.collapsible-group {
  margin-top: 2rem;
}

.collapsible {
  margin-bottom: 1rem;
  border: 0;
  background: transparent;
  overflow: visible;
}

.collapsible:last-child {
  margin-bottom: 0;
}

.collapsible summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 600;
  background: transparent;
}

.collapsible summary::-webkit-details-marker {
  display: none;
}

.collapsible-indicator {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 180ms ease;
}

.collapsible-indicator::before,
.collapsible-indicator::after {
  content: "";
  position: absolute;
  width: 0.9rem;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.collapsible-indicator::after {
  transform: rotate(90deg);
}

.collapsible[open] .collapsible-indicator::after {
  transform: rotate(90deg) scaleX(0);
  opacity: 0;
}

.collapsible summary:hover .collapsible-indicator,
.collapsible summary:focus-visible .collapsible-indicator {
  animation: collapsible-nudge 650ms ease-in-out infinite alternate;
}

.collapsible-body {
  padding: 0 0 1.15rem;
}

.entry + .entry {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.entry-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.6rem;
}

.entry-header--stacked {
  display: block;
}

.entry-header h2 span {
  color: var(--muted);
}

.entry-meta {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.entry p:last-child,
.entry ul:last-child {
  margin-bottom: 0;
}

.scheduler-page {
  width: 100%;
  min-height: 100vh;
}

.scheduler-frame {
  display: block;
  width: 100%;
  border: 0;
}

.scheduler-frame--fullscreen {
  min-height: 100vh;
}

@keyframes collapsible-nudge {
  0% {
    transform: translateX(0) scale(1);
  }
  100% {
    transform: translateX(0.18rem) scale(1.08);
  }
}

@keyframes wave-hi {
  0%,
  100% {
    transform: translateY(-0.02em) rotate(0deg);
  }
  20% {
    transform: translateY(-0.12em) rotate(16deg);
  }
  40% {
    transform: translateY(-0.06em) rotate(-10deg);
  }
  60% {
    transform: translateY(-0.12em) rotate(14deg);
  }
  80% {
    transform: translateY(-0.04em) rotate(-6deg);
  }
}

@media (max-width: 900px) {
  .page {
    padding-top: 4.5rem;
  }
}

@media (max-width: 560px) {
  .page {
    padding: 2.75rem 1.25rem 3rem;
  }

  h1 {
    margin-bottom: 1.15rem;
  }

  p,
  ul {
    margin-bottom: 1rem;
  }

  .collapsible summary,
  .collapsible-body {
    padding-left: 0;
    padding-right: 0;
  }

  .entry {
    margin-left: 0;
    margin-right: 0;
  }

  .entry-header {
    display: block;
  }

  .entry-meta {
    margin-top: 0.2rem;
  }
}
