:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #183e35;
  background: #f5f3e9;
  font-synthesis: none;
  --ink: #183e35;
  --muted: #52665a;
  --line: #d7ddcc;
  --lime: #d4e88c;
  --rose: #ecbba8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
select,
input {
  accent-color: var(--ink);
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #7850b3;
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
h1,
h2,
p {
  margin: 0;
}
h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.035em;
  font-size: 32px;
}
button {
  color: inherit;
}
.topbar,
main,
footer {
  max-width: 1440px;
  margin: auto;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 5%;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 750;
  font-size: 24px;
  text-decoration: none;
  letter-spacing: -1px;
}
.brand-mark {
  font-size: 34px;
}
.brand-caption {
  border-left: 1px solid #acb8a7;
  font: 10px/1.3 monospace;
  letter-spacing: 1px;
  padding-left: 18px;
  margin-left: 14px;
  max-width: 100px;
}
.prototype {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.button {
  border: 1px solid #a7b6a0;
  border-radius: 6px;
  background: transparent;
  padding: 11px 16px;
  line-height: 1.3;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  transition: transform 0.18s;
}
.button:hover {
  transform: translateY(-2px);
  background: #e7ebda;
}
.button.dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.button.dark:hover {
  background: #2b584a;
}
.quiet {
  border: 0;
}
main {
  padding: 0 5%;
}
.intro {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 62px 0 52px;
}
.eyebrow {
  font: 10px/1.5 monospace;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: #526452;
  margin-bottom: 12px;
}
h1 {
  font:
    clamp(38px, 4.5vw, 66px) / 1.04 Georgia,
    serif;
  letter-spacing: -3px;
  font-weight: 400;
}
h1 em {
  font-weight: 400;
  color: #64793e;
}
.intro-copy {
  max-width: 535px;
  font-size: 15px;
  line-height: 1.7;
  color: #4e6356;
  margin-top: 22px;
}
.intro-note {
  border-left: 3px solid #9aad75;
  padding: 14px 0 14px 26px;
  transform: rotate(-2deg);
  max-width: 340px;
  margin: auto;
}
.note-label {
  font: 10px monospace;
  letter-spacing: 1px;
}
.intro-note p {
  font:
    26px/1.45 Georgia,
    serif;
  margin: 15px 0;
}
.intro-note small {
  color: var(--muted);
  font-size: 11px;
}
.tag {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font: bold 14px Arial;
  color: #183e35;
}
.tag.a {
  background: var(--lime);
}
.tag.b {
  background: var(--rose);
}
.workspace {
  scroll-margin-top: 20px;
  border-top: 1px solid var(--ink);
  padding-top: 26px;
}
.workspace-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.workspace-heading .eyebrow {
  margin-bottom: 4px;
}
.preset-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.lab-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
}
.room-panel {
  background: #e6ebdb;
  border: 1px solid #cdd7bf;
  border-radius: 10px;
  padding: 22px 26px 24px;
  position: relative;
  overflow: hidden;
}
.room-panel:before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  background-image: radial-gradient(#bbc8ad 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.45;
}
.room-panel > * {
  position: relative;
}
.room-meta {
  display: flex;
  justify-content: space-between;
  font: 10px monospace;
  letter-spacing: 1px;
  color: #52684b;
  margin-bottom: 22px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #526d2e;
  border-radius: 50%;
  margin-right: 6px;
}
.shelf {
  margin-top: 12px;
}
.shelf-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.shelf-header h3 {
  font-size: 12px;
  font-weight: 600;
  margin: 0;
}
.shelf-header span {
  font: 10px monospace;
  color: #576b4f;
}
.pot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  min-height: 138px;
  border-bottom: 9px solid #a8b68f;
  box-shadow: 0 7px 0 -3px #8c9e74;
  padding: 10px 7px 0;
  position: relative;
}
.pot-row:before,
.pot-row:after {
  content: "";
  position: absolute;
  bottom: -22px;
  width: 10px;
  height: 14px;
  background: #94a87c;
}
.pot-row:before {
  left: 18px;
}
.pot-row:after {
  right: 18px;
}
.pot {
  border: 2px solid transparent;
  background: transparent;
  border-radius: 12px 12px 0 0;
  padding: 0 8px 8px;
  min-width: 78px;
  max-width: 120px;
  flex: 1;
  position: relative;
  transition:
    transform 0.25s,
    border-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ink);
}
.pot:hover {
  transform: translateY(-5px);
}
.pot[aria-pressed="true"] {
  border-color: #355642;
  background: #f4f6e8;
  box-shadow: 0 0 0 3px #e6ebdb;
}
.pot svg {
  width: 70px;
  height: 90px;
  overflow: visible;
  display: block;
}
.pot .pot-label {
  font: bold 10px monospace;
  display: flex;
  gap: 7px;
  align-items: center;
}
.pot .tag {
  width: 20px;
  height: 20px;
  font-size: 11px;
}
.shelf + .shelf {
  margin-top: 35px;
}
.room-help {
  font-size: 11px;
  line-height: 1.6;
  color: #496046;
  margin: 28px 0 15px;
}
.pot-editor {
  border-top: 1px solid #b8c7a5;
  padding-top: 16px;
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 14px;
  align-items: end;
}
.editor-title {
  align-self: center;
  font-size: 12px;
}
.editor-title strong {
  display: block;
  font: 25px Georgia;
  margin-top: 4px;
}
.field-label,
.pot-editor label {
  font-size: 11px;
  font-weight: 600;
  display: block;
  margin-bottom: 7px;
}
select {
  width: 100%;
  border: 1px solid #b8c4ad;
  border-radius: 5px;
  color: var(--ink);
  background: #fafbf3;
  padding: 10px 30px 10px 10px;
  min-height: 42px;
  font-size: 12px;
}
.readout {
  background: #fcfcf5;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
}
.readout h2 {
  font-size: 30px;
}
.count-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 25px 0 20px;
  gap: 12px;
}
.count-pair strong {
  font: 56px/0.95 Georgia;
  letter-spacing: -3px;
  display: block;
}
.count-pair span:not(.not-equal) {
  font-size: 10px;
  color: #4c6155;
  display: block;
  margin-top: 10px;
}
.not-equal {
  font: 30px Georgia;
  color: #6a7c5c;
}
.readings-control {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-bottom: 19px;
}
.readings-control label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
}
.readings-control output {
  font-family: monospace;
  background: #e6edda;
  padding: 2px 7px;
  border-radius: 4px;
}
.readings-control input {
  width: 100%;
  margin: 12px 0 8px;
  min-height: 24px;
}
.readings-control p,
.micro {
  font-size: 11px;
  line-height: 1.6;
  color: #536559;
}
.micro {
  margin: 9px 0 18px;
}
.finding {
  border-left: 3px solid #b57440;
  background: #fbecd9;
  padding: 14px 15px;
}
.finding.mixed {
  background: #e9f0da;
  border-color: #6c873b;
}
.finding.unknown {
  background: #ece6f3;
  border-color: #9273aa;
}
.finding h3 {
  font-size: 13px;
  margin: 0 0 8px;
}
.finding p {
  font-size: 12px;
  line-height: 1.6;
}
.finding small {
  display: block;
  font-size: 10px;
  margin-top: 8px;
}
.lower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}
.distribution,
.reflection {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.distribution h2,
.reflection h2 {
  font-size: 29px;
}
.matrix {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 18px;
  font-size: 12px;
}
.matrix th {
  font-size: 11px;
  text-align: left;
  padding: 10px 0;
  color: #5b6d5b;
  font-weight: 400;
}
.matrix td {
  border-top: 1px solid var(--line);
  padding: 13px 0;
}
.matrix .dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin: 3px 5px 0 0;
  border: 1px solid #67804c;
  border-radius: 50%;
  background: var(--lime);
}
.matrix .dot.b {
  background: var(--rose);
  border-color: #a46a52;
}
.matrix .zero {
  color: #69796b;
}
.matrix tbody th {
  border-top: 1px solid var(--line);
  font-weight: 600;
}
.distribution > p:last-child,
.reflection > p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.7;
  color: #4c6255;
}
.reflection {
  background: var(--ink);
  color: #f6f6e9;
}
.reflection .eyebrow {
  color: #c1d2ac;
}
.reflection > p:not(.eyebrow) {
  color: #e1e8d5;
  margin: 18px 0;
}
.reflection .button {
  color: #f6f6e9;
  border-color: #879d82;
  margin-top: 16px;
}
.reflection .button:hover {
  background: #315847;
}
.next-step {
  border-top: 1px solid #52725d;
  padding-top: 15px;
  font-size: 12px;
  line-height: 1.6;
  color: #e5f0c9;
}
.next-step strong {
  color: #d4e88c;
}
#comparison {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #52725d;
  font-size: 12px;
  line-height: 1.7;
}
#comparison dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
#comparison dt {
  color: #c0d1b5;
}
#comparison dd {
  margin: 0;
}
.scope {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 45px;
  padding: 45px 0;
  border-bottom: 1px solid var(--line);
}
.scope h2 {
  font-size: 28px;
}
.scope p:not(.eyebrow) {
  font-size: 12px;
  line-height: 1.7;
  color: #536458;
  margin-bottom: 12px;
}
.sources {
  padding: 22px 0;
  font-size: 12px;
  color: #516554;
}
.sources summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 30px;
}
.sources div {
  max-width: 850px;
  padding-top: 15px;
}
.sources p {
  line-height: 1.7;
  margin-bottom: 10px;
}
footer {
  padding: 25px 5%;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #5b6d59;
  font-size: 10px;
}
footer .brand {
  font-size: 20px;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  padding: 15px;
  background: white;
  z-index: 99;
}
.empty-shelf {
  font-size: 12px;
  color: #516449;
  padding: 25px 10px;
}
.print-only {
  display: none;
}
@media (max-width: 1050px) {
  .intro {
    gap: 30px;
  }
  .lab-grid {
    grid-template-columns: 1.25fr 1fr;
  }
  .room-panel {
    padding: 20px 16px;
  }
  .pot-row {
    gap: 2px;
  }
  .pot {
    min-width: 55px;
    padding-left: 2px;
    padding-right: 2px;
  }
  .pot svg {
    width: 55px;
  }
  .pot-editor {
    grid-template-columns: 1fr 1fr;
  }
  .editor-title {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .editor-title strong {
    display: inline;
    font-size: 18px;
    margin: 0;
  }
  .readout {
    padding: 22px;
  }
  .count-pair strong {
    font-size: 46px;
  }
}
@media (max-width: 760px) {
  .topbar {
    padding: 18px 5%;
    gap: 10px;
  }
  .brand-caption,
  .prototype {
    display: none;
  }
  .topbar .button {
    margin-left: auto;
  }
  .intro {
    display: block;
    padding: 37px 0 32px;
  }
  h1 {
    font-size: 43px;
    letter-spacing: -2px;
  }
  .intro-copy {
    font-size: 14px;
  }
  .intro-note {
    display: none;
  }
  .workspace-heading {
    display: block;
  }
  .workspace-heading h2 {
    font-size: 28px;
  }
  .preset-group {
    margin-top: 18px;
  }
  .preset-group .button {
    flex: 1;
    font-size: 11px;
    gap: 8px;
    padding: 10px;
  }
  .lab-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }
  .room-panel {
    padding: 20px;
  }
  .pot {
    max-width: none;
    min-width: 58px;
  }
  .pot svg {
    width: 65px;
  }
  .pot-editor {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .editor-title {
    grid-column: auto;
    display: block;
    font-size: 10px;
  }
  .editor-title strong {
    display: block;
    font-size: 22px;
    margin-top: 5px;
  }
  .pot-editor label {
    font-size: 10px;
  }
  .room-help {
    font-size: 10px;
  }
  .readout {
    padding: 24px;
  }
  .count-pair strong {
    font-size: 58px;
  }
  .count-pair {
    grid-template-columns: 1fr auto 1fr;
  }
  .readout .eyebrow {
    margin-bottom: 5px;
  }
  .lower-grid {
    gap: 16px;
  }
  .scope {
    display: block;
    padding: 32px 0;
  }
  .scope > div + div {
    margin-top: 18px;
  }
  .scope h2 {
    font-size: 26px;
  }
  .distribution,
  .reflection {
    padding: 24px;
  }
  footer {
    flex-wrap: wrap;
    gap: 10px;
  }
  footer > span:last-child {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .pot:hover,
  .button:hover {
    transform: none;
  }
}
@media print {
  html,
  body {
    background: white;
    color: black;
  }
  .topbar .button,
  .preset-group,
  .pot-editor,
  .sources,
  footer,
  .room-help,
  #compare {
    display: none;
  }
  .intro {
    padding: 15px 0;
  }
  .intro h1 {
    font-size: 34px;
  }
  .intro-copy {
    font-size: 12px;
  }
  .lab-grid {
    grid-template-columns: 1.4fr 1fr;
  }
  .room-panel,
  .readout,
  .distribution,
  .reflection {
    break-inside: avoid;
    background: white !important;
    color: black !important;
  }
  #comparison dt,
  .reflection p,
  .reflection .eyebrow,
  .next-step,
  .next-step strong {
    color: black !important;
  }
  .lower-grid {
    grid-template-columns: 1fr 1fr;
  }
  .scope {
    padding: 20px 0;
  }
  .button {
    display: none;
  }
  .pot svg {
    height: 70px;
  }
  .pot-row {
    min-height: 110px;
  }
  .shelf + .shelf {
    margin-top: 20px;
  }
  select,
  input {
    pointer-events: none;
  }
  .readout {
    padding: 15px;
  }
  .count-pair strong {
    font-size: 38px;
  }
  #comparison[hidden] {
    display: none;
  }
  a {
    text-decoration: none;
  }
}
