/* The lock screen, and the design tokens the sealed dashboard page reads. Values follow the
   claude.ai dashboard it was written for; the fonts are the site's own. */
@font-face {
  font-family: 'Hanken Grotesk';
  src: url(media/hanken-grotesk-latin-wght-normal.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Newsreader';
  src: url(media/newsreader-latin-standard-normal.woff2) format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --font-anthropic-sans: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-anthropic-serif: 'Newsreader', ui-serif, Georgia, 'Times New Roman', serif;

  --color-bg: #f7f6f3;
  --color-panel: #fff;
  --color-fg: #141413;
  --color-fg-muted: #66655f;
  --color-border-line: rgb(11 11 11 / 10%);
  --color-control: #8b8a83;
  --color-accent: #1f66bd;
  --color-on-accent: #fff;
  --color-bad: #b3261e;

  --cds-gap-xs: 0.5rem;
  --cds-gap-sm: 0.75rem;
  --cds-gap-md: 1rem;
  --cds-gap-lg: 1.75rem;
  --cds-pad-xs: 0.25rem;
  --cds-pad-sm: 0.5rem;
  --cds-pad-lg: 1.25rem;
  --cds-radius: 0.5rem;
  --cds-font-size-title: 1.375rem;
  --cds-font-size-heading: 0.9375rem;
  --cds-font-size-body: 0.875rem;
  --cds-font-size-caption: 0.75rem;
  --cds-font-weight-medium: 500;
  --cds-dur-slow: 0.45s;
  --cds-border: var(--color-border-line);
  --cds-text-secondary: var(--color-fg-muted);
  --cds-surface-popover: #fff;
  --cds-shadow-popover: 0 8px 24px #0000001f, 0 2px 6px #00000014;
  --cds-chart-muted: #c3c2b7;
  --cds-chart-reference: #898781;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0b0b0b;
    --color-panel: #1a1a19;
    --color-fg: #f0efec;
    --color-fg-muted: #a5a49a;
    --color-border-line: rgb(255 255 255 / 10%);
    --color-control: #76756e;
    --color-accent: #6ea8ee;
    --color-on-accent: #0b0b0b;
    --color-bad: #f2a8a0;

    --cds-surface-popover: #20201f;
    --cds-shadow-popover: 0 8px 24px #00000052, 0 2px 6px #0003;
    --cds-chart-muted: #5f5e5a;
    --cds-chart-reference: #97958d;
  }
}

/* The dashboard's flex and grid rules would otherwise win over the hidden attribute. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-anthropic-sans);
  font-size: var(--cds-font-size-body);
  line-height: 1.45;
}

/* The bottom padding keeps the last card clear of the feedback dock. */
#dash-root {
  box-sizing: border-box;
  max-width: 96rem;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 2.5rem) 5rem;
}

#dash-root h1:focus {
  outline: none;
}

.lock {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1.5rem 1rem 5rem;
}

.lock-card {
  box-sizing: border-box;
  display: grid;
  gap: 0.5rem;
  width: min(100%, 25rem);
  padding: 2rem 1.75rem;
  background: var(--color-panel);
  border: 1px solid var(--color-border-line);
  border-radius: 0.75rem;
}

.lock-card h1 {
  margin: 0;
  font-family: var(--font-anthropic-serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
}

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

.lock-card label {
  margin-top: 1rem;
  font-weight: var(--cds-font-weight-medium);
}

/* 16px text stops iOS zooming in on the field. */
.lock-card input {
  box-sizing: border-box;
  width: 100%;
  padding: 0.625rem 0.75rem;
  font: inherit;
  font-size: 1rem;
  color: var(--color-fg);
  background: var(--color-bg);
  border: 1px solid var(--color-control);
  border-radius: var(--cds-radius);
}

.lock-card input:focus-visible,
.lock-card button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.lock-card .lock-error {
  color: var(--color-bad);
}

.lock-card button {
  margin-top: 0.5rem;
  padding: 0.625rem 0.75rem;
  font: inherit;
  font-weight: var(--cds-font-weight-medium);
  color: var(--color-on-accent);
  background: var(--color-accent);
  border: 0;
  border-radius: var(--cds-radius);
  cursor: pointer;
}

.lock-card button:disabled {
  opacity: 0.7;
  cursor: progress;
}
