@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-grotesque-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* Palette: named after tube paints. Kept light on purpose: the cartoon is drawn on white paper. */
:root {
  color-scheme: light;
  --gesso: #fcfcfa;
  --paper: #ffffff;
  --paynes: #2f3a45;
  --paynes-soft: #5b6672;
  --ultramarine: #2338a4;
  --cadmium: #ffc423;
  --alizarin: #b5173a;
  --sap: #3f6b2a;
  --boxer: #3d8fe0;           /* the polka dots */
  --rule: #dfe2e4;
  --display: "Bricolage", system-ui, sans-serif;
  --body: "Atkinson", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--gesso);
  color: var(--paynes);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ultramarine); text-underline-offset: 0.18em; }
a:focus-visible { outline: 3px solid var(--cadmium); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--paynes); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-head { padding: 12px 0; }
.site-head .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 16px; flex-wrap: wrap; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.04em; color: var(--paynes); text-decoration: none; }
.site-head nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-head nav a { color: var(--paynes); font-weight: 700; text-decoration: none; font-size: 0.98rem; }
.site-head nav a:hover { text-decoration: underline; text-decoration-color: var(--cadmium); text-decoration-thickness: 3px; }

/* ---------- Hero ---------- */
.hero { padding: 4px 0 28px; }
.hero-grid { display: grid; gap: 8px; }
.hero-text { order: 0; }
.hero-art { order: 1; margin: 0; }
@media (min-width: 900px) {
  .hero { padding: 8px 0 32px; }
  .hero-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); align-items: center; gap: 24px; }
}

.kicker { font-family: var(--display); font-weight: 600; font-size: 0.9rem; color: var(--paynes-soft); margin: 4px 0 6px; letter-spacing: 0.01em; }
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  max-width: 12ch;
  text-wrap: balance;
}
/* the word is underlined with a thick swipe of cadmium, like a brushstroke */
.hero h1 .stroke {
  background: linear-gradient(transparent 60%, var(--cadmium) 60%, var(--cadmium) 92%, transparent 92%);
  padding: 0 0.04em;
}
.lede { font-size: 1.12rem; max-width: 32ch; margin: 0 0 18px; color: var(--paynes-soft); }
.cta {
  display: inline-block;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  color: #fff; background: var(--ultramarine);
  padding: 12px 20px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 3px 0 var(--paynes);
}
.cta:hover { background: #1b2c86; }
.cta:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--paynes); }

/* the drawing sits straight on the page: multiply lets its white paper melt into the gesso */
.hero-art img { mix-blend-mode: multiply; width: 100%; }
.hero-art figcaption {
  font-size: 0.95rem; color: var(--paynes-soft);
  margin: 4px 0 0; padding-left: 12px; border-left: 3px solid var(--cadmium);
  max-width: 44ch;
}
.fig { font-family: var(--display); font-weight: 800; color: var(--paynes); margin-right: 4px; }
abbr { text-decoration: none; font-weight: 700; color: var(--paynes); }

/* ---------- Drawers (one per category) ---------- */
.drawer { padding: 26px 0 30px; border-top: 1px solid var(--rule); }
.drawer h2, .about h2 {
  font-family: var(--display); margin: 0 0 6px; line-height: 1; letter-spacing: -0.02em;
}
.drawer h2 .verb { font-weight: 800; font-size: clamp(1.7rem, 4.5vw, 2.3rem); }
.drawer h2 .tail { font-weight: 400; font-size: clamp(1.15rem, 3vw, 1.5rem); color: var(--paynes-soft); letter-spacing: -0.01em; }
.drawer-note { margin: 6px 0 16px; color: var(--paynes-soft); max-width: 56ch; }

/* tools are paint chips */
.chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.chip {
  display: grid; grid-template-rows: 6rem auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  text-decoration: none; color: inherit;
  height: 100%;
  overflow: hidden;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
a.chip:hover { transform: translateY(-3px) rotate(-0.4deg); box-shadow: 0 8px 18px rgba(47, 58, 69, 0.12); }
a.chip:hover h3 { text-decoration: underline; text-decoration-color: var(--cadmium); text-decoration-thickness: 3px; text-underline-offset: 0.15em; }
a.chip:focus-visible { outline: 3px solid var(--cadmium); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .chip { transition: none; } a.chip:hover { transform: none; } }

.chip .swatch { position: relative; display: flex; align-items: flex-end; justify-content: space-between; padding: 10px 12px; }
.chip .label { padding: 10px 14px 14px; }
.chip h3 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin: 0 0 4px; }
.chip p { margin: 0; color: var(--paynes-soft); font-size: 0.98rem; }

