/* ==========================================================================
   The Unquiet Shire
   ========================================================================== */

:root {
	--ink: var(--wp--preset--color--ink, #0d0f0e);
	--ink-deep: var(--wp--preset--color--ink-deep, #0a0b0a);
	--bone: var(--wp--preset--color--bone, #e4dfd2);
	--fog: var(--wp--preset--color--fog, #c8c2b3);
	--muted: var(--wp--preset--color--muted, #a39e90);
	--rule: var(--wp--preset--color--rule, #2c2f2c);
	--paper: var(--wp--preset--color--paper, #f7f3e8);
	--paper-ink: var(--wp--preset--color--paper-ink, #1c1c1c);
	--trail: var(--wp--preset--color--trail, #1f7a34);
	--lantern: #d9a35b;
	--map-red: #b3202c;
	--display: var(--wp--preset--font-family--display, 'IM Fell English', Georgia, serif);
	--display-sc: var(--wp--preset--font-family--display-sc, 'IM Fell English SC', Georgia, serif);
	--mono: var(--wp--preset--font-family--mono, 'Space Mono', monospace);
	--hand: var(--wp--preset--font-family--hand, 'Reenie Beanie', cursive);
	--gutter: clamp(16px, 5vw, 72px);
	--wide: 1180px;
	--ease: cubic-bezier(.22, 1, .36, 1);
}

body { margin: 0; overflow-x: hidden; }
::selection { background: var(--lantern); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lantern); outline-offset: 4px; }
[hidden] { display: none !important; }

/* Shared text styles ------------------------------------------------------ */
.us-label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.us-muted { color: var(--muted); }
.us-accent { color: var(--lantern); }
.us-section-h { margin: 0; font-family: var(--display-sc); font-weight: 400; font-size: clamp(32px, 4vw, 56px); line-height: 1.05; }

/* Page wrappers sit flush; spacing is set per section --------------------- */
.us-home > *,
.us-chapter > *,
.wp-site-blocks > * { margin-block: 0; }

/* Lantern glow ------------------------------------------------------------ */
.us-glow {
	position: fixed; left: 0; top: 0; z-index: 90;
	width: 340px; height: 340px; margin: -170px 0 0 -170px;
	border-radius: 50%; pointer-events: none; opacity: 0;
	mix-blend-mode: screen;
	background: radial-gradient(circle, color-mix(in srgb, var(--lantern) 18%, transparent) 0%, transparent 62%);
	transition: width .35s ease, height .35s ease, margin .35s ease, opacity .5s ease;
}
.us-glow.is-hot { width: 460px; height: 460px; margin: -230px 0 0 -230px; }

/* Header bar -------------------------------------------------------------- */
.us-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 30; }
.us-header:has(.us-bar--overlay) { position: absolute; left: 0; right: 0; }
.us-bar { background: rgba(13, 15, 14, .92); border-bottom: 1px solid #1f221f; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.us-bar--overlay { background: transparent; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.us-bar__inner {
	display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
	padding: 0 var(--gutter);
	font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.us-bar__home { display: inline-flex; align-items: center; min-height: 48px; color: var(--bone); text-decoration: none; }
.us-bar__nav { display: flex; gap: 24px; flex-wrap: wrap; }
.us-bar__nav a { color: var(--bone); text-decoration: none; padding: 14px 0; }
.us-bar__nav a:hover, .us-bar__home:hover { color: var(--lantern); }
.us-bar__progress { height: 2px; background: var(--lantern); transform-origin: 0 50%; transform: scaleX(0); }

/* Fog (shared CSS version) ------------------------------------------------ */
.us-fog {
	position: absolute; inset: -25%; pointer-events: none; filter: blur(48px);
	background: radial-gradient(ellipse 45% 30% at 25% 55%, rgba(214, 208, 192, .22), transparent 70%), radial-gradient(ellipse 40% 25% at 75% 70%, rgba(214, 208, 192, .16), transparent 70%);
	animation: us-drift 42s ease-in-out infinite alternate;
}
.us-fog--b {
	background: radial-gradient(ellipse 55% 22% at 55% 85%, rgba(170, 184, 168, .18), transparent 70%), radial-gradient(ellipse 30% 30% at 15% 20%, rgba(214, 208, 192, .10), transparent 70%);
	animation-duration: 61s; animation-direction: alternate-reverse;
}

/* Hero -------------------------------------------------------------------- */
.us-hero {
	position: relative; isolation: isolate; overflow: hidden; box-sizing: border-box;
	min-height: max(100svh, 40rem);
	display: flex; flex-direction: column; gap: 32px;
	padding: 96px var(--gutter) 40px;
}
.us-hero__fog { position: absolute; inset: 0; z-index: -3; display: block; width: 100%; height: 100%; }
.us-hero__cssfog { position: absolute; inset: 0; z-index: -3; overflow: hidden; display: none; }
.us-hero--css .us-hero__fog { display: none; }
.us-hero--css .us-hero__cssfog { display: block; }
.us-grain { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: .08; pointer-events: none; }
.us-hero__secret {
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	display: flex; align-items: flex-end; justify-content: flex-end;
	padding: 0 clamp(16px, 6vw, 96px) 22% 0;
	font-family: var(--display); font-style: italic; font-size: clamp(22px, 2.6vw, 38px); line-height: 1.3; text-align: right;
	color: var(--lantern);
	-webkit-mask-image: radial-gradient(circle 200px at 72% 68%, #000 0%, rgba(0, 0, 0, .35) 45%, transparent 75%);
	mask-image: radial-gradient(circle 200px at 72% 68%, #000 0%, rgba(0, 0, 0, .35) 45%, transparent 75%);
}
.us-hero__secret p { margin: 0; max-width: 18ch; }
.us-hero__content { margin-block: auto; max-width: 1100px; }
.us-hero__content > * { margin-block: 0; }
.us-eyebrow { margin: 0 0 20px !important; font-family: var(--mono); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--lantern); }
.us-hero__title { margin: 0 !important; font-size: clamp(64px, 11vw, 168px); line-height: .88; letter-spacing: -.02em; }
.us-hero__title em { color: #cfc8b6; }
.us-hero__lede { margin: 32px 0 0 !important; max-width: 34rem; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: var(--fog); }
.us-hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.us-hero__foot .us-label { margin: 0; color: var(--muted); }
.us-cue {
	display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
	font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
	color: var(--bone); text-decoration: none;
	animation: us-breathe 3.2s ease-in-out infinite;
}

/* Intro ------------------------------------------------------------------- */
.us-intro { box-sizing: content-box; max-width: 46rem; margin-inline: auto !important; padding: clamp(80px, 12vw, 180px) var(--gutter); }
.us-intro > * { margin-block: 0; }
.us-intro p { font-size: 19px; color: #b9b3a4; }
.us-intro .us-intro__big { font-family: var(--display); font-size: clamp(28px, 3.4vw, 46px); line-height: 1.25; color: var(--bone); margin-bottom: 32px; }
.us-intro__big em { color: var(--lantern); }

/* Atlas map --------------------------------------------------------------- */
.us-atlas { padding: 0 var(--gutter) clamp(80px, 10vw, 160px); }
.us-atlas__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 24px; margin-bottom: 32px; }
.us-sky { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.us-atlas__controls { display: flex; gap: 10px; flex-wrap: wrap; }
.us-ctl {
	min-height: 44px; padding: 0 16px; cursor: pointer;
	border: 1px solid #4a4f48; background: transparent; color: var(--bone);
	font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
	transition: background .3s, color .3s, border-color .3s;
}
.us-ctl--sound { border-color: var(--lantern); }
.us-ctl--sound[aria-pressed="true"] { background: var(--lantern); color: var(--ink); }
.us-ctl--trails { border-color: var(--trail); }
.us-ctl--trails[aria-pressed="true"] { background: var(--trail); }
.us-atlas__body { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; }
.us-atlas__mapcol { flex: 999 1 560px; min-width: 0; }

.us-sheet { padding: 10px; background: var(--paper); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); transition: filter 1.4s ease; }
html.us-night .us-sheet { filter: invert(.92) hue-rotate(180deg) saturate(.7) brightness(.9); }
.us-sheet__frame { position: relative; overflow: hidden; width: 100%; aspect-ratio: 1100 / 950; box-sizing: border-box; border: 3px double var(--paper-ink); background: var(--paper); color: var(--paper-ink); }
.us-zoom { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 1.1s var(--ease); }
.us-map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.us-folds {
	position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply;
	background:
		linear-gradient(90deg, transparent 32.6%, rgba(70, 50, 20, .13) 33.3%, transparent 34%, transparent 66%, rgba(70, 50, 20, .13) 66.7%, transparent 67.4%),
		linear-gradient(180deg, transparent 49.2%, rgba(70, 50, 20, .15) 50%, transparent 50.8%),
		radial-gradient(ellipse 40% 30% at 22% 18%, rgba(140, 100, 40, .08), transparent 70%),
		radial-gradient(ellipse 30% 35% at 84% 88%, rgba(140, 100, 40, .10), transparent 70%);
}
.us-trail { stroke-width: 3; transition: stroke-width .4s ease, opacity .4s ease; }
.us-trail.is-active { stroke-width: 5; animation: us-march 1.2s linear infinite; }
.us-trails { transition: opacity .4s ease; }
.us-atlas.trails-off .us-trails { opacity: 0; }

.us-marker {
	position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0;
	display: flex; align-items: center; justify-content: center;
	border: 0; background: transparent; cursor: pointer;
	transform: scale(var(--ms, 1)); transition: transform 1.1s var(--ease);
}
.us-marker__dot { width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--paper-ink); background: var(--paper); transition: width .3s, height .3s, background .3s; }
.us-marker:hover .us-marker__dot { background: #f0c27f; }
.us-marker.is-selected .us-marker__dot { width: 18px; height: 18px; background: var(--map-red); }
.us-marker__ring { position: absolute; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--map-red); opacity: 0; }
.us-marker.is-selected .us-marker__ring { animation: us-pulse 2.4s ease-out infinite; }
.us-marker__label {
	position: absolute; top: 10px; left: 30px; white-space: nowrap;
	font-family: var(--display); font-style: italic; font-size: 16px; color: var(--paper-ink);
	text-shadow: 0 0 3px var(--paper), 0 0 3px var(--paper), 0 0 3px var(--paper);
}
.us-marker--left .us-marker__label { left: auto; right: 30px; }
.us-marker.is-selected .us-marker__label { color: var(--map-red); }
.us-marker:focus-visible { outline: 2px solid var(--map-red); outline-offset: 2px; border-radius: 50%; }

.us-notes { position: absolute; inset: 0; pointer-events: none; }
.us-sketch { position: absolute; width: 44px; height: 30px; overflow: visible; }
.us-sketch path { fill: none; stroke: #3a3a3a; stroke-width: 1.1; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: us-draw 1.3s .6s ease-out forwards; }
.us-note { position: absolute; white-space: nowrap; font-family: var(--hand); font-size: 10.5px; line-height: 1; color: #3a3a3a; opacity: 0; animation: us-ink .9s ease-out forwards; }
.us-unzoom {
	position: absolute; left: 12px; top: 12px; z-index: 3; min-height: 44px; padding: 0 16px; cursor: pointer;
	border: 0; background: var(--paper-ink); color: var(--paper);
	font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
.us-key { list-style: none; margin: 0; padding: 14px 6px 4px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: var(--paper-ink); }
.us-key li { display: flex; align-items: center; gap: 8px; }

.us-panel { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; border-left: 1px solid var(--rule); padding-left: 32px; }
.us-panel p { margin: 0; }
.us-panel__title { margin: 0; font-size: clamp(34px, 3.2vw, 48px); line-height: 1.05; }
.us-panel__body { font-size: 18px; line-height: 1.7; color: var(--fog); }
.us-panel__whisper { font-family: var(--display); font-style: italic; font-size: 20px; line-height: 1.45; color: var(--bone); border-top: 1px solid var(--rule); padding-top: 20px; }
.us-walk { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--paper); color: var(--paper-ink); }
.us-walk__kicker { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--trail); }
.us-walk__name { font-family: var(--display); font-size: 24px; line-height: 1.15; }
.us-walk__note { font-size: 16px; line-height: 1.55; color: #3d3b36; }
.us-walk__link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; color: var(--paper-ink); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.us-walk__link:hover { color: var(--trail); }
.us-btn-outline {
	margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px;
	border: 1px solid var(--lantern); color: var(--bone); text-decoration: none;
	font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.us-btn-outline:hover { background: var(--lantern); color: var(--ink); }
@media (max-width: 700px) {
	.us-marker__label { font-size: 13px; top: 12px; left: 26px; }
	.us-marker--left .us-marker__label { right: 26px; }
	.us-marker__place { display: none; }
	.us-marker.is-selected .us-marker__place { display: inline; }
	.us-panel { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 24px; }
}

/* Chapter index ----------------------------------------------------------- */
.us-index { padding: clamp(80px, 10vw, 160px) var(--gutter); }
.us-index__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 24px; margin-bottom: 48px; }
.us-index__head .us-label { margin: 0; }
.us-index__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.us-card {
	--card-lantern: var(--lantern);
	display: flex; flex-direction: column; gap: 16px; min-height: 280px; padding: 28px; box-sizing: border-box;
	background: var(--ink); color: var(--bone); text-decoration: none; border: 1px solid transparent;
	transition: border-color .3s ease, background .3s ease;
}
.us-card:hover { border-color: var(--card-lantern); background: #111412; color: var(--bone); }
.us-card__meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.us-card__title { font-family: var(--display); font-size: 32px; line-height: 1.05; }
.us-card__teaser { font-size: 17px; line-height: 1.6; color: #b9b3a4; }
.us-card__foot { margin-top: auto; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--card-lantern); }
.us-card__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--card-lantern); box-shadow: 0 0 10px var(--card-lantern); }

/* Footer ------------------------------------------------------------------ */
.us-footer { display: flex; flex-direction: column; gap: 64px; padding: clamp(64px, 8vw, 120px) var(--gutter) 48px; border-top: 1px solid var(--rule); }
.us-footer > *, .us-footer__cta > *, .us-footer__small > * { margin: 0 !important; }
.us-footer__cta { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-end; }
.us-footer__h { max-width: 22ch; font-size: clamp(32px, 4vw, 56px); line-height: 1.1; }
.us-footer__small { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); }

/* Chapter header ---------------------------------------------------------- */
.us-chead { position: relative; isolation: isolate; overflow: hidden; padding: clamp(96px, 12vw, 180px) var(--gutter) clamp(64px, 8vw, 120px); }
.us-chead__fog { position: absolute; inset: 0; z-index: -1; opacity: .8; }
.us-chead__fog .us-fog { background: radial-gradient(ellipse 40% 30% at 70% 40%, color-mix(in srgb, var(--lantern) 14%, rgba(214, 208, 192, .14)), transparent 70%), radial-gradient(ellipse 50% 20% at 20% 80%, rgba(170, 184, 168, .14), transparent 70%); }
.us-chead__inner { max-width: var(--wide); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; justify-content: space-between; }
.us-chead__main { flex: 999 1 560px; min-width: 0; }
.us-chead__main .us-label { margin: 0; font-size: 13px; letter-spacing: .2em; }
.us-chead__title { margin: 24px 0 0; font-size: clamp(56px, 8.5vw, 132px); line-height: .9; letter-spacing: -.02em; }
.us-chead__standfirst { margin: 36px 0 0; max-width: 36rem; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.55; color: var(--fog); }
.us-chead__facts { flex: 1 1 260px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; border-top: 1px solid var(--rule); padding-top: 20px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.us-chead__facts dt { color: var(--muted); text-transform: uppercase; }
.us-chead__facts dd { margin: 6px 0 0; }

/* Chapter content --------------------------------------------------------- */
.us-chapter .us-chapter__content { padding-bottom: clamp(64px, 8vw, 120px); }
.us-chapter .us-chapter__content > * { max-width: none; width: min(var(--wide), calc(100% - 2 * var(--gutter))); margin-inline: auto !important; margin-block: 0; }
.us-chapter .us-chapter__content > .alignfull { width: 100%; }
.us-chapter .us-chapter__content > * + * { margin-top: clamp(64px, 8vw, 120px); }

.us-story { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 96px); }
.us-story > * { margin: 0 !important; }
.us-cast { flex: 1 1 240px; min-width: 0; position: sticky; top: 96px; align-self: flex-start; }
.us-cast > * { margin-block: 0; }
.us-cast__h { margin: 0 0 16px !important; font-family: var(--display-sc); font-size: 24px; }
.us-cast__list { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 16px; }
.us-cast__list li { font-size: 15px; line-height: 1.5; color: var(--muted); }
.us-cast__list strong { display: block; font-family: var(--display); font-size: 20px; font-weight: 400; color: var(--bone); }
.us-story__body { flex: 2 1 480px; min-width: 0; max-width: 42rem; }
.us-story--single .us-story__body { margin-inline: auto !important; }
.us-story__body > * { margin-block: 0 28px; }
.us-story__body p { line-height: 1.75; color: #d2ccbd; }
.us-chapter .has-drop-cap:not(:focus)::first-letter {
	float: left; margin: 0; padding: 8px 12px 0 0;
	font-family: var(--display); font-size: 92px; font-weight: 400; line-height: .8; color: var(--lantern);
}

.us-door { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; margin: 56px 0 !important; }
.us-door svg { flex: none; width: 150px; height: auto; }
.us-door figcaption { flex: 1 1 220px; font-family: var(--display); font-style: italic; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.35; color: var(--bone); }
.us-door__knob { fill: var(--lantern); }
.us-door__leaf { transform-origin: 22px 135px; }

.us-timeline { box-sizing: border-box; padding: clamp(64px, 8vw, 120px) var(--gutter); background: var(--ink-deep); border-block: 1px solid #1f221f; }
.us-timeline__inner { max-width: var(--wide); margin: 0 auto; }
.us-timeline .us-section-h { margin-bottom: 48px; }
.us-timeline__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 32px 24px; }
.us-timeline__list li { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--rule); padding-top: 16px; }
.us-timeline__tick { width: 10px; height: 10px; margin-top: -22px; border-radius: 50%; background: var(--rule); }
.us-timeline__year { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--bone); }
.us-timeline__text { font-size: 16px; line-height: 1.55; color: #b9b3a4; }

.us-rr { display: flex; flex-wrap: wrap; gap: 48px; }
.us-rr__intro { flex: 1 1 300px; min-width: 0; }
.us-rr__intro p { margin: 20px 0 0; font-size: 18px; line-height: 1.65; color: #b9b3a4; }
.us-rr__box { flex: 2 1 480px; min-width: 0; border: 1px solid var(--rule); }
.us-rr__tabs { display: flex; border-bottom: 1px solid var(--rule); }
.us-rr__tabs button {
	flex: 1; min-height: 52px; cursor: pointer;
	border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted);
	font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
}
.us-rr__tabs button[aria-selected="true"] { border-bottom-color: var(--lantern); background: #141714; color: var(--bone); }
.us-rr__panel + .us-rr__panel { border-top: 1px solid var(--rule); }
.us-rr__box.is-tabs .us-rr__panel + .us-rr__panel { border-top: 0; }
.us-rr__panel-h { margin: 0; padding: 24px 32px 0; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.us-rr__box.is-tabs .us-rr__panel-h { display: none; }
.us-rr__panel ul { list-style: none; margin: 0; padding: 28px 32px; display: flex; flex-direction: column; gap: 18px; }
.us-rr__panel li { display: flex; gap: 16px; font-size: 18px; line-height: 1.6; color: #d2ccbd; }
.us-rr__panel li span:first-child { flex: none; padding-top: 5px; font-family: var(--mono); font-size: 12px; color: var(--lantern); }

.us-archive__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 32px; margin-bottom: 28px; }
.us-archive__head .us-label { margin: 0; }
.us-archive__table {
	position: relative; overflow: hidden; border: 1px solid var(--rule);
	background:
		radial-gradient(ellipse 70% 60% at 50% 45%, rgba(255, 210, 150, .10), transparent 70%),
		repeating-linear-gradient(91deg, #261d16 0px, #2b2119 14px, #241b14 30px, #2a2018 44px, #251c15 60px);
}
.us-paper {
	position: absolute; padding: 0; border: 0; background: transparent; text-align: left; color: inherit; font: inherit;
	cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none;
	transform: rotate(var(--rot, 0deg)); transition: transform .25s ease;
}
.us-paper.is-dragging { cursor: grabbing; transform: rotate(calc(var(--rot, 0deg) * .4)) scale(1.04); }
.us-paper__sheet { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px; background: #efe6d2; color: #2a241c; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); transition: box-shadow .25s ease; }
.us-paper.is-dragging .us-paper__sheet { box-shadow: 0 28px 50px rgba(0, 0, 0, .6); }
.us-paper--manuscript .us-paper__sheet { background: #f4ecd8; }
.us-paper--record .us-paper__sheet { background: #e8e1cc; }
.us-paper--note .us-paper__sheet { background: var(--paper); }
.us-paper__kicker { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #6b6254; }
.us-paper__title { font-family: var(--display); font-size: 23px; line-height: 1.15; color: #2a241c; }
.us-paper--note .us-paper__title { font-family: var(--hand); font-size: 25px; line-height: 1.05; }
.us-paper__img { display: block; width: 100%; height: auto; pointer-events: none; }
.us-paper__ph {
	display: flex; align-items: center; justify-content: center; min-height: 150px; padding: 12px; box-sizing: border-box; text-align: center;
	font-family: var(--mono); font-size: 10px; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; color: #5e5546;
	border: 1px solid #b9ad94; background: repeating-linear-gradient(45deg, rgba(120, 100, 70, .10) 0 6px, transparent 6px 12px);
}
.us-paper--manuscript .us-paper__ph { min-height: 220px; }
.us-paper__leaf { align-self: flex-end; width: 120px; height: 70px; }
.us-paper__caption { font-style: italic; font-size: 13px; color: #6b6254; }

.us-visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 40px; border-top: 1px solid var(--rule); padding-top: 40px; }
.us-visit > * { margin: 0 !important; }
.us-visit__h { grid-column: 1; font-family: var(--display-sc); font-size: 36px; }
.us-visit > p { grid-column: 1; font-size: 18px; line-height: 1.65; color: #b9b3a4; }
.us-visit__facts { grid-column: 2; grid-row: 1 / span 2; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 24px; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; line-height: 1.6; }
.us-visit__facts strong { display: block; margin-bottom: 8px; font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) {
	.us-visit { grid-template-columns: 1fr; }
	.us-visit__facts { grid-column: 1; grid-row: auto; }
	.us-cast { position: static; }
}

.us-cnav { width: min(var(--wide), calc(100% - 2 * var(--gutter))); margin: 0 auto clamp(64px, 8vw, 120px) !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.us-cnav__link { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--rule); color: var(--bone); text-decoration: none; transition: border-color .3s ease; }
.us-cnav__link:hover { border-color: var(--lantern); color: var(--bone); }
.us-cnav__link--next { text-align: right; }
.us-cnav__title { font-family: var(--display); font-size: 30px; line-height: 1.1; }

/* Plain pages ------------------------------------------------------------- */
.us-page { box-sizing: border-box; width: min(var(--wide), 100%); margin: 0 auto !important; padding: clamp(96px, 10vw, 160px) var(--gutter) clamp(64px, 8vw, 120px); }
.us-page__title { margin: 0 0 48px !important; font-size: clamp(56px, 8vw, 120px); }
.us-page .us-index { padding: 0; }
.us-prose > * { max-width: 42rem; }

/* Motion ------------------------------------------------------------------ */
@keyframes us-drift { 0% { transform: translate3d(-6%, 2%, 0) scale(1); } 50% { transform: translate3d(4%, -3%, 0) scale(1.08); } 100% { transform: translate3d(8%, 3%, 0) scale(1.02); } }
@keyframes us-breathe { 0%, 100% { opacity: .4; } 50% { opacity: .95; } }
@keyframes us-pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes us-march { to { stroke-dashoffset: -26; } }
@keyframes us-draw { to { stroke-dashoffset: 0; } }
@keyframes us-ink { from { opacity: 0; filter: blur(3px); } to { opacity: 1; filter: none; } }
@keyframes us-rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes us-sink-kf { to { transform: translateY(120px); opacity: .15; filter: blur(4px); } }
@keyframes us-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes us-lit { from { background: var(--rule); box-shadow: none; } to { background: var(--lantern); box-shadow: 0 0 14px var(--lantern); } }
@keyframes us-swing { from { transform: perspective(600px) rotateY(0deg); } to { transform: perspective(600px) rotateY(-68deg); } }

/* Scroll-driven effects: Chromium today, a graceful no-op elsewhere. */
@supports (animation-timeline: view()) {
	.us-reveal { animation: us-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
	.us-sink { animation: us-sink-kf linear both; animation-timeline: scroll(root); animation-range: 0 900px; }
	.us-bar__progress { animation: us-grow linear both; animation-timeline: scroll(root); }
	.us-timeline__tick { animation: us-lit linear both; animation-timeline: view(); animation-range: entry 30% cover 50%; }
	.us-door__leaf { animation: us-swing linear both; animation-timeline: view(); animation-range: entry 30% cover 70%; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.us-note { opacity: 1; }
	.us-sketch path { stroke-dashoffset: 0; }
}

/* Editor ------------------------------------------------------------------ */
.editor-styles-wrapper .us-hero--editor { min-height: 32rem; background: radial-gradient(ellipse 60% 40% at 30% 60%, rgba(214, 208, 192, .12), transparent 70%), var(--ink); }
.editor-styles-wrapper .us-reveal { animation: none; }
.editor-styles-wrapper .us-archive__table--editor { height: auto; padding: 16px; }
.editor-styles-wrapper .us-archive__table--editor .block-editor-block-list__layout { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.editor-styles-wrapper .us-paper { position: relative; width: 280px; transform: none; cursor: default; }
.us-editor-note { padding: 24px; border: 1px dashed var(--rule); font-family: var(--mono); font-size: 13px; color: var(--muted); }
.us-editor-note strong { display: block; color: var(--bone); margin-bottom: 6px; }
.us-editor-panel { padding: 24px; border: 1px solid var(--rule); background: var(--ink-deep); }
.us-editor-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 8px; }
