/* =====================================================================
   JUNIPOST EDITION (front page)
   The public site dressed as the Junipost hardware: a warm grey chassis,
   a tangerine header band, keys sitting in wells, lamps, little dot-matrix
   displays, and a material per datastream:
     local       paper module under a tangerine nameplate, shown in full
     pixelfed    a graphite camera body, the photo on its screen;
                 a run of photos becomes a contact strip
     bookwyrm    half-width, blueberry nameplate
     pika's path half-width, key lime nameplate
   Only index.php loads this (plus eggs.css). The admin keeps style.css, so
   nothing here can change landfill.php.
   ===================================================================== */

:root {
	--jp-chassis: #E9E9E4;
	--jp-chassis-deep: #E3E3DD;
	--jp-paper: #F4F4EF;
	--jp-line: #CACAC4;
	--jp-ink: #161616;
	--jp-ink-2: #2B2B28;
	--jp-sub: #5F5F58;
	--jp-orange: #FF5B00;
	--jp-orange-ink: #C2410C;
	--jp-raspberry: #E2457A;
	--jp-blueberry: #1C6FD6;
	--jp-lime: #2B8A3E;
	--jp-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	--jp-sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--jp-dot: 'Doto', 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--jp-chassis); -webkit-text-size-adjust: 100%; }

/* The chassis is white iBook-era plastic: milky clouds, lighter and cooler,
   the way thick translucent white never reads as one flat colour, and
   (below) the plastic getting a touch denser toward the edges of the window. Fixed, so it stays put like the case. */
body.jp {
	position: relative;
	z-index: 0; /* so the edge shading below sits over the background, under the page */
	margin: 0;
	min-height: 100vh;
	background-color: var(--jp-chassis);
	background-image:
		linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .18) 42%, rgba(255, 255, 255, 0) 56%),
		radial-gradient(ellipse 55% 40% at 12% 8%, rgba(255, 255, 255, .65), rgba(255, 255, 255, 0) 70%),
		radial-gradient(ellipse 45% 50% at 88% 28%, rgba(190, 199, 204, .42), rgba(190, 199, 204, 0) 70%),
		radial-gradient(ellipse 60% 45% at 35% 62%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 70%),
		radial-gradient(ellipse 50% 40% at 78% 92%, rgba(205, 205, 194, .45), rgba(205, 205, 194, 0) 70%),
		radial-gradient(ellipse 40% 35% at 6% 78%, rgba(196, 204, 210, .38), rgba(196, 204, 210, 0) 70%);
	background-attachment: fixed;
	color: var(--jp-ink);
	font-family: var(--jp-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
body.jp::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	box-shadow: inset 0 0 120px 6px rgba(150, 158, 164, .12), inset 0 0 22px rgba(150, 158, 164, .07);
}

body.jp a { color: var(--jp-ink); text-decoration-color: var(--jp-orange); text-underline-offset: 3px; }
body.jp a:hover { color: var(--jp-orange-ink); }
body.jp :focus-visible { outline: 2px solid var(--jp-orange); outline-offset: 2px; }

.jp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header band ---------- */

/* Tangerine iBook plastic: candy orange with a gel highlight along the top
   edge, faint moulding lines, and the colour deepening toward the bottom
   edge where the plastic is thickest. */
.jp-header {
	background-color: #FF6A14;
	background-image:
		linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 13px),
		repeating-linear-gradient(0deg, rgba(255, 255, 255, .09) 0 2px, transparent 2px 4px),
		linear-gradient(#FF9447, #F25300);
	border-bottom: 1px solid rgba(150, 45, 0, .6);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .6),
		inset 0 -10px 16px -10px rgba(170, 50, 0, .5);
}
.jp-header-inner { max-width: 1240px; margin: 0 auto; padding: 13px 32px 12px; }
/* Block, not inline-block: an inline box sits on a text line and would add
   descender space under the wordmark. */
.jp-logo { display: block; width: fit-content; line-height: 0; }
.jp-logo img {
	display: block;
	width: min(300px, 100%);
	height: auto;
	filter: drop-shadow(0 1.5px 0 rgba(120, 30, 0, .35));
}

