/* Hallmark · shape: Workbench · genre: modern-minimal · theme: Bloom (deal 3/3, seed first-sum-off-grid-solar-2f58·dba717fd·2026-12-05·r4) · job: try · draw: manual
 * hero: the head over three raised sheets (loads, battery, panels) and the result card · nav: edge-aligned, the wordmark and two links · footer: a ruled note over the credit lines · imagery: none, the day's watt-hours drawn as one clip per load · signature: one serif figure, the watt-hours a day, over its loads as rounded clips on an hour grid · fonts: Figtree for Ranade and Young Serif for Gambarino (neither is on npm); no grain behind text (owner rule), one quiet bloom
 * axes: light/grotesk-sans/warm · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, one calculator and one page of sums; the serif figure over its clips carries the look */
/* Hallmark · waive 77 · every page · a calculator and a page of worked sums, not a landing strip */
/* Hallmark · waive 44c · every page · the sheets and the result card are the first screen's visual; on the sums page the head stands over its lists */
/* Hallmark · waive 79 · the calculator · the space under the sheets is the gap before the result card */
/* Hallmark · waive 59 · the calculator · the head stands right over the calculator it names; that gap is a title over its tool, the 120px gaps start after the result card */
/* Hallmark · waive 78 · the calculator · What you run, Battery and Panels are item titles inside the tool, set at --text-title; the sums page sets its section heads at --text-section */
/* Hallmark · answered F25 · the loads · on a phone each load becomes one card, every field labelled, so nothing hides off the side; wider screens keep the four columns */
: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(97% 0.010 72); --color-paper-2: oklch(94.6% 0.013 70); --color-paper-3: oklch(91.5% 0.016 66);
  --color-ink: oklch(21% 0.024 40); --color-ink-2: oklch(31% 0.022 46); --color-muted: oklch(49% 0.02 56);
  --color-rule: oklch(88% 0.014 64); --color-sheet: oklch(98.7% 0.007 78);
  --color-accent: oklch(53% 0.145 36); --color-accent-2: oklch(66% 0.10 55); --color-accent-soft: oklch(53% 0.145 36 / 0.11);
  --color-accent-ink: oklch(98.5% 0.008 72); --color-focus: oklch(53% 0.145 36);
  --lane-1: oklch(50% 0.04 55); --lane-2: oklch(48% 0.105 28); --lane-3: oklch(70% 0.115 72); --lane-4: oklch(65% 0.085 12);
  --grid-16: oklch(21% 0.024 40 / 0.035); --grid-beat: oklch(21% 0.024 40 / 0.075); --grid-bar: oklch(21% 0.024 40 / 0.15); --grid-row: oklch(21% 0.024 40 / 0.045);
  --rubber: oklch(55% 0.15 34); --rubber-hi: oklch(66% 0.125 42); --rubber-lo: oklch(43% 0.125 31);
  --umber: oklch(30% 0.03 45); --bezel: oklch(92.5% 0.014 68); --case: oklch(93.5% 0.012 70);
  --hi: oklch(99.6% 0.006 80 / 0.75); --shade-1: oklch(21% 0.024 40 / 0.08); --shade-2: oklch(21% 0.024 40 / 0.16); --shade-3: oklch(30% 0.06 40 / 0.28);
  --font-display: "Figtree", ui-sans-serif, system-ui, sans-serif; --font-body: var(--font-display);
  --font-outlier: "Young Serif", Georgia, serif; --font-code: "Geist Mono", ui-monospace, monospace;
  --radius-card: 18px; --radius-inner: 10px; --radius-clip: 6px; --radius-pill: 999px; --rule-hair: 1px;
  --shadow-card: 0 1px 2px oklch(21% 0.024 40 / 0.06), 0 18px 36px -18px oklch(21% 0.024 40 / 0.26);
  --shadow-lift: 0 2px 4px oklch(21% 0.024 40 / 0.07), 0 36px 72px -32px oklch(45% 0.1 40 / 0.34);
  --tracking-display: -0.024em; --display-weight: 600;
}

