/* Hallmark · shape: Workbench · genre: playful · theme: Sticker (deal 3/3, seed pastel-colour-palettes-five-8cf3·e042884a·2026-12-05·r0) · job: try · draw: manual
 * hero: the head beside the new-palette button, over five swatch stickers · nav: edge-aligned, the wordmark and two links · footer: a dashed rule over the note and the credit lines · imagery: none, the swatches are the product · signature: five pastel swatches as die-cut stickers on hard ink shadows, each with its three codes and the contrast of dark text on it · sticker: sheet, no grain
 * axes: light/display-heavy/chromatic-magenta · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, one palette maker and a page on its method; the stickers carry the look */
/* Hallmark · waive 77 · every page · a palette maker and a page on its method, not a landing strip */
/* Hallmark · waive 44c · every page · the five stickers fill the first screen; on the method page the head stands over its lists */
/* Hallmark · answered F4 · the palette maker · New palette is the one filled button; the lock is a round outlined icon button on each swatch, filled with ink only once it is pressed */
: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.7% 0.013 82); --color-paper-2: oklch(92.8% 0.021 79); --color-paper-3: oklch(99.4% 0.007 89);
  --color-ink: oklch(21% 0.011 81); --color-ink-2: oklch(30% 0.013 78); --color-muted: oklch(50% 0.017 64);
  --color-rule: oklch(89.7% 0.02 80); --color-white: oklch(99.5% 0.003 82);
  --color-accent: oklch(56% 0.225 2); --color-accent-deep: oklch(49% 0.205 2); --color-accent-2: oklch(87.6% 0.179 119); --color-slot: oklch(95% 0.021 355);
  --color-accent-ink: oklch(99.5% 0.003 82); --color-focus: oklch(56% 0.225 2);
  --font-display: "Bowlby One SC", "Arial Black", sans-serif; --font-body: "Sofia Sans", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: "Sofia Sans", ui-sans-serif, system-ui, sans-serif;
  --radius-card: 18px; --radius-pill: 999px; --rule-hair: 1px; --rule-bar: 2px;
  --shadow-card: 5px 6px 0 var(--color-ink); --shadow-press: 1px 1px 0 var(--color-ink);
  --tracking-display: 0.005em; --display-weight: 400;
}

*, *::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; } }
/* photographs: natural vib=15 con=5 */
[data-slot] > img { filter: saturate(1.08) contrast(1.05); }

@font-face { font-family: "Bowlby One SC"; src: url("/fonts/bowlby-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Sofia Sans"; src: url("/fonts/sofia-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Sofia Sans"; src: url("/fonts/sofia-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* the swatch colours are data (src/pastel.mjs sets --sw on each sticker); these are the page's own */
:root { --color-sticker-rule: color-mix(in oklab, var(--color-ink) 32%, transparent); }
/* the swatches are data: the palette printed before any script runs (seed pastels.in) and the method page's two
   colours, all made by src/pastel.mjs; build.mjs stops when these drift from it, and the page's script redefines
   --swatch-1 to --swatch-5 on New palette */
:root { --swatch-1: #ffd9df; --swatch-2: #f0e0ca; --swatch-3: #bbd6c0; --swatch-4: #b0d8e7; --swatch-5: #e5e0fa; --swatch-fit: #dae4ff; --swatch-mint: #c2e9d3; }

body { color: var(--color-ink-2); font-size: 1.0625rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--color-ink); letter-spacing: var(--tracking-display); line-height: 1.02; }
h1 { font-size: min(var(--text-display), 4.5rem); }
h2 { font-size: min(var(--text-section), 3.25rem); }
.num { font-variant-numeric: tabular-nums; }
code { font-family: var(--font-body); font-weight: 700; font-size: 1em; color: var(--color-ink); }
.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-ink); text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--color-accent); }

.bar { border-bottom: var(--rule-bar) dashed var(--color-rule); }
.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-family: var(--font-display); font-size: var(--text-xl); color: var(--color-ink); text-decoration: none; }
.wordmark span { background: var(--color-accent-2); border-radius: var(--radius-pill); padding: 0 var(--space-xs); margin-left: var(--space-3xs); }
.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: 700; color: var(--color-ink-2); }
.bar__nav a:hover { color: var(--color-ink); }
.bar__nav a[aria-current="page"] { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 3px; text-underline-offset: 0.35em; }

