/* DocSys corporate identity. Light is the default, dark follows the system unless data-theme pins a theme. */
:root {
  --blauw: oklch(0.245 0.0869 262);
  --paars: oklch(0.5902 0.1454 317.59);
  --wit: oklch(1 0 0);
  --zwart: oklch(0 0 0);

  /* Light tokens. White on the plain purple is only 4.3:1, so fills are darkened for AA text contrast. */
  --bg: var(--wit);
  --fg: var(--blauw);
  --surface: color-mix(in oklch, var(--blauw) 4%, var(--wit));
  --accent: color-mix(in oklch, var(--paars), var(--zwart) 15%);
  --accent-fg: var(--wit);
  --link: var(--accent);
  --border: color-mix(in oklch, var(--fg) 50%, var(--bg));
  --danger: #b3261e;
  --logo-light: block;
  --logo-dark: none;
  color-scheme: light;
}

@supports not (color: oklch(0 0 0)) {
  :root {
    --blauw: #1e1e50;
    --paars: #aa5aa0;
    --wit: #fff;
    --zwart: #000;
    --surface: #f4f4f8;
    --accent: #914d88;
    --border: #8e8ea7;
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: var(--blauw);
    --fg: var(--wit);
    --surface: color-mix(in oklch, var(--wit) 8%, var(--blauw));
    --link: var(--wit);
    --danger: #ffb4ab;
    --logo-light: none;
    --logo-dark: block;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: var(--blauw);
  --fg: var(--wit);
  --surface: color-mix(in oklch, var(--wit) 8%, var(--blauw));
  --link: var(--wit);
  --danger: #ffb4ab;
  --logo-light: none;
  --logo-dark: block;
  color-scheme: dark;
}

:root[data-theme="light"] {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a {
  color: var(--link);
}

:focus-visible {
  outline: 3px solid var(--paars);
  outline-offset: 2px;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
}

.site-footer {
  justify-content: center;
  color: color-mix(in oklch, var(--fg) 75%, var(--bg));
  font-size: 0.875rem;
}

.brand img {
  width: auto;
  height: 2rem;
}

.logo-light {
  display: var(--logo-light);
}

.logo-dark {
  display: var(--logo-dark);
}

.theme-toggle {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle[aria-pressed="true"] {
  background: var(--surface);
}

main {
  width: min(100%, 28rem);
  margin: auto;
  padding: 1rem;
}

.card {
  padding: 2rem;
  border: 1px solid color-mix(in oklch, var(--fg) 15%, var(--bg));
  border-top: 4px solid var(--paars);
  border-radius: 0.75rem;
  background: var(--surface);
}

h1 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  line-height: 1.2;
}

.center {
  text-align: center;
}

.display {
  font-size: 2.5rem;
}

.field {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}

.btn {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--accent-fg);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover {
  background: color-mix(in oklch, var(--accent), var(--zwart) 12%);
}

.error {
  color: var(--danger);
}

code {
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  background: color-mix(in oklch, var(--fg) 10%, var(--bg));
}
