/* The Long Descent website. The look follows the title screen, the Lantern Priory at night: worn stone, candle gold and a cold blue
   light (Lawrence chose it on Nov 7, 2026, as "the mix": the nave's blue glow and arched windows, with headings cut like ledger stones). */

@font-face {
	font-family: "Cinzel";
	src: url("fonts/Cinzel.ttf") format("truetype");
	font-weight: 400 900;
	font-display: swap;
}

:root {
	--night: #0a0c11;
	--nave: #1b2a45;
	--nave-mid: #0e1422;
	--stone-hi: #57524a;
	--stone-1: #4b4740;
	--stone-2: #36332e;
	--stone-3: #2c2a26;
	--stone-4: #23211e;
	--joint: #11100e;
	--gold: #ecc47c;
	--gold-hi: #ffd98c;
	--gold-cut: #c9ad79;
	--candle: #d9944a;
	--blue: #7fa6d6;
	--blue-glow: rgba(127, 166, 214, 0.28);
	--text: #e6e2da;
	--muted: #a3a6ae;
	--depth: 0;
	--grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .07 0'/></filter><rect width='300' height='300' filter='url(%23n)'/></svg>");
	color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--night); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	color: var(--text);
	font: 17px/1.65 Georgia, "Iowan Old Style", "Palatino Linotype", serif;
	overflow-x: hidden;
	background:
		var(--grain),
		radial-gradient(ellipse 90% 900px at 50% 0, var(--nave) 0, var(--nave-mid) 55%, var(--night) 100%) no-repeat,
		var(--night);
}

/* The page gets darker as you go down, like the floors do. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	background: #050608;
	opacity: calc(var(--depth) * 0.6);
	pointer-events: none;
	z-index: -1;
}

a { color: var(--gold); text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--gold-hi); }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }

h1, h2, h3, h4, .brand, .btn, .eyebrow, figcaption, .hook {
	font-family: "Cinzel", Georgia, serif;
	letter-spacing: 0.04em;
	color: var(--gold);
	line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 0.4em; text-shadow: 0 0 28px rgba(255, 190, 90, 0.3); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 0 0 0.6em; }
h3 { font-size: 1.2rem; margin: 0 0 0.4em; }
h4 { font-size: 1.05rem; margin: 0 0 0.3em; }
p { margin: 0 0 0.8em; }

.skip {
	position: absolute; left: -999px; top: 8px;
	background: var(--stone-3); padding: 8px 14px; z-index: 20;
}
.skip:focus { left: 16px; }

/* Header: a dark lintel. */
.site-header {
	position: sticky; top: 0; z-index: 10;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 12px max(16px, calc((100vw - 1140px) / 2));
	background: linear-gradient(rgba(14, 15, 19, 0.96), rgba(10, 11, 15, 0.92));
	backdrop-filter: blur(6px);
	border-bottom: 3px solid #07080a;
	box-shadow: 0 1px 0 #3d3f45;
}
.brand { text-decoration: none; font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: flex-end; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 0.93rem; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--gold); }
@media (max-width: 760px) {
	.site-header { flex-direction: column; gap: 6px; padding-top: 10px; padding-bottom: 10px; }
	.site-header nav { justify-content: center; gap: 2px 14px; }
	.site-header nav a { font-size: 0.88rem; }
}

/* Layout */
main { display: block; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center .narrow, .narrow.center { margin-left: auto; margin-right: auto; }
section { padding: clamp(44px, 7vw, 84px) 0; }
[id] { scroll-margin-top: 90px; }
.eyebrow { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--candle); margin: 0 0 0.6em; }
.lede { font-size: 1.2rem; color: var(--text); }
.muted { color: var(--muted); }

/* A heading cut into a ledger stone: an h2 with the words in a span. */
.ledger { text-align: center; margin: 0 0 40px; }
.ledger > span {
	display: inline-block;
	padding: 16px 52px;
	font-size: clamp(1.15rem, 2.8vw, 1.8rem);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold-cut);
	background: var(--grain), linear-gradient(160deg, var(--stone-1), var(--stone-2) 55%, var(--stone-3));
	border: 1px solid #1a1816;
	border-radius: 3px;
	box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.08), inset 0 -3px 0 rgba(0, 0, 0, 0.4), 0 10px 24px rgba(0, 0, 0, 0.6);
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.85), 0 1px 0 rgba(255, 255, 255, 0.15);
	position: relative;
}
/* Two iron pins hold the stone. */
.ledger > span::before, .ledger > span::after {
	content: ""; position: absolute; top: calc(50% - 3px);
	width: 6px; height: 6px; border-radius: 50%;
	background: #1d1b18; box-shadow: inset 0 1px 1px #000, 0 1px 0 #5a554c;
}
.ledger > span::before { left: 18px; }
.ledger > span::after { right: 18px; }
.ledger + .intro { margin-top: -18px; }
.intro { max-width: 720px; margin: 0 auto 36px; text-align: center; color: var(--muted); }
@media (max-width: 520px) { .ledger > span { padding: 14px 34px; } .ledger > span::before { left: 12px; } .ledger > span::after { right: 12px; } }

