/* Edge Book: EB Garamond (OFL) with Maxwell's ink-bleed treatment. One font for
   everything. Licence beside it in assets/fonts/OFL.txt. */
@font-face { font-family: 'Edge Book'; src: url('assets/fonts/edge-book.woff2?v=1794801917') format('woff2'); font-weight: 400 800; font-style: normal; font-display: swap; }

/* humedgtec.com (2026-11-15): white page, black ink, one mark.
   - One text size for everything but the title (--cap), labels on the drawing included.
   - One line weight, the stem of the type (site.js converts it for the drawing), through
     one ink filter, so the lines are made of the same ink as the letters.
   - Nothing fades. A line draws on or off; anything else is on or off. */
:root {
  --paper: #F6F3EC;
  --ink: #241f1c;   /* a warm black, printing ink rather than screen black */
  --serif: 'Edge Book', Georgia, serif;
  --cap: clamp(18px, 1.75vw, 26px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-synthesis: none; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 var(--cap) / 1.35 var(--serif); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; position: relative; }
.cap a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0.02em; height: var(--ulw, 2px); background: var(--ink); filter: url(#inkpx); }

/* ---- The story: the stage holds still the whole way down; captions scroll past it. */
.story { position: relative; }
.stage { position: sticky; top: 0; height: 100svh; margin-bottom: -100svh; z-index: 1; pointer-events: none;
  background: var(--paper); }
.ink-flood { flood-color: var(--ink); }
/* The drawing holds still in the upper part of the window, cropped to its tallest state
   (the Love triangle), 720 x 560; the captions scroll by underneath it. */
.stage__art { position: absolute; left: 0; top: 6svh; display: block; width: 100%; height: min(56svh, 100vw * 560 / 720); overflow: visible; color: var(--ink); }

.ln { stroke-width: var(--sw, 6); }
/* The opening line waits like a cursor, blinking, until you scroll. */
.blink { animation: caret 1.06s steps(1, end) infinite; }
@keyframes caret { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
.rv { stroke-width: calc(var(--sw, 6) * 1.9); }   /* the reveal: a little wider than the ink it uncovers */
.bb { stroke: none; fill: none; }                 /* gives a thin group a box for its filter */
.d { stroke-dasharray: 1; stroke-dashoffset: 1; visibility: hidden; }
.lbl { font-family: var(--serif); font-weight: 500; font-size: var(--lbl, 25px); fill: currentColor; visibility: hidden; }
.cut, .sym { visibility: hidden; }

/* Each caption has a stretch of scroll and sits in one band under the mark; only the
   current one is on. */
.beats { position: relative; z-index: 2; pointer-events: none; }
.beat { height: 64svh; }
.beat--long { height: calc(64svh * 3); }
.beat--end { height: 160svh; }   /* long enough that the last part plays out before the page ends */
/* The words: one poem under the drawing, lines close together (site.js moves it with the
   story and sets each line's ink). */
.poem { position: absolute; left: 0; right: 0; top: calc(6svh + min(56svh, 100vw * 560 / 720) + 2svh); bottom: 0; overflow: hidden; }
.poem__in { will-change: transform; }
.cap { margin: 0 auto 0.7em; padding: 0 20px; max-width: 30em; text-align: center; text-wrap: balance; opacity: 0.28; pointer-events: auto; }

/* ---- The end: the three products. Names are links; Tetrad's plus pulses. */
.prod a { pointer-events: auto; }
/* Links are underlined in ink, not by the browser: a drawn line under the name (site.js
   sizes it from the name), through the same ink filter as everything else. */
.tp-pulse .tp-arm { animation: tp-pulse 2.8s cubic-bezier(.45, 0, .2, 1) infinite; visibility: visible; }
@keyframes tp-pulse { 0% { stroke-dashoffset: 1; } 40%, 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }

