@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@100..125,500..900&family=Atkinson+Hyperlegible+Next:ital,wght@0,400..700;1,400&display=swap");

:root {
  --background: #e9eef4;
  --surface: #ffffff;
  --surface-sunken: #dde4ed;
  --text: #13203a;
  --muted: #4d5b73;
  --line: #c8d2de;
  --accent: #2347cf;
  --accent-strong: #1a37a6;
  --accent-tint: rgba(35, 71, 207, 0.1);
  --on-accent: #ffffff;
  --field: #2347cf;
  --field-text: #ffffff;
  --field-muted: rgba(255, 255, 255, 0.84);
  --field-line: rgba(255, 255, 255, 0.28);
  --action: #2347cf;
  --action-strong: #1a37a6;
  --on-action: #ffffff;
  --stage: #000000;
  --focus-ring: #2347cf;
  --selection: rgba(35, 71, 207, 0.22);
  --backdrop: rgba(14, 21, 36, 0.82);
  --radius: 12px;
  --radius-small: 8px;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --page-width: 1120px;
  --gutter: 16px;
  font-family: var(--font-text);
  font-size: 100%;
  line-height: 1.55;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #0e1524;
    --surface: #172136;
    --surface-sunken: #0a101c;
    --text: #e7ecf5;
    --muted: #a3b0c7;
    --line: #2a3753;
    --accent: #93aaff;
    --accent-strong: #b6c5ff;
    --accent-tint: rgba(147, 170, 255, 0.14);
    --on-accent: #0e1524;
    --field: #2347cf;
    --field-text: #ffffff;
    --field-muted: rgba(255, 255, 255, 0.84);
    --field-line: rgba(255, 255, 255, 0.28);
    --action: #2347cf;
    --action-strong: #3a5be6;
    --on-action: #ffffff;
    --focus-ring: #b6c5ff;
    --selection: rgba(147, 170, 255, 0.3);
    --backdrop: rgba(4, 7, 13, 0.86);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --background: #0e1524;
  --surface: #172136;
  --surface-sunken: #0a101c;
  --text: #e7ecf5;
  --muted: #a3b0c7;
  --line: #2a3753;
  --accent: #93aaff;
  --accent-strong: #b6c5ff;
  --accent-tint: rgba(147, 170, 255, 0.14);
  --on-accent: #0e1524;
  --field: #2347cf;
  --field-text: #ffffff;
  --field-muted: rgba(255, 255, 255, 0.84);
  --field-line: rgba(255, 255, 255, 0.28);
  --action: #2347cf;
  --action-strong: #3a5be6;
  --on-action: #ffffff;
  --focus-ring: #b6c5ff;
  --selection: rgba(147, 170, 255, 0.3);
  --backdrop: rgba(4, 7, 13, 0.86);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --background: #e9eef4;
  --surface: #ffffff;
  --surface-sunken: #dde4ed;
  --text: #13203a;
  --muted: #4d5b73;
  --line: #c8d2de;
  --accent: #2347cf;
  --accent-strong: #1a37a6;
  --accent-tint: rgba(35, 71, 207, 0.1);
  --on-accent: #ffffff;
  --field: #2347cf;
  --field-text: #ffffff;
  --field-muted: rgba(255, 255, 255, 0.84);
  --field-line: rgba(255, 255, 255, 0.28);
  --action: #2347cf;
  --action-strong: #1a37a6;
  --on-action: #ffffff;
  --focus-ring: #2347cf;
  --selection: rgba(35, 71, 207, 0.22);
  --backdrop: rgba(14, 21, 36, 0.82);
  color-scheme: light;
}

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

html {
  background: var(--background);
  scrollbar-color: var(--line) var(--background);
}

body {
  background: var(--background);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  caret-color: var(--accent);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--selection);
  color: inherit;
}

img,
video,
canvas {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-strong);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.5rem + 3.6vw, 4.25rem);
  font-stretch: 125%;
  font-weight: 820;
  line-height: 1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
}

h3 {
  font-size: 1.0625rem;
  font-stretch: 108%;
  font-weight: 720;
}