*, *::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: color-mix(in oklab, var(--color-accent) 22%, transparent); 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; } }
/* photographs: warm exp=4 */
[data-slot] > img { filter: sepia(0.28) saturate(0.94) brightness(1.04); }

@font-face { font-family: "Figtree"; src: url("/fonts/figtree-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Young Serif"; src: url("/fonts/young-serif-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root { --bloom: color-mix(in oklab, var(--color-accent) 8%, transparent); }

body { color: var(--color-ink-2); font-size: 1.0625rem; background: radial-gradient(60rem 40rem at 100% 0%, var(--bloom), transparent 70%) no-repeat, var(--color-paper); }
h1, h2 { color: var(--color-ink); line-height: 1.05; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: var(--space-md); top: -100px; background: var(--color-ink); color: var(--color-paper); padding: var(--space-xs) var(--space-md); z-index: var(--z-modal); }
.skip:focus-visible { top: var(--space-md); }
a { color: var(--color-accent); text-decoration-thickness: 1px; }
a:hover { color: var(--color-ink); }

.bar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2xs) var(--space-xl); padding-block: var(--space-sm); }
.wordmark { font-weight: 600; font-size: var(--text-xl); color: var(--color-ink); text-decoration: none; letter-spacing: -0.02em; }
.wordmark span { color: var(--color-accent); }
.bar__nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); }
.bar__nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 500; color: var(--color-ink-2); }
.bar__nav a:hover { color: var(--color-accent); }
.bar__nav a[aria-current="page"] { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }

.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); max-width: 16ch; }
.hero .lead { margin-top: var(--space-sm); max-width: 44ch; }

/* the board: three raised sheets, then the result card */
.hero { padding-block: var(--space-2xl); }
.work { padding-bottom: var(--section-gap-s); }
.calc { display: grid; gap: var(--space-lg); }
.board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-lg); align-items: stretch; }
.sheet--loads { grid-column: 1 / -1; }
.sheet { background: var(--color-sheet); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: var(--space-lg) var(--space-xl) var(--space-xl); }
.sheet h2 { font-size: var(--text-title); }
.hint { margin-top: var(--space-2xs); font-size: var(--text-sm); color: var(--color-muted); }

.load { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) 44px; gap: var(--space-md); align-items: end; }
.loads { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; gap: var(--space-sm); }
.f { display: block; }
.f::before { content: attr(data-label); display: block; margin-bottom: var(--space-2xs); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.load:not(:first-child) .f::before { content: none; }
.f input, .field input { width: 100%; height: 52px; padding: 0 var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-inner); background: var(--color-paper); color: var(--color-ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.f input:focus-visible, .field input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.x, .add { min-height: 44px; border-radius: var(--radius-pill); font-weight: 500; cursor: pointer; }
.x { width: 44px; height: 52px; border: 0; background: transparent; color: var(--color-muted); font-size: var(--text-xl); line-height: 1; padding: 0; }
.x:hover { color: var(--color-accent); }
.add { margin-top: var(--space-lg); padding: 0 var(--space-lg); border: 0; background: var(--color-sheet); color: var(--color-ink); box-shadow: 0 0 0 1px var(--shade-2), inset 0 1px 0 var(--hi); }
.add:hover { box-shadow: 0 0 0 1px var(--color-accent), inset 0 1px 0 var(--hi); }
.add:active { transform: translateY(1px); }
.x:disabled, .add:disabled, .f input:disabled, .field input:disabled { opacity: 0.5; cursor: not-allowed; }
.x:focus-visible, .add:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }

.fields { margin-top: var(--space-lg); display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: var(--space-md); align-items: end; }
.field { display: grid; gap: var(--space-2xs); font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); }

/* the result: one serif figure over its loads as clips */
.result { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-lg) var(--space-2xl); align-items: start; background: var(--color-sheet); border-radius: var(--radius-card); box-shadow: var(--shadow-lift); padding: var(--space-xl); }
.big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-sm); color: var(--color-ink); }
.big__n { font-family: var(--font-outlier); font-weight: 400; font-size: clamp(4.5rem, 9vw, 8rem); line-height: 0.95; letter-spacing: -0.03em; }
.big__u { font-size: var(--text-lg); font-weight: 500; }
.clips { margin-top: var(--space-lg); display: flex; gap: var(--space-3xs); height: 40px; padding: var(--space-2xs); border-radius: var(--radius-inner); background: repeating-linear-gradient(90deg, var(--grid-bar) 0 1px, transparent 1px calc(100% / 6)), var(--color-paper-2); }
.clip { flex: 0 0 auto; width: calc(var(--w) - var(--space-3xs)); min-width: 6px; border-radius: var(--radius-clip); background: var(--lane-2); box-shadow: inset 0 1px 0 var(--hi); }
.clip:nth-child(4n + 2) { background: var(--lane-3); }
.clip:nth-child(4n + 3) { background: var(--lane-1); }
.clip:nth-child(4n + 4) { background: var(--lane-4); }
.legend { list-style: none; margin: var(--space-xs) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.legend li::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: var(--space-2xs); border-radius: 3px; background: var(--lane-2); }
.legend li:nth-child(4n + 2)::before { background: var(--lane-3); }
.legend li:nth-child(4n + 3)::before { background: var(--lane-1); }
.legend li:nth-child(4n + 4)::before { background: var(--lane-4); }
.outs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md) var(--space-lg); }
.outs div { border-top: 1px solid var(--color-rule); padding-top: var(--space-xs); }
.outs dt { font-size: var(--text-sm); color: var(--color-muted); }
.outs dd { margin: 0; font-size: var(--text-xl); font-weight: 600; color: var(--color-ink); }
.say { margin-top: var(--space-lg); color: var(--color-ink); max-width: 44ch; }
.note { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); max-width: 44ch; }

.head { padding-block: var(--space-3xl) var(--space-2xl); }
.head h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: 18ch; }
.head .lead { margin-top: var(--space-md); max-width: 56ch; }

.sec { padding-block: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.sec--first { padding-top: var(--space-2xl); }
.sec h2 { font-size: var(--text-section); }
.sec h2 + * { margin-top: var(--space-lg); }
.sec__lead { max-width: 60ch; font-size: var(--text-lead); }
.sec__note { margin-top: var(--space-lg); max-width: 64ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); max-width: 66ch; }
.steps li { padding: var(--space-sm) var(--space-md); background: var(--color-sheet); border-radius: var(--radius-inner); box-shadow: var(--shadow-card); font-variant-numeric: tabular-nums; }
.steps b { color: var(--color-ink); font-weight: 600; }

.foot { border-top: var(--rule-hair) solid var(--color-rule); }
.foot__in { padding-block: var(--space-xl); display: grid; gap: var(--space-xs); font-size: var(--text-sm); }
.foot__note, .foot__line { margin: 0; max-width: 72ch; }

@media (prefers-reduced-motion: no-preference) {
  .add, .x, .bar__nav a { transition: color var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out); }
}
@media (max-width: 860px) {
  .board, .result { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .head { padding-block: var(--space-xl) var(--space-lg); }
  .hero { padding-top: var(--space-xl); }
  .sheet { padding: var(--space-lg) var(--space-md); }
  .result { padding: var(--space-lg) var(--space-md); }
  /* the loads: one card each, every field labelled (the five columns ran too narrow) */
  .loads { gap: var(--space-md); margin-top: var(--space-md); }
  .load { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); padding: var(--space-md); border-radius: var(--radius-inner); background: var(--color-paper-2); }
  .load .f:first-child { grid-column: 1 / -1; }
  .load:not(:first-child) .f::before { content: attr(data-label); }
  .load { position: relative; }
  .load .x { position: absolute; top: var(--space-2xs); right: var(--space-2xs); height: 44px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .outs { grid-template-columns: minmax(0, 1fr); }
}
