/* Hallmark · shape: app screen · genre: modern-minimal · theme: Wayfind (deal 1/3, seed backup-power-sizing-tool-b97b·da1b247f·2026-11-19·r0) · job: try
 * nav: top bar, wordmark and two links · signature: the load plate, running watts, starting watts and watt-hours in amber on ink, updating as each item is ticked · states: empty, covers, will not start, will not last, no script
 * axes: light/mono/cool · posture: committed · contrast: pass · wayfind: platform · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, a tool page has little argument of its own; the plate states the answer in the reader's own numbers instead of a slogan */
/* Hallmark · waive 49b · links in the sources list, whole maker and document titles · a long title has to wrap on a phone; the page promises where every number comes from */
/* src/styles/tokens.css */
:root {
  color-scheme: light;
  --space-3xs: 2px;
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 144px;
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5625rem;
  --text-2xl: 1.953rem;
  --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem);
  --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem);
  --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem);
  --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;
  --color-error: oklch(52% 0.19 27);
  --color-success: oklch(50% 0.12 150);
  --container: 1440px;
  --gutter: 64px;
  --gap-columns: 32px;
  --section-gap-s: 120px;
  --section-gap: 144px;
  --section-gap-l: 176px;
  --z-base: 1;
  --z-raised: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-sticky-nav: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;
  --color-paper: oklch(95.5% 0.006 250);
  --color-paper-2: oklch(91% 0.009 250);
  --color-paper-3: oklch(99.5% 0.005 250);
  --color-ink: oklch(16% 0.014 262);
  --color-ink-2: oklch(29% 0.014 262);
  --color-muted: oklch(47% 0.016 260);
  --color-rule: oklch(80% 0.011 250);
  --color-ink-rule: oklch(34% 0.014 262);
  --color-accent: oklch(51% 0.22 264);
  --color-accent-2: oklch(81% 0.16 82);
  --color-accent-ink: oklch(99.5% 0.003 250);
  --color-focus: oklch(51% 0.22 264);
  --font-display:
    "Chivo Mono",
    ui-monospace,
    monospace;
  --font-body: var(--font-display);
  --font-outlier: var(--font-body);
  --radius-card: 0;
  --radius-pill: 999px;
  --rule-hair: 1px;
  --rule-bar: 2px;
  --shadow-card: 0 24px 40px -24px oklch(8% 0.01 260 / 0.6);
  --tracking-display: -0.03em;
  --display-weight: 800;
}

