@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --canvas: oklch(0.145 0.008 260);
  --surface: oklch(0.18 0.009 260);
  --ink: oklch(0.965 0.006 85);
  --muted: oklch(0.7 0.009 220);
  --line: oklch(0.27 0.009 260);
  --line-strong: oklch(0.38 0.01 250);
  --teal: oklch(0.716 0.112 199.4);
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  min-height: 100svh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 64px;
  background: var(--canvas);
  text-rendering: optimizeLegibility;
}

button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  color: var(--canvas);
  background: var(--teal);
}

main {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 40px 24px 0;
}

.holding {
  width: min(420px, 82vw);
  padding-bottom: clamp(20px, 7vh, 72px);
  text-align: center;
  animation: arrive 600ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

h1 {
  margin: 0;
  line-height: 0;
}

h1 img {
  display: block;
  width: 100%;
  height: auto;
}

.holding p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 450;
  line-height: 1.5;
  letter-spacing: 0.005em;
}

.site-footer {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.site-footer button {
  min-height: 40px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition:
    color 150ms ease,
    text-decoration-color 150ms ease;
}

.site-footer button:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

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

dialog {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 2px 8px oklch(0 0 0 / 0.28);
}

dialog::backdrop {
  background: oklch(0 0 0 / 0.64);
}

.legal-document {
  max-height: calc(100svh - 34px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.legal-document > header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.legal-document h2,
.legal-document h3,
.legal-document p {
  margin-top: 0;
}

.legal-document h2 {
  margin-bottom: 5px;
  font-size: 21px;
  font-weight: 620;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.legal-document header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.close {
  min-width: 64px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}

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

.legal-copy {
  min-height: 0;
  padding: 22px 24px 28px;
  overflow-y: auto;
  scrollbar-color: var(--line-strong) var(--surface);
  scrollbar-width: thin;
}

.legal-copy section + section {
  margin-top: 24px;
}

.legal-copy h3 {
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.legal-copy p {
  max-width: 70ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

@keyframes arrive {
  from {
    opacity: 0.01;
    filter: blur(3px);
    transform: translateY(6px);
  }
}

@media (max-width: 620px) {
  body {
    grid-template-rows: minmax(0, 1fr) 60px;
  }

  main {
    padding-inline: 18px;
  }

  .holding {
    width: min(300px, 84vw);
    padding-bottom: 36px;
  }

  .holding p {
    margin-top: 16px;
  }

  .site-footer {
    width: calc(100% - 32px);
  }

  .legal-document > header,
  .legal-copy {
    padding-inline: 18px;
  }
}

@media (max-height: 480px) {
  body {
    grid-template-rows: minmax(0, 1fr) 52px;
  }

  .holding {
    width: min(280px, 64vw);
    padding-bottom: 12px;
  }

  .holding p {
    margin-top: 10px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