p {
  margin: 0 0 16px;
  text-wrap: pretty;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

input[type="range"],
input[type="checkbox"],
input[type="radio"],
progress {
  accent-color: var(--accent);
}

select {
  appearance: none;
  min-height: 40px;
  padding: 6px 36px 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237b889e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: var(--text);
  cursor: pointer;
}

select:hover {
  border-color: var(--muted);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  padding: 12px max(16px, calc((100% - 1120px) / 2 + 16px));
  background: var(--field);
  color: var(--field-text);
}

.site-header .site-name {
  color: var(--field-text);
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  padding: 8px 0;
  margin-right: auto;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  order: 3;
  width: 100%;
}

.site-header nav a {
  color: var(--field-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 8px 0;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.site-header nav a:hover {
  color: var(--field-text);
}

.site-header nav a[aria-current="page"] {
  color: var(--field-text);
  box-shadow: inset 0 -2px 0 var(--field-text);
}

.site-header :focus-visible {
  outline-color: var(--field-text);
}

.theme-toggle {
  order: 2;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--field-line);
  border-radius: 50%;
  background: transparent;
  color: var(--field-text);
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle[data-showing="dark"] .theme-icon-moon,
.theme-toggle[data-showing="light"] .theme-icon-sun {
  display: none;
}

@media (min-width: 720px) {
  .site-header {
    flex-wrap: nowrap;
    min-height: 64px;
  }

  .site-header nav {
    order: 2;
    width: auto;
    gap: 0 28px;
  }

  .theme-toggle {
    order: 3;
  }
}

.page {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  flex: 1;
}

.hub {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hub > .page {
  flex: 1;
}

.lid {
  background: var(--field);
  color: var(--field-text);
  padding: 24px 16px 40px;
}

@media (min-width: 1152px) {
  .lid {
    padding-left: calc((100% - 1120px) / 2 + 16px);
    padding-right: calc((100% - 1120px) / 2 + 16px);
  }
}

.lid h1 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 0.005em;
}

.lid p {
  color: var(--field-muted);
  font-size: 1.0625rem;
  max-width: 54ch;
  margin: 0;
}

.lid a {
  color: var(--field-text);
}

.lid .button-primary {
  background: var(--field-text);
  color: var(--field);
}

.lid.has-overlap {
  padding-bottom: 104px;
}

.overlap {
  margin-top: -80px;
  position: relative;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  background: var(--accent-tint);
  color: var(--accent);
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.button:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.button:active {
  transform: translateY(1px);
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--accent-tint);
  color: var(--accent);
}

.button-primary {
  background: var(--action);
  color: var(--on-action);
}

.button-primary:hover {
  background: var(--action-strong);
  color: var(--on-action);
}

.button svg,
.text-link svg,
.contents-row .contents-arrow svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.control-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link svg {
  transition: transform 0.25s var(--ease-out);
}

.text-link:hover svg {
  transform: translateX(3px);
}

.box {
  display: grid;
  gap: 16px;
}

.box-window {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--stage);
  border: 1px solid var(--field-line);
  aspect-ratio: 1 / 1;
}

.box-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transition: transform 0.6s var(--ease-out);
}

.box-window {
  position: relative;
}

.box-window canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.box-window:hover img {
  transform: scale(1.025);
}

.box-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

.box-actions .button-primary {
  flex: 1 1 100%;
  min-height: 52px;
  font-size: 1rem;
}

.home-lid {
  padding-bottom: 96px;
}

.home-page .box {
  margin-top: -72px;
  position: relative;
}

.home-page .box-window {
  max-height: 62vh;
  aspect-ratio: auto;
  height: min(calc(100vw - 32px), 62vh);
}

@media (min-width: 720px) {
  .box-actions .button-primary {
    flex: 0 0 auto;
  }
}

@media (min-width: 960px) {
  .home-lid {
    padding-top: 64px;
    padding-bottom: 80px;
  }

  .home-lid-text {
    max-width: calc(100% - 488px);
  }

  .home-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    column-gap: 48px;
    align-items: start;
  }

  .home-page .box {
    grid-column: 2;
    grid-row: 1;
    margin-top: -280px;
  }

  .home-page .box-window {
    height: auto;
    max-height: none;
    aspect-ratio: 1 / 1;
  }

  .home-contents {
    grid-column: 1;
    grid-row: 1;
  }

  .home-contents .section-heading {
    margin-top: 40px;
  }
}

.section-heading {
  margin: 48px 0 16px;
  font-size: 1.375rem;
}

.contents-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.contents-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 8px 16px 8px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s var(--ease-out);
}

.contents-row:hover {
  color: var(--text);
  border-color: var(--accent);
}

.contents-row img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--radius-small);
  background: var(--stage);
}

.contents-row h3 {
  margin-bottom: 4px;
}

.contents-row p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
  margin: 0 0 4px;
}

.contents-row .contents-parts {
  color: var(--muted);
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 650;
  font-size: 0.8125rem;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.contents-row .contents-arrow {
  color: var(--accent);
  transition: transform 0.25s var(--ease-out);
}

.contents-row:hover .contents-arrow {
  transform: translateX(3px);
}

@media (min-width: 720px) {
  .contents-row {
    grid-template-columns: 136px minmax(0, 1fr) auto;
    gap: 24px;
    padding: 8px 24px 8px 8px;
  }

  .contents-row img {
    width: 136px;
    height: 102px;
  }

  .contents-row p {
    font-size: 1rem;
  }
}

.live-panel {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
}

.live-panel .live-window {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-small);
  background: var(--stage);
  aspect-ratio: 1 / 1;
}

.live-panel .live-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-panel h2 {
  margin-bottom: 8px;
}

.live-panel p {
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 56ch;
}

.live-panel .button {
  grid-column: 1 / -1;
}