/* src/styles/base.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  overflow-x: clip;
}
html {
  scrollbar-color: var(--color-muted) var(--color-paper);
  scroll-padding-top: var(--space-3xl);
}
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--color-accent);
}
::selection {
  background: var(--color-accent-2);
  color: var(--color-ink);
}
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight, 700);
  font-synthesis: none;
  letter-spacing: var(--tracking-display);
  line-height: 1.05;
  overflow-wrap: break-word;
  min-width: 0;
  text-wrap: balance;
}
h1 {
  max-width: 20ch;
  font-size: var(--text-display);
}
h2 {
  max-width: 30ch;
  font-size: var(--text-section);
}
h3 {
  max-width: 40ch;
  font-size: var(--text-title);
  line-height: 1.2;
}
.lead {
  font-size: var(--text-lead);
  line-height: 1.45;
  max-width: 52ch;
}
p {
  margin: 0;
  text-wrap: pretty;
}
p:not([class]) {
  max-width: 65ch;
}
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
svg {
  display: block;
}
[hidden] {
  display: none !important;
}
button,
input,
select,
textarea {
  font: inherit;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}
.num,
.figure,
td.num {
  font-variant-numeric: tabular-nums;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
[data-slot] {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      160deg,
      var(--color-paper-2, var(--color-paper)),
      var(--color-paper-3, var(--color-paper)));
}
[data-slot] > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
[data-slot]:has(> img) > :not(img):not([data-keep]) {
  display: none !important;
}
@media (max-width: 60rem) {
  :root {
    --gutter: 24px;
    --section-gap-s: 80px;
    --section-gap: 96px;
    --section-gap-l: 120px;
  }
}
@media (max-width: 40rem) {
  :root {
    --gutter: 16px;
    --section-gap-s: 56px;
    --section-gap: 72px;
    --section-gap-l: 96px;
    --gap-columns: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *:not(.keep-motion),
  *:not(.keep-motion)::before,
  *:not(.keep-motion)::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
[data-slot] > img {
  filter: saturate(0.88) contrast(1.1);
}

/* src/styles/app.css */
@font-face {
  font-family: "Chivo Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/chivo-mono-latin.woff2) format("woff2-variations");
}
body {
  font-variant-numeric: tabular-nums;
}
h1,
h2,
h3 {
  font-weight: 800;
  line-height: 0.98;
}
h1 {
  font-size: min(var(--text-display), 4.75rem);
}
small,
th,
figcaption,
dt,
legend {
  font-weight: 500;
  color: var(--color-muted);
}
.bar {
  border-bottom: var(--rule-bar) solid var(--color-ink);
  background: var(--color-paper-3);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky-nav);
}
.bar__in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  gap: var(--space-md);
}
.wordmark {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: var(--tracking-display);
  font-size: var(--text-lg);
}
.bar nav {
  display: flex;
  gap: var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
}
.wordmark {
  white-space: nowrap;
}
.bar nav a {
  padding-block: var(--space-sm);
}
.bar nav a:hover {
  color: var(--color-accent);
}
.intro {
  padding-block: var(--space-xl) var(--space-lg);
  display: grid;
  gap: var(--space-sm);
}
.intro .lead {
  color: var(--color-ink-2);
}
.section {
  padding-block: var(--space-2xl) 0;
  display: grid;
  gap: var(--space-md);
}
.section:last-of-type {
  padding-bottom: var(--space-3xl);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-lg);
  border: var(--rule-bar) solid currentColor;
  font: 800 var(--text-sm)/1 var(--font-body);
  color: inherit;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: background-color var(--dur-micro) steps(1), color var(--dur-micro) steps(1);
}
.btn--primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent-ink);
}
.btn:hover {
  background: var(--color-ink);
  color: var(--color-paper);
  border-color: var(--color-ink);
}
.cells {
  display: flex;
  flex-wrap: wrap;
}
.cell {
  min-height: 44px;
  padding: var(--space-sm) var(--space-md);
  border: var(--rule-bar) solid var(--color-ink);
  margin: 0 calc(var(--rule-bar) * -1) 0 0;
  background: var(--color-paper-3);
  color: var(--color-ink);
  font-weight: 500;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background-color var(--dur-micro) steps(1);
}
.cell:hover {
  background: var(--color-paper-2);
}
.cell[aria-checked=true] {
  background: var(--color-ink);
  color: var(--color-paper);
}
.cell:focus-visible {
  position: relative;
  z-index: var(--z-raised);
}
.cell:active {
  background: var(--color-accent);
  border-color: var(--color-ink);
  color: var(--color-accent-ink);
}
.btn:active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent-ink);
}
.item__qty button:active {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}
.item__qty button:disabled {
  color: var(--color-muted);
  border-color: var(--color-rule-2);
  background: var(--color-paper-2);
  cursor: not-allowed;
}
.hide-fail input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--gap-columns);
  align-items: start;
}
.outage {
  border: 0;
  padding: 0;
  margin: 0 0 var(--space-lg);
  min-width: 0;
}
.outage legend {
  padding: 0;
  margin-bottom: var(--space-xs);
  font-size: var(--text-sm);
}
.appliances {
  display: grid;
  gap: var(--space-lg);
}
.group {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.group legend {
  padding: 0 0 var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-ink);
  font-weight: 800;
  border-bottom: var(--rule-bar) solid var(--color-ink);
  width: 100%;
}
.item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.item__tick {
  display: grid;
  place-items: center;
  width: 44px;
  height: 52px;
  cursor: pointer;
}
.item__tick input {
  appearance: none;
  width: 22px;
  height: 22px;
  border: var(--rule-bar) solid var(--color-ink);
  background: var(--color-paper-3);
  margin: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.item__tick input:checked {
  background: var(--color-ink);
}
.item__tick input:checked::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--color-accent-2);
}
.item__name {
  padding-block: var(--space-sm);
  font-size: var(--text-sm);
  display: grid;
  gap: var(--space-3xs);
  cursor: pointer;
}
.item__name small {
  font-size: var(--text-xs);
}
.item[data-on=true] {
  background: var(--color-paper-3);
}
.item__more {
  display: none;
  grid-column: 2 / -1;
  padding: 0 var(--space-sm) var(--space-sm) 0;
  gap: var(--space-sm);
  flex-wrap: wrap;
  align-items: center;
  font-size: var(--text-xs);
}
.item[data-on=true] .item__more {
  display: flex;
}
.item__qty {
  display: inline-flex;
  align-items: center;
}
.item__qty button {
  width: 44px;
  height: 44px;
  border: var(--rule-bar) solid var(--color-ink);
  background: var(--color-paper-3);
  cursor: pointer;
  font-weight: 800;
  transition: background-color var(--dur-micro) steps(1);
}
.item__qty button:hover {
  background: var(--color-ink);
  color: var(--color-paper);
}
.item__qty output {
  min-width: 40px;
  text-align: center;
  font-weight: 800;
}
.item__hours {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}
.item__hours output {
  min-width: 84px;
  text-align: center;
  font-weight: 800;
}
.item__hours button {
  width: 44px;
  height: 44px;
  border: var(--rule-bar) solid var(--color-ink);
  background: var(--color-paper-3);
  cursor: pointer;
  font-weight: 800;
  transition: background-color var(--dur-micro) steps(1);
}
.item__hours button:hover {
  background: var(--color-ink);
  color: var(--color-paper);
}
.item__hours button:active {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}
.item__hours button:disabled {
  color: var(--color-muted);
  border-color: var(--color-rule-2);
  background: var(--color-paper-2);
  cursor: not-allowed;
}
.item__watts {
  padding-right: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-align: right;
  white-space: nowrap;
}
.calc__board {
  position: sticky;
  top: 72px;
  display: grid;
  gap: var(--space-md);
  max-height: calc(100vh - 88px);
  overflow: auto;
  align-content: start;
}
.plate {
  border: var(--rule-bar) solid var(--color-ink);
  background: var(--color-ink);
  color: var(--color-paper);
  padding: var(--space-md);
  display: grid;
  gap: var(--space-sm);
}
.plate__title {
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-paper-2);
}
.plate__figs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
  margin: 0;
}
.plate__figs dt {
  color: var(--color-paper-2);
  font-size: var(--text-xs);
}
.plate__figs dd {
  margin: 0;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: var(--space-2xs);
  flex-wrap: wrap;
}
.plate .figure {
  font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 1.1;
  color: var(--color-accent-2);
}
.plate .unit {
  font-size: var(--text-xs);
  color: var(--color-paper-2);
}
.plate__note {
  font-size: var(--text-xs);
  color: var(--color-paper-2);
}
.results {
  display: grid;
  gap: var(--space-md);
}
.kind {
  border: var(--rule-bar) solid var(--color-ink);
  background: var(--color-paper-3);
}
.kind > h3 {
  padding: var(--space-sm) var(--space-md);
  border-bottom: var(--rule-bar) solid var(--color-ink);
  font-size: var(--text-sm);
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
}
.kind > h3 small {
  font-weight: 500;
}
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2xs) var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-sm);
}
.row:last-child {
  border-bottom: 0;
}
.row__name {
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
}
.row__price {
  text-align: right;
  font-weight: 500;
}
.row__state {
  grid-column: 1 / -1;
  font-size: var(--text-xs);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-sm);
  align-items: center;
}
.pill {
  display: inline-block;
  padding: var(--space-3xs) var(--space-xs);
  border: var(--rule-bar) solid var(--color-ink);
  font-weight: 800;
}
.pill--yes {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent-ink);
}
.pill--part {
  background: var(--color-accent-2);
  color: var(--color-ink);
}
.row[data-ok=false] {
  color: var(--color-muted);
}
.row[data-ok=false] .row__name {
  font-weight: 500;
}
.row details {
  grid-column: 1 / -1;
  font-size: var(--text-xs);
}
.row summary {
  cursor: pointer;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  padding-block: var(--space-2xs);
}
.row details ul {
  margin: var(--space-xs) 0 0;
  padding-left: var(--space-md);
  display: grid;
  gap: var(--space-2xs);
}
.empty {
  padding: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}