/* ---------- Layout ---------- */

.jp-wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 36px 32px 56px;
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: flex-start;
}
.jp-feed { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.jp-side { flex: 1 1 300px; max-width: 360px; display: flex; flex-direction: column; gap: 24px; }

/* ---------- Parts: labels, lamps, displays, keys ---------- */

.jp-label {
	font-family: var(--jp-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--jp-sub);
	margin: 0;
}
.jp-label b { color: #E04F00; font-weight: 800; }

.jp-lamp {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #A8A8A2;
	flex: none;
}
.jp-lamp.is-on { background: currentColor; box-shadow: 0 0 6px currentColor; }

.jp-display {
	background-color: #111;
	background-image:
		radial-gradient(circle, rgba(255, 255, 255, .075) .8px, transparent 1.1px),
		linear-gradient(rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 50%);
	background-size: 3px 3px, 100% 100%;
	border: 1px solid #000;
	border-radius: 7px;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .55);
}
.jp-dots {
	font-family: var(--jp-dot);
	font-weight: 900;
	color: #FFB06A;
	text-shadow: 0 0 6px rgba(255, 91, 0, .85);
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1.2;
}
.jp-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 5px; }
.jp-chip .jp-dots { font-size: 13px; }

.jp-well {
	display: inline-flex;
	gap: 4px;
	background: #D6D6D0;
	border-radius: 11px;
	padding: 3px;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, .16), 0 1px 0 rgba(255, 255, 255, .6);
}
.jp-key {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 8px;
	border: .5px solid rgba(0, 0, 0, .14);
	background: linear-gradient(#E7E7E2, #D4D4CD);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 1px 1.5px rgba(0, 0, 0, .18);
	font-family: var(--jp-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--jp-ink);
	text-decoration: none;
	cursor: pointer;
	transition: transform .08s ease, box-shadow .08s ease;
}
body.jp a.jp-key, body.jp .jp-key { color: var(--jp-ink); text-decoration: none; }
.jp-key:hover { background: linear-gradient(#EDEDE8, #D9D9D2); }
.jp-key:active { transform: scale(.965); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .18); }
.jp-key[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.jp-key svg { flex: none; }
body.jp .jp-key.jp-key-orange { background: linear-gradient(#FF7A26, #F05200); color: #fff; border-color: rgba(150, 40, 0, .5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 1px 1.5px rgba(0, 0, 0, .2); }
body.jp .jp-key.jp-key-orange:hover { background: linear-gradient(#FF8A3D, #F25A08); color: #fff; }
body.jp .jp-key.jp-key-dark {
	background: linear-gradient(#3A3A38, #262625);
	color: #F1F1EC;
	border-color: rgba(0, 0, 0, .6);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 1.5px rgba(0, 0, 0, .4);
}
body.jp .jp-key.jp-key-dark:hover { background: linear-gradient(#444441, #2C2C2B); color: #fff; }
.jp-well-dark { background: #0E0E0E; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .08); }

/* Screws: aluminium heads with a dark socket. */
.jp-screws { position: absolute; inset: 0; pointer-events: none; }
.jp-screws::before, .jp-screws::after, .jp-screws i::before, .jp-screws i::after {
	content: "";
	position: absolute;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 50% 50%, #3A3A3A 0 1.6px, transparent 1.8px),
		linear-gradient(#EFEFEE, #B6B6B2);
	box-shadow: 0 0 0 .5px rgba(0, 0, 0, .28), 0 .6px 0 rgba(255, 255, 255, .8);
}
.jp-screws::before { top: 10px; left: 10px; }
.jp-screws::after { top: 10px; right: 10px; }
.jp-screws i::before { bottom: 10px; left: 10px; }
.jp-screws i::after { bottom: 10px; right: 10px; }

/* ---------- Modules and nameplates ---------- */

.jp-card, .jp-module {
	position: relative;
	background: var(--jp-paper);
	border-radius: 14px;
	border: .5px solid rgba(0, 0, 0, .12);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 2px 4px rgba(0, 0, 0, .08);
}
.jp-card { overflow: hidden; }
.jp-module { padding: 26px 26px 24px; }

/* Candy nameplates: the material says which datastream a post came from. */
.jp-plate {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 22px 12px 26px;
	border-bottom: 1px solid rgba(0, 0, 0, .2);
	font-family: var(--jp-mono);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.jp-tangerine {
	color: #1A1A1A;
	background-color: #FF6A14;
	background-image:
		linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 15px),
		repeating-linear-gradient(0deg, rgba(255, 255, 255, .10) 0 2px, transparent 2px 4px),
		linear-gradient(#FF8E40, #F25300);
}
.jp-blueberry {
	color: #fff;
	background-color: #1D69DE;
	background-image:
		linear-gradient(rgba(255, 255, 255, .4), rgba(255, 255, 255, 0) 15px),
		repeating-linear-gradient(0deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 4px),
		linear-gradient(#3F8BF0, #1254C2);
}
.jp-keylime {
	color: #14280A;
	background-color: #79C232;
	background-image:
		linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 15px),
		repeating-linear-gradient(0deg, rgba(255, 255, 255, .10) 0 2px, transparent 2px 4px),
		linear-gradient(#A2DC57, #62AE22);
}
.jp-plate .jp-ext { font-size: 11px; }
body.jp .jp-blueberry a { color: #fff; }
body.jp .jp-keylime a, body.jp .jp-tangerine a { color: #14140F; }

.jp-body { padding: 30px 40px 32px; }
.jp-title {
	margin: 0 0 16px;
	font-size: 36px;
	line-height: 1.1;
	letter-spacing: -.025em;
	font-weight: 700;
}
body.jp .jp-title a { text-decoration: none; }
body.jp .jp-title a:hover { color: var(--jp-orange-ink); }
.jp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* A local post's own words, shown in full. */
.jp-prose { font-size: 18px; line-height: 1.65; color: var(--jp-ink-2); overflow-wrap: break-word; }
.jp-prose > :first-child { margin-top: 0; }
.jp-prose > :last-child { margin-bottom: 0; }
.jp-prose p { margin: 0 0 1.05em; }
.jp-prose h2 { font-size: 1.45rem; line-height: 1.25; letter-spacing: -.015em; margin: 1.6em 0 .6em; color: var(--jp-ink); }
.jp-prose h3 { font-size: 1.15rem; line-height: 1.3; margin: 1.4em 0 .5em; color: var(--jp-ink); }
.jp-prose a { color: var(--jp-ink); text-decoration: underline; text-decoration-color: var(--jp-orange); text-decoration-thickness: 2px; }
.jp-prose img, .jp-prose video { max-width: 100%; height: auto; border-radius: 9px; display: block; margin: 1.2em auto; }
.jp-prose iframe { max-width: 100%; border: 0; border-radius: 9px; }
.jp-prose blockquote { margin: 1.2em 0; padding: .2em 0 .2em 1.1em; border-left: 3px solid var(--jp-line); color: var(--jp-sub); }
.jp-prose ul, .jp-prose ol { padding-left: 1.3em; margin: 0 0 1.05em; }
.jp-prose figure { margin: 1.2em 0; }
.jp-prose figcaption { font-size: .85em; color: var(--jp-sub); text-align: center; }
.jp-prose hr { border: 0; border-top: 1px solid var(--jp-line); margin: 2em 0; }
.jp-prose table { max-width: 100%; display: block; overflow-x: auto; }

/* ---------- Pixelfed: a camera body ---------- */

.jp-camera {
	position: relative;
	background: linear-gradient(#2E2E2D, #181818);
	border-radius: 16px;
	padding: 16px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 2px 6px rgba(0, 0, 0, .25);
	color: #EDEDEA;
}
.jp-cam-head { display: flex; align-items: center; gap: 10px; padding: 0 4px 12px; }
.jp-cam-label {
	font-family: var(--jp-mono);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .62);
}
.jp-screen {
	position: relative;
	display: block;
	border-radius: 8px;
	overflow: hidden;
	background: #0B0B0B;
	box-shadow: 0 0 0 1px #000, 0 0 0 4px #0D0D0D;
	line-height: 0;
}
.jp-screen img { display: block; width: 100%; height: auto; }
.jp-screen.is-square { aspect-ratio: 1 / 1; }
.jp-screen.is-square img { height: 100%; object-fit: cover; }
.jp-hud {
	position: absolute;
	top: 10px;
	right: 12px;
	line-height: 1;
	padding: 4px 7px;
	border-radius: 5px;
	background: rgba(0, 0, 0, .45);
}
.jp-hud .jp-dots { font-size: 12px; }
.jp-cam-caption {
	margin: 14px 6px 0;
	font-size: 15px;
	line-height: 1.55;
	color: #E6E6E1;
	overflow-wrap: break-word;
}
.jp-cam-foot { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 4px 2px; }

.jp-strip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.jp-strip-grid.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jp-frame { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.jp-frame figcaption { padding: 0 4px; display: flex; flex-direction: column; gap: 6px; }
.jp-frame .jp-cam-caption {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
body.jp .jp-camera a.jp-cam-link { color: rgba(255, 255, 255, .75); font-family: var(--jp-mono); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
body.jp .jp-camera a.jp-cam-link:hover { color: #FFB06A; }

/* ---------- The half-width pair: BookWyrm and Pika's Path ---------- */

.jp-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.jp-small .jp-body { padding: 22px 24px 24px; }
.jp-small-title { margin: 0 0 4px; font-size: 20px; line-height: 1.25; font-weight: 700; overflow-wrap: break-word; }
.jp-small-sub { margin: 0; font-size: 15px; color: #4A4A45; }
/* BookWyrm: the cover is a real book (spine sheen, a block of page edges);
   the verdict is a little display of dot-matrix stars. */
.jp-book { display: flex; gap: 22px; align-items: flex-start; }
.jp-book-info { flex: 1; min-width: 0; }
.jp-cover {
	position: relative;
	flex: none;
	width: 104px;
	aspect-ratio: 2 / 3;
	border-radius: 2px 5px 5px 2px;
	overflow: hidden;
	background: repeating-linear-gradient(135deg, #D8D8D2 0 10px, #D0D0C9 10px 20px);
	box-shadow:
		1px 1px 0 #F8F6EF,
		2px 2px 0 #D8D4C8,
		3px 3px 0 #F8F6EF,
		4px 4px 0 #CFCABD,
		5px 7px 12px rgba(0, 0, 0, .2);
}
.jp-cover::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(0, 0, 0, .28) 0, rgba(255, 255, 255, .3) 3%, rgba(255, 255, 255, 0) 8%, rgba(0, 0, 0, 0) 90%, rgba(0, 0, 0, .1));
}
.jp-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jp-cover.is-blank { background: linear-gradient(160deg, #4A78DE, #2A51B0); }
.jp-cover-title {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 10px 12px 14px;
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.25;
	color: rgba(255, 255, 255, .92);
	overflow-wrap: anywhere;
}
.jp-finished { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.jp-finished .jp-lamp { color: var(--jp-blueberry); }
.jp-verdict { display: inline-flex; align-items: center; gap: 11px; margin-top: 14px; padding: 8px 12px 8px 11px; }
.jp-verdict .jp-dots { font-size: 15px; line-height: 1; }
.jp-stars { display: flex; gap: 4px; }
.jp-star { display: block; width: 15px; height: 15px; }
.jp-star.is-on { filter: drop-shadow(0 0 2.5px rgba(255, 91, 0, .9)); }
.jp-star i {
	display: block;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, .13);
	-webkit-mask: var(--jp-star-dots) center / contain no-repeat;
	mask: var(--jp-star-dots) center / contain no-repeat;
}
.jp-star.is-on i { background: #FFB06A; }
/* When the display is the link to the review: a dim arrow in the corner of
   the glass, and the unlit dots warm up a touch on hover. No lift, no glow. */
body.jp a.jp-verdict { text-decoration: none; }
.jp-verdict-go { margin-left: -3px; font-family: var(--jp-mono); font-size: 12px; font-weight: 700; color: rgba(255, 176, 106, .55); }
a.jp-verdict:hover .jp-verdict-go { color: #FFB06A; }
a.jp-verdict:hover .jp-star:not(.is-on) i { background: rgba(255, 176, 106, .24); }
a.jp-verdict:focus-visible { outline: 2px solid var(--jp-blueberry); outline-offset: 3px; }
.jp-verdict { --jp-star-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7'%3E%3Ccircle cx='3.5' cy='0.5' r='.42'/%3E%3Ccircle cx='2.5' cy='1.5' r='.42'/%3E%3Ccircle cx='3.5' cy='1.5' r='.42'/%3E%3Ccircle cx='4.5' cy='1.5' r='.42'/%3E%3Ccircle cx='0.5' cy='2.5' r='.42'/%3E%3Ccircle cx='1.5' cy='2.5' r='.42'/%3E%3Ccircle cx='2.5' cy='2.5' r='.42'/%3E%3Ccircle cx='3.5' cy='2.5' r='.42'/%3E%3Ccircle cx='4.5' cy='2.5' r='.42'/%3E%3Ccircle cx='5.5' cy='2.5' r='.42'/%3E%3Ccircle cx='6.5' cy='2.5' r='.42'/%3E%3Ccircle cx='1.5' cy='3.5' r='.42'/%3E%3Ccircle cx='2.5' cy='3.5' r='.42'/%3E%3Ccircle cx='3.5' cy='3.5' r='.42'/%3E%3Ccircle cx='4.5' cy='3.5' r='.42'/%3E%3Ccircle cx='5.5' cy='3.5' r='.42'/%3E%3Ccircle cx='2.5' cy='4.5' r='.42'/%3E%3Ccircle cx='3.5' cy='4.5' r='.42'/%3E%3Ccircle cx='4.5' cy='4.5' r='.42'/%3E%3Ccircle cx='1.5' cy='5.5' r='.42'/%3E%3Ccircle cx='2.5' cy='5.5' r='.42'/%3E%3Ccircle cx='4.5' cy='5.5' r='.42'/%3E%3Ccircle cx='5.5' cy='5.5' r='.42'/%3E%3Ccircle cx='1.5' cy='6.5' r='.42'/%3E%3Ccircle cx='5.5' cy='6.5' r='.42'/%3E%3C/svg%3E"); }
.jp-trip-photo { display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; margin-bottom: 14px; background: #DDE8CF; }
.jp-trip-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jp-trip-note { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: #3B3B37; }
.jp-small .jp-actions { margin-top: 18px; }

/* ---------- Filter / search readout, pagination ---------- */

.jp-readout { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 8px 0 18px; }
.jp-readout .jp-dots { flex: 1; min-width: 0; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jp-readout .jp-lamp { color: var(--jp-orange); width: 8px; height: 8px; }

.jp-pages { display: flex; justify-content: center; padding-top: 8px; }
.jp-pages .jp-display { display: flex; align-items: center; padding: 0 18px; }
.jp-pages .jp-dots { font-size: 16px; }

/* ---------- Sidebar ---------- */

.jp-module h2 { margin-bottom: 14px; }
.jp-intro { font-size: 15px; line-height: 1.55; }
.jp-intro p { margin: 0 0 14px; }
.jp-streams { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
/* Datastream legend: the same materials as the feed. The row filters this
   site to that stream; the arrow goes to the stream's own home. */
.jp-stream {
	display: flex;
	align-items: stretch;
	border-radius: 7px;
	overflow: hidden;
	font-family: var(--jp-mono);
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .6), 0 0 0 .5px rgba(0, 0, 0, .18);
}
body.jp .jp-stream a { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; color: inherit; text-decoration: none; }
body.jp .jp-stream a:first-child { flex: 1; }
body.jp .jp-stream a:hover { background: rgba(255, 255, 255, .14); color: inherit; }
body.jp .jp-stream .jp-stream-out { justify-content: center; min-width: 40px; border-left: 1px solid rgba(0, 0, 0, .18); font-size: 13px; }
.jp-stream.jp-graphite { background: linear-gradient(#2E2E2D, #181818); color: #EDEDEA; }
.jp-feeds { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Projects: app icons; each opens a little popover. */
.jp-projects { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; }
.jp-project { position: relative; display: flex; justify-content: center; }
.jp-project-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	font: inherit;
	color: inherit;
}
.jp-project-icon {
	display: block;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	padding: 3px;
	background: #D6D6D0;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, .16), 0 1px 0 rgba(255, 255, 255, .6);
	transition: transform .08s ease;
}
.jp-project-icon img { display: block; width: 46px; height: 46px; border-radius: 10px; }
.jp-project-btn:active .jp-project-icon { transform: scale(.95); }
.jp-project-name { font-family: var(--jp-mono); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--jp-sub); text-align: center; }
/* Project popovers: little Mac OS 8/9 "Platinum" windows, laid out like
   Get Info. Grooved title bar with a close box and a windowshade box, a
   platinum body, and a classic Platinum default button. index.php opens them with the
   classic zoom rectangles (.jp-zoomrect). */
.jp-pop {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	z-index: 30;
	width: 262px;
	transform: translateX(-50%);
	border: 1px solid #000;
	border-radius: 2px;
	background: #DDDDDD;
	box-shadow:
		inset 1px 1px 0 #FFFFFF,
		inset -1px -1px 0 #999999,
		2px 2px 0 rgba(0, 0, 0, .35),
		0 12px 28px rgba(0, 0, 0, .18);
	color: #000;
	font-family: Charcoal, Chicago, Geneva, var(--jp-sans);
	text-align: left;
	visibility: hidden;
	opacity: 0;
}
.jp-project:nth-child(4n+1) .jp-pop { left: 0; transform: none; }
.jp-project:nth-child(4n) .jp-pop { left: auto; right: 0; transform: none; }
.jp-project.is-open .jp-pop { visibility: visible; opacity: 1; }
.jp-pop.is-zooming { opacity: 0; }
/* A bridge over the gap, so the pointer can travel from icon to window. */
.jp-pop::before { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 12px; }

.jp-pop-bar {
	display: flex;
	align-items: center;
	height: 20px;
	margin: 1px 1px 0;
	padding: 0 6px;
	border-bottom: 1px solid #808080;
	background:
		repeating-linear-gradient(180deg, #FFFFFF 0 1px, #9A9A9A 1px 2px) 0 4px / 100% 12px no-repeat,
		#DDDDDD;
}
.jp-pop-title {
	flex: 0 1 auto;
	min-width: 0;
	margin: 0 auto;
	padding: 0 8px;
	background: #DDDDDD;
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.jp-pop-close, .jp-pop-shade {
	position: relative;
	flex: none;
	width: 11px;
	height: 11px;
	padding: 0;
	border: 1px solid #000;
	background: #DDDDDD;
	box-shadow: inset 1px 1px 0 #FFFFFF, inset -1px -1px 0 #888888, 0 0 0 2px #DDDDDD;
}
.jp-pop-close { cursor: pointer; }
.jp-pop-close::before { content: ""; position: absolute; inset: -9px; } /* a bigger target than it looks */
.jp-pop-close:active { background: #888888; box-shadow: inset 1px 1px 0 #555555, 0 0 0 2px #DDDDDD; }
.jp-pop-shade::after { content: ""; position: absolute; left: 1px; right: 1px; top: 3px; height: 1px; background: #000; box-shadow: 0 2px 0 #000; }

.jp-pop-body {
	margin: 0 1px 1px;
	padding: 12px 14px 14px;
	background: #E8E8E8;
	box-shadow: inset 1px 1px 0 #FFFFFF, inset -1px -1px 0 #B8B8B8;
}
.jp-pop-info { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.jp-pop-icon { flex: none; width: 40px; height: 40px; border-radius: 9px; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.jp-pop-info dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; margin: 0; font-size: 12px; line-height: 1.35; }
.jp-pop-info dt { font-weight: 700; text-align: right; }
.jp-pop-info dd { margin: 0; overflow-wrap: anywhere; }
.jp-pop-blurb { margin: 0 0 14px; font-size: 13px; line-height: 1.45; color: #111; }
.jp-pop-foot { display: flex; justify-content: flex-end; }

/* A classic Platinum push button, with the thick black ring that marked
   the default button ("press Return for this one"). The site around it is
   all OS X; this is the little Classic window peeking through. */
body.jp a.jp-classic-btn {
	display: inline-flex;
	align-items: center;
	min-height: 22px;
	margin: 5px 5px 4px;
	padding: 0 16px;
	border: 1px solid #000;
	border-radius: 5px;
	background: linear-gradient(#F4F4F4, #CFCFCF);
	box-shadow:
		inset 1px 1px 0 #FFFFFF,
		inset -1px -1px 0 #9A9A9A,
		0 0 0 2px #E8E8E8,
		0 0 0 5px #000;
	color: #000;
	font: 12px/1 Charcoal, Chicago, Geneva, var(--jp-sans);
	text-decoration: none;
	white-space: nowrap;
}
body.jp a.jp-classic-btn:hover { color: #000; }
body.jp a.jp-classic-btn:active {
	background: linear-gradient(#5A5A5A, #7A7A7A);
	box-shadow:
		inset 1px 1px 0 #333333,
		inset -1px -1px 0 #8C8C8C,
		0 0 0 2px #E8E8E8,
		0 0 0 5px #000;
	color: #fff;
}

/* Mac OS zoom rectangles, drawn while a project window opens. */
.jp-zoomrect {
	position: absolute;
	z-index: 29;
	border: 1px solid rgba(0, 0, 0, .7);
	pointer-events: none;
	opacity: 0;
}

/* A slim bar across the bottom of the panel, below a hairline: the way
   off to the full write-ups. */
body.jp a.jp-projects-more {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 20px -6px 0;
	padding: 0 12px;
	min-height: 34px;
	border-radius: 8px;
	background: #DEDED8;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, .12), 0 1px 0 rgba(255, 255, 255, .6);
	font-family: var(--jp-mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--jp-sub);
	text-decoration: none;
	position: relative;
}
body.jp a.jp-projects-more::before {
	content: "";
	position: absolute;
	left: 6px;
	right: 6px;
	top: -11px;
	border-top: 1px solid rgba(0, 0, 0, .09);
}
.jp-projects-more-site { color: #B23A00; overflow: hidden; text-overflow: ellipsis; }
body.jp a.jp-projects-more:hover { background: #E6E6E0; color: var(--jp-ink); }

.jp-metrics { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.jp-metrics .jp-dots { font-size: 15px; display: flex; justify-content: space-between; gap: 10px; }
.jp-spark { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 2px; height: 34px; align-items: end; margin-top: 8px; }
.jp-spark span { display: block; border-radius: 1px; background: rgba(255, 255, 255, .09); min-height: 3px; }
.jp-spark span.is-on { background: #FF8A3D; box-shadow: 0 0 4px rgba(255, 91, 0, .8); }

/* ---------- Footer ---------- */

.jp-footer { border-top: 1px solid var(--jp-line); background: var(--jp-chassis-deep); }
.jp-footer-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 22px 32px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	align-items: center;
	font-family: var(--jp-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--jp-sub);
}
.jp-footer-inner b { color: #E04F00; }

/* ---------- Narrow screens ---------- */

/* Once the sidebar drops below the feed, spread its panels across. */
@media (max-width: 980px) {
	.jp-side {
		max-width: none;
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
		align-items: start;
	}
}
@media (max-width: 640px) {
	.jp-header-inner { padding: 10px 16px 9px; }
	.jp-logo img { width: min(220px, 100%); }
	.jp-wrap { padding: 20px 14px 40px; gap: 22px; }
	.jp-feed { gap: 18px; }
	.jp-body { padding: 22px 20px 24px; }
	.jp-plate { padding: 11px 16px 11px 18px; }
	.jp-title { font-size: 28px; }
	.jp-prose { font-size: 17px; }
	.jp-camera { padding: 12px; border-radius: 14px; }
	.jp-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.jp-strip-grid .jp-hud { top: 6px; right: 6px; padding: 3px 5px; }
	.jp-strip-grid .jp-hud .jp-dots { font-size: 10px; }
	.jp-pair { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.jp-module { padding: 22px 20px; }
	.jp-footer-inner { padding: 18px 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.jp-key, .jp-project-icon { transition: none; }
}