/* ---- the palette maker ---- */
.hero { padding-block: var(--space-2xl) var(--section-gap-s); }
.hero__top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-lg) var(--space-2xl); }
.hero h1 { font-size: clamp(2.4rem, 4.2vw, 4rem); max-width: 14ch; }
.hero .lead { margin-top: var(--space-sm); max-width: 40ch; }
.tool__bar { display: grid; gap: var(--space-sm); justify-items: start; max-width: 36ch; }
.tool__say { font-size: var(--text-sm); color: var(--color-muted); min-height: 1.5em; }

.btn { display: inline-flex; align-items: center; height: 52px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); font-family: var(--font-body); font-weight: 700; font-size: var(--text-md); color: var(--color-ink); background: transparent; box-shadow: inset 0 0 0 2px var(--color-ink); cursor: pointer; }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); box-shadow: 0 0 0 5px var(--color-white), 5px 6px 0 5px var(--color-ink); transition: translate var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out); }
.btn--primary:hover { background: var(--color-accent-deep); translate: 0 -2px; }
.btn--primary:active { translate: 4px 5px; box-shadow: 0 0 0 5px var(--color-white), 1px 1px 0 5px var(--color-ink); }
.btn:focus-visible { outline: 3px solid var(--color-ink); outline-offset: 8px; }

.swatches { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-lg); }
.sw { background: var(--sw, var(--color-paper-3)); color: var(--color-ink); border: 6px solid var(--color-white); border-radius: var(--radius-card); box-shadow: var(--shadow-card); display: grid; grid-template-rows: auto 1fr; min-width: 0; transition: rotate var(--dur-short) var(--ease-out); }
.sw:nth-child(1) { --sw: var(--swatch-1); rotate: -1.5deg; }
.sw:nth-child(2) { --sw: var(--swatch-2); rotate: 1deg; }
.sw:nth-child(3) { --sw: var(--swatch-3); rotate: -0.6deg; }
.sw:nth-child(4) { --sw: var(--swatch-4); rotate: 1.4deg; }
.sw:nth-child(5) { --sw: var(--swatch-5); rotate: -1deg; }
.sw.is-locked { rotate: 0deg; }
.sw__face { position: relative; min-height: 200px; padding: var(--space-sm) var(--space-md); display: grid; align-content: end; }
.sw__ratio { display: grid; gap: var(--space-3xs); color: var(--color-ink); }
.sw__k, .code__k { font-size: var(--text-xs); font-weight: 700; color: var(--color-ink-2); }
.sw__ratio b { font-family: var(--font-display); font-weight: 400; font-size: 2.25rem; line-height: 1; }
.sw__codes { border-top: var(--rule-bar) dashed var(--color-sticker-rule); padding: var(--space-2xs) var(--space-md) var(--space-sm); display: grid; align-content: start; }
.code { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k copy" "v v"; align-items: center; column-gap: var(--space-xs); padding-block: var(--space-2xs); }
.code + .code { border-top: var(--rule-hair) dashed var(--color-sticker-rule); }
.code__k { grid-area: k; }
.code__v { grid-area: v; font-size: 0.9375rem; overflow-wrap: anywhere; user-select: all; }
.code__copy, .lock { width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 2px var(--color-ink); cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.code__copy { grid-area: copy; }
.code__copy:hover, .lock:hover { background: var(--color-ink); color: var(--color-paper); }
.code__copy:focus-visible, .lock:focus-visible { outline: 3px solid var(--color-ink); outline-offset: 3px; }
.btn:disabled, .code__copy:disabled, .lock:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: inset 0 0 0 2px var(--color-muted); }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.i-done, .code__copy.is-done .i-copy { display: none; }
.code__copy.is-done .i-done { display: block; }
.code__copy.is-done { background: var(--color-ink); color: var(--color-paper); }
.lock { position: absolute; top: var(--space-sm); right: var(--space-sm); }
.lock[aria-pressed="true"] { background: var(--color-ink); color: var(--color-paper); }
.lock[aria-pressed="false"] .lock__arc { translate: 0 -2px; }

/* ---- sections ---- */
.head { padding-block: var(--space-3xl) var(--space-2xl); }
.head h1 { max-width: 16ch; }
.head .lead { margin-top: var(--space-md); max-width: 50ch; }
.sec { padding-block: var(--section-gap-s); border-top: var(--rule-bar) dashed var(--color-rule); }
.sec--first { padding-top: var(--space-2xl); }
.sec h2 + * { margin-top: var(--space-lg); }
.sec__text { max-width: 58ch; font-size: var(--text-lg); }
.sec__note { margin-top: var(--space-xl); font-weight: 700; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); max-width: 60ch; font-size: var(--text-lg); }
.notes b { color: var(--color-ink); font-weight: 700; }
.notes--sums { margin-top: var(--space-2xl); gap: var(--space-lg); max-width: 64ch; }
.notes--sums li { background: var(--color-accent-2); color: var(--color-ink); border: 6px solid var(--color-white); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: var(--space-sm) var(--space-md); }
.notes--sums li:nth-child(odd) { rotate: -0.6deg; }
.notes--sums li:nth-child(even) { rotate: 0.5deg; }