.results-controls {
  padding-block: var(--space-2xs);
}
.row__note {
  grid-column: 1 / -1;
  font-size: var(--text-xs);
  color: var(--color-muted);
}
.plate__note a {
  color: var(--color-accent-2);
}
.hide-fail {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
}
.table-wrap {
  overflow-x: auto;
  border: var(--rule-bar) solid var(--color-ink);
  background: var(--color-paper-3);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--text-sm);
}
th,
td {
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  vertical-align: top;
}
th {
  border-bottom: var(--rule-bar) solid currentColor;
  white-space: nowrap;
}
td {
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
td.num,
th.num {
  text-align: right;
  white-space: nowrap;
}
.sources {
  margin: 0;
  padding-left: var(--space-lg);
  display: grid;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  max-width: 90ch;
}
.foot {
  border-top: var(--rule-bar) solid var(--color-ink);
  background: var(--color-paper-2);
  padding-block: var(--space-lg);
  font-size: var(--text-xs);
  display: grid;
}
.foot .container {
  display: grid;
  gap: var(--space-xs);
}
.article {
  max-width: 72ch;
  padding-block: var(--space-xl) var(--space-3xl);
  display: grid;
  gap: var(--space-md);
}
.article h1 {
  max-width: 26ch;
}
.article h2 {
  margin-top: var(--space-lg);
}
.article ul,
.article ol {
  margin: 0;
  padding-left: var(--space-lg);
  display: grid;
  gap: var(--space-xs);
  max-width: 65ch;
}
.article__date {
  font-size: var(--text-xs);
  color: var(--color-muted);
}
.article__cta {
  margin-top: var(--space-md);
}
.guide-list {
  list-style: none;
  margin: 0 0 var(--space-3xl);
  padding: 0;
  display: grid;
  border-top: var(--rule-bar) solid var(--color-ink);
}
.guide-list li {
  padding-block: var(--space-md);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  display: grid;
  gap: var(--space-xs);
}
.guide-list a {
  font-weight: 800;
  font-size: var(--text-lg);
}
@media (max-width: 60rem) {
  :root {
    --plate-room: calc(96px + env(safe-area-inset-bottom, 0px));
  }
  html {
    scroll-padding-bottom: var(--plate-room);
  }
  body {
    padding-bottom: var(--plate-room);
  }
  .calc {
    grid-template-columns: minmax(0, 1fr);
  }
  .calc__board {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .plate {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-sticky);
    padding: var(--space-sm) var(--gutter) calc(var(--space-sm) + env(safe-area-inset-bottom, 0px));
    gap: var(--space-2xs);
    border-width: var(--rule-bar) 0 0;
  }
  .plate__title {
    display: none;
  }
  .plate .figure {
    font-size: var(--text-lg);
  }
  .plate__note {
    font-size: var(--text-xs);
  }
}
@media (max-width: 40rem) {
  .intro {
    padding-block: var(--space-lg) var(--space-md);
  }
  th,
  td {
    padding: var(--space-xs) var(--space-sm);
  }
}
