/* DreamCoder on Mastering Emacs: the DreamCoder article theme (templates/article_dreamcoder.html,
   under body.dcp.guilloche) and the DreamCoder card that quill.js places in other articles
   (macros.dreamcoder_card, .dci). Kept out of the Tailwind build so no other page changes.

   Guilloché: dressed as a banknote. Cream paper ruled in gilt and navy hairlines, the rules turning
   in round notched corners; the moon as the portrait in an engine-turned ring; a half rosette
   rising behind the title; a navy reverse for the download. Mastering Emacs keeps its red bar,
   footer, type, red initial and comments. The line art (img/dreamcoder/*.svg) is drawn in one
   colour, so it is used as a mask filled with gilt; the notches are coloured (they cover the rules
   where they turn), so they are backgrounds. The art comes from generate_guilloche_ornaments.py
   in the DreamCoder website repository. */

.dcp, .dci { --ink: #1c2a5a; --paper: #f6efdf; --bronze: #7a5a14; --hair: #c99a2e; --me-red: #930000;
  --gilt: linear-gradient(180deg, #e6b94e 0%, #c99a2e 50%, #a97b1c 100%);
  --serif: magister, Georgia, serif; --sans: transat-text, system-ui, sans-serif; --mono: lexia-mono-variable, ui-monospace, monospace; }

/* Every line ornament: the art as a mask, filled with gilt. */
.dcp-div, .dcp-letter h2::before, .dcp-letter ul > li::before, .dcp-medal::before, .dcp-get::before, .dci-emblem::before {
  background: var(--gilt); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }

/* Notched corners: the top-left corner, the others its mirrors. */
.dcp .o, .dci .o { position: absolute; z-index: -1; pointer-events: none; width: 64px; aspect-ratio: 1;
  background: url(/static/img/dreamcoder/notch.svg) center / contain no-repeat; }
.dcp .o1 { top: 0; left: 0; }
.dcp .o2 { top: 0; right: 0; transform: scaleX(-1); }
.dcp .o3 { bottom: 0; left: 0; transform: scaleY(-1); }
.dcp .o4 { bottom: 0; right: 0; transform: scale(-1); }

/* Buttons keep the shape of the site's own (READ A FREE SAMPLE / LEARN MORE), in the note's flat inks:
   navy with a gilt rule for the main act, ME red beside it. */
.dcp-btn, .dci-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.1rem; border-radius: 6px;
  font: 400 20px/1 var(--sans); text-transform: uppercase; white-space: nowrap; text-decoration: none; }
.dcp-btn b, .dci-btn b { font-weight: 700; }
.dcp-btn.gold, .dci-btn.gold { color: #f6efdf !important; background: var(--ink);
  box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4px rgba(230,185,78,.75); }
