/* HumanTaste
   Cool paper, ink blue, and one yellow pencil mark: the trace a person leaves
   when they circle the one they prefer. */

:root {
  --paper: #eef1f6;
  --sheet: #ffffff;
  --ink: #1b2a6b;
  --ink-soft: #55608a;
  --line: #cfd6e6;
  --pencil: #ffd23f;
  --deep: #121c4a;
  --danger: #b3261e;

  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 2.75rem);
  --step-4: clamp(2.75rem, 1.2rem + 6.4vw, 5.5rem);

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --measure: 62ch;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: var(--step-0);
  line-height: 1.55;
  font-optical-sizing: auto;
}

h1, h2, h3 { line-height: 1.05; letter-spacing: -0.02em; margin: 0; font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; max-width: var(--measure); text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--pencil); text-decoration-thickness: 3px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

code, pre { font-family: var(--mono); font-size: 0.86em; }
:not(pre) > code { background: #dfe5f2; padding: 0.1em 0.35em; border-radius: 4px; }
pre {
  margin: 0;
  padding: 1.1rem 1.25rem;
  background: var(--deep);
  color: #e6eaf8;
  border-radius: 6px;
  overflow-x: auto;
  line-height: 1.6;
  font-size: 0.8125rem;
}

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* ── header and footer ── */

.top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 2rem;
  padding: 1.5rem var(--gutter);
}
.brand { font-weight: 700; font-size: var(--step-1); letter-spacing: -0.03em; text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-size: var(--step--1); font-weight: 500; }
.top nav a { text-decoration: none; padding: 0.25rem 0; }
.top nav a:hover { text-decoration: underline; text-decoration-color: var(--pencil); text-decoration-thickness: 3px; }

main { padding: 0 var(--gutter); }
main.narrow { max-width: calc(44rem + 2 * var(--gutter)); }

.foot {
  margin-top: 6rem;
  padding: 2.5rem var(--gutter) 3rem;
  background: var(--deep);
  color: #e6eaf8;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  font-size: var(--step--1);
}
.foot p { font-weight: 500; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* ── buttons ── */

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--pencil);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 0.7rem 1.25rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: none; }
.btn.ghost { background: transparent; }
.btn.small { padding: 0.3rem 0.75rem; font-size: var(--step--1); box-shadow: 2px 2px 0 var(--ink); }
.linklike { font: inherit; font-size: var(--step--1); color: var(--ink-soft); background: none; border: 0; padding: 0.3rem 0; text-decoration: underline; cursor: pointer; }
.linklike:hover { color: var(--ink); }

/* ── hero ── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  padding-block: clamp(2rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem);
  align-items: start;
}
@media (min-width: 62rem) {
  .hero { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 4rem; }
}
.hero h1 { font-size: var(--step-4); line-height: 0.95; letter-spacing: -0.045em; max-width: 9em; }
.lede { font-size: var(--step-1); line-height: 1.4; margin-top: 1.75rem; max-width: 34ch; }
.hero .lede { max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }
.quiet { font-size: var(--step--1); font-weight: 500; }

.demo { background: var(--sheet); border: 2px solid var(--ink); border-radius: 6px; padding: clamp(1.1rem, 3vw, 1.75rem); box-shadow: 6px 6px 0 var(--ink); }
.demo-who { font-size: var(--step--1); color: var(--ink-soft); }
.demo-q { font-size: var(--step-1); font-weight: 700; line-height: 1.2; margin-top: 0.25rem; letter-spacing: -0.01em; }
.demo-options { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
.option {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: baseline;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  cursor: pointer;
}
.option:hover { border-color: var(--ink); }
.option .tag { font-family: var(--mono); font-size: var(--step--1); color: var(--ink-soft); }
.option .line { font-size: var(--step-1); font-weight: 500; line-height: 1.25; }
.mark { position: absolute; inset: -7px -9px; width: calc(100% + 18px); height: calc(100% + 14px); pointer-events: none; overflow: visible; }
.mark path {
  fill: none;
  stroke: var(--pencil);
  stroke-width: 5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  opacity: 0;
  mix-blend-mode: multiply;
}
.option[aria-pressed='true'] .mark path { opacity: 1; }
.option[aria-pressed='true'] { border-color: var(--ink); background: var(--sheet); }
.option[aria-pressed='true'] .mark path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.55s cubic-bezier(0.3, 0.7, 0.2, 1); }
.demo-hint { font-size: var(--step--1); color: var(--ink-soft); margin: 1rem 0 0.75rem; }
.demo-json { min-height: 11.5rem; }

/* ── home sections ── */

.block { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 2px solid var(--ink); }
.block > h2 { margin-bottom: 2rem; max-width: 16em; }
.block h3 + p { margin-top: 0.5rem; }

