{
  "id": 37,
  "slug": "solar-dithered-zine",
  "name": "Solar Dithered Zine",
  "kind": "style",
  "family": "Tactile Analog & Pixel-Craft",
  "sourceSite": {
    "name": "Low-Tech Magazine Solar",
    "url": "https://solar.lowtechmagazine.com/",
    "verifiedStatus": 200
  },
  "tagline": "1-bit dithered editorial print aesthetic with a live solar-battery level meter and ultra-lightweight analog craft.",
  "whyUnique": "Makes web energy footprint visible right in the layout via an interactive solar battery gauge, 1-bit stippled illustrations, and radically legible low-bandwidth typography.",
  "theme": "light",
  "mobileStrength": "high",
  "tags": [
    "dithered-editorial",
    "solar-web",
    "low-tech",
    "analog-zine",
    "sustainable-design"
  ],
  "bestFor": [
    "Independent essays & zines",
    "Climate & sustainability journals",
    "Low-bandwidth documentation",
    "Editorial research archives"
  ],
  "palette": [
    {
      "role": "canvas",
      "hex": "#F4F1E8",
      "name": "Recycled Newsprint"
    },
    {
      "role": "surface",
      "hex": "#E8E2D2",
      "name": "Unbleached Stock"
    },
    {
      "role": "ink",
      "hex": "#1A1917",
      "name": "Soy Print Ink"
    },
    {
      "role": "accent",
      "hex": "#D49B1A",
      "name": "Solar Charge Amber"
    },
    {
      "role": "muted",
      "hex": "#666257",
      "name": "Halftone Gray"
    }
  ],
  "typography": {
    "display": "Libre Baskerville",
    "body": "Libre Baskerville",
    "mono": "IBM Plex Mono",
    "googleFontsUrl": "https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=IBM+Plex+Mono:wght@400;600&display=swap",
    "scaleNotes": "Classic bookish serif body (17px, 1.65 line-height) paired with crisp monospace energy telemetry, byte counts, and numbered marginal footnotes."
  },
  "layoutNotes": "Single-column editorial measure with a full-bleed solar battery fill indicator, dithered Canvas/SVG technical diagrams, and interactive inline footnote callouts.",
  "interactionNotes": "Interactive Solar Charge simulator (100% Sunny, 55% Overcast, 18% Low-Power Night) that dynamically shifts the battery fill level, page telemetry, and low-energy contrast mode, plus clickable footnotes.",
  "mobileNotes": "Natively single-column and ultra-fast on 390px viewports with >=44px solar-mode toggles and tap-to-reveal inline footnotes.",
  "agentGuardrails": {
    "do": [
      "Render illustrations as 1-bit dithered or stippled monochrome graphics to honor low-bandwidth craft.",
      "Expose honest technical telemetry (page weight in KB, solar battery state, server weather).",
      "Keep typography book-like, calm, and optimized for long-form reading."
    ],
    "dont": [
      "Never bloat the layout with heavy hero carousels, autoplay video, or superfluous UI chrome.",
      "Avoid glossy modern SaaS buttons; keep controls flat, bordered, and utilitarian."
    ]
  },
  "demoFile": "demos/solar-dithered-zine.html",
  "thumbDesktop": "thumbs/solar-dithered-zine-desktop.webp",
  "thumbMobile": "thumbs/solar-dithered-zine-mobile.webp",
  "urls": {
    "page": "https://templates.michaelpitts.net/t/solar-dithered-zine",
    "markdown": "https://templates.michaelpitts.net/t/solar-dithered-zine.md",
    "api": "https://templates.michaelpitts.net/api/templates/solar-dithered-zine",
    "demo": "https://templates.michaelpitts.net/demos/solar-dithered-zine.html",
    "thumbDesktop": "https://templates.michaelpitts.net/thumbs/solar-dithered-zine-desktop.webp",
    "thumbMobile": "https://templates.michaelpitts.net/thumbs/solar-dithered-zine-mobile.webp"
  },
  "agentPrompt": "Design & build using template #037 \"Solar Dithered Zine\" (style / Tactile Analog & Pixel-Craft, light theme).\nFull AI blueprint & standalone starter code: https://templates.michaelpitts.net/t/solar-dithered-zine.md\nLive demo: https://templates.michaelpitts.net/demos/solar-dithered-zine.html\nReal-world inspiration: Low-Tech Magazine Solar (https://solar.lowtechmagazine.com/)\n\nCore aesthetic: Makes web energy footprint visible right in the layout via an interactive solar battery gauge, 1-bit stippled illustrations, and radically legible low-bandwidth typography.\nPalette: canvas: #F4F1E8 (Recycled Newsprint), surface: #E8E2D2 (Unbleached Stock), ink: #1A1917 (Soy Print Ink), accent: #D49B1A (Solar Charge Amber), muted: #666257 (Halftone Gray)\nTypography: Display=\"Libre Baskerville\", Body=\"Libre Baskerville\", Mono=\"IBM Plex Mono\"\nLayout: Single-column editorial measure with a full-bleed solar battery fill indicator, dithered Canvas/SVG technical diagrams, and interactive inline footnote callouts.\nInteractions: Interactive Solar Charge simulator (100% Sunny, 55% Overcast, 18% Low-Power Night) that dynamically shifts the battery fill level, page telemetry, and low-energy contrast mode, plus clickable footnotes.\nMobile: Natively single-column and ultra-fast on 390px viewports with >=44px solar-mode toggles and tap-to-reveal inline footnotes.\n\nGuardrails:\n- DO: Render illustrations as 1-bit dithered or stippled monochrome graphics to honor low-bandwidth craft.\n- DO: Expose honest technical telemetry (page weight in KB, solar battery state, server weather).\n- DO: Keep typography book-like, calm, and optimized for long-form reading.\n- DON'T: Never bloat the layout with heavy hero carousels, autoplay video, or superfluous UI chrome.\n- DON'T: Avoid glossy modern SaaS buttons; keep controls flat, bordered, and utilitarian.",
  "sourceCode": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>HELIOS MONOGRAPH — Solar-Powered Dithered Journal</title>\n<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">\n<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>\n<link href=\"https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;1,6..72,400&display=swap\" rel=\"stylesheet\">\n<style>\n  :root {\n    --paper: #F4EFE4;\n    --paper-alt: #E7E0D0;\n    --ink: #171614;\n    --ink-soft: #4F4A42;\n    --accent: #B84A27;\n    --charge-tint: rgba(217, 178, 76, 0.16);\n    --charge-height: 100%;\n    --border: #171614;\n    --dither-fg: #171614;\n    --dither-bg: #F4EFE4;\n  }\n\n  [data-solar=\"overcast\"] {\n    --paper: #E9E4D8;\n    --paper-alt: #DCD5C6;\n    --ink: #22211E;\n    --ink-soft: #545047;\n    --accent: #8B4E2F;\n    --charge-tint: rgba(145, 134, 108, 0.22);\n    --charge-height: 55%;\n    --border: #2A2824;\n    --dither-fg: #22211E;\n    --dither-bg: #E9E4D8;\n  }\n\n  [data-solar=\"night\"] {\n    --paper: #161513;\n    --paper-alt: #22201C;\n    --ink: #E2DACB;\n    --ink-soft: #A79E8D;\n    --accent: #E29B4B;\n    --charge-tint: rgba(226, 155, 75, 0.14);\n    --charge-height: 18%;\n    --border: #9E9484;\n    --dither-fg: #E2DACB;\n    --dither-bg: #161513;\n  }\n\n  *, *::before, *::after { box-sizing: border-box; }\n\n  html, body {\n    margin: 0;\n    padding: 0;\n    max-width: 100%;\n    overflow-x: hidden;\n    background: var(--paper);\n    color: var(--ink);\n    font-family: 'Newsreader', Georgia, 'Times New Roman', serif;\n    font-size: 19px;\n    line-height: 1.62;\n    transition: background-color 0.25s ease, color 0.25s ease;\n  }\n\n  /* Live Solar Battery Backdrop Meter (inspired by Low-Tech Magazine Solar) */\n  .battery-backdrop {\n    position: fixed;\n    inset: 0;\n    pointer-events: none;\n    z-index: 0;\n    overflow: hidden;\n  }\n  .battery-fill {\n    position: absolute;\n    left: 0;\n    right: 0;\n    bottom: 0;\n    height: var(--charge-height);\n    background: var(--charge-tint);\n    border-top: 2px dashed var(--accent);\n    transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease;\n  }\n  .battery-level-tag {\n    position: absolute;\n    right: 12px;\n    top: 6px;\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 11px;\n    letter-spacing: 0.06em;\n    color: var(--accent);\n    text-transform: uppercase;\n  }\n\n  .page-wrap {\n    position: relative;\n    z-index: 1;\n    max-width: 820px;\n    margin: 0 auto;\n    padding: 0 16px 64px;\n  }\n\n  /* Solar Telemetry Control Banner */\n  .solar-banner {\n    margin: 14px 0 24px;\n    border: 2px solid var(--border);\n    background: var(--paper);\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 12px;\n  }\n\n  .solar-top {\n    display: flex;\n    flex-wrap: wrap;\n    align-items: center;\n    justify-content: space-between;\n    gap: 10px;\n    padding: 10px 12px;\n    border-bottom: 1px solid var(--border);\n    background: var(--paper-alt);\n  }\n\n  .solar-status {\n    display: flex;\n    align-items: center;\n    gap: 8px;\n    font-weight: 600;\n  }\n  .status-dot {\n    width: 10px;\n    height: 10px;\n    border: 1px solid var(--border);\n    background: var(--accent);\n    display: inline-block;\n  }\n\n  .solar-controls {\n    display: grid;\n    grid-template-columns: repeat(3, 1fr);\n    border-bottom: 1px solid var(--border);\n  }\n  @media (max-width: 520px) {\n    .solar-controls { grid-template-columns: 1fr; }\n  }\n\n  .solar-btn {\n    appearance: none;\n    border: 0;\n    border-right: 1px solid var(--border);\n    background: transparent;\n    color: var(--ink);\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 12px;\n    padding: 10px 12px;\n    min-height: 44px;\n    cursor: pointer;\n    text-align: left;\n    display: flex;\n    justify-content: space-between;\n    align-items: center;\n    gap: 8px;\n  }\n  .solar-btn:last-child { border-right: 0; }\n  @media (max-width: 520px) {\n    .solar-btn { border-right: 0; border-bottom: 1px solid var(--border); }\n    .solar-btn:last-child { border-bottom: 0; }\n  }\n  .solar-btn[aria-pressed=\"true\"] {\n    background: var(--ink);\n    color: var(--paper);\n    font-weight: 600;\n  }\n  .solar-btn:focus-visible {\n    outline: 2px solid var(--accent);\n    outline-offset: -2px;\n  }\n\n  .telemetry-strip {\n    display: grid;\n    grid-template-columns: repeat(2, 1fr);\n    gap: 8px 16px;\n    padding: 10px 12px;\n  }\n  @media (min-width: 640px) {\n    .telemetry-strip { grid-template-columns: repeat(4, 1fr); }\n  }\n  .telem-item span {\n    display: block;\n    font-size: 10px;\n    color: var(--ink-soft);\n    text-transform: uppercase;\n  }\n  .telem-item strong {\n    font-size: 13px;\n  }\n\n  /* Masthead */\n  .masthead {\n    border-top: 4px double var(--border);\n    border-bottom: 2px solid var(--border);\n    padding: 18px 0;\n    margin-bottom: 26px;\n    display: flex;\n    flex-wrap: wrap;\n    align-items: center;\n    justify-content: space-between;\n    gap: 14px;\n  }\n  .masthead-id {\n    display: flex;\n    align-items: center;\n    gap: 14px;\n  }\n  .masthead h1 {\n    margin: 0;\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: clamp(20px, 4vw, 28px);\n    letter-spacing: 0.08em;\n    text-transform: uppercase;\n    line-height: 1.1;\n  }\n  .masthead-sub {\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 12px;\n    color: var(--ink-soft);\n    margin-top: 4px;\n  }\n  .issue-meta {\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 12px;\n    text-align: right;\n  }\n  @media (max-width: 560px) {\n    .issue-meta { text-align: left; }\n  }\n\n  /* Article Typography */\n  .article-kicker {\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 12px;\n    text-transform: uppercase;\n    letter-spacing: 0.08em;\n    color: var(--accent);\n    margin: 0 0 8px;\n  }\n  .article-title {\n    font-size: clamp(28px, 5vw, 42px);\n    line-height: 1.14;\n    margin: 0 0 12px;\n    font-weight: 600;\n    letter-spacing: -0.01em;\n  }\n  .article-dek {\n    font-size: 20px;\n    font-style: italic;\n    color: var(--ink-soft);\n    margin: 0 0 22px;\n    border-left: 3px solid var(--accent);\n    padding-left: 14px;\n  }\n\n  .byline {\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 12px;\n    color: var(--ink-soft);\n    border-top: 1px solid var(--border);\n    border-bottom: 1px solid var(--border);\n    padding: 8px 0;\n    margin-bottom: 24px;\n    display: flex;\n    flex-wrap: wrap;\n    justify-content: space-between;\n    gap: 8px;\n  }\n\n  .prose p { margin: 0 0 18px; }\n  .prose h2 {\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 16px;\n    text-transform: uppercase;\n    letter-spacing: 0.05em;\n    margin: 30px 0 12px;\n    padding-bottom: 4px;\n    border-bottom: 1px solid var(--border);\n  }\n\n  /* Dithered Illustration Figures */\n  .dither-figure {\n    margin: 26px 0;\n    border: 1px solid var(--border);\n    background: var(--paper-alt);\n    padding: 12px;\n  }\n  .dither-toolbar {\n    display: flex;\n    flex-wrap: wrap;\n    justify-content: space-between;\n    align-items: center;\n    gap: 8px;\n    margin-bottom: 10px;\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 11px;\n  }\n  .dither-toggle {\n    appearance: none;\n    border: 1px solid var(--border);\n    background: var(--paper);\n    color: var(--ink);\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 11px;\n    padding: 6px 10px;\n    min-height: 44px;\n    cursor: pointer;\n  }\n  .dither-toggle:hover { background: var(--ink); color: var(--paper); }\n\n  .dither-canvas {\n    width: 100%;\n    height: auto;\n    display: block;\n    border: 1px solid var(--border);\n    image-rendering: pixelated;\n  }\n\n  .dither-figure figcaption {\n    margin-top: 10px;\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 12px;\n    line-height: 1.45;\n    color: var(--ink-soft);\n  }\n\n  /* Interactive Footnote Triggers & Popover */\n  .fn-ref {\n    appearance: none;\n    border: 1px solid var(--border);\n    background: var(--paper-alt);\n    color: var(--ink);\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 12px;\n    font-weight: 600;\n    padding: 2px 6px;\n    min-width: 30px;\n    min-height: 30px;\n    margin: 0 2px;\n    cursor: pointer;\n    vertical-align: baseline;\n    line-height: 1;\n  }\n  .fn-ref:hover, .fn-ref[aria-expanded=\"true\"] {\n    background: var(--accent);\n    color: #FFF;\n    border-color: var(--accent);\n  }\n\n  .fn-popover {\n    margin: 12px 0 18px;\n    padding: 12px 14px;\n    border: 2px solid var(--accent);\n    background: var(--paper-alt);\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 13px;\n    line-height: 1.5;\n    display: flex;\n    justify-content: space-between;\n    align-items: flex-start;\n    gap: 12px;\n  }\n  .fn-popover[hidden] { display: none; }\n  .fn-close {\n    appearance: none;\n    border: 1px solid var(--border);\n    background: var(--paper);\n    color: var(--ink);\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 12px;\n    min-width: 44px;\n    min-height: 44px;\n    cursor: pointer;\n    flex-shrink: 0;\n  }\n\n  /* Budget Comparison Table */\n  .table-wrap {\n    overflow-x: auto;\n    border: 1px solid var(--border);\n    margin: 20px 0;\n  }\n  table {\n    width: 100%;\n    border-collapse: collapse;\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 13px;\n    background: var(--paper);\n  }\n  th, td {\n    text-align: left;\n    padding: 10px 12px;\n    border-bottom: 1px solid var(--border);\n  }\n  th {\n    background: var(--paper-alt);\n    text-transform: uppercase;\n    font-size: 11px;\n  }\n\n  /* Footnotes Footer */\n  .footnotes {\n    margin-top: 34px;\n    padding-top: 16px;\n    border-top: 2px solid var(--border);\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 13px;\n  }\n  .footnotes ol {\n    padding-left: 20px;\n    margin: 10px 0 0;\n  }\n  .footnotes li { margin-bottom: 10px; }\n\n  .colophon {\n    margin-top: 32px;\n    padding: 14px;\n    border: 1px dashed var(--border);\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 12px;\n    color: var(--ink-soft);\n  }\n</style>\n</head>\n<body data-solar=\"sunny\">\n\n<!-- Live Solar Battery Backdrop -->\n<div class=\"battery-backdrop\" aria-hidden=\"true\">\n  <div class=\"battery-fill\" id=\"batteryFill\">\n    <span class=\"battery-level-tag\" id=\"batteryTag\">RESERVE 100%</span>\n  </div>\n</div>\n\n<div class=\"page-wrap\">\n\n  <!-- Solar Charge Simulator & Telemetry -->\n  <section class=\"solar-banner\" aria-label=\"Solar server battery simulator\">\n    <div class=\"solar-top\">\n      <div class=\"solar-status\">\n        <span class=\"status-dot\" aria-hidden=\"true\"></span>\n        <span id=\"solarHeadline\">SOLAR SERVER: SUNNY PEAK (100% CHARGE)</span>\n      </div>\n      <span id=\"solarNote\">14.2W PV IN &middot; BARCELONA NODE</span>\n    </div>\n\n    <div class=\"solar-controls\" role=\"group\" aria-label=\"Simulate solar weather\">\n      <button type=\"button\" class=\"solar-btn\" data-mode=\"sunny\" aria-pressed=\"true\">\n        <span>100% Sunny</span><span>14.2W</span>\n      </button>\n      <button type=\"button\" class=\"solar-btn\" data-mode=\"overcast\" aria-pressed=\"false\">\n        <span>55% Overcast</span><span>4.8W</span>\n      </button>\n      <button type=\"button\" class=\"solar-btn\" data-mode=\"night\" aria-pressed=\"false\">\n        <span>18% Low-Power Night</span><span>0.0W</span>\n      </button>\n    </div>\n\n    <div class=\"telemetry-strip\">\n      <div class=\"telem-item\"><span>Battery Reserve</span><strong id=\"tReserve\">38.4 hrs</strong></div>\n      <div class=\"telem-item\"><span>Page Transfer</span><strong id=\"tWeight\">14.6 KB</strong></div>\n      <div class=\"telem-item\"><span>Est. CO₂ / View</span><strong id=\"tCo2\">0.018 g</strong></div>\n      <div class=\"telem-item\"><span>Render Mode</span><strong id=\"tMode\">Full 1-Bit</strong></div>\n    </div>\n  </section>\n\n  <!-- Editorial Masthead -->\n  <header class=\"masthead\">\n    <div class=\"masthead-id\">\n      <!-- 1-Bit Halftone Sun SVG Emblem -->\n      <svg width=\"48\" height=\"48\" viewBox=\"0 0 48 48\" fill=\"none\" aria-hidden=\"true\">\n        <circle cx=\"24\" cy=\"24\" r=\"12\" stroke=\"currentColor\" stroke-width=\"2\"/>\n        <circle cx=\"24\" cy=\"24\" r=\"6\" fill=\"currentColor\"/>\n        <g stroke=\"currentColor\" stroke-width=\"2\" stroke-dasharray=\"2 2\">\n          <line x1=\"24\" y1=\"2\" x2=\"24\" y2=\"9\"/>\n          <line x1=\"24\" y1=\"39\" x2=\"24\" y2=\"46\"/>\n          <line x1=\"2\" y1=\"24\" x2=\"9\" y2=\"24\"/>\n          <line x1=\"39\" y1=\"24\" x2=\"46\" y2=\"24\"/>\n          <line x1=\"8\" y1=\"8\" x2=\"14\" y2=\"14\"/>\n          <line x1=\"34\" y1=\"34\" x2=\"40\" y2=\"40\"/>\n          <line x1=\"40\" y1=\"8\" x2=\"34\" y2=\"14\"/>\n          <line x1=\"14\" y1=\"34\" x2=\"8\" y2=\"40\"/>\n        </g>\n      </svg>\n      <div>\n        <h1>HELIOS MONOGRAPH</h1>\n        <div class=\"masthead-sub\">A 1-Bit Solar-Hosted Journal of Resilient Engineering</div>\n      </div>\n    </div>\n    <div class=\"issue-meta\">\n      ISSUE NO. 14 &middot; AUTUMN<br>\n      LAT 41.38&deg;N &middot; OFF-GRID\n    </div>\n  </header>\n\n  <main>\n    <p class=\"article-kicker\">Essay &middot; Intermittent Infrastructure</p>\n    <h2 class=\"article-title\">Designing Websites That Sleep With the Sun</h2>\n    <p class=\"article-dek\">\n      When a web server runs on a 50-watt balcony panel and a single LiFePO₄ cell, every kilobyte is measured in watt-hours—and 1-bit dithering becomes an architectural discipline.\n    </p>\n\n    <div class=\"byline\">\n      <span>By M. Soler &amp; K. Lindqvist</span>\n      <span>Reading time: 4 min &middot; Zero trackers</span>\n    </div>\n\n    <article class=\"prose\">\n      <p>\n        Modern web pages routinely ship three megabytes of uncompressed photography, web fonts, and telemetry scripts to display a few paragraphs of text.<button type=\"button\" class=\"fn-ref\" data-fn=\"1\" aria-expanded=\"false\" aria-controls=\"fnPopover\">[1]</button> On grid-connected cloud clusters, that excess is invisible; on a rooftop solar server during three consecutive days of November rain, it is the difference between staying online and browning out at dusk.\n      </p>\n\n      <div class=\"fn-popover\" id=\"fnPopover\" role=\"region\" aria-label=\"Footnote detail\" hidden>\n        <div id=\"fnPopoverText\"></div>\n        <button type=\"button\" class=\"fn-close\" id=\"fnClose\" aria-label=\"Close footnote\">&times;</button>\n      </div>\n\n      <p>\n        Rather than hiding the physical weather behind redundant diesel generators, a solar-hosted publication exposes its energy state directly in the interface. The rising tint behind this page represents the real-time state of charge of our charge controller.<button type=\"button\" class=\"fn-ref\" data-fn=\"2\" aria-expanded=\"false\" aria-controls=\"fnPopover\">[2]</button> Use the weather simulator above to see how typography, contrast, and dithering adapt as cloud cover thickens.\n      </p>\n\n      <!-- Live 1-Bit Dithered Canvas Figure 1 -->\n      <figure class=\"dither-figure\">\n        <div class=\"dither-toolbar\">\n          <span>FIG 01. BALCONY PV + MPPT CHARGE CONTROLLER</span>\n          <button type=\"button\" class=\"dither-toggle\" id=\"btnDitherAlgo\">Algo: Bayer 4&times;4</button>\n        </div>\n        <canvas class=\"dither-canvas\" id=\"ditherSolar\" width=\"480\" height=\"220\" aria-label=\"1-bit dithered technical diagram of a solar panel, battery bank, and low-power single-board server\"></canvas>\n        <figcaption>\n          Rendered live in 1-bit monochrome ink. Switching from 24-bit color photographs to ordered Bayer or Atkinson dithered plates cuts image transfer weight by up to 92% while preserving crisp mechanical legibility.\n        </figcaption>\n      </figure>\n\n      <h2>1. The Economics of Ordered 1-Bit Dithering</h2>\n      <p>\n        In 1984, Bill Atkinson designed a halftoning kernel for the original Macintosh that discarded a quarter of quantization error to preserve high-contrast edges in technical line art.<button type=\"button\" class=\"fn-ref\" data-fn=\"3\" aria-expanded=\"false\" aria-controls=\"fnPopover\">[3]</button> Paired with static HTML and system-first typography, 1-bit dithering allows rich diagrams to travel over 2G rural links and e-ink readers without layout shift.\n      </p>\n\n      <!-- Live 1-Bit Dithered Canvas Figure 2 -->\n      <figure class=\"dither-figure\">\n        <div class=\"dither-toolbar\">\n          <span>FIG 02. PASSIVE WIND-PUMPED CISTERN LOOP</span>\n          <span id=\"ditherDensity\">DENSITY: 100%</span>\n        </div>\n        <canvas class=\"dither-canvas\" id=\"ditherPump\" width=\"480\" height=\"200\" aria-label=\"1-bit dithered technical illustration of a wind turbine pumping water to an elevated cistern\"></canvas>\n        <figcaption>\n          Gravity storage mirrors battery storage: excess afternoon wind or sunlight is banked into potential energy for calm, overcast mornings.\n        </figcaption>\n      </figure>\n\n      <h2>2. Static Page Weight Budget</h2>\n      <p>\n        Below is the measured energy budget comparing a conventional editorial CMS against our static solar monograph.<button type=\"button\" class=\"fn-ref\" data-fn=\"4\" aria-expanded=\"false\" aria-controls=\"fnPopover\">[4]</button>\n      </p>\n\n      <div class=\"table-wrap\">\n        <table>\n          <thead>\n            <tr>\n              <th>Component</th>\n              <th>Typical News Site</th>\n              <th>Helios Monograph</th>\n              <th>Savings</th>\n            </tr>\n          </thead>\n          <tbody>\n            <tr>\n              <td>HTML + Inline CSS</td>\n              <td>420 KB</td>\n              <td>14.6 KB</td>\n              <td>-96.5%</td>\n            </tr>\n            <tr>\n              <td>Illustrations (2 plates)</td>\n              <td>1,840 KB</td>\n              <td>1-Bit Procedural</td>\n              <td>-99.2%</td>\n            </tr>\n            <tr>\n              <td>Client Scripts</td>\n              <td>910 KB</td>\n              <td>3.8 KB</td>\n              <td>-99.6%</td>\n            </tr>\n            <tr>\n              <td>Server Idle Draw</td>\n              <td>180 W (rack share)</td>\n              <td>1.9 W (ARM SBC)</td>\n              <td>-98.9%</td>\n            </tr>\n          </tbody>\n        </table>\n      </div>\n    </article>\n\n    <section class=\"footnotes\" aria-label=\"References\">\n      <strong>REFERENCES &amp; TECHNICAL NOTES</strong>\n      <ol>\n        <li id=\"fn-1\">HTTP Archive Web Almanac (2024): Median desktop page weight exceeds 2,500 KB, dominated by unoptimized hero images and third-party scripts.</li>\n        <li id=\"fn-2\">Our rooftop testbed pairs a 50W monocrystalline panel, a 10A MPPT controller, and a 12V 24Ah LiFePO₄ battery powering a passively cooled 1.9W ARM board.</li>\n        <li id=\"fn-3\">Atkinson dithering distributes 6/8 of quantization error to neighboring pixels (instead of 16/16 in Floyd-Steinberg), creating airy highlights ideal for newsprint aesthetics.</li>\n        <li id=\"fn-4\">Measurements recorded across 10,000 cold-cache page loads using an inline INA219 DC current sensor on the 5V server rail.</li>\n      </ol>\n    </section>\n\n    <footer class=\"colophon\">\n      COLOPHON: Served statically with zero external image requests. Switch solar modes above to test OLED low-power night contrast and battery-level telemetry.\n    </footer>\n  </main>\n</div>\n\n<script>\n(() => {\n  const MODES = {\n    sunny: {\n      headline: 'SOLAR SERVER: SUNNY PEAK (100% CHARGE)',\n      note: '14.2W PV IN · BARCELONA NODE',\n      tag: 'RESERVE 100%',\n      reserve: '38.4 hrs',\n      weight: '14.6 KB',\n      co2: '0.018 g',\n      mode: 'Full 1-Bit',\n      density: 'DENSITY: 100%',\n      fg: '#171614',\n      bg: '#F4EFE4',\n      bias: 0\n    },\n    overcast: {\n      headline: 'SOLAR SERVER: OVERCAST THROTTLE (55% CHARGE)',\n      note: '4.8W PV IN · CLOUD COVER 78%',\n      tag: 'RESERVE 55%',\n      reserve: '19.1 hrs',\n      weight: '14.6 KB',\n      co2: '0.019 g',\n      mode: 'Eco Halftone',\n      density: 'DENSITY: 82%',\n      fg: '#22211E',\n      bg: '#E9E4D8',\n      bias: 12\n    },\n    night: {\n      headline: 'SOLAR SERVER: LOW-POWER NIGHT (18% RESERVE)',\n      note: '0.0W PV IN · OLED DARK INK ACTIVE',\n      tag: 'RESERVE 18%',\n      reserve: '6.2 hrs',\n      weight: '11.2 KB',\n      co2: '0.012 g',\n      mode: 'OLED Sparse',\n      density: 'DENSITY: 64%',\n      fg: '#E2DACB',\n      bg: '#161513',\n      bias: 20\n    }\n  };\n\n  const FOOTNOTES = {\n    1: '[1] HTTP Archive Web Almanac: Median desktop page weight exceeds 2,500 KB, dominated by hero images and third-party scripts.',\n    2: '[2] Rooftop testbed: 50W monocrystalline panel + 10A MPPT controller + 12V 24Ah LiFePO₄ cell powering a 1.9W passively cooled ARM board.',\n    3: '[3] Bill Atkinson’s 1984 dither distributes 6/8 of quantization error, keeping technical schematics crisp and high-contrast.',\n    4: '[4] Measured across 10,000 cold-cache loads using an inline INA219 DC current sensor on the 5V rail.'\n  };\n\n  let currentMode = 'sunny';\n  let useAtkinson = false;\n\n  const BAYER4 = [\n    [0, 8, 2, 10],\n    [12, 4, 14, 6],\n    [3, 11, 1, 9],\n    [15, 7, 13, 5]\n  ];\n\n  function hexToRgb(hex) {\n    const n = parseInt(hex.slice(1), 16);\n    return [(n >> 16) & 255, (n >> 8) & 255, n & 255];\n  }\n\n  // Draw grayscale scene 1: Solar Panel + Sun + Battery + Server\n  function paintSolarScene(ctx, w, h) {\n    const sky = ctx.createLinearGradient(0, 0, 0, h);\n    sky.addColorStop(0, '#D8D8D8');\n    sky.addColorStop(0.65, '#F5F5F5');\n    sky.addColorStop(0.66, '#A8A8A8');\n    sky.addColorStop(1, '#707070');\n    ctx.fillStyle = sky;\n    ctx.fillRect(0, 0, w, h);\n\n    // Sun with radial glow\n    const sunGrad = ctx.createRadialGradient(86, 52, 8, 86, 52, 54);\n    sunGrad.addColorStop(0, '#FFFFFF');\n    sunGrad.addColorStop(0.45, '#E4E4E4');\n    sunGrad.addColorStop(1, 'rgba(220,220,220,0)');\n    ctx.fillStyle = sunGrad;\n    ctx.beginPath();\n    ctx.arc(86, 52, 54, 0, Math.PI * 2);\n    ctx.fill();\n    ctx.strokeStyle = '#222';\n    ctx.lineWidth = 2;\n    ctx.beginPath();\n    ctx.arc(86, 52, 18, 0, Math.PI * 2);\n    ctx.stroke();\n\n    // Solar Panel tilted array\n    ctx.save();\n    ctx.fillStyle = '#3A3A3A';\n    ctx.beginPath();\n    ctx.moveTo(140, 128);\n    ctx.lineTo(245, 74);\n    ctx.lineTo(295, 102);\n    ctx.lineTo(190, 156);\n    ctx.closePath();\n    ctx.fill();\n    ctx.strokeStyle = '#111';\n    ctx.lineWidth = 2;\n    ctx.stroke();\n    // Panel grid lines\n    ctx.strokeStyle = '#E0E0E0';\n    ctx.lineWidth = 1;\n    for (let i = 1; i < 4; i++) {\n      const t = i / 4;\n      ctx.beginPath();\n      ctx.moveTo(140 + (245 - 140) * t, 128 + (74 - 128) * t);\n      ctx.lineTo(190 + (295 - 190) * t, 156 + (102 - 156) * t);\n      ctx.stroke();\n    }\n    ctx.restore();\n\n    // Stand legs\n    ctx.strokeStyle = '#181818';\n    ctx.lineWidth = 4;\n    ctx.beginPath();\n    ctx.moveTo(185, 145); ctx.lineTo(175, 185);\n    ctx.moveTo(255, 118); ctx.lineTo(265, 185);\n    ctx.stroke();\n\n    // Conduit cable to Battery Box\n    ctx.strokeStyle = '#111';\n    ctx.lineWidth = 2;\n    ctx.beginPath();\n    ctx.moveTo(260, 152);\n    ctx.quadraticCurveTo(300, 182, 336, 152);\n    ctx.stroke();\n\n    // LiFePO4 Battery + SBC enclosure\n    ctx.fillStyle = '#555555';\n    ctx.fillRect(336, 104, 106, 78);\n    ctx.strokeStyle = '#111';\n    ctx.lineWidth = 2;\n    ctx.strokeRect(336, 104, 106, 78);\n    ctx.fillStyle = '#EAEAEA';\n    ctx.fillRect(348, 118, 42, 48);\n    ctx.fillStyle = '#222';\n    ctx.fillRect(354, 134, 30, 26);\n    // Vent slots on server side\n    for (let y = 122; y <= 162; y += 8) {\n      ctx.fillStyle = '#111';\n      ctx.fillRect(402, y, 28, 3);\n    }\n  }\n\n  // Draw grayscale scene 2: Windmill + Cistern\n  function paintPumpScene(ctx, w, h) {\n    const bg = ctx.createLinearGradient(0, 0, 0, h);\n    bg.addColorStop(0, '#E2E2E2');\n    bg.addColorStop(0.72, '#F7F7F7');\n    bg.addColorStop(0.73, '#989898');\n    bg.addColorStop(1, '#585858');\n    ctx.fillStyle = bg;\n    ctx.fillRect(0, 0, w, h);\n\n    // Lattice tower\n    ctx.strokeStyle = '#141414';\n    ctx.lineWidth = 2;\n    ctx.beginPath();\n    ctx.moveTo(118, 56); ctx.lineTo(94, 166);\n    ctx.moveTo(132, 56); ctx.lineTo(156, 166);\n    ctx.moveTo(106, 110); ctx.lineTo(144, 110);\n    ctx.moveTo(100, 140); ctx.lineTo(150, 140);\n    ctx.stroke();\n\n    // Rotor blades\n    const cx = 125, cy = 54;\n    for (let a = 0; a < 6; a++) {\n      const rad = (a * Math.PI) / 3;\n      ctx.fillStyle = a % 2 === 0 ? '#303030' : '#707070';\n      ctx.beginPath();\n      ctx.moveTo(cx, cy);\n      ctx.lineTo(cx + Math.cos(rad) * 44, cy + Math.sin(rad) * 44);\n      ctx.lineTo(cx + Math.cos(rad + 0.28) * 38, cy + Math.sin(rad + 0.28) * 38);\n      ctx.closePath();\n      ctx.fill();\n    }\n\n    // Pipe to elevated cistern\n    ctx.strokeStyle = '#111';\n    ctx.lineWidth = 4;\n    ctx.beginPath();\n    ctx.moveTo(125, 166);\n    ctx.lineTo(125, 180);\n    ctx.lineTo(310, 180);\n    ctx.lineTo(310, 74);\n    ctx.lineTo(340, 74);\n    ctx.stroke();\n\n    // Cistern drum with cylindrical shading\n    const tankGrad = ctx.createLinearGradient(334, 0, 426, 0);\n    tankGrad.addColorStop(0, '#333');\n    tankGrad.addColorStop(0.4, '#C8C8C8');\n    tankGrad.addColorStop(1, '#262626');\n    ctx.fillStyle = tankGrad;\n    ctx.fillRect(334, 62, 92, 82);\n    ctx.strokeStyle = '#111';\n    ctx.lineWidth = 2;\n    ctx.strokeRect(334, 62, 92, 82);\n    // Support stilts\n    ctx.fillStyle = '#222';\n    ctx.fillRect(344, 144, 8, 32);\n    ctx.fillRect(408, 144, 8, 32);\n  }\n\n  function applyDither(canvas, paintFn) {\n    const ctx = canvas.getContext('2d');\n    const w = canvas.width;\n    const h = canvas.height;\n    paintFn(ctx, w, h);\n\n    const img = ctx.getImageData(0, 0, w, h);\n    const data = img.data;\n    const lum = new Float32Array(w * h);\n    const cfg = MODES[currentMode];\n\n    for (let i = 0; i < w * h; i++) {\n      const r = data[i * 4];\n      const g = data[i * 4 + 1];\n      const b = data[i * 4 + 2];\n      lum[i] = 0.299 * r + 0.587 * g + 0.114 * b + cfg.bias;\n    }\n\n    const fg = hexToRgb(cfg.fg);\n    const bg = hexToRgb(cfg.bg);\n\n    if (!useAtkinson) {\n      // Ordered Bayer 4x4 1-bit dither\n      for (let y = 0; y < h; y++) {\n        for (let x = 0; x < w; x++) {\n          const threshold = ((BAYER4[y & 3][x & 3] + 0.5) / 16) * 255;\n          const isLight = lum[y * w + x] >= threshold;\n          const col = isLight ? bg : fg;\n          const idx = (y * w + x) * 4;\n          data[idx] = col[0];\n          data[idx + 1] = col[1];\n          data[idx + 2] = col[2];\n          data[idx + 3] = 255;\n        }\n      }\n    } else {\n      // Bill Atkinson 1-bit error diffusion\n      for (let y = 0; y < h; y++) {\n        for (let x = 0; x < w; x++) {\n          const p = y * w + x;\n          const oldVal = lum[p];\n          const newVal = oldVal >= 128 ? 255 : 0;\n          const err = (oldVal - newVal) / 8;\n          const col = newVal === 255 ? bg : fg;\n          const idx = p * 4;\n          data[idx] = col[0];\n          data[idx + 1] = col[1];\n          data[idx + 2] = col[2];\n          data[idx + 3] = 255;\n\n          if (x + 1 < w) lum[p + 1] += err;\n          if (x + 2 < w) lum[p + 2] += err;\n          if (y + 1 < h) {\n            if (x > 0) lum[p + w - 1] += err;\n            lum[p + w] += err;\n            if (x + 1 < w) lum[p + w + 1] += err;\n          }\n          if (y + 2 < h) lum[p + w * 2] += err;\n        }\n      }\n    }\n    ctx.putImageData(img, 0, 0);\n  }\n\n  function renderAllDithers() {\n    applyDither(document.getElementById('ditherSolar'), paintSolarScene);\n    applyDither(document.getElementById('ditherPump'), paintPumpScene);\n  }\n\n  function setSolarMode(mode) {\n    currentMode = mode;\n    const cfg = MODES[mode];\n    document.body.setAttribute('data-solar', mode);\n    document.getElementById('solarHeadline').textContent = cfg.headline;\n    document.getElementById('solarNote').textContent = cfg.note;\n    document.getElementById('batteryTag').textContent = cfg.tag;\n    document.getElementById('tReserve').textContent = cfg.reserve;\n    document.getElementById('tWeight').textContent = cfg.weight;\n    document.getElementById('tCo2').textContent = cfg.co2;\n    document.getElementById('tMode').textContent = cfg.mode;\n    document.getElementById('ditherDensity').textContent = cfg.density;\n\n    document.querySelectorAll('.solar-btn').forEach(btn => {\n      btn.setAttribute('aria-pressed', String(btn.dataset.mode === mode));\n    });\n    renderAllDithers();\n  }\n\n  document.querySelectorAll('.solar-btn').forEach(btn => {\n    btn.addEventListener('click', () => setSolarMode(btn.dataset.mode));\n  });\n\n  const btnDitherAlgo = document.getElementById('btnDitherAlgo');\n  btnDitherAlgo.addEventListener('click', () => {\n    useAtkinson = !useAtkinson;\n    btnDitherAlgo.textContent = `Algo: ${useAtkinson ? 'Atkinson' : 'Bayer 4×4'}`;\n    renderAllDithers();\n  });\n\n  // Interactive Footnote Popover\n  const fnPopover = document.getElementById('fnPopover');\n  const fnPopoverText = document.getElementById('fnPopoverText');\n  let openFn = null;\n\n  document.querySelectorAll('.fn-ref').forEach(btn => {\n    btn.addEventListener('click', () => {\n      const id = btn.dataset.fn;\n      if (openFn === id && !fnPopover.hidden) {\n        fnPopover.hidden = true;\n        btn.setAttribute('aria-expanded', 'false');\n        openFn = null;\n        return;\n      }\n      document.querySelectorAll('.fn-ref').forEach(b => b.setAttribute('aria-expanded', 'false'));\n      btn.setAttribute('aria-expanded', 'true');\n      fnPopoverText.textContent = FOOTNOTES[id];\n      fnPopover.hidden = false;\n      openFn = id;\n      btn.closest('p').insertAdjacentElement('afterend', fnPopover);\n    });\n  });\n\n  document.getElementById('fnClose').addEventListener('click', () => {\n    fnPopover.hidden = true;\n    document.querySelectorAll('.fn-ref').forEach(b => b.setAttribute('aria-expanded', 'false'));\n    openFn = null;\n  });\n\n  renderAllDithers();\n})();\n</script>\n</body>\n</html>\n"
}
