/* 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=1795124021') format('woff2'); font-weight: 400 800; font-style: normal; font-display: block; }

/* 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: #453e3b;   /* the Phone Tomb store's brown (#261f1d at 84% on its beige, as it reads there), solid so the ink can threshold it */
  --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 { --h: min(78svh, 100vw * 640 / 720); position: absolute; left: 0; top: calc((100svh - var(--h)) / 2); display: block; width: 100%; height: var(--h); 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.5); }
.rva { stroke-width: calc(var(--sw, 6) * 3.2); stroke-dasharray: 1; }   /* reveals the pooled pictures: wide enough to keep the ink that pools at the joints */   /* just wider than the ink, so a cut end shows the ink's own round end */   /* 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: calc(64svh * var(--bs, 1)); }
.beat--long { height: calc(64svh * 3 * var(--bs, 1)); }
.beat--2 { height: calc(64svh * 2 * var(--bs, 1)); }
.beat--end { height: calc(160svh * var(--bs, 1)); }   /* long enough that the last part plays out before the page ends */

/* ---- The end: the three products. Names are links; Tetrad's plus pulses. */
.prod a { pointer-events: auto; }
.lbl.soft { fill-opacity: 0.5; }   /* not out yet: the same size, softer */
/* 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; } }

/* A phone is too narrow for three columns of words at the text size: the end row's words
   (names and descriptions together, so they stay one size) step down. */
@media (max-width: 600px) { .prod .lbl { font-size: calc(var(--lbl, 25px) * 0.85); } }

/* Grain (Maxwell, 2026-11-16): fine flecks of ink made in code (site.js), one device pixel
   each, laid over the page once and left still: it costs nothing while scrolling. */
.grain { position: fixed; inset: 0; z-index: 5; pointer-events: none; background-repeat: repeat; }

/* The one-pager's password field: the words' own size and ink, sitting where its link was. */
.op-pass { position: fixed; z-index: 5; margin: 0; padding: 0 0 0.08em; border: 0; border-bottom: var(--ulw, 2px) solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink); font: 500 var(--cap) / 1.2 var(--serif); width: 8em; outline: none; -webkit-appearance: none; appearance: none; }
.op-pass::placeholder { color: var(--ink); opacity: 0.5; }

/* The Edge line, live (site.js inkTwin): every drawn line is drawn as itself by
   assets/line.js, so the old stroke, its inked picture and the stage pictures stand down. */
.edge-ink .piece > .live, .edge-ink .piece > .cache, .edge-ink #prefixes { display: none !important; }
.edge-ink .twinned { stroke: transparent !important; }
.ink-twin { stroke: none !important; }
.piece[data-k="br9"] { display: none !important; }   /* site.js HIDDEN_PIECES: the twig that lumps into the stem */