.dcp-btn.red { color: #fff !important; background: var(--me-red); }
.dcp-btn:hover, .dci-btn:hover { filter: brightness(1.12); }
.dcp-acts, .dci-acts { display: flex; flex-wrap: wrap; align-items: center; }

/* ---------- the hero, in place of the book banner and the title */
.dcp-hero { --md: min(220px, 52vw); position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding: 3.2rem 1.5rem 4.2rem; color: #2a2620;
  background: url(/static/img/dreamcoder/backdrop-wide.svg) center bottom / auto 92% no-repeat, var(--paper);
  box-shadow: inset 0 0 0 10px var(--paper), inset 0 0 0 11px var(--hair), inset 0 0 0 14px var(--paper), inset 0 0 0 15px rgba(28,42,90,.55); }
/* the portrait: the moon cut to a disc inside the medallion's inner ring */
.dcp-medal { position: relative; isolation: isolate; display: flow-root; width: var(--md); margin: 0 auto 1.6rem; }
.dcp-medal::before { content: ''; position: absolute; inset: 0; z-index: -1; --m: url(/static/img/dreamcoder/medallion.svg); }
.dcp-medal img { display: block; width: 54%; margin: 23%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px #a97b1c; }
.dcp-words { position: relative; max-width: 46rem; margin: 0 auto; }
.dcp-kicker { margin: 0 0 .7rem; color: var(--bronze); font: 500 15px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.dcp-hero h1 { margin: 0 0 1rem; color: var(--ink); font: 700 clamp(36px, 5.4vw, 60px)/1.04 var(--serif); text-wrap: balance; }
.dcp-lede { max-width: 40rem; margin: 0 auto 1.8rem; color: #4a4436; font: 400 clamp(18px, 2vw, 22px)/1.5 var(--sans); text-wrap: pretty; }
.dcp-hero .dcp-acts { justify-content: center; gap: .8rem 1rem; margin: 0; }

/* ---------- byline, divider and the article */
.dcp-byline { margin: 2.6rem 0 0; text-align: center; font: 400 20px/1.6 var(--sans); }
.dcp-byline > a:first-child { font-style: italic; }
.dcp-byline small, .dcp-comments { display: block; font-size: 16px; }
.dcp-div { display: block; width: min(440px, 80%); aspect-ratio: 560 / 40; margin: 2.6rem auto; --m: url(/static/img/dreamcoder/divider.svg); }

.dcp-letter h2 { text-align: center; }
.dcp-letter h2::before { content: ''; display: block; width: 42px; aspect-ratio: 1; margin: 0 auto .6em; --m: url(/static/img/dreamcoder/rosette.svg); }
.dcp-letter ul { list-style: none; }
.dcp-letter ul > li { position: relative; }
.dcp-letter ul > li::before { content: ''; position: absolute; left: -1.1em; top: .5em; width: .72em; aspect-ratio: 1; --m: url(/static/img/dreamcoder/rosette.svg); }
/* The ME red initial on the guilloché plate, in a double gilt rule like a stamp's value tablet. */
.dcp .dcp-letter .drop-cap::first-letter { margin: .1em .18em 0 0; padding: .11em .12em .08em; font-size: 104px; line-height: .8; font-weight: 700;
  border: 3px double var(--hair); background: url(/static/img/dreamcoder/cap-ground.svg) center / cover no-repeat, var(--paper); }
.dcp .dcp-letter blockquote { border-left-color: var(--hair); color: #4a4436; }
/* Pictures mounted on the note: a paper mat between gilt and navy hairlines. On a wide screen
   they reach past the text column on both sides, up to 1200px; on a narrow one they keep to it. */
.dcp .dcp-letter figure { --fig: max(100%, min(1200px, 100vw - 64px)); width: var(--fig); max-width: none;
  margin-inline: calc((100% - var(--fig)) / 2); padding: 12px 12px 4px; background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--hair), 0 0 0 3px #fff, 0 0 0 4px rgba(28,42,90,.5); }
.dcp .dcp-letter figure > img { padding: 0; margin: 0 auto; box-shadow: 0 0 0 1px rgba(28,42,90,.35); }
.dcp .dcp-letter figcaption { margin: .5rem 0 .3rem; color: #5e5545; }

/* Headings here are the author's own lines, pulled out at the turns of the piece: no titles of their
   own, only a short double gilt rule either side, a level below the article's own headings. In the
   article they are raw HTML riders, <h2 class="dcp-mark" id="...">, which quill shifts down to h3. */
.dcp .dcp-letter .dcp-mark { max-width: 34rem; margin: 4.6rem auto 2.8rem; text-align: center; color: var(--ink);
  font: italic 400 clamp(26px, 3.2vw, 38px)/1.25 var(--serif); letter-spacing: 0; text-wrap: balance; }
.dcp .dcp-letter .dcp-mark::before, .dcp .dcp-letter .dcp-mark::after { content: ''; display: block; width: 64px; height: 4px;
  aspect-ratio: auto; margin: 0 auto 1.5rem; border-block: 1px solid var(--hair); background: none; -webkit-mask: none; mask: none; }
.dcp .dcp-letter .dcp-mark::after { margin: 1.5rem auto 0; }

/* Engraved plates: line drawings from img/dreamcoder/<name>.svg, which dreamcoder.js inlines into a rider's
   <figure class="dcp-plate" id="dcp-<name>"> so they take the page's inks and type. Kept to the column. */
.dcp .dcp-letter .dcp-plate { --fig: 100%; padding: 1.4rem 1.6rem 1rem; }
.dcp-plate svg { display: block; width: 100%; max-width: 720px; height: auto; margin: 0 auto; }
.pl .pl-rule, .pl .pl-wave, .pl .pl-line { fill: none; stroke: #a97b1c; }
.pl .pl-rule { stroke-width: 1.3; }
.pl .pl-wave { stroke-width: .7; }
.pl .pl-line { stroke-width: 1.4; }
.pl .pl-dots { stroke-dasharray: 1 7; stroke-linecap: round; stroke-width: 2.2; }
.pl .pl-head { fill: #a97b1c; }
.pl text { fill: var(--ink); font-family: var(--serif); }
.pl .pl-word { font-size: 27px; font-variant: small-caps; letter-spacing: .05em; }
.pl .pl-note { font-size: 25px; font-style: italic; fill: var(--bronze); }
.pl .pl-sub { font-size: .7em; font-variant: normal; }
/* A plate that is a network (dreamcoder.js runs it): connections carrying a 1 are cut deep,
   the rest faint; a unit that fires is gilded. The change runs left to right, layer by layer. */
.pl .pl-edge, .pl .pl-unit .pl-core, .pl .pl-val { transition: opacity .25s, fill .25s, stroke-width .25s;
  transition-delay: calc(var(--layer) * 140ms); }
.pl .pl-edge { opacity: .32; }
.pl .pl-edge.on { opacity: 1; }
.pl .pl-edge.on .pl-line { stroke-width: 2.4; }
.pl .pl-core { fill: transparent; stroke: none; }
.pl .pl-unit.on .pl-core { fill: rgba(201, 154, 46, .22); }
.pl .pl-in .pl-core { stroke: #a97b1c; stroke-width: 1.3; }
.pl .pl-val { font-size: 34px; fill: var(--ink); }
.pl .pl-unit:not(.on) .pl-val { opacity: .45; }
.pl .pl-sum { font-size: 21px; }
.pl .pl-in { cursor: pointer; outline: none; }
.pl .pl-in:hover .pl-core { fill: rgba(201, 154, 46, .12); }
.pl .pl-in.on:hover .pl-core { fill: rgba(201, 154, 46, .32); }
.pl .pl-in:focus-visible .pl-core { stroke: var(--ink); stroke-width: 2.5; }
.dcp .dcp-letter .dcp-net { display: grid; grid-template-columns: minmax(0, 560px) auto; justify-content: center; align-items: center; gap: 2.4rem; }
.pl .pl-var { font-variant: normal; font-style: italic; }
.dcp .dcp-letter .dcp-truth { width: auto; margin: 0; border-collapse: collapse; font: 400 18px/1 var(--serif); color: var(--ink); font-variant-numeric: lining-nums; }
.dcp-truth th { padding: 0 .9em .6em; font-style: italic; font-weight: 400; color: var(--bronze); border-bottom: 1px solid var(--hair); }
.dcp-truth th:last-child, .dcp-truth td:last-child { border-left: 1px solid var(--hair); }
.dcp-truth td { padding: .5em .9em; text-align: center; cursor: pointer; }
.dcp-truth tbody tr { outline: none; }
.dcp-truth tbody tr:hover td { background: rgba(201, 154, 46, .1); }
.dcp-truth tbody tr.here td { background: rgba(201, 154, 46, .24); }
.dcp-truth tbody tr:focus-visible td { box-shadow: inset 0 1px var(--ink), inset 0 -1px var(--ink); }
/* A plate's title, cut across its head between two hairlines, and the caption under a network
   plate: each row's words are stacked in one cell (the plate keeps the height of the longest) and
   the one for the row shown is inked in. */
.dcp .dcp-letter .dcp-plate-title { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: .15rem;
  margin: 0 0 1rem; text-align: center; color: var(--ink); font: 400 21px/1.2 var(--serif); }
.dcp-plate-title span { display: flex; align-items: center; gap: .8em; font-variant: small-caps; letter-spacing: .08em; font-size: 1.15em; }
.dcp-plate-title span::before, .dcp-plate-title span::after { content: ''; width: 48px; height: 4px;
  border-block: 1px solid var(--hair); }
.dcp-plate-title small { font-size: .8em; font-style: italic; color: var(--bronze); }
.dcp-story { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 36rem); justify-content: center;
  align-items: start; column-gap: 1rem; margin: .4rem 0 .4rem; }
.dcp .dcp-letter .dcp-story p { grid-area: 1 / 2; margin: 0; color: var(--ink); font: 400 19px/1.5 var(--serif);
  text-wrap: pretty; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.dcp .dcp-letter .dcp-story p.here { opacity: 1; visibility: visible; }
.dcp-story sub { font-size: .7em; }
/* The blog's buttons bring side padding and a red focus ring (a box-shadow); neither belongs here. */
.dcp .dcp-letter .dcp-play, .dcp .dcp-letter .dcp-play:focus { grid-area: 1 / 1; width: 34px; height: 34px; margin-top: 1px; padding: 0;
  display: grid; place-items: center; cursor: pointer; appearance: none; border: 1px solid var(--hair); border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px rgba(201, 154, 46, .45); }
.dcp-play::before { content: ''; width: 10px; height: 12px; margin-left: 2px; background: var(--bronze);
  clip-path: polygon(0 0, 100% 50%, 0 100%); }
.dcp-play.playing::before { margin-left: 0; clip-path: none; background: linear-gradient(90deg, var(--bronze) 35%, transparent 35% 65%, var(--bronze) 65%); }
.dcp .dcp-letter .dcp-play:hover { background: #efe3c4; }
.dcp .dcp-letter .dcp-play:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .pl .pl-edge, .pl .pl-unit .pl-core, .pl .pl-val, .dcp .dcp-letter .dcp-story p { transition: none; } }
@media (max-width: 40rem) {
  /* A phone shows the plate at about half size: less mat, larger type. */
  .dcp .dcp-letter .dcp-plate { padding: .7rem .3rem .4rem; }
  .pl .pl-word { font-size: 36px; }
  .pl .pl-note { font-size: 32px; }
  .pl .pl-sum { font-size: 27px; }
  .dcp .dcp-letter .dcp-story p { font-size: 17px; }
  .dcp .dcp-letter .dcp-plate-title { font-size: 18px; margin-bottom: .4rem; }
  .pl .pl-val { font-size: 42px; }
  .dcp .dcp-letter .dcp-net { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: .6rem; }
}

/* Fleurons (dreamcoder.js places them): printer's flowers in gilt where a long run of text has
   nothing else to break it. Set into the paragraph, the text running round the flower's own outline;
   on a phone that would squeeze the justified lines beside it, so there it sits centred in the gap
   above the paragraph instead. */
.dcp .dcp-letter .dcp-fleuron { display: block; float: left; width: 104px; aspect-ratio: 1; margin: .1em 1em .2em 0;
  background: var(--gilt); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
  shape-outside: var(--m); shape-image-threshold: .3; shape-margin: 14px; }
.dcp .dcp-letter .dcp-fleuron[data-side=right] { float: right; margin: .1em 0 .2em 1em; }
.dcp-fleuron[data-shape=hedera] { --m: url(/static/img/dreamcoder/fleuron-hedera.svg); }
.dcp-fleuron[data-shape=knot] { --m: url(/static/img/dreamcoder/fleuron-knot.svg); }
@media (max-width: 40rem) {
  .dcp .dcp-letter .dcp-fleuron, .dcp .dcp-letter .dcp-fleuron[data-side=right] { float: none; width: 52px; margin: .2rem auto 1.6rem; }
}

/* Code in the note's inks, not the blog's red on pink: navy type on the paper inside a gilt hairline,
   like a serial number printed on the note. A block is a small ruled note of its own. */
.dcp .dcp-letter code, .dcp .dcp-letter kbd { color: var(--ink) !important; background: var(--paper); padding: .02em .32em .06em;
  border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(201,154,46,.7); font-size: .86em; letter-spacing: .01em; }
.dcp .dcp-letter pre { color: var(--ink) !important; background: var(--paper); border: 0; border-radius: 0; padding: 1.1em 1.4em;
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--hair), inset 0 0 0 8px var(--paper), inset 0 0 0 9px rgba(28,42,90,.4); }
.dcp .dcp-letter :not(pre) > code { overflow-wrap: anywhere; }
.dcp .dcp-letter pre code { color: inherit !important; background: none; box-shadow: none; padding: 0; font-size: inherit; }
/* pandoc's highlighting, in the same inks */
.dcp .dcp-letter .sourceCode .kw { color: var(--ink); font-weight: 600; }
.dcp .dcp-letter .sourceCode .fu { color: var(--me-red); font-weight: 600; }
.dcp .dcp-letter .sourceCode :is(.st, .ot, .ch) { color: #3d6b4f; }
.dcp .dcp-letter .sourceCode :is(.dv, .bn, .fl) { color: var(--bronze); }
.dcp .dcp-letter .sourceCode .dt { color: #2f5d8a; }
.dcp .dcp-letter .sourceCode .co { color: #8a7f66; font-style: italic; }

/* ---------- the note's reverse after the article: navy, the rosette in pale gilt, the seal, notched corners */
.dcp-get { position: relative; isolation: isolate; overflow: hidden; margin: 4rem 0 0; padding: 3.6rem 1.5rem 4.2rem; text-align: center; color: #f6efdf;
  background: url(/static/img/dreamcoder/backdrop.svg) center bottom / auto 120% no-repeat, var(--ink);
  box-shadow: inset 0 0 0 10px var(--ink), inset 0 0 0 11px var(--hair), inset 0 0 0 14px var(--ink), inset 0 0 0 15px rgba(230,185,78,.45); }
.dcp-get::before { content: ''; display: block; width: 92px; aspect-ratio: 1; margin: 0 auto 1.2rem; --m: url(/static/img/dreamcoder/seal.svg); }
.dcp-get .o { background-image: url(/static/img/dreamcoder/notch-navy.svg); }
.dcp-get::after { content: ''; position: absolute; z-index: -1; bottom: 0; right: 0; width: 64px; aspect-ratio: 1; transform: scale(-1);
  background: url(/static/img/dreamcoder/notch-navy.svg) center / contain no-repeat; }
.dcp-get h2 { margin: 0 0 1.5rem; color: #fbf5e6; font: 700 clamp(30px, 4vw, 44px)/1.1 var(--serif); }
.dcp-get p { max-width: 38rem; margin: 0 auto 1.4rem; color: #d8d3c4; font: 400 19px/1.5 var(--sans); }
.dcp-get .dcp-acts { justify-content: center; }
.dcp-get .dcp-btn.gold { color: #1f1806 !important; background: #e3b54a; box-shadow: inset 0 0 0 3px #e3b54a, inset 0 0 0 4px rgba(28,42,90,.6); }
.dcp-get .dcp-plats { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.6rem; margin: 1.4rem auto 0;
  color: #e6c97a; font: 500 15px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
/* The newsletter signup, under a short double gilt rule: the fields are paper slips on the navy. */
.dcp-news { max-width: 40rem; margin: 2.6rem auto 0; }
.dcp-news::before { content: ''; display: block; width: 64px; height: 4px; margin: 0 auto 2rem; border-block: 1px solid rgba(230,185,78,.75); }
.dcp-get .dcp-news-kicker { margin: 0 auto .5rem; color: #e6c97a; font: 500 15px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.dcp-get .dcp-news-line { margin-bottom: 1.2rem; }
.dcp-news-form { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .7rem; }
.dcp-news-form input { flex: 1 1 13rem; min-width: 0; height: 48px; padding: 0 .9rem; border: 0; border-radius: 6px; color: var(--ink); background: var(--paper);
  font: 400 18px/1 var(--sans); box-shadow: inset 0 0 0 1px var(--hair); }
.dcp-news-form input::placeholder { color: #8a8070; }
.dcp-news-form input:focus-visible { outline: 2px solid #e3b54a; outline-offset: 2px; }
.dcp-news-form .dcp-btn { margin: 0; border: 0; cursor: pointer; }
.dcp-news-hide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 40rem) {
  .dcp-hero { padding: 2.6rem 1rem 3.2rem; background-size: auto 70%, auto; }
  .dcp-kicker, .dci-kicker { font-size: 13px; letter-spacing: .14em; }
  .dcp-get { padding: 3rem 1rem 3.4rem; background-size: auto 52%, auto; }
  .dcp .dcp-letter .drop-cap::first-letter { font-size: 76px; }
  .dcp-btn, .dci-btn { min-height: 42px; font-size: 16px; }
}

/* ---------- the card in other articles: a small note, ruled, its four corners notched (one border
   image), the crescent seal for its mark */
.dci { position: relative; isolation: isolate; color: #1c1b22; font-family: var(--sans); }
.dci a { text-decoration: none; }
.dci-card { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: center; margin: 2.6rem 0; padding: 1.6rem 1.8rem; overflow: hidden;
  background: url(/static/img/dreamcoder/backdrop.svg) right -140px bottom / auto 150% no-repeat, var(--paper);
  box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--hair), inset 0 0 0 10px var(--paper), inset 0 0 0 11px rgba(28,42,90,.55); }
.dci-card .o1 { inset: 0; width: auto; aspect-ratio: auto; background: none; border: 64px solid transparent;
  border-image: url(/static/img/dreamcoder/notch-card.svg) 64; }
.dci-emblem { position: relative; width: 120px; aspect-ratio: 1; }
.dci-emblem::before { content: ''; position: absolute; inset: 0; --m: url(/static/img/dreamcoder/seal.svg); }
.dci-kicker { margin: 0 0 .4rem; color: var(--bronze); font: 500 14px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.dci-title { margin: 0; color: var(--ink); font: 700 30px/1.1 var(--serif); }
.dci-line { margin: .6rem 0 0; color: #4a4436; font: 400 18px/1.5 var(--sans); text-wrap: pretty; }
.dci-acts { gap: .7rem 1.2rem; margin: 1rem 0 0; }
.dci-btn { min-height: 42px; font-size: 18px; }
.dci-more { color: var(--ink); font: 400 18px/1.2 var(--sans); border-bottom: 1px solid var(--hair); }
@media (max-width: 40rem) {
  .dci-card { grid-template-columns: 1fr; justify-items: center; text-align: center;
    background-size: auto 38%, auto; background-position: center bottom, 0 0; }
  .dci-card .dci-acts { justify-content: center; }
}

/* ---------- figures that move. Each costs only the room its topic earns:
   plate  <figure class="dcf-plate">            the full mounted width, for the one picture a section is about;
   inset  <figure class="dcf-inset left|right"> half the column, the text running round it (out into the margin
                                                where there is one);
   strip  <figure class="dcf-strip"><ul><li>     a row of small tiles, each with a label; a swipe row on phones;
   glimpse  an rst image substitution, :class: dcf-glimpse   a crop at the height of the line naming it.
   A figure's picture is a link to its full-size file (the whole reel for a loop), which dreamcoder.js opens
   over the page. A <video> plays muted while it is mostly in view. */
.dcp .dcp-letter :is(.dcf-plate, .dcf-inset, .dcf-strip) a { display: block; position: relative; line-height: 0; border: 0; text-decoration: none; cursor: zoom-in; }
.dcp .dcp-letter :is(.dcf-plate, .dcf-inset, .dcf-strip) :is(img, video) { display: block; width: 100%; height: auto; margin: 0; padding: 0;
  background: #1b1d27; box-shadow: 0 0 0 1px rgba(28,42,90,.35); }
.dcp .dcp-letter :is(.dcf-plate, .dcf-inset, .dcf-strip) a[href$=".mp4"]::after { content: '▶'; position: absolute; right: 8px; bottom: 8px;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(16,20,40,.72); color: #f3ead2; font-size: 11px; line-height: 1; }
.dcp .dcp-letter :is(.dcf-plate, .dcf-inset, .dcf-strip) figcaption { margin-top: .55rem; font-style: italic; font-size: .86em; line-height: 1.45; text-align: center; }

.dcp .dcp-letter figure.dcf-plate { margin-block: 2.6rem; }

.dcp .dcp-letter figure.dcf-inset { --fig: 46%; margin: .4rem 0 1rem; padding: 0; background: none; box-shadow: none; }
.dcp .dcp-letter figure.dcf-inset.right { float: right; margin-left: 1.6rem; }
.dcp .dcp-letter figure.dcf-inset.left { float: left; margin-right: 1.6rem; }
.dcp .dcp-letter figure.dcf-inset figcaption { text-align: left; }
@media (min-width: 1300px) {
  .dcp .dcp-letter figure.dcf-inset { --fig: 25rem; }
  .dcp .dcp-letter figure.dcf-inset.right { margin-right: -9rem; }
  .dcp .dcp-letter figure.dcf-inset.left { margin-left: -9rem; }
}

.dcp .dcp-letter figure.dcf-strip { margin-block: 2.2rem 2.6rem; padding: 0; background: none; box-shadow: none; }
.dcf-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; }
.dcf-strip li { margin: 0; padding: 0; }
.dcp-letter .dcf-strip ul > li::before { content: none; }
.dcp .dcp-letter .dcf-strip a { aspect-ratio: 16 / 10; overflow: hidden; }
.dcp .dcp-letter .dcf-strip :is(img, video) { height: 100%; object-fit: cover; object-position: top left; }
.dcf-strip li > span { display: block; margin-top: .45rem; font-variant: small-caps; letter-spacing: .06em; color: var(--ink); font-size: .92em; text-align: center; }

.dcp .dcp-letter img.dcf-glimpse { display: inline-block; height: 1.7em; width: auto; margin: 0 .1em; padding: 0; vertical-align: -.45em;
  border-radius: 3px; box-shadow: 0 0 0 1px rgba(28,42,90,.35); }

@media (max-width: 40rem) {
  .dcp .dcp-letter figure.dcf-inset { float: none; --fig: 100%; margin: 1.2rem 0; }
  .dcf-strip ul { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; }
  .dcf-strip li { flex: 0 0 44%; scroll-snap-align: start; }
}

.dcf-box { position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; background: rgba(12,14,24,.9); cursor: zoom-out; }
.dcf-box[data-open] { display: grid; }
.dcf-box :is(img, video) { max-width: 94vw; max-height: 90vh; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