/* A worn stone tablet: the panel everything sits on. */
.tablet {
	background: var(--grain), linear-gradient(170deg, #2f2c28, var(--stone-4));
	border: 1px solid var(--joint);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 18px rgba(0, 0, 0, 0.5);
	padding: 24px;
}
.tablet p { color: #d2cdc3; }

/* A picture set in a round-arched stone window, lit cold from behind. */
.arch {
	display: block;
	border-radius: 50% 50% 0 0 / 28% 28% 0 0;
	overflow: hidden;
	padding: 9px;
	background: linear-gradient(var(--stone-hi), #2e2b27);
	box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.1), 0 0 40px var(--blue-glow), 0 12px 26px rgba(0, 0, 0, 0.7);
}
.arch img, .arch video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50% 50% 0 0 / 26% 26% 0 0; background: #0d1018; }
.arch.wide { border-radius: 50% 50% 0 0 / 20% 20% 0 0; }
.arch.wide img, .arch.wide video { border-radius: 50% 50% 0 0 / 18% 18% 0 0; }
.sill { display: block; height: 12px; margin: 0 -8px; background: linear-gradient(var(--stone-hi), #2b2925); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
	display: inline-block; padding: 12px 26px; text-decoration: none; font-size: 0.95rem; letter-spacing: 0.08em;
	color: var(--gold); border: 1px solid #6e5d3c; background: linear-gradient(#2b2823, #1b1916);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.btn:hover, .btn:focus-visible { color: var(--gold-hi); border-color: var(--gold); }
.btn.primary { color: #1a1309; background: linear-gradient(#f4d692, #c99a4c); border-color: #f4d692; box-shadow: 0 0 22px rgba(255, 190, 90, 0.35); }
.btn.primary:hover, .btn.primary:focus-visible { color: #000; background: linear-gradient(#ffe2a4, #d6a85a); }
.btn[aria-disabled="true"] { cursor: default; }

/* Hero: the title scene in the great window. */
.hero { padding: 36px 5vw 0; }
.hero-window { max-width: 1300px; margin: 0 auto; }
.hero-art {
	position: relative;
	border-radius: 48% 48% 0 0 / 38% 38% 0 0;
	overflow: hidden;
	padding: 12px 12px 0;
	background: linear-gradient(var(--stone-hi), #34312c);
	box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 0 0 90px rgba(127, 166, 214, 0.35);
}
.hero-glass {
	position: relative; overflow: hidden;
	aspect-ratio: 2.2 / 1;
	border-radius: 47% 47% 0 0 / 37% 37% 0 0;
	background: #0d1018;
}
.hero-media {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; object-position: 50% 60%;
	animation: descend 10s cubic-bezier(.2, .6, .2, 1) both;
}
/* The still sits over the video until the video is playing (site.js adds .playing), so nothing flashes black. */
.hero-glass img.hero-media { transition: opacity .6s ease; }
.hero-glass.playing img.hero-media { opacity: 0; }
@keyframes descend {
	from { transform: scale(1.1); filter: brightness(0.15); }
	40% { filter: brightness(0.85); }
	to { transform: scale(1); filter: brightness(1); }
}
.hero-glass::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(8, 10, 16, 0.6) 100%);
}
#embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hero-toggle {
	position: absolute; right: 14px; bottom: 12px; z-index: 3;
	font: 600 0.75rem "Cinzel", Georgia, serif; letter-spacing: 0.08em;
	color: var(--muted); background: rgba(12, 13, 18, 0.7);
	border: 1px solid #3a3d44; border-radius: 3px; padding: 5px 10px; cursor: pointer;
}
.hero-toggle:hover, .hero-toggle:focus-visible { color: var(--gold); border-color: var(--gold); }
@media (max-width: 700px) {
	.hero { padding: 20px 12px 0; }
	.hero-glass { aspect-ratio: 4 / 3; }
	.hero-art { padding: 8px 8px 0; }
}
.hero-copy { text-align: center; padding: 34px 16px 20px; }
.hook { font-size: clamp(1.55rem, 3.6vw, 2.6rem); margin: 0 0 0.3em; text-shadow: 0 0 28px rgba(255, 190, 90, 0.35); opacity: 0; animation: rise 1.4s ease-out 1.2s forwards; }
.hero-copy .sub { color: var(--muted); margin: 0 0 1.4em; opacity: 0; animation: rise 1.4s ease-out 1.8s forwards; }
.hero-copy .actions { opacity: 0; animation: rise 1.4s ease-out 2.2s forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.hero-media, .hook, .hero-copy .sub, .hero-copy .actions { animation: none; opacity: 1; filter: none; transform: none; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform .9s ease; }
.reveal.shown { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* The trailer, in a plain stone frame. */
.trailer {
	display: block; width: 100%; max-width: 960px; height: auto; margin: 0 auto;
	background: #000; border: 9px solid var(--stone-2); outline: 1px solid var(--joint);
	box-shadow: 0 0 60px var(--blue-glow), 0 14px 30px rgba(0, 0, 0, 0.7);
}

/* The three ideas */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.three .num { display: block; font-family: "Cinzel", Georgia, serif; color: var(--blue); font-size: 1.4rem; text-shadow: 0 0 12px rgba(127, 166, 214, 0.6); }
.three h3 { margin-top: 0.3em; }
@media (max-width: 820px) { .three { grid-template-columns: 1fr; } }

/* The rest, a short list in two columns. */
.more { columns: 2 320px; column-gap: 40px; padding: 0; margin: 40px auto 0; max-width: 960px; list-style: none; }
.more li { break-inside: avoid; padding: 0 0 12px 22px; position: relative; color: var(--muted); }
.more li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--candle); box-shadow: 0 0 8px rgba(217, 148, 74, 0.6); }
.more strong { color: var(--text); font-weight: normal; }

/* Galleries: three windows, then the rest of the set as small panes. */
.gallery + .gallery { margin-top: 56px; }
.gallery-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.gallery-head h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin: 0; }
.gallery-head p { margin: 0; color: var(--muted); max-width: 620px; }
.windows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.windows figure { margin: 0; }
.windows .arch { aspect-ratio: 3 / 4; }
.windows figcaption { text-align: center; margin-top: 10px; font-size: 0.85rem; color: var(--muted); font-family: Georgia, serif; letter-spacing: 0; }
@media (max-width: 760px) {
	.windows { grid-template-columns: 1fr 1fr; gap: 16px; }
	.windows figure:first-child { grid-column: 1 / -1; }
	.windows figure:first-child .arch { aspect-ratio: 4 / 3; }
}

/* The descent: steps cut down a stair. */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 52px; border-left: 1px solid rgba(236, 196, 124, 0.25); margin-left: 17px; }
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
	content: counter(step, upper-roman); position: absolute; left: -18px; top: -3px;
	width: 34px; height: 34px; display: grid; place-items: center;
	font: 0.85rem "Cinzel", Georgia, serif; color: var(--blue);
	background: var(--stone-3); border: 1px solid var(--joint); box-shadow: 0 0 14px var(--blue-glow);
}
.steps strong { color: var(--gold); font-weight: normal; font-family: "Cinzel", Georgia, serif; }
.steps span { color: var(--muted); }

/* The Tithe Road on the home page, and its own page */
.feature-dlc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.feature-dlc .arch { aspect-ratio: 4 / 3; }
@media (max-width: 820px) { .feature-dlc { grid-template-columns: 1fr; } }
.stages { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: stage; }
.stage { counter-increment: stage; display: flex; flex-direction: column; }
.stage .arch { aspect-ratio: 4 / 3; }
.stage .arch.wide { aspect-ratio: 16 / 10; }
.stage .tablet { flex: 1; margin-top: -1px; padding: 18px 20px; }
.stage h3::before { content: counter(stage, upper-roman) ". "; color: var(--blue); }
.stage p { margin: 0; font-size: 0.97rem; }
@media (max-width: 900px) { .stages { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .stages { grid-template-columns: 1fr; } }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; }
.person .arch { width: min(200px, 70%); aspect-ratio: 3 / 4; padding: 6px; margin-bottom: 16px; }
.person .arch img { object-fit: contain; object-position: 50% 100%; background: radial-gradient(ellipse at 50% 72%, #2a2f3c 0%, #10131a 72%); }
@media (max-width: 900px) { .people { grid-template-columns: 1fr; } }

/* Heroes: a card per class, man and woman, and what they become. */
.classes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 24px; }
.class-card { --accent: var(--gold); border-top: 3px solid var(--accent); padding: 20px; }
.class-card h2 { font-size: 1.5rem; margin: 0 0 0.1em; }
.class-card .role { margin: 0 0 0.8em; color: var(--text); font-style: italic; }
.portraits { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin: 0 0 16px; }
.portraits figure { margin: 0; }
.portraits .arch { aspect-ratio: 4 / 5; padding: 6px; }
.portraits figcaption { text-align: center; font-size: 0.78rem; margin-top: 6px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.portraits .risen .arch { background: linear-gradient(#3b4250, #1f232c); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.08), 0 0 30px rgba(127, 166, 214, 0.45), 0 10px 20px rgba(0, 0, 0, 0.7); }
.portraits .risen figcaption { color: var(--blue); }
.traits { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 0.95rem; }
.traits li { margin-bottom: 0.25em; }
.traits strong { color: var(--text); font-weight: normal; }
.spells { margin: 0.8em 0 0; font-size: 0.85rem; color: #a9c3ea; }
.unlock { margin: 0.6em 0 0; font-size: 0.85rem; color: var(--candle); }
.risen-line { margin: 0.8em 0 0; padding-top: 0.7em; border-top: 1px solid rgba(127, 166, 214, 0.25); font-size: 0.9rem; color: #b9c7dc; }
.risen-line strong { color: var(--blue); font-weight: normal; font-family: "Cinzel", Georgia, serif; }
.page-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 8px; }
.page-nav a { font-family: "Cinzel", Georgia, serif; font-size: 0.9rem; text-decoration: none; }

/* Bestiary: each creature in a small arched niche. */
.bestiary { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.beast { margin: 0; display: flex; flex-direction: column; }
.beast .arch { aspect-ratio: 2 / 3; padding: 7px; }
.beast .arch img { background: radial-gradient(ellipse at 50% 72%, #2a2f3c 0%, #10131a 72%); object-fit: contain; object-position: 50% 100%; }
.beast figcaption { text-align: center; margin-top: 10px; font-size: 1rem; }
.beast .where { display: block; font: 0.78rem Georgia, serif; color: var(--candle); letter-spacing: 0.04em; margin-top: 2px; }
.beast p { margin: 6px 0 0; color: var(--muted); font-size: 0.9rem; text-align: center; }
.beast.hidden .arch { background: radial-gradient(ellipse at 50% 72%, #2a2f3c 0%, #10131a 72%) content-box, linear-gradient(var(--stone-hi), #2e2b27) border-box; }
.beast.hidden .arch img { background: none; filter: brightness(0) drop-shadow(0 0 10px rgba(127, 178, 255, 0.4)); }
.beast.hidden figcaption { color: var(--muted); letter-spacing: 0.2em; }
.small-bestiary { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .small-bestiary { grid-template-columns: repeat(2, 1fr); } }

/* For the old guard */
.old-guard { text-align: center; }
.old-guard .tablet { max-width: 760px; margin: 0 auto; padding: 36px clamp(20px, 5vw, 48px); }

/* Plain pages: press kit, support, privacy */
.page h1 { margin-top: 0; }
.page h2 { font-size: 1.35rem; margin-top: 1.8em; }
.page table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.page th, .page td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #2c2f37; vertical-align: top; }
.page th { color: var(--gold); font-weight: normal; font-family: "Cinzel", Georgia, serif; width: 34%; }
.art-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.art-grid figure { margin: 0; }
.art-grid figcaption { font: 0.9rem Georgia, serif; letter-spacing: 0; color: var(--muted); margin-top: 6px; }
.framed { display: block; width: 100%; height: auto; border: 6px solid var(--stone-2); outline: 1px solid var(--joint); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); }
.note { background: var(--stone-4); border-left: 3px solid var(--candle); padding: 12px 16px; color: var(--muted); }

/* Footer: the floor of the nave. */
.site-footer {
	border-top: 3px solid #07080a; box-shadow: inset 0 1px 0 #3d3f45;
	padding: 32px 16px 40px; text-align: center; color: var(--muted); font-size: 0.9rem;
	background: var(--grain), #0b0c10;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; margin-bottom: 12px; }
.site-footer p { margin: 0.3em 0; }

/* The picture viewer (site.js): a linked picture opens over the page, with arrows to move through the page's pictures and a close button. */
body.viewing { overflow: hidden; }
.viewer {
	position: fixed; inset: 0; z-index: 100;
	display: flex; align-items: center; justify-content: center; gap: 12px;
	padding: 56px 16px 24px; background: rgba(5, 6, 9, 0.95);
}
.viewer[hidden] { display: none; }
.viewer figure { margin: 0; flex: 1 1 auto; min-width: 0; max-width: 1280px; text-align: center; }
.viewer img {
	display: block; max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; margin: 0 auto;
	border: 6px solid var(--stone-2); background: #000;
}
.viewer figcaption { margin-top: 12px; color: var(--muted); font: 0.95rem/1.4 Georgia, serif; letter-spacing: 0; }
.viewer button {
	flex: none; font: inherit; color: var(--text); background: var(--stone-3); cursor: pointer;
	border: 1px solid #6e5d3c;
}
.viewer button:hover, .viewer button:focus-visible { color: var(--gold); border-color: var(--gold); }
.viewer-prev, .viewer-next { width: 48px; height: 72px; font-size: 2.4rem; line-height: 1; }
.viewer-close { position: absolute; top: 10px; right: 16px; width: 44px; height: 44px; font-size: 1.8rem; line-height: 1; }
/* On a phone the arrows sit over the picture's edges, so it keeps the whole width. */
@media (max-width: 600px) {
	.viewer { padding: 56px 8px 16px; }
	.viewer-prev, .viewer-next { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 60px; background: rgba(35, 33, 30, 0.85); z-index: 1; }
	.viewer-prev { left: 8px; }
	.viewer-next { right: 8px; }
}
/* A long address in running text (the press kit's licence links) wraps instead of widening the page on a phone. */
main a { overflow-wrap: anywhere; }

/* A picture not rendered yet, with no stand-in: the window shows a dark, cold-lit ground (site.js). */
img.pending { background: radial-gradient(ellipse at 50% 72%, #2a2f3c 0%, #10131a 72%) !important; }

/* The Tithe Road page */
.road-hero { padding-bottom: 0; }
.road-hero .hero-glass { aspect-ratio: 2.4 / 1; }
.road-logo { display: block; width: min(520px, 80%); height: auto; margin: 0 auto 8px; }
.under { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 30px; }
@media (max-width: 760px) { .under { grid-template-columns: 1fr; } }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.facts strong { color: var(--gold); font-weight: normal; font-family: "Cinzel", Georgia, serif; }
.act-head { text-align: center; margin: 48px 0 20px; }
.act-head:first-of-type { margin-top: 0; }
.act-head p { color: var(--muted); margin: 0; }

.under .stage { counter-increment: none; }
.under .stage h3::before { content: none; }
.page code { overflow-wrap: anywhere; word-break: break-all; }

/* The Support page's Report a bug button */
.support-cta { margin: 1.2em 0 1.6em; }

/* The bug-report form (report.html) */
.report-form { display: grid; gap: 6px; margin-top: 1.4em; }
.report-form label, .report-form legend { margin-top: 12px; color: var(--text); }
.report-form input[type="text"], .report-form input[type="email"], .report-form textarea, .report-form select {
	width: 100%; box-sizing: border-box; font: inherit; color: var(--text);
	background: var(--stone-4); border: 1px solid #4a4c54; padding: 10px 12px;
}
.report-form input[type="file"] { width: 100%; color: var(--muted); }
.report-form input:focus-visible, .report-form textarea:focus-visible, .report-form select:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.report-form fieldset { border: 1px solid #2c2f37; padding: 4px 16px 16px; margin: 12px 0 0; display: grid; gap: 6px; min-width: 0; }
.report-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; align-items: start; }
.report-row > div { display: grid; gap: 6px; }
.report-row label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report-row select, .report-row input { height: 46px; }
.report-hint { font-size: 0.85rem; }
@media (max-width: 700px) { .report-row { grid-template-columns: 1fr; } }
.report-consent { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-top: 12px; }
.report-consent label { margin-top: 0; }
.report-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#report-check { margin-top: 12px; min-height: 65px; }
.report-status { min-height: 1.4em; color: var(--gold); }
.report-status.bad { color: #f08c7a; }
.report-form .btn { justify-self: start; cursor: pointer; font: inherit; }
.report-form .btn:disabled { opacity: 0.6; cursor: wait; }
