:root {
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --size-xs: 0.68rem;
  --size-sm: 0.76rem;
  --size-md: 0.86rem;
  --size-lg: 1rem;
  --line: 1.55;
  --shell-width: 720px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.4rem;
  --space-6: 2rem;
  --radius-soft: 12px;
  --blur: 18px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, var(--glow-a), transparent 34%),
    radial-gradient(circle at 84% 22%, var(--glow-b), transparent 36%),
    var(--bg);
  color: var(--text);
  line-height: var(--line);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body[data-font-size="small"] { font-size: 13px; }
body[data-font-size="medium"] { font-size: 14px; }
body[data-font-size="large"] { font-size: 15px; }

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

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 1px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: var(--selection);
  color: var(--selection-text);
}

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

.hidden {
  display: none !important;
}
