@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/BarlowCondensed-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("fonts/AtkinsonHyperlegible-Regular.woff2") format("woff2"); }
/* Colors: Nullwatt day tokens */
:root { --paper: #F3F0E8; --pixel: #E8E3D6; --line: #CFC9BA; --red: #C3271D; --ink: #1D1D1B; --ink-soft: #5B5A55; color-scheme: light; }
body { margin: 0; background: var(--paper); color: var(--ink); }
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero h1 { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero-scroll { position: absolute; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: 104px; height: 80px; margin-left: -52px; border-radius: 4px; }
.hero-scroll:focus-visible { outline: 2px solid var(--ink); }
body { font: 400 17px/1.5 "Atkinson Hyperlegible", system-ui, sans-serif; overflow-wrap: break-word; }
h2, h3 { margin: 0; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 600; line-height: 1.05; text-wrap: balance; }
h2 { max-width: 22ch; font-size: clamp(42px, 6.5vw, 76px); letter-spacing: -0.005em; }
h3 { font-size: 34px; }
.crumble { display: block; width: 100%; height: 96px; }
.work { max-width: 1080px; margin: 0 auto; padding-block: clamp(48px, 8vw, 96px) clamp(72px, 10vw, 128px);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.work-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px 32px; margin-top: clamp(40px, 6vw, 72px); }
.work-list article { display: grid; gap: 16px; align-content: start; min-width: 0; }
.work-list canvas { display: block; width: 100%; height: 288px; }
.work-list p { margin: 0; max-width: 46ch; }
html { scroll-padding-top: calc(63px + env(safe-area-inset-top, 0px)); }
.about, .contact { border-top: 1px solid var(--line); }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px; align-items: start; }
.pair > * { min-width: 0; }
.prose { display: grid; gap: 16px; max-width: 46ch; font-size: 20px; }
.prose p { margin: 0; }
.contact canvas[data-picture] { display: block; width: 100%; height: 288px; }
.contact .prose { margin-top: 24px; }
.mail { font-size: clamp(22px, 3vw, 30px); overflow-wrap: anywhere; }
.mail a { color: inherit; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.mail a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.foot { background: var(--pixel); }
.foot .work { padding-block: 24px 32px; font-size: 15px; }
.crumble-up { display: block; width: 100%; height: 96px; }
.products { border-top: 1px solid var(--line); }
.product-list { list-style: none; padding: 0; margin: clamp(40px, 6vw, 72px) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px 32px; }
.product { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; }
.product-icon { position: relative; width: 144px; height: 144px; }
.product-icon img { background: var(--paper); outline: 1px solid var(--line); outline-offset: -1px; }
.product-icon img, .product-icon canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.product h3 { margin-bottom: 8px; }
.product p { margin: 0; }
.product .facts { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }
.product a { color: inherit; text-decoration: none; }
.product a::after { content: ""; position: absolute; inset: -8px; border-radius: 4px; }
.product a:focus-visible { outline: none; }
.product a:focus-visible::after { outline: 2px solid var(--ink); }
/* icons lie there as pixels and turn sharp when looked at; touch screens show them sharp */
@media (hover: hover) {
  .product:hover a { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 5px; }
  .product:hover canvas, .product:focus-within canvas { visibility: hidden; }
}
@media (hover: none) { .product-icon canvas { display: none; } }
@media (max-width: 480px) { .product { grid-template-columns: 1fr; gap: 16px; } }
@media (min-width: 1112px) { .work { padding-left: 0; padding-right: 0; } }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.legal { max-width: 720px; margin: 0 auto; padding-block: 48px 72px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.legal h1 { margin: 0 0 32px; font: 600 clamp(42px, 6.5vw, 64px)/1.05 "Barlow Condensed", "Arial Narrow", sans-serif; hyphens: auto; }
.legal h2 { max-width: none; font-size: 28px; margin: 40px 0 8px; }
.legal p { margin: 0 0 12px; }
.legal a, .foot a { color: inherit; text-underline-offset: 3px; }
.foot .work { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.product a:focus-visible { outline: none; }

/* header: the same grid as the hero, closed by a row of ink pixels */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.head { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); background:
  repeating-linear-gradient(90deg, var(--ink) 0 3px, var(--paper) 3px 4px) 0 100% / 100% 3px no-repeat,
  repeating-linear-gradient(90deg, transparent 0 3px, var(--paper) 3px 4px),
  repeating-linear-gradient(0deg, var(--pixel) 0 3px, var(--paper) 3px 4px); }
.hero { scroll-margin-top: 100px; }
.head:has(+ .hero) { position: fixed; left: 0; right: 0; }
.head-row { max-width: 1080px; min-height: 64px; margin: 0 auto; box-sizing: content-box; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.head svg { display: block; flex: none; }
.head a, .head-menu { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.head-logo { gap: 3px; }
.head-logo .red { color: var(--red); }
.head nav { display: flex; flex-wrap: wrap; gap: 0 36px; }
.head nav a:hover, .head nav a[aria-current] { color: var(--red); }
.head nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: repeating-linear-gradient(90deg, var(--red) 0 2.5px, transparent 2.5px 3px); }
.head-menu { display: none; justify-content: center; width: 44px; margin-right: -6px; padding: 0; border: 0; background: none; cursor: pointer; }
/* over the hero its own grid shows through and the big name stands alone */
.head.over-hero:not(.open) { background: none; pointer-events: none; }
.head.over-hero a, .head.over-hero button { pointer-events: auto; }
.head.over-hero:not(.open) .head-logo { visibility: hidden; }
/* compact: set by nav.js when logo and links do not fit in one row; without script the links wrap */
html:not(.js) .head-row { flex-wrap: wrap; }
.head.compact .head-menu { display: inline-flex; }
.head.compact .head-row { flex-wrap: wrap; gap: 0; }
.head.compact .head-logo, .head.compact .head-menu { min-height: 64px; }
.head.compact nav { display: none; }
.head.compact.open nav { display: grid; width: 100%; padding-bottom: 20px; }
.head.compact nav a { min-height: 52px; justify-self: start; }

/* language switch in the footer */
.langs { display: flex; flex-wrap: wrap; gap: 0 16px; margin-left: auto; }
.langs a { text-decoration: none; }
.langs a[aria-current] { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }

/* 404: a pixel 404 that lost a few blocks, text below */
.missing { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; padding-bottom: 72px; }
.missing canvas { display: block; width: 100%; height: min(52vh, 440px); }
.missing-text { max-width: 46ch; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); text-align: center; }
.missing-text h1 { margin: 24px 0 12px; font: 600 clamp(38px, 6vw, 56px)/1.05 "Barlow Condensed", "Arial Narrow", sans-serif; text-wrap: balance; }
.missing-text p { margin: 0 0 12px; font-size: 20px; }
.missing-text a { color: inherit; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 5px; }