.pair { display: grid; gap: 2.5rem 4rem; }
@media (min-width: 46rem) { .pair { grid-template-columns: 1fr 1fr; } }
.pair h3 { font-size: var(--step-2); letter-spacing: -0.02em; }
.price { margin-top: 1rem; font-weight: 700; }
.price::before { content: ''; display: inline-block; width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--pencil); border: 1.5px solid var(--ink); margin-right: 0.5em; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 2.5rem; }
.steps > li { counter-increment: step; display: grid; gap: 0.75rem 3rem; grid-template-columns: minmax(0, 1fr); }
.steps h3::before { content: counter(step) '. '; color: var(--ink-soft); }
.steps p { margin-top: 0.4rem; }
.steps pre { grid-column: 1 / -1; }
@media (min-width: 62rem) {
  .steps > li { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
  .steps > li > h3, .steps > li > p { grid-column: 1; }
  .steps pre { grid-column: 2; grid-row: 1 / span 3; }
}

.connect { display: grid; gap: 2.5rem 3rem; }
.connect > div { display: grid; gap: 0.75rem; align-content: start; min-width: 0; }
.connect h3 + p { margin-top: 0; }
@media (min-width: 62rem) { .connect { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.prices { border-collapse: collapse; width: 100%; max-width: 34rem; font-size: var(--step-1); }
.prices th, .prices td { padding: 0.85rem 0; border-bottom: 1.5px solid var(--line); text-align: left; font-weight: 500; }
.prices td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.note { margin-top: 1.25rem; font-size: var(--step--1); color: var(--ink-soft); }

.faq { margin: 0; display: grid; gap: 1.75rem 4rem; }
@media (min-width: 46rem) { .faq { grid-template-columns: 1fr 1fr; } }
.faq dt { font-weight: 700; font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.01em; }
.faq dd { margin: 0.5rem 0 0; max-width: var(--measure); }

.band { margin-top: 2rem; padding: clamp(2rem, 5vw, 3.5rem); background: var(--pencil); border: 2px solid var(--ink); border-radius: 6px; display: grid; gap: 1rem; }
.band .btn { background: var(--sheet); }

/* ── docs ── */

.prose { max-width: 46rem; padding-block: 2rem 1rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h1 { font-size: var(--step-3); }
.prose h2 { font-size: var(--step-2); margin-top: 3.5rem; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.prose h3 { margin-top: 2.25rem; }
.prose h3 code { font-size: 0.9em; }
.prose ul, .prose ol { padding-left: 1.25rem; max-width: var(--measure); }
.prose li + li { margin-top: 0.35rem; }
.aside { font-size: var(--step--1); background: var(--sheet); border: 1.5px solid var(--line); border-radius: 6px; padding: 0.75rem 1rem; max-width: none; }
.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
.table th, .table td { text-align: left; vertical-align: top; padding: 0.6rem 1rem 0.6rem 0; border-bottom: 1.5px solid var(--line); }
.table th { font-weight: 700; border-bottom-color: var(--ink); }

/* ── forms and panels ── */

.panel { padding-block: clamp(1.5rem, 5vw, 3.5rem) 1rem; display: grid; gap: 1.25rem; }
.panel .lede { margin-top: 0; max-width: 36em; }
.plain-steps { margin: 0; padding-left: 1.25rem; max-width: var(--measure); }
.plain-steps li + li { margin-top: 0.4rem; }

.form { display: grid; gap: 1.1rem; max-width: 30rem; margin-top: 0.5rem; }
.form label { display: grid; gap: 0.35rem; font-weight: 500; }
.form .hint, .hint { font-weight: 400; font-size: var(--step--1); color: var(--ink-soft); display: block; }
input:not([type='radio']):not([type='checkbox']), textarea {
  font: inherit;
  color: var(--ink);
  background: var(--sheet);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  width: 100%;
}
textarea { resize: vertical; }
input[type='radio'], input[type='checkbox'] { accent-color: var(--ink); width: 1.1rem; height: 1.1rem; margin: 0; flex: none; }
.form label.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
.form label.check input { margin-top: 0.25rem; }
.form .btn { justify-self: start; }
.error { color: var(--danger); font-weight: 500; border-left: 3px solid var(--danger); padding-left: 0.75rem; }
.notice { background: var(--pencil); border: 1.5px solid var(--ink); border-radius: 6px; padding: 0.6rem 1rem; font-weight: 500; }

/* ── reviewer workspace ── */

.workbar { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: var(--step--1); color: var(--ink-soft); padding-bottom: 0.75rem; border-bottom: 1.5px solid var(--line); }
.signout { display: flex; gap: 1rem; align-items: baseline; }

.task { padding-block: 2rem; display: grid; gap: 1.25rem; }
.task-meta { font-size: var(--step--1); color: var(--ink-soft); font-weight: 500; }
.task h1 { max-width: 22em; }
.task-context { color: var(--ink-soft); }
.specimens { display: grid; gap: 1.25rem; margin-top: 0.5rem; }
@media (min-width: 46rem) { .specimens.two { grid-template-columns: 1fr 1fr; } }
.specimen { margin: 0; background: var(--sheet); border: 2px solid var(--ink); border-radius: 6px; padding: 1.1rem; display: grid; gap: 0.75rem; align-content: start; min-width: 0; }
.specimen figcaption { font-weight: 700; }
.specimen img, .specimen video { display: block; max-width: 100%; max-height: 70vh; margin-inline: auto; border-radius: 3px; }
.specimen audio { width: 100%; }
.spec-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 70vh; overflow-y: auto; line-height: 1.6; }
.spec-link a { overflow-wrap: anywhere; font-weight: 500; }
.spec-label { font-size: var(--step--1); color: var(--ink-soft); }

.answer { max-width: 40rem; margin-top: 1rem; }
.choices { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choices legend { font-weight: 700; padding: 0; margin-bottom: 0.6rem; }
.form .choices label { display: flex; align-items: center; gap: 0.5rem; background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 6px; padding: 0.6rem 1rem; cursor: pointer; font-weight: 700; }
.choices label:has(input:checked) { background: var(--pencil); }
.choices label span { font-weight: 400; }
.skip-form { margin-top: 0.25rem; }

/* ── admin ── */

.admin { padding-block: 2rem; display: grid; gap: 1.25rem; }
.admin h2 { font-size: var(--step-2); margin-top: 2rem; }
.stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; }
.stats strong { font-size: var(--step-2); margin-right: 0.3rem; font-variant-numeric: tabular-nums; }
.inline { display: flex; gap: 0.75rem; align-items: center; }
.inline input { width: 6rem !important; padding: 0.3rem 0.5rem !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .option[aria-pressed='true'] .mark path { transition: none; }
}

/* Keep the footer at the bottom of short pages. */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; }
