# #038 — Kraft Letterpress Notebook

> Warm unbleached kraft-paper stock, saddle-stitched spine details, bold Futura-style letterpress ink, and live ruling switcher.

## Metadata

- **Index**: #038
- **Slug**: `kraft-letterpress-notebook`
- **Kind**: `style`
- **Family**: Tactile Analog & Pixel-Craft
- **Theme**: `light`
- **Mobile Strength**: `high`
- **Tags**: `kraft-paper`, `letterpress`, `tactile-analog`, `memo-book`, `stationery-craft`
- **Best For**: Stationery & physical goods brands, Field-guide & journaling apps, Craft coffee & maker shops, Tactile editorial portfolios
- **Real-World Inspiration**: [Field Notes](https://fieldnotesbrand.com/)
- **Detail Page**: https://templates.michaelpitts.net/t/kraft-letterpress-notebook
- **Live Demo**: https://templates.michaelpitts.net/demos/kraft-letterpress-notebook.html
- **JSON API**: https://templates.michaelpitts.net/api/templates/kraft-letterpress-notebook

## Why This Aesthetic Is Unique

Brings the unmistakable tactile charm of American agricultural memo books online with kraft-paper grain, stitched binding graphics, and an interactive ruled/graph/dot-grid notepad.

## Color Palette

| Role | Name | Hex |
|------|------|-----|
| `canvas` | Unbleached Kraft Stock | `#D4BC94` |
| `surface` | Finch Opaque Paper | `#F7F3E9` |
| `ink` | Letterpress Charcoal | `#231F1D` |
| `accent` | Barnhouse Rust | `#B8422A` |
| `muted` | Stitched Linen | `#6E5E49` |

## Typography

- **Display**: `Jost`
- **Body**: `Jost`
- **Mono**: `IBM Plex Mono`
- **Scale Notes**: Geometric Futura-inspired display caps (Jost 700) with wide tracking paired with crisp rubber-stamp monospace paper specifications.
- **Google Fonts**: https://fonts.googleapis.com/css2?family=Jost:wght@400;600;700&family=IBM+Plex+Mono:wght@400;600&display=swap
  ```html
  <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Jost:wght@400;600;700&family=IBM+Plex+Mono:wght@400;600&display=swap">
  ```

## Layout Architecture

Saddle-stitched memo-book cover spread paired with an interactive open-page ruling previewer and an authentic industrial paper-and-ink specification stamp table.

## Interaction & Micro-Motion Rules

Interactive Inside Ruling switcher (Graph 3/16", Ruled, Dot-Grid, Blank) that live-updates an editable memo page plus stamp buttons to imprint date/field-note marks.

## Mobile & Responsive Rules

Stacks the stitched cover above the interactive memo sheet at 390px with >=44px ruling selector tabs and zero horizontal overflow.

## Agent Guardrails

### DO
- Use subtle CSS kraft-paper grain and stitched-spine visual cues to ground the page in physical print.
- Set uppercase geometric sans headings with generous letter-spacing like letterpress type.
- Include honest paper-weight and binding specs (60#T Finch Opaque, 3-staple saddle stitch).

### DON'T
- Never use cold pure-white #FFFFFF backgrounds or slick digital neon accents.
- Avoid overly ornate script fonts; keep the typography utilitarian and Americana-industrial.

## Complete Standalone Starter Code

File: `demos/kraft-letterpress-notebook.html`

```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>BENCHMARK MEMO BOOKS — Original Kraft Letterpress Edition</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&family=Jost:wght@500;600;700;800&display=swap" rel="stylesheet">
<style>
  :root {
    --kraft: #D4BC94;
    --kraft-light: #DFCA9F;
    --kraft-dark: #BA9F72;
    --kraft-deep: #9E8255;
    --ink: #24211E;
    --ink-muted: #4E473E;
    --paper: #F8F5EE;
    --rule-line: rgba(98, 121, 138, 0.34);
    --stamp-red: #A83226;
    --copper: #B86B3B;
  }

  *, *::before, *::after { box-sizing: border-box; }

  html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
    background-color: var(--kraft);
    /* Tactile unbleached kraft paper fiber texture */
    background-image:
      radial-gradient(rgba(74, 56, 32, 0.09) 1px, transparent 0),
      radial-gradient(rgba(255, 248, 232, 0.14) 1px, transparent 0),
      repeating-linear-gradient(102deg, rgba(84, 62, 34, 0.03) 0px, rgba(84, 62, 34, 0.03) 1px, transparent 1px, transparent 5px);
    background-size: 19px 19px, 27px 27px, 100% 100%;
    background-position: 0 0, 9px 11px, 0 0;
    color: var(--ink);
    font-family: 'Jost', Futura, 'Century Gothic', sans-serif;
    line-height: 1.5;
  }

  .wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 18px 64px;
  }

  /* Letterpress embossed/debossed ink feel */
  .press-ink {
    color: var(--ink);
    text-shadow: 0 1px 0 rgba(255, 248, 230, 0.42);
  }

  /* Top Header */
  .site-header {
    padding: 18px 0 14px;
    border-bottom: 3px solid var(--ink);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
  }
  .brand-edition {
    font-family: 'Courier Prime', monospace;
    font-size: 12px;
    letter-spacing: 0.05em;
    color: var(--ink-muted);
    margin-top: 4px;
  }

  .top-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .top-nav a {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    padding: 10px 12px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--ink);
  }
  .top-nav a:hover {
    background: var(--ink);
    color: var(--kraft-light);
  }

  /* Hero Section */
  .hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0 36px;
    border-bottom: 2px solid var(--ink);
    align-items: center;
  }
  @media (min-width: 780px) {
    .hero { grid-template-columns: 320px 1fr; gap: 48px; }
  }

  /* Stitched-Spine Memo Book Cover Mockup */
  .book-stage {
    display: flex;
    justify-content: center;
  }
  .memo-cover {
    width: 100%;
    max-width: 286px;
    aspect-ratio: 3.5 / 5.5;
    background: linear-gradient(90deg, #B5996C 0%, #C8AE82 5%, #D2B88D 12%, #CBB084 100%);
    border-radius: 3px 18px 18px 3px;
    border: 2px solid #8A6F46;
    box-shadow:
      inset 14px 0 18px -12px rgba(45, 32, 16, 0.38),
      inset -2px 0 3px rgba(255, 245, 224, 0.3),
      10px 14px 24px rgba(40, 29, 15, 0.28),
      3px 4px 0 #EFE9DA,
      5px 6px 0 #B69B71;
    position: relative;
    padding: 26px 24px 22px 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /* Spine crease + 3 copper saddle-stitch staples */
  .memo-cover::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(65, 48, 25, 0.28);
    box-shadow: 1px 0 0 rgba(255, 246, 226, 0.3);
  }
  .staple {
    position: absolute;
    left: 3px;
    width: 8px;
    height: 22px;
    border-radius: 2px;
    background: linear-gradient(90deg, #874721, #DA905E, #874721);
    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
  }
  .staple.s1 { top: 18%; }
  .staple.s2 { top: 48%; }
  .staple.s3 { top: 78%; }

  .cover-head {
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    padding: 10px 0;
    text-align: center;
  }
  .cover-head strong {
    display: block;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.05;
  }
  .cover-head span {
    display: block;
    font-family: 'Courier Prime', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    margin-top: 6px;
    text-transform: uppercase;
  }

  .cover-ruling-pill {
    margin: 16px auto 0;
    display: inline-block;
    border: 1.5px solid var(--ink);
    padding: 4px 10px;
    font-family: 'Courier Prime', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .cover-foot {
    font-family: 'Courier Prime', monospace;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-top: 1px solid rgba(36, 33, 30, 0.5);
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
  }

  /* Hero Copy */
  .kicker {
    font-family: 'Courier Prime', monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stamp-red);
    margin: 0 0 8px;
  }
  .hero-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.06;
    margin: 0 0 14px;
  }
  .hero-quote {
    font-family: 'Courier Prime', monospace;
    font-size: 16px;
    margin: 0 0 18px;
    padding-left: 14px;
    border-left: 3px solid var(--ink);
    color: var(--ink-muted);
  }
  .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
  }
  .btn-press {
    appearance: none;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 11px 18px;
    min-height: 44px;
    border: 2px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .btn-press:hover { background: var(--stamp-red); border-color: var(--stamp-red); }
  .btn-press.secondary {
    background: transparent;
    color: var(--ink);
  }
  .btn-press.secondary:hover {
    background: var(--ink);
    color: var(--paper);
  }

  /* Section Headings */
  .section-block {
    padding: 34px 0;
    border-bottom: 2px solid var(--ink);
  }
  .section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 18px;
  }
  .section-head h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .section-head span {
    font-family: 'Courier Prime', monospace;
    font-size: 13px;
    color: var(--ink-muted);
  }

  /* Interactive Inside Ruling Switcher */
  .ruling-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }
  @media (min-width: 600px) {
    .ruling-tabs { grid-template-columns: repeat(4, 1fr); }
  }

  .ruling-tab {
    appearance: none;
    min-height: 44px;
    padding: 10px 12px;
    border: 2px solid var(--ink);
    background: rgba(255, 250, 238, 0.35);
    color: var(--ink);
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .ruling-tab[aria-pressed="true"] {
    background: var(--ink);
    color: var(--paper);
  }

  /* Interactive Memo Sheet */
  .sheet-frame {
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 3px 16px 16px 3px;
    box-shadow: 6px 8px 0 rgba(36, 33, 30, 0.16);
    position: relative;
    overflow: hidden;
  }

  .sheet-topbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1.5px solid rgba(36, 33, 30, 0.25);
    background: rgba(212, 188, 148, 0.22);
    font-family: 'Courier Prime', monospace;
    font-size: 12px;
  }

  .sheet-surface {
    position: relative;
    min-height: 290px;
    padding: 20px 18px 24px 28px;
    background-color: var(--paper);
  }

  /* Four authentic paper rulings */
  .sheet-surface.ruling-graph {
    background-image:
      linear-gradient(to right, var(--rule-line) 1px, transparent 1px),
      linear-gradient(to bottom, var(--rule-line) 1px, transparent 1px);
    background-size: 20px 20px;
  }
  .sheet-surface.ruling-ruled {
    background-image:
      linear-gradient(to bottom, transparent 27px, var(--rule-line) 28px);
    background-size: 100% 28px;
  }
  .sheet-surface.ruling-dot {
    background-image: radial-gradient(rgba(74, 92, 108, 0.45) 1.3px, transparent 1.3px);
    background-size: 20px 20px;
  }
  .sheet-surface.ruling-blank {
    background-image: none;
  }

  .memo-input {
    width: 100%;
    min-height: 230px;
    border: 0;
    background: transparent;
    resize: vertical;
    font-family: 'Courier Prime', monospace;
    font-size: 16px;
    line-height: 28px;
    color: var(--ink);
    outline: none;
    position: relative;
    z-index: 2;
  }

  /* Rubber Stamps overlay */
  .stamp-layer {
    position: absolute;
    inset: 12px;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
  }
  .ink-stamp {
    position: absolute;
    border: 2.5px solid var(--stamp-red);
    color: var(--stamp-red);
    font-family: 'Jost', sans-serif;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.14em;
    padding: 4px 10px;
    text-transform: uppercase;
    opacity: 0.82;
    mix-blend-mode: multiply;
    border-radius: 3px;
  }
  .ink-stamp.dark {
    border-color: var(--ink);
    color: var(--ink);
  }

  .stamp-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
  }
  .stamp-btn {
    appearance: none;
    min-height: 44px;
    padding: 8px 12px;
    border: 1.5px dashed var(--ink);
    background: rgba(248, 245, 238, 0.55);
    color: var(--ink);
    font-family: 'Courier Prime', monospace;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
  }
  .stamp-btn:hover {
    background: var(--stamp-red);
    color: #FFF;
    border-style: solid;
    border-color: var(--stamp-red);
  }

  /* Industrial Paper Spec Table */
  .spec-table-wrap {
    overflow-x: auto;
    border: 2px solid var(--ink);
    background: rgba(248, 245, 238, 0.65);
  }
  table.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
  }
  table.spec-table th,
  table.spec-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(36, 33, 30, 0.35);
    vertical-align: top;
  }
  table.spec-table th {
    width: 34%;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    background: rgba(186, 159, 114, 0.28);
  }
  table.spec-table tr:last-child th,
  table.spec-table tr:last-child td { border-bottom: 0; }

  .footer-mark {
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    font-family: 'Courier Prime', monospace;
    font-size: 12px;
    color: var(--ink-muted);
  }
</style>
</head>
<body>
<div class="wrap">

  <header class="site-header">
    <div class="brand-lockup">
      <!-- Letterpress Seal SVG -->
      <svg width="42" height="42" viewBox="0 0 42 42" fill="none" aria-hidden="true">
        <rect x="2" y="2" width="38" height="38" rx="4" stroke="#24211E" stroke-width="2.5"/>
        <line x1="10" y1="2" x2="10" y2="40" stroke="#24211E" stroke-width="1.5"/>
        <rect x="4" y="10" width="4" height="6" fill="#B86B3B"/>
        <rect x="4" y="26" width="4" height="6" fill="#B86B3B"/>
        <path d="M17 14H33M17 21H33M17 28H27" stroke="#24211E" stroke-width="2.2"/>
      </svg>
      <div>
        <h1 class="brand-name press-ink">BENCHMARK</h1>
        <div class="brand-edition">MEMO BOOKS &middot; EDITION NO. 48 &middot; CHICAGO PRESS</div>
      </div>
    </div>

    <nav class="top-nav" aria-label="Page sections">
      <a href="#ruling">Inside Ruling</a>
      <a href="#specs">Paper Specs</a>
    </nav>
  </header>

  <!-- Hero with Stitched-Spine Kraft Cover Mockup -->
  <section class="hero" aria-label="Original Kraft Memo Book">
    <div class="book-stage">
      <div class="memo-cover" aria-label="Kraft paper stitched-spine memo book cover">
        <span class="staple s1" aria-hidden="true"></span>
        <span class="staple s2" aria-hidden="true"></span>
        <span class="staple s3" aria-hidden="true"></span>

        <div>
          <div class="cover-head press-ink">
            <strong>MEMO<br>BOOK</strong>
            <span>Original Kraft &middot; 48 Pages</span>
          </div>
          <div style="text-align:center;">
            <span class="cover-ruling-pill" id="coverRulingBadge">3/16&quot; GRAPH</span>
          </div>
        </div>

        <div class="cover-foot press-ink">
          <span>3.5&quot; &times; 5.5&quot;</span>
          <span>PACK OF 3</span>
        </div>
      </div>
    </div>

    <div>
      <p class="kicker">Printed &amp; Saddle-Stitched in the Midwest</p>
      <h2 class="hero-title press-ink">Unbleached Kraft.<br>Heavy Letterpress Ink.</h2>
      <p class="hero-quote">
        &ldquo;Ink on toothy kraft remembers what glass screens forget. Built for hip pockets, shop aprons, and rain-speckled field logs.&rdquo;
      </p>
      <p>
        Inspired by vintage agricultural seed-company memo pads, each 48-page pocket book pairs <strong>100#C French Dur-O-Tone Packing Brown</strong> covers with bright-white <strong>60#T Finch Opaque</strong> interior sheets and three copper saddle-stitch staples.
      </p>
      <div class="hero-meta">
        <a href="#ruling" class="btn-press">Test Inside Rulings</a>
        <a href="#specs" class="btn-press secondary">View Press Specs</a>
      </div>
    </div>
  </section>

  <!-- Interactive Inside Ruling Switcher & Live Memo Page -->
  <section class="section-block" id="ruling" aria-label="Interactive inside ruling bench">
    <div class="section-head">
      <h2 class="press-ink">Inside Ruling Bench</h2>
      <span id="rulingDesc">3/16&quot; Engineering Graph &middot; Soy Warm-Gray Ink</span>
    </div>

    <div class="ruling-tabs" role="group" aria-label="Choose paper ruling">
      <button type="button" class="ruling-tab" data-ruling="graph" aria-pressed="true">Graph</button>
      <button type="button" class="ruling-tab" data-ruling="ruled" aria-pressed="false">Ruled</button>
      <button type="button" class="ruling-tab" data-ruling="dot" aria-pressed="false">Dot-Grid</button>
      <button type="button" class="ruling-tab" data-ruling="blank" aria-pressed="false">Blank</button>
    </div>

    <div class="sheet-frame">
      <div class="sheet-topbar">
        <span>FINCH OPAQUE 60#T &middot; PAGE 07 / 48</span>
        <span id="charCount">0 CHARS</span>
      </div>
      <div class="sheet-surface ruling-graph" id="sheetSurface">
        <textarea class="memo-input" id="memoInput" aria-label="Interactive memo book page">FIELD LOG — 07:45 AM
Press check on Lot #48 kraft covers: ink density looks crisp on 100#C stock.
Next stop: measure timber framing joints (3/16" scale) and pick up brass pencils.</textarea>
        <div class="stamp-layer" id="stampLayer" aria-hidden="true"></div>
      </div>
    </div>

    <div class="stamp-bar" aria-label="Rubber ink stamps">
      <button type="button" class="stamp-btn" data-stamp="FIELD LOG">Stamp: Field Log</button>
      <button type="button" class="stamp-btn" data-stamp="APPROVED">Stamp: Approved</button>
      <button type="button" class="stamp-btn" data-stamp="PRESS CHECK">Stamp: Press Check</button>
      <button type="button" class="stamp-btn" id="btnDateStamp">Stamp: Today</button>
      <button type="button" class="stamp-btn" id="btnClearStamps">Clear Stamps</button>
    </div>
  </section>

  <!-- Authentic Industrial Paper-Spec Table -->
  <section class="section-block" id="specs" aria-label="Industrial paper specifications">
    <div class="section-head">
      <h2 class="press-ink">Industrial Paper &amp; Press Specifications</h2>
      <span>LOT NO. BM-048-KR</span>
    </div>

    <div class="spec-table-wrap">
      <table class="spec-table">
        <tbody>
          <tr>
            <th>Cover Paper</th>
            <td>French Paper Co. 100#C Dur-O-Tone &ldquo;Packing Brown Wrap&rdquo; (100% recycled unbleached kraft)</td>
          </tr>
          <tr>
            <th>Interior Stock</th>
            <td>Finch Paper 60#T Opaque Smooth, Bright White, acid-free archival grade</td>
          </tr>
          <tr>
            <th>Cover Printing</th>
            <td>Heidelberg Windmill Platen Letterpress, deep charcoal soy-oil ink (single impression)</td>
          </tr>
          <tr>
            <th>Interior Ruling</th>
            <td>Offset printed in subtle 30% Toyo Warm Gray &mdash; Graph (3/16&quot;), Ruled (1/4&quot;), Dot-Grid (5mm), or Blank</td>
          </tr>
          <tr>
            <th>Binding</th>
            <td>Saddle-stitched with three 0.025&quot; copper-plated steel staples, rounded 3/8&quot; outer corners</td>
          </tr>
          <tr>
            <th>Typography</th>
            <td>Futura / Jost Geometric Bold (cover display) &amp; Courier Prime (specifications)</td>
          </tr>
          <tr>
            <th>Dimensions</th>
            <td>3.5&quot; &times; 5.5&quot; (89mm &times; 140mm) &middot; 48 pages per book &middot; 3 books per belly-banded pack</td>
          </tr>
        </tbody>
      </table>
    </div>
  </section>

  <footer class="footer-mark">
    <span>BENCHMARK PAPER GOODS &middot; ALL MATERIALS SOURCED &amp; PRINTED IN THE U.S.A.</span>
    <span>ZERO PLASTIC PACKAGING</span>
  </footer>
</div>

<script>
(() => {
  const RULINGS = {
    graph: {
      badge: '3/16" GRAPH',
      desc: '3/16" Engineering Graph · Soy Warm-Gray Ink',
      cls: 'ruling-graph'
    },
    ruled: {
      badge: '1/4" RULED',
      desc: '1/4" Ledger Ruled · 28px Baseline Rhythm',
      cls: 'ruling-ruled'
    },
    dot: {
      badge: '5MM DOT-GRID',
      desc: '5mm Precision Dot-Grid · Diagrams & Lists',
      cls: 'ruling-dot'
    },
    blank: {
      badge: 'PLAIN BLANK',
      desc: 'Unruled Finch Opaque · Freehand Sketching',
      cls: 'ruling-blank'
    }
  };

  const sheetSurface = document.getElementById('sheetSurface');
  const coverBadge = document.getElementById('coverRulingBadge');
  const rulingDesc = document.getElementById('rulingDesc');
  const memoInput = document.getElementById('memoInput');
  const charCount = document.getElementById('charCount');
  const stampLayer = document.getElementById('stampLayer');

  function updateCount() {
    charCount.textContent = `${memoInput.value.length} CHARS`;
  }
  memoInput.addEventListener('input', updateCount);
  updateCount();

  document.querySelectorAll('.ruling-tab').forEach(btn => {
    btn.addEventListener('click', () => {
      const key = btn.dataset.ruling;
      const cfg = RULINGS[key];
      document.querySelectorAll('.ruling-tab').forEach(b => {
        b.setAttribute('aria-pressed', String(b === btn));
      });
      sheetSurface.className = 'sheet-surface ' + cfg.cls;
      coverBadge.textContent = cfg.badge;
      rulingDesc.textContent = cfg.desc;
    });
  });

  let stampIndex = 0;
  const POSITIONS = [
    { top: '14%', right: '8%', rot: -9 },
    { bottom: '14%', right: '10%', rot: 7 },
    { top: '44%', right: '14%', rot: -4 },
    { bottom: '18%', left: '12%', rot: 11 }
  ];

  function addStamp(text, isDark) {
    const pos = POSITIONS[stampIndex % POSITIONS.length];
    stampIndex++;
    const el = document.createElement('div');
    el.className = 'ink-stamp' + (isDark ? ' dark' : '');
    el.textContent = text;
    if (pos.top) el.style.top = pos.top;
    if (pos.bottom) el.style.bottom = pos.bottom;
    if (pos.left) el.style.left = pos.left;
    if (pos.right) el.style.right = pos.right;
    el.style.transform = `rotate(${pos.rot}deg)`;
    stampLayer.appendChild(el);
    if (stampLayer.children.length > 6) {
      stampLayer.removeChild(stampLayer.firstChild);
    }
  }

  document.querySelectorAll('[data-stamp]').forEach(btn => {
    btn.addEventListener('click', () => addStamp(btn.dataset.stamp, false));
  });

  document.getElementById('btnDateStamp').addEventListener('click', () => {
    const d = new Date();
    const label = d.toLocaleDateString('en-US', { month: 'short', day: '2-digit', year: 'numeric' }).toUpperCase();
    addStamp(label, true);
  });

  document.getElementById('btnClearStamps').addEventListener('click', () => {
    stampLayer.innerHTML = '';
    stampIndex = 0;
  });
})();
</script>
</body>
</html>
```
