:root {
  color-scheme: light;
  --paper: #f2ead8;
  --paper-deep: #e4d8be;
  --paper-pale: #fbf5e8;
  --ink: #211d38;
  --ink-soft: #555064;
  --line: #aaa18d;
  --line-dark: #716a64;
  --rose: #b96879;
  --focus: #3f75a5;
  --shadow: rgba(33, 29, 56, .16);
  --pixel-shadow: 4px 4px 0 rgba(33, 29, 56, .12);
  font-family: "Courier New", ui-monospace, monospace;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-width: 300px; background: var(--ink); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 16px 16px, rgba(33, 29, 56, .055) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--paper);
}

button, input, select { font: inherit; }

button, .file-button {
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 9px 12px;
  color: var(--ink);
  background: var(--paper-pale);
  box-shadow: 2px 2px 0 rgba(33, 29, 56, .14);
  cursor: pointer;
}

button:hover:not(:disabled), .file-button:hover { background: #fffaf0; transform: translateY(-1px); }
button:active:not(:disabled), .file-button:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(33, 29, 56, .15); }
button:disabled { cursor: not-allowed; opacity: .5; box-shadow: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.1; }
h1 { margin-bottom: 0; font-size: clamp(1.25rem, 3vw, 2rem); letter-spacing: -.04em; }
h2 { margin-bottom: 0; font-size: 1.3rem; }
h3 { margin-bottom: 6px; font-size: .92rem; }

.eyebrow {
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

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

[hidden] { display: none !important; }

dialog {
  color: var(--ink);
}

dialog::backdrop { background: rgba(19, 16, 34, .58); backdrop-filter: blur(2px); }

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