.tag {
  font-family: var(--display); font-weight: 600; font-size: 0.78rem;
  background: var(--paper); color: var(--paynes);
  padding: 3px 9px; border-radius: 999px; margin-left: auto;
}
.tag.live { background: var(--cadmium); }
.chip.soon { border-style: dashed; background: transparent; }
.chip.soon .label h3, .chip.soon .label p { opacity: 0.85; }

.glyph { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 0.8; color: #fff; }

/* swatches */
.sw-paynes { background: linear-gradient(90deg, #111 0 20%, #3b3b3b 20% 40%, #707070 40% 60%, #a8a8a8 60% 80%, #e2e2e2 80%); }
.sw-mix { background: linear-gradient(90deg, var(--cadmium) 0 30%, #9ab53a 30% 42%, #4f8a3a 42% 58%, #2f6b5a 58% 70%, var(--ultramarine) 70%); }
.sw-matrix {
  background:
    linear-gradient(180deg, rgba(255,255,255,.55) 0 25%, rgba(255,255,255,.25) 25% 50%, transparent 50% 75%, rgba(0,0,0,.3) 75%),
    linear-gradient(90deg, var(--alizarin) 0 20%, #e0702a 20% 40%, var(--cadmium) 40% 60%, var(--sap) 60% 80%, var(--ultramarine) 80%);
}
.sw-reader {
  background:
    radial-gradient(circle at 70% 40%, transparent 0 14px, #fff 14px 17px, transparent 17px),
    linear-gradient(160deg, #e9a23b 0%, #c4572a 45%, #6b3a2a 100%);
}
.sw-type { background: var(--paynes); }
.sw-sloan {
  background:
    conic-gradient(from 0deg at 50% 62%, transparent 0 330deg, transparent 330deg),
    linear-gradient(90deg, #f2efe6, #f2efe6);
  position: relative;
}
.sw-sloan::before {
  content: ""; position: absolute; left: 50%; top: 10px; width: 92px; height: 80px; transform: translateX(-50%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: conic-gradient(from 150deg at 50% 66%, var(--alizarin), #e0702a, var(--cadmium), var(--sap), var(--ultramarine), #6a3a8a, var(--alizarin));
}
.sw-sloan::after {
  content: ""; position: absolute; left: 50%; top: 40px; width: 40px; height: 34px; transform: translateX(-50%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #9a948a;
}
.sw-sloan .tag { position: relative; z-index: 1; }
.tag.free { margin-left: 0; background: var(--sap); color: #fff; }

/* ---------- Made: physical goods ---------- */
.goods { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); border-top: 3px solid var(--paynes); }
.goods li { padding: 12px 18px 12px 0; border-bottom: 1px solid var(--rule); }
.goods h3 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; margin: 0 0 4px; }
.goods p { margin: 0; color: var(--paynes-soft); }

/* polka-dot band, borrowed from the boxers */
.made { position: relative; }
.made::before {
  content: ""; display: block; height: 14px; margin-top: -26px; margin-bottom: 18px;
  background-image: radial-gradient(circle, var(--boxer) 0 3.5px, transparent 4px);
  background-size: 16px 14px;
  opacity: 0.85;
}

/* ---------- About ---------- */
.about { border-top: 1px solid var(--rule); padding: 30px 0 34px; background: var(--paper); }
.about h2 { font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.1rem); }
.about p { max-width: 60ch; margin: 0 0 14px; }
.about-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; } }

.site-foot { padding: 18px 0 28px; color: var(--paynes-soft); font-size: 0.92rem; border-top: 1px solid var(--rule); background: var(--paper); }
.site-foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* 404 */
.lost { padding: 64px 0 96px; }
.lost h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 8vw, 4.5rem); line-height: 0.95; margin: 0 0 16px; letter-spacing: -0.03em; }