@media (min-width: 720px) {
  .live-panel {
    grid-template-columns: 184px minmax(0, 1fr);
    gap: 24px;
    padding: 16px 24px 16px 16px;
    align-items: center;
  }

  .live-panel .button {
    grid-column: auto;
  }
}

.intro {
  padding: 40px 0 24px;
}

.intro p {
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0 0 8px;
}

.section-title {
  margin: 48px 0 16px;
  font-size: 1.375rem;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  padding-bottom: 16px;
}

.section-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
}

.section-card:hover {
  border-color: var(--accent);
}

.section-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--stage);
}

.section-card p {
  color: var(--muted);
  margin: 0;
}

.feature-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.feature-card p {
  color: var(--muted);
  margin: 0;
  max-width: 56ch;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
}

@media (min-width: 720px) {
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px 16px;
  }
}

.video-card,
.chart-card {
  padding: 0;
  overflow: hidden;
  margin: 0;
}

.video-card video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: var(--stage);
}

.video-card figcaption,
.chart-card figcaption {
  padding: 12px 12px 16px;
  font-family: var(--font-display);
  font-stretch: 106%;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.3;
}

.video-card figcaption span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-text);
  font-stretch: 100%;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.45;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.chart-card > a {
  display: block;
  cursor: pointer;
  background: var(--stage);
}

.chart-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: opacity 0.2s var(--ease-out);
}

.chart-card > a:hover img {
  opacity: 0.88;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chart-card img,
  :root:not([data-theme="light"]) .contents-row .chart-thumb {
    filter: brightness(0.72);
  }
}

:root[data-theme="dark"] .chart-card img,
:root[data-theme="dark"] .contents-row .chart-thumb {
  filter: brightness(0.72);
}

.chart-card figcaption {
  padding-left: 16px;
}

.note {
  color: var(--muted);
}

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  max-width: min(96vw, 1200px);
  max-height: 92vh;
}

.lightbox::backdrop {
  background: var(--backdrop);
}

.lightbox img {
  max-height: 82vh;
  width: auto;
  margin: 0 auto;
  border-radius: var(--radius);
}

.lightbox .control-bar {
  justify-content: space-between;
  padding: 12px 4px 0;
  color: #ffffff;
  font-family: var(--font-display);
  font-stretch: 106%;
  font-weight: 700;
}

.site-footer {
  margin-top: 64px;
  padding: 24px max(16px, calc((100% - 1120px) / 2 + 16px)) 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 24px;
}

.site-footer .footer-name {
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 800;
  color: var(--text);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-footer a {
  display: inline-block;
  padding: 6px 0;
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .box-window:hover img,
  .text-link:hover svg,
  .contents-row:hover .contents-arrow {
    transform: none;
  }
}

.contents-row {
  padding: 12px 16px 12px 12px;
}

.path-list .contents-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 16px;
}

.list-heading {
  margin: 40px 0 12px;
  font-size: 1.125rem;
}

.chart-card figcaption a,
.mission-card figcaption > a:first-child {
  color: var(--text);
  text-decoration: none;
}

.chart-card figcaption a:hover,
.mission-card figcaption > a:first-child:hover {
  color: var(--accent);
  text-decoration: underline;
}

.mission-card .mission-window {
  display: block;
  background: var(--stage);
}

.mission-card .mission-window img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  transition: opacity 0.2s var(--ease-out);
}

.mission-card .mission-window:hover img {
  opacity: 0.88;
}

.mission-card .mission-video-link {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 0;
  font-family: var(--font-text);
  font-stretch: 100%;
  font-weight: 700;
  font-size: 0.875rem;
}

.mission-card .mission-video-link + .mission-video-link {
  display: block;
  width: fit-content;
  margin-top: 2px;
}

@media (min-width: 720px) {
  .live-panel {
    grid-template-columns: 184px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: end;
    row-gap: 0;
  }

  .live-panel .live-window {
    grid-row: 1 / 3;
    align-self: center;
  }

  .live-panel .button {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    align-self: start;
    white-space: nowrap;
  }
}

.video-grid + .note {
  margin-top: 24px;
}

.video-card video:not([controls]) {
  cursor: pointer;
}

.video-card:has(.video-play) {
  display: flex;
  flex-direction: column;
}

.video-card:has(.video-play) figcaption {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.video-card:has(.video-play) .video-play {
  margin-top: auto;
}

.video-card:has(.video-play) figcaption span {
  margin-bottom: 8px;
}

.video-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin-top: 8px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-family: var(--font-text);
  font-stretch: 100%;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
}

.video-play:hover {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.video-play svg {
  width: 16px;
  height: 16px;
}

.beta-tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 760;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.beta-note {
  font-size: 0.9375rem;
}

.video-list .contents-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 16px;
}

.video-list .video-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 8px 0 0;
  font-weight: 700;
  font-size: 0.875rem;
}

.path-list + .note {
  margin-top: 24px;
}
