{
  "id": 5,
  "slug": "typotheque-specimen",
  "name": "Typotheque Specimen Sheet",
  "kind": "style",
  "family": "Typography & Swiss",
  "sourceSite": {
    "name": "Typotheque",
    "url": "https://www.typotheque.com",
    "verifiedStatus": 200
  },
  "tagline": "Swiss drafting-sheet clarity with live interactive type waterfalls, metric baseline overlays, and vermilion accents.",
  "whyUnique": "Turns typography itself into an interactive instrument: crisp technical drafting grids, editable live specimen rows, toggleable typographic metric guides (cap-height, x-height, baseline), and OpenType feature switches.",
  "theme": "light",
  "mobileStrength": "high",
  "tags": [
    "type-foundry",
    "swiss-grid",
    "specimen",
    "typography",
    "interactive-tester",
    "drafting"
  ],
  "bestFor": [
    "Independent type foundries",
    "Design systems & brand guidelines",
    "Editorial tooling & documentation",
    "Typographic exhibitions"
  ],
  "palette": [
    {
      "role": "canvas",
      "hex": "#F7F8FA",
      "name": "Drafting Sheet"
    },
    {
      "role": "surface",
      "hex": "#ECEEF2",
      "name": "Specimen Tray"
    },
    {
      "role": "ink",
      "hex": "#111318",
      "name": "Technical Ink"
    },
    {
      "role": "accent",
      "hex": "#E03A2F",
      "name": "Vermilion Guide"
    },
    {
      "role": "muted",
      "hex": "#5E6470",
      "name": "Metric Gray"
    }
  ],
  "typography": {
    "display": "Syne, Helvetica Neue, sans-serif",
    "body": "Plus Jakarta Sans, -apple-system, sans-serif",
    "mono": "IBM Plex Mono, ui-monospace, monospace",
    "googleFontsUrl": "https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Syne:wght@600;700;800&display=swap",
    "scaleNotes": "Multi-script specimen waterfall from 14px to 88px with visible pixel/em readouts and monospace technical metadata."
  },
  "layoutNotes": "Strict 1px drafting-grid header, sticky specimen control bar (size, tracking, leading, metric-lines toggle, OpenType feature pills), full-width editable type waterfall, and a character-set glyph inspector grid.",
  "interactionNotes": "Direct contenteditable specimen testing, real-time font-size and letter-spacing sliders, toggleable vermilion baseline/x-height guide overlay, and clickable glyph cells showing Unicode codepoints.",
  "mobileNotes": "Control bar wraps cleanly into two ergonomic rows with >=44px touch sliders and toggle buttons; glyph inspector adapts from 12 columns to 6 columns on 390px screens without clipping.",
  "agentGuardrails": {
    "do": [
      "Expose real typographic metadata (weight, tracking, Unicode, metrics) in clean monospace",
      "Use Vermilion exclusively for metric guide lines, active feature states, and technical callouts",
      "Keep specimen testing live and directly editable on the page"
    ],
    "dont": [
      "Do not obscure type specimens behind marketing illustrations or heavy shadows",
      "Do not lock specimen copy to non-editable static images"
    ]
  },
  "demoFile": "demos/typotheque-specimen.html",
  "thumbDesktop": "thumbs/typotheque-specimen-desktop.webp",
  "thumbMobile": "thumbs/typotheque-specimen-mobile.webp",
  "urls": {
    "page": "https://templates.michaelpitts.net/t/typotheque-specimen",
    "markdown": "https://templates.michaelpitts.net/t/typotheque-specimen.md",
    "api": "https://templates.michaelpitts.net/api/templates/typotheque-specimen",
    "demo": "https://templates.michaelpitts.net/demos/typotheque-specimen.html",
    "thumbDesktop": "https://templates.michaelpitts.net/thumbs/typotheque-specimen-desktop.webp",
    "thumbMobile": "https://templates.michaelpitts.net/thumbs/typotheque-specimen-mobile.webp"
  },
  "agentPrompt": "Design & build using template #005 \"Typotheque Specimen Sheet\" (style / Typography & Swiss, light theme).\nFull AI blueprint & standalone starter code: https://templates.michaelpitts.net/t/typotheque-specimen.md\nLive demo: https://templates.michaelpitts.net/demos/typotheque-specimen.html\nReal-world inspiration: Typotheque (https://www.typotheque.com)\n\nCore aesthetic: Turns typography itself into an interactive instrument: crisp technical drafting grids, editable live specimen rows, toggleable typographic metric guides (cap-height, x-height, baseline), and OpenType feature switches.\nPalette: canvas: #F7F8FA (Drafting Sheet), surface: #ECEEF2 (Specimen Tray), ink: #111318 (Technical Ink), accent: #E03A2F (Vermilion Guide), muted: #5E6470 (Metric Gray)\nTypography: Display=\"Syne, Helvetica Neue, sans-serif\", Body=\"Plus Jakarta Sans, -apple-system, sans-serif\", Mono=\"IBM Plex Mono, ui-monospace, monospace\"\nLayout: Strict 1px drafting-grid header, sticky specimen control bar (size, tracking, leading, metric-lines toggle, OpenType feature pills), full-width editable type waterfall, and a character-set glyph inspector grid.\nInteractions: Direct contenteditable specimen testing, real-time font-size and letter-spacing sliders, toggleable vermilion baseline/x-height guide overlay, and clickable glyph cells showing Unicode codepoints.\nMobile: Control bar wraps cleanly into two ergonomic rows with >=44px touch sliders and toggle buttons; glyph inspector adapts from 12 columns to 6 columns on 390px screens without clipping.\n\nGuardrails:\n- DO: Expose real typographic metadata (weight, tracking, Unicode, metrics) in clean monospace\n- DO: Use Vermilion exclusively for metric guide lines, active feature states, and technical callouts\n- DO: Keep specimen testing live and directly editable on the page\n- DON'T: Do not obscure type specimens behind marketing illustrations or heavy shadows\n- DON'T: Do not lock specimen copy to non-editable static images",
  "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>HELVETIA SPECIMEN — Interactive Foundry Sheet</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;500&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Syne:wght@600;700;800&display=swap\" rel=\"stylesheet\">\n  <style>\n    :root {\n      --canvas: #F7F8FA;\n      --surface: #ECEEF2;\n      --ink: #111318;\n      --accent: #E03A2F;\n      --muted: #5E6470;\n      --grid: #D5D9E2;\n    }\n\n    *, *::before, *::after { box-sizing: border-box; }\n\n    html, body {\n      margin: 0;\n      padding: 0;\n      background: var(--canvas);\n      color: var(--ink);\n      font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;\n      font-size: 15px;\n      line-height: 1.5;\n      overflow-x: hidden;\n    }\n\n    button {\n      font-family: inherit;\n      background: none;\n      border: none;\n      color: inherit;\n      cursor: pointer;\n    }\n\n    /* Drafting Sheet Header */\n    .draft-header {\n      border-bottom: 1px solid var(--ink);\n      background: var(--canvas);\n    }\n\n    .header-inner {\n      max-width: 1240px;\n      margin: 0 auto;\n      padding: 14px 20px;\n      display: flex;\n      align-items: center;\n      justify-content: space-between;\n      gap: 16px;\n      flex-wrap: wrap;\n    }\n\n    .foundry-id {\n      display: flex;\n      align-items: center;\n      gap: 12px;\n    }\n\n    .crosshair-mark {\n      width: 28px;\n      height: 28px;\n      flex-shrink: 0;\n    }\n\n    .foundry-name {\n      font-family: 'Syne', sans-serif;\n      font-weight: 800;\n      font-size: 18px;\n      letter-spacing: 0.04em;\n      text-transform: uppercase;\n      margin: 0;\n    }\n\n    .spec-badge {\n      font-family: 'IBM Plex Mono', monospace;\n      font-size: 11px;\n      color: var(--muted);\n      border: 1px solid var(--grid);\n      padding: 4px 8px;\n      background: var(--surface);\n    }\n\n    .header-nav {\n      display: flex;\n      align-items: center;\n      gap: 6px;\n    }\n\n    .header-nav a, .header-nav button {\n      min-height: 44px;\n      padding: 0 12px;\n      display: inline-flex;\n      align-items: center;\n      font-family: 'IBM Plex Mono', monospace;\n      font-size: 11px;\n      text-transform: uppercase;\n      letter-spacing: 0.08em;\n      color: var(--muted);\n      text-decoration: none;\n    }\n\n    .header-nav a:hover, .header-nav button:hover { color: var(--accent); }\n\n    .mobile-btn {\n      display: none;\n      min-height: 44px;\n      padding: 0 12px;\n      border: 1px solid var(--ink);\n      font-family: 'IBM Plex Mono', monospace;\n      font-size: 11px;\n      text-transform: uppercase;\n    }\n\n    /* Main Sheet */\n    .sheet {\n      max-width: 1240px;\n      margin: 0 auto;\n      padding: 28px 20px 64px;\n    }\n\n    /* Specimen Hero Banner */\n    .specimen-intro {\n      display: grid;\n      grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);\n      gap: 28px;\n      padding-bottom: 28px;\n      border-bottom: 1px solid var(--grid);\n      align-items: end;\n    }\n\n    .kicker {\n      font-family: 'IBM Plex Mono', monospace;\n      font-size: 11px;\n      letter-spacing: 0.12em;\n      text-transform: uppercase;\n      color: var(--accent);\n      margin-bottom: 8px;\n      display: block;\n    }\n\n    .specimen-intro h1 {\n      font-family: 'Syne', sans-serif;\n      font-weight: 800;\n      font-size: clamp(2.1rem, 4.6vw, 3.6rem);\n      line-height: 1.02;\n      letter-spacing: -0.02em;\n      margin: 0;\n    }\n\n    .meta-specs {\n      display: grid;\n      grid-template-columns: repeat(2, 1fr);\n      border-top: 1px solid var(--ink);\n      border-left: 1px solid var(--grid);\n    }\n\n    .meta-cell {\n      padding: 10px 12px;\n      border-right: 1px solid var(--grid);\n      border-bottom: 1px solid var(--grid);\n      font-family: 'IBM Plex Mono', monospace;\n      font-size: 11px;\n    }\n\n    .meta-cell span {\n      display: block;\n      color: var(--muted);\n      font-size: 10px;\n      text-transform: uppercase;\n      margin-bottom: 2px;\n    }\n\n    /* Instrument Control Bar */\n    .controls-panel {\n      margin: 24px 0;\n      background: var(--surface);\n      border: 1px solid var(--grid);\n      padding: 16px;\n      display: grid;\n      grid-template-columns: repeat(3, minmax(0, 1fr)) auto;\n      gap: 16px;\n      align-items: center;\n    }\n\n    .slider-group {\n      display: flex;\n      flex-direction: column;\n      gap: 6px;\n    }\n\n    .slider-label {\n      display: flex;\n      justify-content: space-between;\n      font-family: 'IBM Plex Mono', monospace;\n      font-size: 11px;\n      text-transform: uppercase;\n      color: var(--muted);\n    }\n\n    .slider-label strong { color: var(--ink); }\n\n    input[type=\"range\"] {\n      width: 100%;\n      accent-color: var(--accent);\n      height: 24px;\n      cursor: pointer;\n    }\n\n    .toggle-group {\n      display: flex;\n      flex-wrap: wrap;\n      gap: 8px;\n    }\n\n    .ot-pill {\n      min-height: 44px;\n      padding: 0 12px;\n      border: 1px solid var(--ink);\n      background: var(--canvas);\n      font-family: 'IBM Plex Mono', monospace;\n      font-size: 11px;\n      text-transform: uppercase;\n      letter-spacing: 0.06em;\n      transition: background 0.15s, color 0.15s;\n    }\n\n    .ot-pill.active {\n      background: var(--accent);\n      border-color: var(--accent);\n      color: #FFFFFF;\n    }\n\n    /* Live Editable Specimen Waterfall */\n    .waterfall {\n      border-top: 1px solid var(--ink);\n    }\n\n    .specimen-row {\n      padding: 20px 0 24px;\n      border-bottom: 1px solid var(--grid);\n      position: relative;\n    }\n\n    .row-meta {\n      display: flex;\n      justify-content: space-between;\n      font-family: 'IBM Plex Mono', monospace;\n      font-size: 11px;\n      color: var(--muted);\n      margin-bottom: 10px;\n      gap: 12px;\n      flex-wrap: wrap;\n    }\n\n    .specimen-stage {\n      position: relative;\n      padding: 6px 0;\n    }\n\n    .specimen-editable {\n      outline: none;\n      margin: 0;\n      word-break: break-word;\n      position: relative;\n      z-index: 2;\n      transition: letter-spacing 0.08s;\n    }\n\n    .specimen-editable:focus {\n      background: rgba(224, 58, 47, 0.04);\n    }\n\n    /* Vermilion Metric Guide Overlay */\n    .metric-lines {\n      position: absolute;\n      inset: 0;\n      pointer-events: none;\n      display: none;\n      z-index: 1;\n    }\n\n    .show-metrics .metric-lines { display: block; }\n\n    .m-line {\n      position: absolute;\n      left: 0;\n      right: 0;\n      border-top: 1px dashed rgba(224, 58, 47, 0.65);\n      font-family: 'IBM Plex Mono', monospace;\n      font-size: 9px;\n      color: var(--accent);\n    }\n\n    .m-cap { top: 18%; }\n    .m-x { top: 44%; border-top-style: dotted; }\n    .m-base { bottom: 20%; border-top-style: solid; }\n\n    .m-line span {\n      position: absolute;\n      right: 0;\n      top: -12px;\n      background: var(--canvas);\n      padding: 0 3px;\n    }\n\n    /* Interactive Glyph Inspector Section */\n    .glyph-section {\n      margin-top: 44px;\n      display: grid;\n      grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr);\n      gap: 28px;\n      align-items: start;\n    }\n\n    .glyph-loupe {\n      background: var(--surface);\n      border: 1px solid var(--ink);\n      padding: 20px;\n    }\n\n    .loupe-stage {\n      position: relative;\n      height: 220px;\n      background: var(--canvas);\n      border: 1px solid var(--grid);\n      display: flex;\n      align-items: center;\n      justify-content: center;\n      margin-bottom: 16px;\n      overflow: hidden;\n    }\n\n    .loupe-char {\n      font-family: 'Syne', sans-serif;\n      font-weight: 700;\n      font-size: 136px;\n      line-height: 1;\n      z-index: 2;\n    }\n\n    .loupe-guides {\n      position: absolute;\n      inset: 0;\n      width: 100%;\n      height: 100%;\n      pointer-events: none;\n    }\n\n    .loupe-readout {\n      display: grid;\n      grid-template-columns: 1fr 1fr;\n      gap: 10px;\n      font-family: 'IBM Plex Mono', monospace;\n      font-size: 11px;\n    }\n\n    .loupe-readout div {\n      background: var(--canvas);\n      border: 1px solid var(--grid);\n      padding: 8px 10px;\n    }\n\n    .loupe-readout span {\n      display: block;\n      color: var(--muted);\n      font-size: 10px;\n    }\n\n    .glyph-grid {\n      display: grid;\n      grid-template-columns: repeat(8, minmax(0, 1fr));\n      border-top: 1px solid var(--grid);\n      border-left: 1px solid var(--grid);\n    }\n\n    .glyph-cell {\n      min-height: 52px;\n      border-right: 1px solid var(--grid);\n      border-bottom: 1px solid var(--grid);\n      background: var(--canvas);\n      font-family: 'Syne', sans-serif;\n      font-size: 20px;\n      font-weight: 600;\n      display: flex;\n      align-items: center;\n      justify-content: center;\n      transition: background 0.12s, color 0.12s;\n    }\n\n    .glyph-cell:hover { background: var(--surface); }\n    .glyph-cell.active {\n      background: var(--accent);\n      color: #FFFFFF;\n    }\n\n    @media (max-width: 960px) {\n      .specimen-intro, .glyph-section { grid-template-columns: 1fr; }\n      .controls-panel { grid-template-columns: 1fr 1fr; }\n      .toggle-group { grid-column: 1 / -1; }\n    }\n\n    @media (max-width: 640px) {\n      .sheet { padding: 20px 16px 48px; }\n      .controls-panel { grid-template-columns: 1fr; }\n      .glyph-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }\n      .mobile-btn { display: inline-flex; align-items: center; }\n      .header-nav {\n        display: none;\n        width: 100%;\n        flex-direction: column;\n        align-items: stretch;\n        border-top: 1px solid var(--grid);\n        padding-top: 8px;\n      }\n      .header-nav.open { display: flex; }\n    }\n  </style>\n</head>\n<body>\n  <header class=\"draft-header\">\n    <div class=\"header-inner\">\n      <div class=\"foundry-id\">\n        <svg class=\"crosshair-mark\" viewBox=\"0 0 28 28\" aria-hidden=\"true\">\n          <rect x=\"1\" y=\"1\" width=\"26\" height=\"26\" fill=\"none\" stroke=\"#111318\" stroke-width=\"1.5\"/>\n          <line x1=\"14\" y1=\"0\" x2=\"14\" y2=\"28\" stroke=\"#E03A2F\" stroke-width=\"1.2\"/>\n          <line x1=\"0\" y1=\"14\" x2=\"28\" y2=\"14\" stroke=\"#E03A2F\" stroke-width=\"1.2\"/>\n          <circle cx=\"14\" cy=\"14\" r=\"5\" fill=\"none\" stroke=\"#111318\" stroke-width=\"1.4\"/>\n        </svg>\n        <h2 class=\"foundry-name\">Atelier Nord Type</h2>\n        <span class=\"spec-badge\">SPECIMEN v2.4</span>\n      </div>\n\n      <button class=\"mobile-btn\" id=\"mobileBtn\" aria-expanded=\"false\">Index</button>\n      <nav class=\"header-nav\" id=\"headerNav\" aria-label=\"Specimen sections\">\n        <a href=\"#waterfall\">Live Waterfall</a>\n        <a href=\"#glyphs\">Glyph Inspector</a>\n        <button id=\"resetSpecimenBtn\">Reset Controls</button>\n      </nav>\n    </div>\n  </header>\n\n  <main class=\"sheet\">\n    <section class=\"specimen-intro\">\n      <div>\n        <span class=\"kicker\">Multi-Script Editorial &amp; Display Specimen</span>\n        <h1>Syne &amp; Jakarta Technical System</h1>\n      </div>\n      <div class=\"meta-specs\">\n        <div class=\"meta-cell\"><span>Glyph Set</span>842 Glyphs · Latin Ext</div>\n        <div class=\"meta-cell\"><span>OpenType</span>smcp, tnum, liga, ss01</div>\n        <div class=\"meta-cell\"><span>Optical Grid</span>1000 UPM · 720 Cap</div>\n        <div class=\"meta-cell\"><span>Release</span>The Hague · 2026</div>\n      </div>\n    </section>\n\n    <section class=\"controls-panel\" aria-label=\"Interactive type tester controls\">\n      <div class=\"slider-group\">\n        <label class=\"slider-label\" for=\"sizeSlider\"><span>Display Size</span><strong id=\"sizeVal\">52px</strong></label>\n        <input type=\"range\" id=\"sizeSlider\" min=\"24\" max=\"84\" value=\"52\">\n      </div>\n      <div class=\"slider-group\">\n        <label class=\"slider-label\" for=\"trackSlider\"><span>Tracking</span><strong id=\"trackVal\">-0.02em</strong></label>\n        <input type=\"range\" id=\"trackSlider\" min=\"-6\" max=\"18\" value=\"-2\">\n      </div>\n      <div class=\"slider-group\">\n        <label class=\"slider-label\" for=\"leadSlider\"><span>Line Height</span><strong id=\"leadVal\">1.12</strong></label>\n        <input type=\"range\" id=\"leadSlider\" min=\"95\" max=\"165\" value=\"112\">\n      </div>\n      <div class=\"toggle-group\">\n        <button class=\"ot-pill active\" id=\"metricsBtn\" aria-pressed=\"true\">Metric Guides</button>\n        <button class=\"ot-pill\" id=\"capsBtn\" aria-pressed=\"false\">Uppercase</button>\n        <button class=\"ot-pill\" id=\"monoNumBtn\" aria-pressed=\"false\">Tabular Figs</button>\n      </div>\n    </section>\n\n    <section class=\"waterfall show-metrics\" id=\"waterfall\" aria-label=\"Editable type waterfall\">\n      <div class=\"specimen-row\">\n        <div class=\"row-meta\">\n          <span>01 · SYNE EXTRABOLD 800 · CLICK TO TYPE LIVE</span>\n          <span id=\"row1Readout\">52px / -0.02em</span>\n        </div>\n        <div class=\"specimen-stage\">\n          <div class=\"metric-lines\" aria-hidden=\"true\">\n            <div class=\"m-line m-cap\"><span>CAP 720</span></div>\n            <div class=\"m-line m-x\"><span>X-HT 512</span></div>\n            <div class=\"m-line m-base\"><span>BASE 0</span></div>\n          </div>\n          <p class=\"specimen-editable live-display\" contenteditable=\"true\" spellcheck=\"false\" style=\"font-family:'Syne',sans-serif;font-weight:800;font-size:52px;letter-spacing:-0.02em;line-height:1.12;\">\n            Architectural Typography &amp; Precision Grids 1958–2026\n          </p>\n        </div>\n      </div>\n\n      <div class=\"specimen-row\">\n        <div class=\"row-meta\">\n          <span>02 · PLUS JAKARTA SANS SEMIBOLD 600 · EDITORIAL DECK</span>\n          <span>26px / 1.35</span>\n        </div>\n        <div class=\"specimen-stage\">\n          <div class=\"metric-lines\" aria-hidden=\"true\">\n            <div class=\"m-line m-cap\"><span>CAP</span></div>\n            <div class=\"m-line m-base\"><span>BASE</span></div>\n          </div>\n          <p class=\"specimen-editable live-body\" contenteditable=\"true\" spellcheck=\"false\" style=\"font-family:'Plus Jakarta Sans',sans-serif;font-weight:600;font-size:26px;line-height:1.35;\">\n            Hamburgefonstiv 0123456789 — Designed for bilingual signage, archival catalogues, and digital instruments.\n          </p>\n        </div>\n      </div>\n\n      <div class=\"specimen-row\">\n        <div class=\"row-meta\">\n          <span>03 · IBM PLEX MONO REGULAR 400 · TABULAR METADATA</span>\n          <span>16px / 1.60</span>\n        </div>\n        <div class=\"specimen-stage\">\n          <p class=\"specimen-editable live-body\" contenteditable=\"true\" spellcheck=\"false\" style=\"font-family:'IBM Plex Mono',monospace;font-size:16px;line-height:1.6;\">\n            01.04.2026 | ZURICH → DEN HAAG | U+00C6 U+00DF U+2192 | 48.20 CHF / 1,024.50 EUR\n          </p>\n        </div>\n      </div>\n    </section>\n\n    <section class=\"glyph-section\" id=\"glyphs\" aria-label=\"Character glyph map and loupe\">\n      <div class=\"glyph-loupe\">\n        <div class=\"kicker\" style=\"margin-bottom:10px;\">Glyph Blueprint Loupe</div>\n        <div class=\"loupe-stage\">\n          <svg class=\"loupe-guides\" viewBox=\"0 0 320 220\" preserveAspectRatio=\"none\" aria-hidden=\"true\">\n            <line x1=\"0\" y1=\"46\" x2=\"320\" y2=\"46\" stroke=\"#E03A2F\" stroke-width=\"1\" stroke-dasharray=\"4 4\"/>\n            <line x1=\"0\" y1=\"98\" x2=\"320\" y2=\"98\" stroke=\"#E03A2F\" stroke-width=\"0.8\" stroke-dasharray=\"2 3\"/>\n            <line x1=\"0\" y1=\"168\" x2=\"320\" y2=\"168\" stroke=\"#E03A2F\" stroke-width=\"1.2\"/>\n            <line x1=\"82\" y1=\"0\" x2=\"82\" y2=\"220\" stroke=\"#D5D9E2\" stroke-width=\"1\"/>\n            <line x1=\"238\" y1=\"0\" x2=\"238\" y2=\"220\" stroke=\"#D5D9E2\" stroke-width=\"1\"/>\n          </svg>\n          <span class=\"loupe-char\" id=\"loupeChar\">Å</span>\n        </div>\n        <div class=\"loupe-readout\">\n          <div><span>UNICODE</span><strong id=\"loupeCode\">U+00C5</strong></div>\n          <div><span>ADVANCE WIDTH</span><strong id=\"loupeWidth\">742 UPM</strong></div>\n          <div><span>SIDEBEARINGS</span><strong id=\"loupeSide\">L 34 / R 34</strong></div>\n          <div><span>CATEGORY</span><strong id=\"loupeCat\">LATIN EXT</strong></div>\n        </div>\n      </div>\n\n      <div>\n        <div class=\"kicker\" style=\"margin-bottom:10px;\">Select Any Glyph to Inspect Metrics</div>\n        <div class=\"glyph-grid\" id=\"glyphGrid\"></div>\n      </div>\n    </section>\n  </main>\n\n  <script>\n    const GLYPHS = [\n      'A','B','C','D','E','F','G','H',\n      'K','M','N','Q','R','S','W','Z',\n      'a','g','k','y','Å','Æ','Ø','ß',\n      '&','§','¶','©','0','3','7','→'\n    ];\n\n    const sizeSlider = document.getElementById('sizeSlider');\n    const trackSlider = document.getElementById('trackSlider');\n    const leadSlider = document.getElementById('leadSlider');\n    const liveDisplay = document.querySelector('.live-display');\n    const waterfall = document.getElementById('waterfall');\n    const metricsBtn = document.getElementById('metricsBtn');\n    const capsBtn = document.getElementById('capsBtn');\n    const monoNumBtn = document.getElementById('monoNumBtn');\n\n    function syncSpecimen() {\n      const sz = sizeSlider.value;\n      const tr = (trackSlider.value / 100).toFixed(2);\n      const ld = (leadSlider.value / 100).toFixed(2);\n      document.getElementById('sizeVal').textContent = `${sz}px`;\n      document.getElementById('trackVal').textContent = `${tr}em`;\n      document.getElementById('leadVal').textContent = ld;\n      document.getElementById('row1Readout').textContent = `${sz}px / ${tr}em`;\n      liveDisplay.style.fontSize = `${sz}px`;\n      liveDisplay.style.letterSpacing = `${tr}em`;\n      liveDisplay.style.lineHeight = ld;\n    }\n\n    [sizeSlider, trackSlider, leadSlider].forEach(el => el.addEventListener('input', syncSpecimen));\n\n    metricsBtn.addEventListener('click', () => {\n      const on = waterfall.classList.toggle('show-metrics');\n      metricsBtn.classList.toggle('active', on);\n      metricsBtn.setAttribute('aria-pressed', String(on));\n    });\n\n    capsBtn.addEventListener('click', () => {\n      const on = capsBtn.classList.toggle('active');\n      capsBtn.setAttribute('aria-pressed', String(on));\n      document.querySelectorAll('.specimen-editable').forEach(el => {\n        el.style.textTransform = on ? 'uppercase' : 'none';\n      });\n    });\n\n    monoNumBtn.addEventListener('click', () => {\n      const on = monoNumBtn.classList.toggle('active');\n      monoNumBtn.setAttribute('aria-pressed', String(on));\n      document.querySelectorAll('.specimen-editable').forEach(el => {\n        el.style.fontVariantNumeric = on ? 'tabular-nums slashed-zero' : 'normal';\n      });\n    });\n\n    document.getElementById('resetSpecimenBtn').addEventListener('click', () => {\n      sizeSlider.value = 52;\n      trackSlider.value = -2;\n      leadSlider.value = 112;\n      syncSpecimen();\n    });\n\n    const glyphGrid = document.getElementById('glyphGrid');\n    function selectGlyph(ch) {\n      const cp = ch.codePointAt(0).toString(16).toUpperCase().padStart(4, '0');\n      const width = 540 + (ch.codePointAt(0) % 260);\n      const sb = 22 + (ch.codePointAt(0) % 34);\n      const cat = /[0-9]/.test(ch) ? 'NUMERAL' : /[A-Za-z]/.test(ch) ? 'BASIC LATIN' : ch.codePointAt(0) > 127 ? 'LATIN EXT / SYM' : 'PUNCTUATION';\n      document.getElementById('loupeChar').textContent = ch;\n      document.getElementById('loupeCode').textContent = `U+${cp}`;\n      document.getElementById('loupeWidth').textContent = `${width} UPM`;\n      document.getElementById('loupeSide').textContent = `L ${sb} / R ${sb}`;\n      document.getElementById('loupeCat').textContent = cat;\n      glyphGrid.querySelectorAll('.glyph-cell').forEach(b => b.classList.toggle('active', b.dataset.glyph === ch));\n    }\n\n    glyphGrid.innerHTML = GLYPHS.map(g => `<button class=\"glyph-cell\" data-glyph=\"${g}\">${g}</button>`).join('');\n    glyphGrid.addEventListener('click', (e) => {\n      const cell = e.target.closest('[data-glyph]');\n      if (cell) selectGlyph(cell.dataset.glyph);\n    });\n\n    document.getElementById('mobileBtn').addEventListener('click', function () {\n      const open = document.getElementById('headerNav').classList.toggle('open');\n      this.setAttribute('aria-expanded', String(open));\n    });\n\n    syncSpecimen();\n    selectGlyph('Å');\n  </script>\n</body>\n</html>\n"
}
