:root {
  color-scheme: dark;
  --bg: #000000;
  --fg: #ffffff;
  --accent: #ef8a23;

  --text-muted: oklch(0.78 0 0);
  --line: oklch(0.38 0 0);
  --surface: oklch(0.27 0 0);
  --surface-hover: oklch(0.41 0 0);
  --surface-active: oklch(0.47 0 0);

  --accent-hover: oklch(0.78 0.15 58);
  --accent-active: oklch(0.70 0.15 58);
  --focus: oklch(0.82 0.14 58);

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;

  --page-pad: 24px;

  --font-sans: Arial, Helvetica, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0 !important;
}

html {
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 90vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.4;
}

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

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

a:hover {
  color: var(--accent-hover);
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button,
input[type="text"],
textarea {
  border: 1px solid var(--line);
  background: var(--bg);
}

button {
  min-height: 48px;
  padding: 12px 16px;
  color: var(--fg);
  cursor: pointer;
  background: var(--surface);
}

button:hover {
  background: var(--surface-hover);
  border-color: #ffffff;
}

button:active {
  background: var(--surface-active);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

button:disabled:hover {
  background: var(--bg);
  border-color: var(--line);
}

input[type="text"],
textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--fg);
  caret-color: var(--accent);
}

textarea {
  resize: vertical;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

::selection {
  background: var(--accent);
  color: #000000;
}

.page {
  min-height: 90vh;
  min-height: 100svh;
  padding: var(--page-pad);
}

.page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-3);
}

.page-title {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.5rem);
  line-height: 1;
  font-weight: 700;
}

.section-title {
  margin: 0 0 var(--space-3) 0;
  font-size: 0.8125rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.panel {
  padding: var(--space-3);
  border: 1px solid var(--line);
  background: var(--surface);
}

.stack {
  display: grid;
  gap: var(--space-3);
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #000000;
  font-weight: 700;
}

.button-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button-primary:active {
  background: var(--accent-active);
  border-color: var(--accent-active);
}

.muted {
  color: var(--text-muted);
}

.mono {
  font-family: var(--font-mono);
}

@media (max-width: 720px) {
  :root {
    --page-pad: 16px;
  }

  .page-header {
    flex-direction: column;
    align-items: stretch;
  }
}
