:root {
  color-scheme: dark;
  --bg: #0b0e11;
  --panel: #13181d;
  --line: #303b31;
  --text: #edf1ef;
  --muted: #9aa9aa;
  --lime: #c6f277;
  --blue: #88c9dc;
  --orange: #f0a972;
  --purple: #c0adf7;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  margin: 0;
  position: relative;
  isolation: isolate;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0 0 auto;
  height: 700px;
  background: radial-gradient(ellipse 360px 600px at 38px 45px, #c6f27717, #739e3f08 35%, transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea {
  font: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--lime);
  color: var(--bg);
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.shell {
  max-width: 1160px;
  margin: auto;
  padding: 0 clamp(22px, 5vw, 64px);
}

.hero {
  padding: 46px 0 44px;
}

.hero-sub {
  max-width: 620px;
  margin: 0;
  color: #acb5b6;
  font-size: 17px;
  line-height: 1.85;
}

.intro-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 26px;
}

.footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding-top: 26px;
  padding-bottom: 34px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer a:hover {
  color: var(--lime);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

@media (hover: hover) {
  :where(a, button:not(:disabled), input:not(:disabled)):hover {
    outline: 2px solid var(--lime);
    outline-offset: 5px;
  }
}

@media (max-width: 680px) {
  .hero {
    padding: 32px 0;
  }
  .hero-sub {
    font-size: 14px;
  }
  .footer {
    flex-direction: column;
  }
}

html[data-density=compact] .tool-heading { padding: 12px 16px; }
html[data-density=compact] .tool-body { padding: 15px 16px; }
html[data-density=compact] .tools-grid { gap: 16px; }
html[data-motion=reduced] *, html[data-motion=reduced] *::before, html[data-motion=reduced] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* Consistent hit areas and outlines, including icon-only navigation. */
:where(button, a, input, select, summary) { -webkit-tap-highlight-color: transparent; }
:where(button, a, summary) { touch-action: manipulation; }
:where(a, button, input, textarea, select, summary):focus-visible { outline-offset: 2px; }
@media (hover: hover) {
  :where(a, button:not(:disabled), input:not(:disabled)):hover { outline-offset: 2px; }
}
@media (max-width: 600px) {
  .shell { padding-left: 16px; padding-right: 16px; }
  .footer-links { flex-wrap: wrap; gap: 12px 20px; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
}
