/* Colours match devinhuber.com. The fonts are named first so they show if you
   have them installed, but none are downloaded: this page loads nothing from
   any other site. */
:root {
  --ground: #0A0E17; --panel: #10172A; --raise: #172039;
  --line: #243052; --line-soft: #1A2440;
  --ink: #EEF2FA; --muted: #A3AEC4; --faint: #8490A8;
  --violet: #A78BFA; --mint: #5EEAD4; --amber: #FBBF5C; --rose: #FB7185; --sky: #7DD3FC;
  --violet-soft: rgba(167,139,250,.16); --mint-soft: rgba(94,234,212,.14);
  --amber-soft: rgba(251,191,92,.15); --rose-soft: rgba(251,113,133,.15); --sky-soft: rgba(125,211,252,.14);
  --grad: linear-gradient(100deg,#5EEAD4 0%,#7DD3FC 34%,#A78BFA 66%,#FB7185 100%);
  --display: "Bricolage Grotesque","Avenir Next","Segoe UI Variable Display","Segoe UI",system-ui,sans-serif;
  --body: "IBM Plex Sans","Segoe UI",system-ui,-apple-system,sans-serif;
  --mono: "IBM Plex Mono",ui-monospace,"SFMono-Regular","Cascadia Mono",Menlo,Consolas,monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--ground);
  background-image: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(167,139,250,.12), transparent 70%);
  color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased;
}
a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.wrap { max-width: 980px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--panel); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--faint); font-weight: 400; }
[hidden] { display: none !important; }

.top { border-bottom: 1px solid var(--line-soft); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { font: 650 17px/1 var(--display); color: var(--ink); text-decoration: none; }
.top nav { display: flex; gap: 20px; font-size: 14px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

.eyebrow { font: 500 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.hero { padding-block: clamp(40px, 8vw, 80px) clamp(24px, 4vw, 40px); }
h1 { font: 800 clamp(38px, 6.4vw, 68px)/1.02 var(--display); letter-spacing: -.025em; margin-top: 18px; max-width: 15ch; }
h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); font-size: clamp(17px, 2vw, 19px); max-width: 62ch; margin-top: 20px; }

section.wrap + section.wrap { margin-top: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 3.5vw, 36px); }
h2 { font: 650 clamp(24px, 3vw, 30px)/1.15 var(--display); letter-spacing: -.01em; margin-top: 10px; }
h2:focus { outline: none; }
.card-sub { color: var(--muted); margin-top: 6px; max-width: 66ch; }
.card-sub strong { color: var(--ink); font-weight: 600; }
code { font: 400 .92em var(--mono); background: var(--raise); padding: 1px 6px; border-radius: 4px; overflow-wrap: anywhere; }

.drop { position: relative; margin-top: 20px; }
textarea {
  width: 100%; font: 400 13px/1.5 var(--mono); color: var(--ink); background: var(--ground);
  border: 1px solid var(--line); border-radius: 10px; padding: 14px; resize: vertical;
}
#input { min-height: 220px; }
textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
textarea::placeholder { color: var(--faint); }
.drop-hint {
  display: none; position: absolute; inset: 0; align-items: center; justify-content: center; border-radius: 10px;
  border: 2px dashed var(--violet); background: rgba(10,14,23,.88); color: var(--ink); font: 600 18px/1 var(--display); pointer-events: none;
}
.drop.dragging .drop-hint { display: flex; }

.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font: 500 14px/1 var(--body); padding: 12px 16px;
  border-radius: 8px; border: 1px solid var(--line); color: var(--ink); background: transparent; cursor: pointer;
}
.btn:hover { border-color: var(--violet); }
.btn.primary { background: var(--violet); border-color: var(--violet); color: #120B26; font-weight: 600; }
.btn.primary:hover { background: #BBA5FC; }
.btn.quiet { border-color: transparent; color: var(--muted); }
.btn:disabled { opacity: .55; cursor: progress; }
.copied { font-size: 14px; color: var(--mint); }

.options { margin-top: 18px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.options summary { cursor: pointer; color: var(--ink); font-weight: 500; }
.field { display: grid; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.problem { color: var(--rose); margin-top: 14px; }

.status { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--body); padding: 8px 12px; border-radius: 999px; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip.secret { color: var(--rose); background: var(--rose-soft); }
.chip.personal { color: var(--amber); background: var(--amber-soft); }
.chip.info { color: var(--sky); background: var(--sky-soft); }
.chip.good { color: var(--mint); background: var(--mint-soft); }

.honest { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: var(--amber-soft); border: 1px solid rgba(251,191,92,.35); color: var(--muted); font-size: 15px; }
.honest strong { color: var(--ink); display: block; margin-bottom: 2px; }

.notes { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.notes li { font-size: 14px; color: var(--muted); border-left: 2px solid var(--amber); padding-left: 12px; }
.notes li.warn { border-left-color: var(--rose); color: var(--ink); }

.group { margin-top: 26px; }
.group h3 { font: 650 18px/1.25 var(--display); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.group h3 .muted { font: 400 14px/1.3 var(--body); }
.findings { list-style: none; margin-top: 10px; display: grid; gap: 8px; }
.finding {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start;
  background: var(--ground); border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px 14px;
}
.finding.off { opacity: .72; }
.finding input[type=checkbox] { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--violet); cursor: pointer; }
.finding .what { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.finding .label { font-weight: 600; }
.finding .preview { font: 400 13px/1.5 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.finding .arrow { font: 400 13px/1.5 var(--mono); color: var(--mint); overflow-wrap: anywhere; }
.finding .where, .finding .why, .finding .detail { grid-column: 2; font-size: 13px; color: var(--faint); overflow-wrap: anywhere; }
.finding .detail { color: var(--muted); }
.finding details summary { cursor: pointer; }
.finding details ul { margin: 4px 0 0 18px; }
.finding .why { color: var(--faint); }
.level-secret .finding { border-left: 3px solid var(--rose); }
.level-personal .finding { border-left: 3px solid var(--amber); }
.level-info .finding { border-left: 3px solid var(--sky); }

.checks { margin-top: 24px; font-size: 14px; color: var(--muted); }
.checks summary { cursor: pointer; }
.checks ul { list-style: none; margin-top: 8px; display: grid; gap: 4px; }
.checks li::before { content: "\2713  "; color: var(--mint); }
.checks li.fail { color: var(--rose); }
.checks li.fail::before { content: "\2717  "; color: var(--rose); }

.output {
  margin-top: 16px; max-height: 520px; overflow: auto; background: var(--ground); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px; font: 400 12.5px/1.55 var(--mono); color: var(--muted); white-space: pre; tab-size: 2;
}
.output mark { background: var(--mint-soft); color: var(--mint); border-radius: 3px; padding: 0 1px; }
.note { font-size: 14px; color: var(--faint); margin-top: 12px; border-left: 2px solid var(--line); padding-left: 12px; }

.how { padding-block: clamp(32px, 6vw, 64px); border-top: 1px solid var(--line-soft); margin-top: 40px; }
.how + .how { margin-top: 0; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 40px; margin-top: 26px; }
.how h3 { font: 650 18px/1.25 var(--display); }
.how p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.limits { margin-top: 20px; display: grid; gap: 10px; padding-left: 20px; color: var(--muted); max-width: 72ch; }
.limits strong { color: var(--ink); font-weight: 600; }
.how > .muted { margin-top: 18px; font-size: 15px; }

footer { border-top: 1px solid var(--line-soft); padding: 28px 0 40px; font-size: 14px; color: var(--faint); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
