/* Wenlow's parts, in the game's Inked look: iron-gall ink, soot and dried blood on parchment and
   rawhide, every colour a step of the game's ui_style. Everything is drawn in whole game pixels shown
   at one scale, --k (2 on a desktop, 1 on a phone): the sheets' fill and torn edges (_make/pixels.py) and
   the title scene. The words are the site's one font, tristondev Pixel, at 24 px and 48 px only (td.css). */


:root {
	--k: 2;
	--ink: #131016;        /* ink_line */
	--ink-thin: #2c201f;   /* ink_thin */
	--blood: #8f210f;      /* dried_blood */
	--blood-dark: #751c06;
	--blood-deep: #631c0c;
	--soot: #191822;       /* soot_leaf */
	--pale: #ccc3a9;       /* pale_hand */
	--pale-dim: #93795d;
	--hide-fibre: #6a5035;
}
@media (max-width: 560px) { :root { --k: 1; } }

/* --- a sheet of the game's parchment: its fill tiles, its torn edge is a border of whole pixels --- */
.leaf, .sheet, .tag {
	position: relative;
	color: var(--ink);
	font-family: "tristondev Pixel", monospace;
	font-size: 24px;
	line-height: 36px;
	font-synthesis: none;
	border: calc(12px * var(--k)) solid transparent;
	border-image: url(px/parchment_edge.png) 12 / calc(12px * var(--k)) repeat;
	background: #a18261 url(px/parchment.png) 0 0 / calc(128px * var(--k)) calc(128px * var(--k));
	background-clip: padding-box;
	image-rendering: pixelated;
}
/* links on the parchment are written in the ink and underlined in dried blood: the blood alone is too faint on the stock to read */
.leaf a, .sheet a { color: var(--ink); text-decoration-color: var(--blood); text-decoration-thickness: calc(1px * var(--k)); text-underline-offset: calc(3px * var(--k)); }
.leaf a:hover, .sheet a:hover { color: var(--ink); text-decoration-color: var(--ink); text-decoration-thickness: calc(2px * var(--k)); }
.leaf a:focus-visible, .sheet a:focus-visible, .tag a:focus-visible { outline: calc(1px * var(--k)) solid var(--blood); outline-offset: 2px; }
.leaf p, .sheet p, .tag p { margin: 0 0 24px; }

/* the game's chosen-row mark, here only by the link it leads to */
.mark { display: inline-block; width: calc(9px * var(--k)); height: calc(5px * var(--k)); margin-right: calc(4px * var(--k)); vertical-align: 0; image-rendering: pixelated; }

/* --- Wenlow's picture: the wordmark on a band of the night's calm ground (the page's ground, _make/ground.py), then a still of the 3D fight shown at 1x, cropped
   round the two men (the film's own pixels, never scaled) --- */
