:root {
  --bg: #faf9f4;
  --panel: #f1efe8;
  --text: #161616;
  --muted: #575757;
  --line: rgba(22, 22, 22, 0.28);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
}

body[data-theme="dark"] {
  --bg: #060606;
  --panel: #151515;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --line: rgba(255, 255, 255, 0.24);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(127, 127, 127, 0.08), transparent 36%),
    var(--bg);
  transition: background-color 180ms ease, color 180ms ease;
}

.page {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 40px;
}

.hero {
  margin-bottom: 40px;
  padding: 36px;
  border: 1px dotted var(--line);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: var(--shadow);
}

.hero-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow,
.status,
.members p {
  font-size: 1rem;
}

.eyebrow,
.status {
  margin: 0 0 24px;
  color: var(--muted);
}

h1 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.button,
.members a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dotted var(--line);
  transition: opacity 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.members a:hover,
.members a:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible {
  opacity: 0.65;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px dotted var(--line);
  color: var(--text);
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
  overflow: visible;
}

.theme-toggle-sun,
.theme-toggle-rays {
  opacity: 0;
}

.theme-toggle-moon {
  fill: currentColor;
  stroke: none;
}

body[data-theme="light"] .theme-toggle-sun,
body[data-theme="light"] .theme-toggle-rays {
  opacity: 1;
}

body[data-theme="light"] .theme-toggle-moon {
  opacity: 0;
}

.theme-toggle.is-animating {
  animation: theme-toggle-bounce 360ms ease;
}

.theme-toggle.is-animating svg {
  animation: theme-toggle-spin 360ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--text);
}

@keyframes theme-toggle-spin {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(90deg) scale(0.88);
  }

  100% {
    transform: rotate(180deg) scale(1);
  }
}

@keyframes theme-toggle-bounce {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.94);
  }

  100% {
    transform: scale(1);
  }
}

.video-section,
.members {
  padding-top: 20px;
  border-top: 1px dotted var(--line);
}

.video-frame {
  overflow: hidden;
  background: var(--panel);
  border: 1px dotted var(--line);
  box-shadow: var(--shadow);
}

video {
  display: block;
  width: 100%;
  height: auto;
}

.members p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 24px, 960px);
    padding: 40px 0 24px;
  }

  .hero {
    padding: 24px;
  }

  .hero-top {
    flex-direction: column;
    gap: 12px;
  }
}
