/* =============================================================
   whistlehog — Design Feed's Swiss system, on WordPress blocks
   Ported from ~/Documents/design-magazine/app/globals.css, itself
   from YTS Archive v3 and the Müller-Brockmann-era Zurich posters:
   one ink mixed into paper, Helvetica, weights 400/700, sizes
   115 / 112 / 14, spacing on 56, a strict column grid, no borders,
   no radii, no shadows, no second colour. Hierarchy comes from
   scale, weight and whitespace.

   What is new here is the prose section: Design Feed never prints
   a body longer than a summary, and this blog is mostly bodies.
   ============================================================= */

:root {
  /*
   * The ink the paper is dyed with. Rotates through the poster palette on
   * every page load (the pre-paint script in functions.php), so the site is
   * reprinted in a new plate colour per page. Everything else derives from
   * this one property. The bare :root is blue so the editor, which never
   * runs the script, still has a plate.
   */
  --ground-ink: var(--ink-blue);
  --ground: hsl(from color-mix(in srgb, var(--ground-ink) 78%, #D2CECB) h 20% l);
  --ink: #EDE9E6;
  --ink-quiet: color-mix(in srgb, var(--ink) 62%, var(--ground));

  /* The vw terms only shrink these on a narrow screen; full size at ~1110px. */
  --display: clamp(38px, 10.4vw, 115px);
  --figure: clamp(64px, 10vw, 112px);
  --body: 14px;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 56px; --s5: 112px;
  --gutter: 24px;
  --margin: 56px;
  --tap: 44px;

  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;

  /* The Zurich poster inks. A flat area and nothing else — never an outline,
     a gradient, a shadow or an accent on a control. */
  --ink-blue:   #0B4F9E;
  --ink-red:    #B4140A;
  --ink-orange: #CE5A1E;
  --ink-yellow: #C89206;
  --ink-olive:  #4E4E0C;
  --ink-green:  #2C6B10;

  --tint: color-mix(in srgb, var(--ink) 42%, var(--ground));
  --ink-coverage: 0.67;
}

/* Which way the type runs, set per ground. Only --ink moves. */
:root.on-blue   { --ground-ink: var(--ink-blue); }
:root.on-red    { --ground-ink: var(--ink-red); }
:root.on-olive  { --ground-ink: var(--ink-olive); }
:root.on-green  { --ground-ink: var(--ink-green); }
:root.on-yellow { --ground-ink: var(--ink-yellow); }
:root.on-orange { --ground-ink: var(--ink-orange); }
:root.on-blue, :root.on-red, :root.on-olive, :root.on-green { --ink: #EDE9E6; }
:root.on-yellow, :root.on-orange { --ink: #16120B; }

/* Browsers without relative colour syntax (Safari before 18, Firefox before
   128) find the --ground formula invalid and lose the plate entirely. They
   get the same grounds, measured from the formula, as fixed values. */
@supports not (color: hsl(from red h s l)) {
  :root, :root.on-blue, .cut[data-ink='blue'] { --ground: #596E86; }
  :root.on-red,    .cut[data-ink='red']    { --ground: #8F6360; }
  :root.on-orange, .cut[data-ink='orange'] { --ground: #A18272; }
  :root.on-yellow, .cut[data-ink='yellow'] { --ground: #978965; }
  :root.on-olive,  .cut[data-ink='olive']  { --ground: #616040; }
  :root.on-green,  .cut[data-ink='green']  { --ground: #57704A; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--body)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  /* A display word that outgrows its column bleeds into the margin by
     design, but never scrolls the page sideways. clip, not hidden: it leaves
     the multiply blends alone. */
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
b, strong { font-weight: 700; }

/* Body copy runs in Inter — Design Feed's one departure from Helvetica.
   Chrome, titles, figures and labels stay in the Helvetica stack. */
p, li, dd, td, th, figcaption, blockquote, .wp-block-post-excerpt,
.wp-block-comment-content, .foot { font-family: var(--text); }

.quiet, .wp-block-post-date, .orig { color: var(--ink-quiet); }

/* WordPress's own furniture, flattened. Lists of posts are not lists. */
.wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.wp-block-post-template > li { margin: 0; }
.wp-block-post-featured-image { margin: 0; }
.wp-block-post-title { margin: 0; }
.wp-block-post-excerpt__more-text, .wp-block-post-excerpt__more-link { display: none; }
.wp-block-post-excerpt__excerpt { margin: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.screen-reader-text:not(:focus) { position: absolute !important; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }

/* ---------------- nav ---------------- */
.nav { min-height: var(--s4); align-items: center; }
.nav .wp-block-site-title { margin: 0; font-size: var(--body); font-weight: 700; line-height: 1.6; }
.nav .wp-block-site-title a { min-height: var(--tap); display: inline-flex; align-items: center; }
.nav .back { margin: 0; }
.nav .back a { font-size: 22px; font-weight: 700; line-height: 1; width: var(--tap); height: var(--tap);
               display: inline-flex; align-items: center; }
.nav .wp-block-navigation { margin-left: auto; font-size: var(--body); }
.nav .wp-block-navigation__container { gap: 0 var(--s3); }
.nav .wp-block-navigation-item__content { min-height: var(--tap); display: inline-flex; align-items: center; padding: 0; }
.nav .current-menu-item > .wp-block-navigation-item__content { font-weight: 700; }
/* One row of words. A section's own page lists what is under it. */
.nav .wp-block-navigation__submenu-container,
.nav .wp-block-navigation__submenu-icon,
.nav .wp-block-page-list { display: none !important; }

/* ---------------- cover (home, archives) ---------------- */
.cover { padding: var(--s5) 0 var(--s4); }
.cover .count { margin: 0; font-size: var(--figure); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.cover h1 { margin: var(--s3) 0 0; font-size: var(--display); font-weight: 400; line-height: 0.9; letter-spacing: -0.02em; }
.cover p:not(.count) { margin: var(--s3) 0 0; max-width: 46ch; line-height: 1.2; }

/* ---------------- bands ----------------
   No rule. Whitespace is the separator. */
.band { margin-top: var(--s3); }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3);
             margin-top: var(--s4); margin-bottom: var(--s3); }
.band-head h2 { margin: 0; font-size: var(--body); font-weight: 700; }

/* ---------------- the plot: 2-up items, the first one spending the row ---- */
.plot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--gutter); }
.plot > li { min-width: 0; }
.item { display: block; }
.plot > li:first-child:not(:only-child) { grid-column: 1 / -1; }
.plot > li:first-child:not(:only-child) .item {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); align-items: start;
}
.plot > li:first-child:not(:only-child) .item-meta { margin-top: 0; }

/* The image surface. 3/2: landscape-native photography. */
.item .wp-block-post-featured-image,
.hero .wp-block-post-featured-image { aspect-ratio: 3/2; overflow: hidden; background: none; }
.item .wp-block-post-featured-image a,
.hero .wp-block-post-featured-image a { display: block; width: 100%; height: 100%; }
.item .wp-block-post-featured-image :is(img, video),
.hero .wp-block-post-featured-image :is(img, video) {
  width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.5);
}
/* No image: the title filling the frame in ground-on-tint. A legitimate
   state, not an error — the block keeps its measure so the grid does not step. */
.poster-fb { width: 100%; height: 100%; display: flex; align-items: flex-end; padding: var(--s2);
             background: var(--tint); color: var(--ground); font-weight: 700; line-height: 1.2; }

.item-meta { margin-top: var(--s3); }
.item-meta .wp-block-post-title { font-size: var(--body); font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.item-meta .wp-block-post-date { margin: 0; }
.item-meta .wp-block-post-excerpt { margin: var(--s2) 0 0; }
.item-meta .wp-block-post-excerpt__excerpt {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------------- the lede ----------------
   Type sits ON the image, in ink, with no scrim. No isolation, z-index or
   transform anywhere in here: the image blends against the page ground. */
.lede { position: relative; aspect-ratio: 955/538; overflow: hidden; margin-top: var(--s4); background: none; }
.lede .wp-block-post-featured-image { position: absolute; inset: 0; }
.lede .wp-block-post-featured-image a { display: block; width: 100%; height: 100%; }
.lede .wp-block-post-featured-image :is(img, video) {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1); mix-blend-mode: multiply; opacity: var(--ink-coverage);
}
.lede .poster-fb { padding: 0; }
.lede .poster-fb span { display: none; }
.lede .wp-block-post-title {
  position: absolute; top: var(--s2); left: var(--s2); max-width: 72%;
  font-size: var(--display); font-weight: 400; line-height: 0.9; letter-spacing: -0.02em; overflow-wrap: anywhere;
}
/* On the empty-state field the title takes the ground, as the fallback does. */
.lede:has(.poster-fb) .wp-block-post-title { color: var(--ground); }
.lede .cap {
  position: absolute; right: var(--s2); bottom: var(--s2); width: 174px; margin: 0;
  font-size: 11px; line-height: 1.6; text-align: right;
}
.lede:has(.poster-fb) .cap { color: var(--ground); }
.lede .cap .wp-block-post-date { color: inherit; font-weight: 700; margin: 0; }
.lede .cap .wp-block-post-excerpt { margin: var(--s1) 0 0; }
.lede .cap .wp-block-post-excerpt__excerpt {
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------------- hero (a post or page) ---------------- */
.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter);
        padding: var(--s4) 0; align-items: start; }
/* No featured image: the title takes the whole measure. */
.hero:not(:has(.wp-block-post-featured-image)) { grid-template-columns: minmax(0, 1fr); }
.hero-body { min-width: 0; }
h1.title, .title.wp-block-post-title {
  margin: 0; font-size: var(--display); font-weight: 400; line-height: 0.9; letter-spacing: -0.02em;
  /* Wrap at spaces only; an over-long word overhangs rather than fractures. */
  overflow-wrap: normal; hyphens: auto;
}
.hero:not(:has(.wp-block-post-featured-image)) .title { max-width: 14ch; }
.facts { margin-top: var(--s4); line-height: 1.8; }
.facts > * { margin: 0; }
.facts .wp-block-post-date { color: inherit; }
.facts .wp-block-post-terms { color: var(--ink-quiet); }

/* ---------------- words: tags, terms, pagers ----------------
   The word is the control. Bold means it is doing something. */
.words, .wp-block-post-terms.words { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); margin-top: var(--s3); }
.words a { min-height: var(--tap); display: inline-flex; align-items: center; }
.words .wp-block-post-terms__separator { display: none; }

.pager { display: flex; justify-content: space-between; gap: var(--s3); margin-top: var(--s4); }
.pager > * { margin: 0; max-width: 46%; }
.pager .post-navigation-link-next { text-align: right; margin-left: auto; }
.pager a { font-weight: 700; }

.wp-block-query-pagination { display: flex; gap: var(--s3); margin-top: var(--s4); align-items: baseline; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { min-height: var(--tap); display: inline-flex; align-items: center; }
.wp-block-query-pagination .current { font-weight: 700; }
.wp-block-query-pagination-next { margin-left: auto; }

/* ---------------- pairs: "More updates" ----------------
   One post spending the row on the 4-col measure: image across 1–2, text
   across 3–4, flush with the gutter so it hugs its picture. */
.pairs { display: grid; grid-template-columns: 1fr; gap: var(--s4); }
.pairs .item { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.pairs .item .wp-block-post-featured-image { grid-column: 1 / 3; }
.pairs .item .item-meta { grid-column: 3 / 5; margin-top: 0; }

.foot { display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap;
        padding: var(--s4) 0; margin-top: var(--s5); color: var(--ink-quiet); }
.foot p { margin: 0; }
.foot a { color: inherit; }

/* Loading and empty are sentences, not artwork. */
.state { padding: var(--s5) 0; color: var(--ink-quiet); }
.state h1 { margin: 0 0 var(--s3); font-size: var(--display); font-weight: 400; line-height: 0.9;
            letter-spacing: -0.02em; color: var(--ink); }

/* =============================================================
   PROSE — post and page bodies
   The dek's 610px measure, Inter, 1.6. Links carry a standing rule: in
   running text an invisible link is a hidden one, and where this system
   marks something it marks it with a rule.
   ============================================================= */
.entry-content { font-family: var(--text); }
.entry-content p { margin: var(--s2) 0 0; }
.entry-content > :first-child { margin-top: 0; }
.entry-content a:where(:not(.wp-element-button):not(.wp-block-button__link)) {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.entry-content :is(h1, h2, h3, h4, h5, h6) { font-family: var(--sans); }
.entry-content h1 { margin: var(--s4) 0 0; font-size: 38px; font-weight: 400; line-height: 1; letter-spacing: -0.02em; }
.entry-content h2 { margin: var(--s4) 0 0; font-size: 22px; font-weight: 700; line-height: 1.2; }
.entry-content :is(h3, h4, h5, h6) { margin: var(--s3) 0 0; font-size: var(--body); font-weight: 700; line-height: 1.6; }
.entry-content :is(h1, h2, h3, h4, h5, h6).has-xx-large-font-size { font-weight: 400; line-height: 0.9; letter-spacing: -0.02em; }
.entry-content :is(ul, ol) { margin: var(--s2) 0 0; padding-left: 1.2em; }
.entry-content li + li { margin-top: var(--s1); }

.entry-content figure { margin: var(--s3) 0 0; }
.entry-content .wp-block-image img { height: auto; }
.entry-content figcaption, .wp-element-caption {
  margin-top: var(--s1); font-size: 11px; line-height: 1.6; color: var(--ink-quiet); text-align: left;
}
.wp-block-gallery.has-nested-images { gap: var(--gutter); }
.wp-block-gallery.has-nested-images figure.wp-block-image { margin: 0; }
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption { background: none; color: var(--ground); }

/* A rule is decoration; the gap is the separator. */
.wp-block-separator, .entry-content hr {
  border: 0; height: 0; margin: var(--s4) auto 0; background: none; opacity: 1;
}

.wp-block-quote { margin: var(--s4) 0 0; padding: 0; border: 0; }
.wp-block-quote p { font-family: var(--sans); font-size: 22px; line-height: 1.3; margin: 0; }
.wp-block-quote cite, .wp-block-pullquote cite { display: block; margin-top: var(--s2); font-size: var(--body);
  font-style: normal; color: var(--ink-quiet); }
.wp-block-pullquote { margin: var(--s4) 0 0; padding: 0; border: 0; text-align: left; }
.wp-block-pullquote blockquote { margin: 0; }
.wp-block-pullquote p { font-family: var(--sans); font-size: 38px; line-height: 1; letter-spacing: -0.02em; margin: 0; }

.wp-block-code, .entry-content pre {
  margin: var(--s3) 0 0; padding: 0; border: 0; background: none;
  font: 13px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere;
}
.entry-content :not(pre) > code { font: 0.92em var(--mono); }

.wp-block-table { margin: var(--s3) 0 0; overflow-x: auto; }
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table :is(td, th) { border: 0; padding: var(--s1) var(--s3) var(--s1) 0; text-align: left; vertical-align: top; }
.wp-block-table th { font-weight: 700; }
.wp-block-table thead, .wp-block-table tfoot { border: 0; }

.wp-block-cover, .wp-block-cover-image { border-radius: 0; }
.wp-block-embed iframe { max-width: 100%; }
.wp-block-video video { width: 100%; }

/* Buttons are words. No box: a button is a box, and there are no boxes. */
.wp-block-button__link, .wp-element-button,
input[type=submit], button.wp-block-search__button {
  display: inline-flex; align-items: center; min-height: var(--tap);
  padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  color: inherit; font: 700 var(--body)/1.6 var(--sans); cursor: pointer;
}
.wp-block-buttons { gap: var(--s3); }

/* Fields are a rule to write on — the one place a line carries meaning. */
input:not([type=submit]):not([type=checkbox]):not([type=radio]):not([type=hidden]),
textarea, select {
  width: 100%; min-height: var(--tap); padding: var(--s1) 0;
  border: 0; border-bottom: 1px solid currentColor; border-radius: 0; background: none; box-shadow: none;
  color: inherit; font: 400 var(--body)/1.6 var(--text);
}
textarea { min-height: calc(5 * 1.6 * var(--body) + var(--s2)); height: auto; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-bottom-width: 2px; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

/* WPForms (Contact, Subscribe) paints its own boxes from per-form custom
   properties set at id specificity; these win them back for the rule-and-
   word treatment above. */
.wpforms-container {
  --wpforms-field-background-color: transparent !important;
  --wpforms-field-border-color: currentColor !important;
  --wpforms-field-border-radius: 0 !important;
  --wpforms-field-border-size: 0 !important;
  --wpforms-field-text-color: var(--ink) !important;
  --wpforms-label-color: var(--ink) !important;
  --wpforms-label-sublabel-color: var(--ink-quiet) !important;
  --wpforms-button-background-color: transparent !important;
  --wpforms-button-border-color: transparent !important;
  --wpforms-button-border-radius: 0 !important;
  --wpforms-button-text-color: var(--ink) !important;
  --wpforms-button-size-padding-h: 0 !important;
}
.wpforms-container .wpforms-form :is(input:not([type=submit]):not([type=checkbox]):not([type=radio]), textarea, select) {
  border: 0 !important; border-bottom: 1px solid currentColor !important; box-shadow: none !important;
  background: none !important; padding-left: 0 !important; padding-right: 0 !important;
}
.wpforms-container .wpforms-form :is(input, textarea)::placeholder { color: var(--ink-quiet) !important; opacity: 1; }
.wpforms-container .wpforms-form button[type=submit] {
  padding: 0 !important; background: none !important; box-shadow: none !important;
  font: 700 var(--body)/1.6 var(--sans) !important;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px;
}
.wpforms-container .wpforms-form button[type=submit]:hover { text-decoration-color: currentColor; }

/* ---------------- comments ---------------- */
.wp-block-comments { margin-top: var(--s4); }
.wp-block-comments-title, .comment-reply-title { margin: 0 0 var(--s3); font-size: var(--body); font-weight: 700; }
.wp-block-comment-template { list-style: none; margin: 0; padding: 0; }
.wp-block-comment-template li { margin: 0 0 var(--s4); }
.wp-block-comment-author-name { font-weight: 700; }
.wp-block-comment-date { color: var(--ink-quiet); }
.wp-block-comment-content p { margin: var(--s1) 0 0; }
.wp-block-avatar img { filter: grayscale(0.5); border-radius: 0; }
.comment-form > p { margin: var(--s3) 0 0; }
.comment-form label { display: block; color: var(--ink-quiet); }
.comment-form .comment-form-cookies-consent { display: flex; gap: var(--s1); align-items: baseline; }
.comment-form .comment-form-cookies-consent label { display: inline; }

/* ---------------- responsive ---------------- */
@media (max-width: 720px) {
  :root { --margin: 24px; }
  .nav { flex-wrap: wrap !important; }
  .nav .wp-block-navigation { margin-left: 0; width: 100%; }
  .nav .wp-block-navigation__container { justify-content: flex-start; }
  .plot { grid-template-columns: 1fr; }
  .plot > li:first-child:not(:only-child) .item { grid-template-columns: 1fr; }
  .plot > li:first-child:not(:only-child) .item-meta { margin-top: var(--s3); }
  .pairs .item { grid-template-columns: 1fr; }
  .pairs .item .wp-block-post-featured-image, .pairs .item .item-meta { grid-column: auto; }
  .hero { grid-template-columns: 1fr; gap: var(--s3); }
  .facts { margin-top: var(--s3); }
  .lede { aspect-ratio: 4/5; }
  .lede .wp-block-post-title { max-width: none; right: var(--s2); }
  .entry-content .wp-block-video[style*="padding"] { padding-left: 0 !important; padding-right: 0 !important; }
}

/* =============================================================
   MOTION — optical printing, not web transitions
   ANIMATE THE IMAGE, OR SOMETHING THAT IS NOT ITS ANCESTOR. NEVER THE
   BOX AROUND IT. A wipe, a dissolve, a cut: no springs, no bounce, no
   lift, no scale on hover. Durations are frame counts at 24fps.
   ============================================================= */
:root {
  --f2: 83ms; --f3: 125ms; --f4: 167ms; --f6: 250ms; --f8: 333ms; --f12: 500ms;
  /* One curve on purpose; everything else arrives and stops. */
  --wipe: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --settle: cubic-bezier(0.2, 0, 0, 1);
}

/* ---------------- the cut ----------------
   A panel of paper covers the frame and only then does the page change.
   These are whole page loads, so the cut runs in two halves on two pages:
   assets/js/whistlehog.js lays the cover on the page you leave, in the ink
   of the page you are going to, and the next page arrives with html[data-cut]
   set by the pre-paint script and clears it here in CSS — so the clear needs
   no JavaScript at all, and if none runs the panel still leaves.

   The figure says what kind of move it was: a horizontal edge for a change
   of depth, a diagonal sideways at the same depth. prefers-reduced-motion is
   deliberately not consulted, as in the source: on iOS it reports Low Power
   Mode as often as a preference. */
.cut, html[data-cut]::after {
  position: fixed; inset: 0; z-index: 100000;
  will-change: transform;
  animation-duration: var(--f3); animation-timing-function: var(--wipe); animation-fill-mode: both;
}
.cut {
  /* The ground formula again, on the next page's ink: a custom property
     inherited from :root arrives already computed, so it cannot be re-mixed. */
  --ground: hsl(from color-mix(in srgb, var(--cut-ink, var(--ground-ink)) 78%, #D2CECB) h 20% l);
  background: var(--ground);
  pointer-events: auto;
}
html[data-cut]::after { content: ""; background: var(--ground); pointer-events: none; }

.cut[data-figure='wipe-d'], html[data-cut='wipe-d']::after { width: 180%; left: -40%; }

.cut[data-figure='wipe-v'][data-dir='in']  { animation-name: cut-in-top; }
.cut[data-figure='wipe-v'][data-dir='out'] { animation-name: cut-in-bottom; }
.cut[data-figure='wipe-d'][data-dir='in']  { animation-name: cut-d-in-l; }
.cut[data-figure='wipe-d'][data-dir='out'] { animation-name: cut-d-in-r; }
html[data-cut='wipe-v'][data-cut-dir='in']::after  { animation-name: cut-out-bottom; }
html[data-cut='wipe-v'][data-cut-dir='out']::after { animation-name: cut-out-top; }
html[data-cut='wipe-d'][data-cut-dir='in']::after  { animation-name: cut-d-out-r; }
html[data-cut='wipe-d'][data-cut-dir='out']::after { animation-name: cut-d-out-l; }

@keyframes cut-in-top     { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes cut-out-bottom { from { transform: translateY(0); } to { transform: translateY(100%); } }
@keyframes cut-in-bottom  { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes cut-out-top    { from { transform: translateY(0); } to { transform: translateY(-100%); } }
@keyframes cut-d-in-l  { from { transform: translateX(-100%) skewX(-20deg); } to { transform: translateX(0) skewX(-20deg); } }
@keyframes cut-d-out-r { from { transform: translateX(0) skewX(-20deg); } to { transform: translateX(100%) skewX(-20deg); } }
@keyframes cut-d-in-r  { from { transform: translateX(100%) skewX(-20deg); } to { transform: translateX(0) skewX(-20deg); } }
@keyframes cut-d-out-l { from { transform: translateX(0) skewX(-20deg); } to { transform: translateX(-100%) skewX(-20deg); } }

/* ---------------- the print developing ----------------
   Each photograph fades up as its own pixels land. The script arms
   data-ink only on images still loading; the failure mode is that nothing
   happens. No 100% keyframe: a lede lands at its 0.67 coverage unnamed. */
@keyframes ink { from { opacity: 0; } }
img[data-ink] { animation: ink var(--f6) var(--wipe) backwards; }
img[data-ink='wait'] { animation-play-state: paused; }

/* ---------------- rules inking in ----------------
   Where this system marks something it marks it with a rule, so hover is
   the rule arriving rather than snapping. */
.nav .wp-block-navigation-item__content, .item-meta .wp-block-post-title a, .words a,
.pager a, .wp-block-query-pagination a, .foot a, .band-head a,
.wp-block-button__link, .wp-element-button, input[type=submit] {
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px;
  transition: text-decoration-color var(--f3) var(--settle);
}
@media (hover: hover) {
  .item:hover .item-meta .wp-block-post-title a,
  .nav .wp-block-navigation-item__content:hover, .words a:hover, .pager a:hover,
  .wp-block-query-pagination a:hover, .foot a:hover, .band-head a:hover,
  .wp-block-button__link:hover, .wp-element-button:hover, input[type=submit]:hover {
    text-decoration-color: currentColor;
  }
  /* Pointing at a type-carrying surface lays down more ink. Opacity on the
     image itself, so the blend is untouched. */
  .lede .wp-block-post-featured-image :is(img, video) { transition: opacity var(--f8) var(--settle); }
  .lede:hover .wp-block-post-featured-image :is(img, video) { opacity: 0.82; }
}
