/* audit.css - dark theme only. Lime on white fails WCAG AA and is never shipped. */
:root {
  --bg: #1A1A1A;
  --bg-deep: #0F0F0F;
  --card: #232323;
  --lime: #A8FF3E;
  --ink: #F2F2F2;
  --ink-dim: #B8B8B8;
  --line: #333;
  --scale: 1;
}

* { box-sizing: border-box; }

html { font-size: calc(18px * var(--scale)); }   /* a11y floor: 18px base */

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  font-size: 1rem;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--lime); color: #000; padding: 0.75rem 1rem;
}
.skip:focus { left: 0; top: 0; z-index: 10; }

/* Visible focus everywhere. Never outline:none. */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem; border-bottom: 1px solid var(--line);
}
.wordmark { font-weight: 700; letter-spacing: 0.02em; }
/* The one control that exists for low vision must not be the hardest thing
   on the page to find. --line (#333 on #1A1A1A) is close to invisible here. */
.textsize button {
  min-width: 48px; min-height: 48px;
  background: transparent; color: var(--ink);
  border: 2px solid var(--ink-dim); border-radius: 8px;
  font-size: 1rem; font-weight: 700; cursor: pointer; margin-left: 0.25rem;
}
.textsize button:hover { border-color: var(--lime); color: var(--lime); }

main { max-width: 40rem; margin: 0 auto; padding: 1.5rem 1rem 4rem; }

h1 { font-size: 1.9rem; line-height: 1.2; margin: 1rem 0; }
h2 { font-size: 1.4rem; line-height: 1.3; margin: 1rem 0 1.5rem; }
.lede { font-size: 1.1rem; }
.fineprint { color: var(--ink-dim); font-size: 0.95rem; }

button, .primary {
  font-family: inherit;
  font-size: 1.05rem;
}

.primary {
  display: inline-block; width: 100%;
  min-height: 60px; padding: 1rem 1.5rem;
  background: var(--lime); color: #000;
  border: none; border-radius: 12px;
  font-weight: 700; text-align: center; text-decoration: none;
  cursor: pointer;
}

.ghost {
  display: inline-block; width: 100%;
  min-height: 60px; padding: 0.9rem 1.25rem; margin-top: 1rem;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer;
}

/* Option buttons: a11y floor is 60px tall */
.option {
  display: block; width: 100%;
  min-height: 60px; padding: 1rem 1.25rem; margin-bottom: 0.75rem;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px;
  text-align: left; line-height: 1.5; cursor: pointer;
}
.option:hover { border-color: var(--lime); }

.progress { color: var(--ink-dim); margin-bottom: 0.5rem; }
.progressbar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progressbar span { display: block; height: 100%; width: 0; background: var(--lime); transition: width 0.2s; }

.scorelabel { color: var(--ink-dim); margin-bottom: 0; }
.score { font-size: 4rem; line-height: 1; font-weight: 800; color: var(--lime); margin: 0.25rem 0; }
.outof { font-size: 1.5rem; color: var(--ink-dim); }
.band { font-size: 1.6rem; font-weight: 700; margin: 0.5rem 0 0; }
.bandreads { color: var(--ink-dim); margin-top: 0.25rem; }
.means { border-left: 3px solid var(--line); padding-left: 1rem; color: var(--ink-dim); }
.framing { font-size: 1.1rem; }

.bucket { margin: 2rem 0; }
.bucket h3 { font-size: 1.2rem; color: var(--lime); margin-bottom: 0.75rem; }
.bucket li { margin-bottom: 1rem; }
.bucket .dim { font-weight: 700; display: block; }

.cta { background: var(--bg-deep); border-radius: 12px; padding: 1.5rem; margin: 2rem 0; }

.capture { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.capture label { display: block; margin-bottom: 0.5rem; font-weight: 700; }
.capture input {
  width: 100%; min-height: 60px; padding: 0.9rem 1rem;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px;
  font-size: 1rem; font-family: inherit;
}

footer { border-top: 1px solid var(--line); padding: 2rem 1rem; text-align: center; color: var(--ink-dim); font-size: 0.95rem; }
footer a { color: var(--lime); }
