/* Tokens copied from design-kit/colors_and_type.css (the canonical source); this page keeps no value of its own. */
:root {
  --mm-snow-50: #fbfdff;
  --mm-snow-300: #dce6f0;
  --mm-ink-900: #16202e;
  --mm-ink-700: #2e3645;
  --mm-ink-500: #5c6677;
  --mm-sky-50: #e4f1ff;
  --mm-sky-100: #cfe6ff;
  --mm-sky-300: #8abfff;
  --mm-sky-500: #2c73d2;
  --mm-sky-600: #205eb0;
  --mm-sky-700: #163f78;
  --mm-font-sans:
    'DM Sans', 'DM Sans fallback', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mm-font-display: 'Fraunces', 'Fraunces fallback', Georgia, serif;
  --mm-radius-md: 12px;
}

@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-italic.woff2') format('woff2');
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dm-sans-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dm-sans-semibold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
/* Metric-matched fallbacks (values from apps/web/src/assets/v3.css). */
@font-face {
  font-family: 'Fraunces fallback';
  src: local('Georgia');
  size-adjust: 98.02%;
  ascent-override: 99.78%;
  descent-override: 26.02%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'DM Sans fallback';
  src: local('Arial');
  size-adjust: 102.38%;
  ascent-override: 96.89%;
  descent-override: 30.28%;
  line-gap-override: 0%;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--mm-snow-50);
  color: var(--mm-ink-900);
  font-family: var(--mm-font-sans);
  -webkit-font-smoothing: antialiased;
}
body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* The page is the orb: a short line above it, its state under it, nothing else. */
main {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

h1 {
  font-family: var(--mm-font-display);
  font-weight: 500;
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 em {
  font-style: italic;
  color: var(--mm-sky-600);
}

.orb {
  width: min(84vw, 440px, 54svh);
  aspect-ratio: 1;
  margin: 8px 0 0;
  border: 0;
  padding: 0;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.orb canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.orb:focus-visible {
  outline: 2px solid var(--mm-sky-500);
  outline-offset: 4px;
}

.status {
  min-height: 22px;
  margin: 0;
  color: var(--mm-ink-500);
  font-size: 15px;
}

.caption {
  min-height: 44px;
  max-width: 420px;
  margin: 12px 0 0;
  color: var(--mm-ink-700);
  font-size: 15px;
  line-height: 1.5;
}

.type {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  margin-top: 12px;
}
.type[hidden] {
  display: none;
}
.type input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--mm-snow-300);
  border-radius: var(--mm-radius-md);
  background: var(--mm-snow-50);
  color: var(--mm-ink-900);
  font: 400 16px var(--mm-font-sans);
  padding: 12px 14px;
}
.type input:focus-visible {
  outline: 2px solid var(--mm-sky-500);
  outline-offset: 1px;
}
.type button {
  border: 0;
  border-radius: var(--mm-radius-md);
  background: var(--mm-sky-50);
  color: var(--mm-sky-700);
  font: 600 15px var(--mm-font-sans);
  padding: 0 16px;
  cursor: pointer;
}
.type button:hover {
  background: var(--mm-sky-100);
}

footer {
  padding: 8px 16px 20px;
  text-align: center;
  color: var(--mm-ink-500);
  font-size: 13px;
  line-height: 1.6;
}
footer p {
  margin: 0;
}
footer a {
  color: var(--mm-sky-600);
}

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