:root {
  color-scheme: light;
  --paper: #f3efe7;
  --card: #fffdf9;
  --ink: #1c1915;
  --muted: #6f675e;
  --line: #e3dcd0;
  --red: #d6453d;
  --yellow: #e2b423;
  --green: #2f8f55;
  --grey: #cfc8bd;
  --accent: #8d5b3c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.top, main, footer {
  width: min(760px, calc(100% - 32px));
  margin-inline: auto;
}

.top { padding: 48px 0 12px; }

.kicker {
  margin: 14px 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h2 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.lede {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: 19px;
  line-height: 1.45;
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 46px;
}

.bars i {
  display: block;
  height: 8px;
  border-radius: 99px;
}

.bars i:nth-child(1) { width: 46%; background: var(--red); }
.bars i:nth-child(2) { width: 72%; background: var(--yellow); }
.bars i:nth-child(3) { width: 100%; background: var(--green); }

.actions, .again { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; }

.actions { margin-top: 22px; }

.button {
  display: inline-block;
  background: var(--ink);
  color: #f6f3ee;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 16px;
  border-radius: 12px;
}

.button:hover { background: #3a332c; }
.button:focus-visible, .text-link:focus-visible, a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
}

main { padding-bottom: 28px; }

section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

section p { margin: 0 0 12px; max-width: 68ch; }

.legend {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.legend li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px 12px;
}

.legend strong { display: block; font-size: 16px; }
.legend p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex: 0 0 auto;
  margin-top: 4px;
}

.swatch.ai { background: var(--red); }
.swatch.mixed { background: var(--yellow); }
.swatch.human { background: var(--green); }
.swatch.short { background: var(--grey); box-shadow: inset 0 0 0 1px #b7b0a4; }

figure { margin: 18px 0 0; }

img {
  display: block;
  width: 100%;
  height: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  counter-reset: step;
}

.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px 12px 58px;
  position: relative;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #f6f3ee;
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps strong { display: block; }
.steps p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: #efeae1;
  padding: 0 0.3em;
  border-radius: 5px;
}

.again { margin-top: 16px; }

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

footer {
  padding: 8px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

footer p { margin: 0; }

@media (max-width: 640px) {
  .top { padding-top: 28px; }
  .lede { font-size: 17px; }
  .steps li { padding-left: 52px; }
  .button { width: 100%; text-align: center; }
}