.plate { position: relative; overflow: hidden; background: #0f0d15; }
.band { display: flex; justify-content: center; padding: calc(10px * var(--k)) 0 calc(8px * var(--k)); background: #17151f url(px/ground.png) 0 0 / calc(256px * var(--k)) calc(128px * var(--k)); image-rendering: pixelated; }
.still { position: relative; overflow: hidden; height: 320px; }
.still img { position: absolute; max-width: none; width: 1080px; height: 480px; left: calc(50% - 540px); top: calc(50% - 240px); image-rendering: pixelated; }
.still--hero { height: 480px; }
.wordmark { margin: 0; line-height: 0; }
/* the wordmark's file carries a rule under the word; the crop keeps the word alone, as the live site does */
.crop { --s: calc(2 * var(--k)); display: block; overflow: hidden; width: calc(89px * var(--s)); height: calc(23px * var(--s)); }
.crop img { display: block; width: calc(122px * var(--s)); height: calc(41px * var(--s)); max-width: none; image-rendering: pixelated; }

/* --- the Wenlow leaf on the home page --- */
.leaf { margin: 0; }
.entry-text { padding: 24px 12px 0; }
.status { color: var(--ink); }
.soon { font-style: normal; }

/* --- the Wenlow page --- */
/* the page's ground is one calm field: the title scene's night, with ash and soot settled on it in flecks
   (_make/ground.py), so the words and the pictures sit on it quietly */
html.page-wenlow { background: #17151f url(px/ground.png) 0 0 / calc(256px * var(--k)) calc(128px * var(--k)); image-rendering: pixelated; color-scheme: dark; }
.page-wenlow body {
	margin: 0;
	color: var(--pale);
	font-family: "tristondev Pixel", monospace;
	font-size: 24px;
	line-height: 36px;
	font-synthesis: none;
	overflow-x: clip;
}
.page-wenlow a { color: var(--pale); text-decoration-thickness: calc(1px * var(--k)); text-underline-offset: calc(3px * var(--k)); }
.page-wenlow a:focus-visible { outline: calc(1px * var(--k)) solid var(--pale); outline-offset: 2px; }
.page-wenlow .sheet a { color: var(--ink); }

.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 12px; z-index: 10; background: var(--soot); color: var(--pale); padding: 4px 10px; outline: 2px solid var(--pale); }

.wl-top, .wl-main, .wl-foot { max-width: 1128px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wl-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; padding-top: calc(10px * var(--k)); padding-bottom: calc(10px * var(--k)); }
.home { text-decoration: none; }
.home:hover { text-decoration: underline; }
.wl-top .coal { width: calc(10px * var(--k)); height: calc(8px * var(--k)); margin-right: calc(5px * var(--k)); image-rendering: pixelated; }
.wl-nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 0 calc(12px * var(--k)); }
.wl-nav [aria-current] { color: var(--pale); text-decoration: none; }

.wl-hero { max-width: 1080px; margin: 0 auto; }
.plate--hero .band { padding: calc(16px * var(--k)) 0 calc(12px * var(--k)); }
/* on /wenlow the wordmark stands on the ground itself and the still sits in the dark falling off round it */
.plate--hero, .plate--hero .band { background: none; overflow: visible; }

/* the dark that falls off round a picture into the ground: a border of whole pixels, ordered-dithered
   through the ground's dark steps (_make/ground.py), never a blur. It lies behind the picture. */
.falloff { position: relative; isolation: isolate; }
.falloff::before {
	content: "";
	position: absolute;
	inset: calc(-16px * var(--k));
	z-index: -1;
	border: calc(16px * var(--k)) solid transparent;
	border-image: url(px/falloff.png) 16 fill / calc(16px * var(--k)) repeat;
	image-rendering: pixelated;
	pointer-events: none;
}
/* under the torn leaf it starts inside the tear, so the dark shows only through the bites and past the edge */
.falloff--mount::before { inset: calc(-8px * var(--k)); }

/* the fight in motion, mounted: a torn leaf of the game's parchment, an inked double rule round the film,
   the caption written on the leaf under it. The film is the game's own view at 1x (852x480 of it), so on a
   desktop it shows whole pixels; the mount adds its edge (12), its margin (12) and the rule (1), in game pixels. */
.clip { max-width: calc(852px + 50px * var(--k)); margin: calc(26px * var(--k)) auto 0; }
.mount {
	position: relative;
	color: var(--ink);
	padding: calc(12px * var(--k)) calc(12px * var(--k)) 0;
	border: calc(12px * var(--k)) solid transparent;
	border-image: url(px/parchment_edge.png) 12 / calc(12px * var(--k)) repeat;
	background: #a18261 url(px/parchment.png) 0 0 / calc(128px * var(--k)) calc(128px * var(--k));
	background-clip: padding-box;
	image-rendering: pixelated;
}
/* the rule: one line of the ink hard against the film, a thinner ink a pixel out from it, as a mat is ruled */
.film { line-height: 0; border: calc(1px * var(--k)) solid var(--ink); outline: calc(1px * var(--k)) solid var(--ink-thin); outline-offset: calc(2px * var(--k)); }
.clip video { display: block; width: 100%; height: auto; background: #0f0d15; image-rendering: pixelated; cursor: pointer; }
.clip figcaption { margin: 24px 0 12px; color: var(--ink); }
/* the film's own stop and start, written on the leaf in the ink, underlined in dried blood as the sheet's links are */
.clip-toggle { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; margin-left: calc(6px * var(--k)); text-decoration: underline; text-decoration-color: var(--blood); text-decoration-thickness: calc(1px * var(--k)); text-underline-offset: calc(3px * var(--k)); cursor: pointer; }
.clip-toggle:hover { text-decoration-color: var(--ink); }
.clip-toggle:focus-visible { outline: calc(1px * var(--k)) solid var(--blood); outline-offset: 2px; }
/* without scripts the film has no player bar of the browser's (its words would not be in our font): a link opens it */
.clip .clip-link { color: var(--ink); margin-left: calc(6px * var(--k)); text-decoration-color: var(--blood); }

.wl-main { padding-top: calc(16px * var(--k)); }
.sheet { max-width: 840px; margin: 0 auto; padding: 24px 24px 0; }
.sheet h2, .tag h2 { font-family: "tristondev Pixel", monospace; font-weight: 400; font-size: 48px; line-height: 60px; margin: 0 0 12px; }
/* the sheet's headings are the ink: dried blood on the stock reads 2.5 to 3.9 to 1 */
.sheet h2 { color: var(--ink); }
.lead { font-size: 24px; }
.facts { margin: 0 0 24px; }
/* a short list on the sheet: each line hangs from a short stroke of dried blood, drawn in whole pixels */
.moves { list-style: none; margin: 0 0 24px; padding: 0; }
.moves li { position: relative; padding-left: 36px; }
.moves li::before { content: ""; position: absolute; left: 8px; top: 17px; width: 16px; height: 2px; background: var(--blood-dark); }
/* a rule drawn with a dip pen, never the same twice in a row */
.rule { border: 0; height: calc(4px * var(--k)); width: calc(180px * var(--k)); margin: calc(10px * var(--k)) 0 calc(14px * var(--k)); background: url(px/rule.png) 0 0 / 100% 100%; image-rendering: pixelated; }
.rule--2 { margin-left: auto; margin-right: calc(30px * var(--k)); transform: scaleX(-1); }


/* the tag sits in the same falloff as the leaves; the mount carries it, so the dark lies behind the hide */
.tag-mount { max-width: 600px; margin: calc(28px * var(--k)) auto 0; }
.tag {
	margin: 0;
	padding: 12px 24px 0;
	color: var(--pale);
	border-image-source: url(px/rawhide_edge.png);
	background-color: #49392f;
	background-image: url(px/rawhide.png);
}
/* the tag's heading is the pale hand: the rawhide tan read 3.9 to 4.4 to 1 on the hide */
.tag h2 { color: var(--pale); }
.tag a { color: var(--pale); overflow-wrap: anywhere; }

.wl-foot { padding-top: calc(28px * var(--k)); padding-bottom: calc(16px * var(--k)); color: var(--pale); font-size: 24px; line-height: 36px; }
.wl-foot p { margin: 0 0 12px; }
.wl-foot .credit { color: var(--pale-dim); }

@media (max-width: 560px) {
	/* the leaf's words keep the desktop's size on a phone, 24 px, the font's own drawing */
	.sheet { padding: 12px 12px 0; }
	.tag { padding: 12px 12px 0; }
	.leaf .mark { width: 18px; height: 10px; margin-right: 8px; }
	/* on a phone the still is shown whole, scaled to the column: the game's whole picture, never a close crop */
	.still, .still--hero { height: auto; }
	.plate { container-type: inline-size; }
	.still img { position: static; display: block; width: 100%; height: round(down, calc(100cqw * 480 / 1080), 1px); object-fit: cover; image-rendering: auto; }
	.film { container-type: inline-size; }
	/* on a phone the caption wraps, so the film's stop and start takes a line of its own with no indent */
	.clip-toggle { display: block; margin-left: 0; }
	.clip video { height: round(down, calc(100cqw * 480 / 852), 1px); object-fit: cover; }
	.wl-top, .wl-main, .wl-foot { padding-left: 16px; padding-right: 16px; }
	/* the hero keeps a margin at the sides, so the dark falls off round it into the ground as on a desktop,
	   and the film's inked rule round it, never a hard cut */
	.wl-hero { margin: 0 16px; }
	.still--hero { border: 1px solid var(--ink); outline: 1px solid var(--ink-thin); outline-offset: 2px; }
	/* the film is shown whole too, scaled to the column (.clip video's width) */
}

/* --- the three takes (2026-11-04): the store page's bold names carry no weight, as every b and strong on the site
   (one weight of one font); a gap left for Triston's own words is a box of dashed dried blood, its words the ink --- */
.sheet b, .sheet strong { font-weight: 400; font-style: normal; color: var(--ink); }
.sheet .gap { border: 2px dashed var(--blood-dark); padding: 10px 12px; margin: 0 0 24px; }
