
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-2: #f1f0ec;
  --ink: #1a1f1c;
  --ink-2: #5a615d;
  --rule: #d9d7d1;
  --dye: #1e64d2;
  --dye-hover: #1550b0;
  --dye-ink: #ffffff;
  --max: 64ch;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181b;
    --bg-2: #1d2226;
    --ink: #e9ece9;
    --ink-2: #a6ada9;
    --rule: #2e3539;
    --dye: #5b93ea;
    --dye-hover: #82b0f5;
    --dye-ink: #0d1420;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
main { max-width: var(--max); margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
h1 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; margin: 1.5rem 0 1rem; max-width: 22ch; }
h2 { font-size: 1.25rem; font-weight: 600; margin: 2.75rem 0 0.75rem; }
p { margin: 0 0 1rem; max-width: 60ch; }
a { color: var(--dye); }
.quiet { color: var(--ink-2); }

/* the one visual: a serial dilution row */
figure { margin: 0; }
.dilution { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.5rem; max-width: 26rem; margin: 0; padding: 0; list-style: none; }
.dilution li { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--rule); background: color-mix(in srgb, var(--dye) calc(var(--fill) * 100%), transparent); position: relative; }
.dilution li:nth-child(1) { --fill: 1; }
.dilution li:nth-child(2) { --fill: .5; }
.dilution li:nth-child(3) { --fill: .25; }
.dilution li:nth-child(4) { --fill: .125; }
.dilution li:nth-child(5) { --fill: .0625; }
.dilution li:nth-child(6) { --fill: .031; }
.dilution li:nth-child(7) { --fill: .016; }
.dilution li:nth-child(8) { --fill: .008; }
.dilution li::after { content: attr(data-well); position: absolute; left: 0; right: 0; top: 100%; margin-top: 0.3rem; text-align: center; font-size: 0.75rem; color: var(--ink-2); }
.dilution + p { margin-top: 1.9rem; }

table { border-collapse: collapse; width: 100%; max-width: 40rem; margin: 0.5rem 0 1rem; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 500; color: var(--ink-2); width: 11rem; }
@media (max-width: 26rem) { th { width: 6.5rem; } }

.reserve { background: var(--bg-2); border: 1px solid var(--rule); border-radius: 6px; padding: 1.5rem; margin: 2rem 0; }
.reserve h2 { margin-top: 0; }
.price { font-size: 2rem; font-weight: 600; letter-spacing: -0.01em; }
.price small { font-size: 1rem; font-weight: 400; color: var(--ink-2); }
.cta { display: inline-block; background: var(--dye); color: var(--dye-ink); text-decoration: none; font-weight: 600; padding: 0.8rem 1.25rem; border-radius: 4px; border: 0; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.cta:hover:not([aria-disabled]) { background: var(--dye-hover); box-shadow: 0 3px 8px rgba(0, 0, 0, .3); }
.cta:active:not([aria-disabled]) { background: var(--dye-hover); box-shadow: none; }
a:focus-visible, .cta:focus-visible, input:focus-visible { outline: 3px solid var(--dye); outline-offset: 2px; }
.cta[aria-disabled] { cursor: default; opacity: .6; box-shadow: none; }
.count { margin: 1rem 0 0; color: var(--ink-2); }
form { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
input[type=email] { flex: 1 1 14rem; font: inherit; padding: 0.75rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--bg); color: var(--ink); }
.error { flex: 1 1 100%; margin: 0; }
.or { margin: 1.25rem 0 0.25rem; }
.sr-only { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

dl { margin: 0; }
dt { font-weight: 600; margin-top: 1rem; }
dd { margin: 0.25rem 0 0; max-width: 60ch; }
footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 0.9rem; color: var(--ink-2); }
footer p { max-width: none; }
footer nav a { margin-right: 1rem; }
@media (prefers-reduced-motion: no-preference) {
  .dilution li { transition: transform 200ms; }
  .dilution li:hover { transform: translateY(-2px); }
  .cta { transition: background 120ms, box-shadow 120ms, transform 120ms; }
  .cta:hover:not([aria-disabled]) { transform: translateY(-1px); }
  .cta:active:not([aria-disabled]) { transform: none; }
}