.fit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg) var(--space-xl); margin-top: var(--space-xl); }
.fit__from { font-size: var(--text-lg); }
.fit__to { --sw: var(--swatch-fit); display: inline-grid; gap: var(--space-3xs); padding: var(--space-md) var(--space-lg); background: var(--sw, var(--color-paper-3)); color: var(--color-ink); border: 6px solid var(--color-white); border-radius: var(--radius-card); box-shadow: var(--shadow-card); rotate: 1deg; font-weight: 700; }
.fit__to code { font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); }

.cards { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); }
.card { background: var(--color-white); border: 6px solid var(--color-white); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: var(--space-md); display: grid; align-content: start; gap: var(--space-xs); min-width: 0; }
.card:nth-child(odd) { rotate: -1deg; }
.card:nth-child(even) { rotate: 1.2deg; }
.card__n { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--color-accent-2); font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-ink); }
.card h3 { font-size: var(--text-title); }
.card p { overflow-wrap: anywhere; }
.swatchcode { --sw: var(--swatch-mint); background: var(--sw, var(--color-paper-3)); padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 2px var(--color-ink); }

.foot { border-top: var(--rule-bar) dashed 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 (max-width: 1240px) {
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .hero { padding-top: var(--space-lg); }
  .head { padding-block: var(--space-xl) var(--space-lg); }
  .swatches { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); margin-top: var(--space-lg); }
  .sw:nth-child(odd) { rotate: -0.6deg; }
  .sw:nth-child(even) { rotate: 0.6deg; }
  .sw__face { min-height: 0; padding: var(--space-sm) var(--space-sm) var(--space-xs); }
  .sw__ratio b { font-size: 1.875rem; }
  .sw__codes { padding: var(--space-3xs) var(--space-sm) var(--space-xs); }
  .code { grid-template-columns: 3.4rem minmax(0, 1fr) auto; grid-template-areas: "k v copy"; padding-block: var(--space-3xs); }
  .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .btn--primary, .sw, .code__copy, .lock { transition: none; }
  .btn--primary:hover { translate: none; }
}
