/* Loud Paper 0.9.0: the premium pass (Sameer, 2026-11-26: "fix all except the ads").
   Loads last on every page. The brand stays (colours, fonts, doors); what changes is restraint:
   one width, one spacing rhythm, ink outlines and hard shadows only on each section's hero piece,
   fewer pills, captions under their headings, a bolder home hero.
   Ad slots, ad scripts and ad spacing are untouched. */

:root { --lp-wide: var(--wp--style--global--wide-size, 1200px); --lp-hair: rgba(20, 20, 20, 0.14); }
html[data-theme="night"] { --lp-hair: rgba(246, 241, 231, 0.16); }
@media (prefers-color-scheme: dark) { html:not([data-theme="day"]) { --lp-hair: rgba(246, 241, 231, 0.16); } }

/* ---------- 1. One width: the home hero and the three cards under it line up with every section below ---------- */
.home .lp-hero.alignfull,
.home .lp-trio {
	width: min(var(--lp-wide), calc(100% - 2 * var(--wp--custom--spacing--outer))) !important;
	max-width: none !important;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box;
}
.home .lp-hero.alignfull { padding-left: clamp(24px, 5vw, 72px) !important; padding-right: clamp(24px, 5vw, 72px) !important; }
.home .lp-hero > .wp-block-columns.alignwide { max-width: none !important; width: 100%; }

/* ---------- 2. A bolder hero: a bigger headline, the "?" a touch clearer ---------- */
:root .home .lp-hero__title { font-size: clamp(56px, 2rem + 5.8vw, 112px); max-width: 9.5ch; }
.home .lp-hero .lp-qmark { color: rgba(255, 255, 255, 0.16) !important; }

/* ---------- 3. One rhythm between sections ---------- */
.home .lp-rule-top,
.home .lp-fresh,
.home .lp-band { padding-top: 96px !important; padding-bottom: 96px !important; }
/* Fresh and Side quests share a background, so the two paddings read as one dead gap; halve the seam */
.home .lp-fresh:has(+ .lp-band) { padding-bottom: 40px !important; }
.home .lp-fresh + .lp-band { padding-top: 56px !important; }
.home .lp-trio { margin-top: 24px !important; }

/* ---------- 4. Captions sit under their headings, not floating at the far right ---------- */
.home .lp-rule-top > .is-content-justification-space-between,
.home .lp-band > .is-content-justification-space-between {
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: flex-start !important;
	gap: 10px !important;
}
.home .lp-rule-top > .is-content-justification-space-between > p,
.home .lp-band > .is-content-justification-space-between > p { margin: 0 !important; max-width: 52ch; font-size: 17px; text-align: left; }

/* ---------- 5. Outlines and hard shadows only on the hero pieces ---------- */
/* the three cards under the hero: colour does the work, so the ink outline goes; the paper card keeps a hairline */
.home .lp-trio__card { border-color: transparent !important; }
.home .lp-trio__card--paper { border: 1px solid var(--lp-hair) !important; }
.home .lp-shuffle .lp-shuffle__q, .home .lp-trio .lp-shuffle__q { box-shadow: none !important; border-width: 1.5px !important; }

/* Fresh in the Hallway: rebuilt as an editorial lead + list in 0.9.3 (home.css) */

/* On my desk + the Loud Letter: the letter is the hero piece, the desk note is a quiet surface beside it */
.home .lp-desk { border-color: transparent !important; }
.lp-issue__blob { display: none !important; }
.lp-deskrow .lp-issue__in, .lp-issue__in { max-width: 560px !important; }

/* posts' sidebar boxes: keep the ink outline, drop the coloured offset shadows (the post is the hero here) */
.lp-sq { box-shadow: none !important; }

/* The Human: the five short-version cards sit inside an outlined panel already, so they lose their own outline */
.lp-deep__in .lp-grid-4 > .lp-box { border-color: transparent !important; box-shadow: none !important; }

/* ---------- 6. Fewer pills ---------- */
/* footer links are plain text links */
.lp-footer-base a {
	min-height: 44px;
	padding: 0 !important;
	margin-right: 28px !important;
	border: 0 !important;
	border-radius: 0 !important;
	text-decoration: underline !important;
	text-decoration-color: transparent !important;
	text-underline-offset: 6px;
	text-decoration-thickness: 2px !important;
	transition: text-decoration-color 0.15s ease;
}
.lp-footer-base a:hover, .lp-footer-base a:focus-visible { text-decoration-color: currentColor !important; }
/* tags: a lighter line */
a.lp-tag, .lp-tags a { border-width: 1.5px !important; }

/* ---------- 7. (0.9.1) The handwriting stays where it was: "start here", 404 "Bold move.", "psst", the inbox stamp
   (Sameer: "we need those touches too"). ---------- */

@media (prefers-reduced-motion: reduce) { .lp-footer-base a { transition: none; } }

/* ---------- 8. (0.9.4) Design verification fixes (Sameer, 2026-11-26: "go with proposed fix"; report
   claude/qa-design-verification-2026-11-26.md). Layout shift, the pinned header, arched doors, sizes. ---------- */

/* "Remember my place" is rendered by the template and wired up by loud-paper.js; until then it holds its space unseen */
.lp-place-btn[data-lp-wait] { visibility: hidden; }

/* Archive and tag pages: `.lp-doorpage > *` zeroes every child's margin, which also removed the 88px the archive ad slot asks for
   inline, leaving its ad 83-86px from the last card's tag links (house rule: 96px+). Spacing only; the ad markup is unchanged. */
.lp-doorpage > .wp-block-html + .lp-ad--auto, .lp-doorpage > .lp-ad--auto { margin-top: 88px !important; }

/* Pinned post header: paper behind the pill so the article doesn't show through around it while scrolling */
body.single header.wp-block-template-part:has(.lp-head) {
	background: linear-gradient(to bottom, var(--lp-paper) 0, var(--lp-paper) calc(100% - 10px), transparent 100%);
}

/* End-of-post (and 404) door tiles are doors, so they are arches like the home doors; "Random rabbit hole" stays a card */
.lp-next-tile:is(.is-curious, .is-loud, .is-different) {
	border-radius: 50% 50% 18px 18px / 42% 42% 18px 18px;
	min-height: 184px;
	padding-top: 56px;
	justify-content: flex-end;
	text-align: center;
	align-items: center;
}
/* wider tiles: a 4:3 tile with a half-width radius keeps a round arch instead of a flat dome */
@media (min-width: 782px) {
	.lp-next-tile:is(.is-curious, .is-loud, .is-different) { aspect-ratio: 4 / 3; min-height: 0; border-radius: 50% 50% 18px 18px / 66.6% 66.6% 18px 18px; }
}

/* Bigger hit areas, same look (WCAG 2.5.8 aim of 44px): post byline, door labels in Fresh rows, card links */
.lp-byline a, .lp-fresh__door a, .home .lp-link a { display: inline-block; padding-block: 12px; margin-block: -12px; }

/* 11px labels up to 12px on phones and desktop alike */
.lp-sq-head span, .lp-sq .lp-badge, .lp-glance .k, .lp-qcard .lp-badge, .lp-inbox__k, .lp-receipt__s, .lp-rail__n { font-size: 12px; }

/* Loud Letter card: the blue blob stays clear of the heading on phones */
@media (max-width: 600px) { .lp-lcard__blob { right: -72px; top: -96px; width: 150px; height: 150px; } }

/* Fresh in the Hallway (two columns): the five rows share the lead story's height instead of stopping short of it */
@media (min-width: 901px) {
	.lp-fresh__grid { align-items: stretch; }
	.lp-fresh .lp-fresh__more { display: flex; flex-direction: column; }
	.lp-fresh .lp-fresh__more .wp-block-post-template { display: flex !important; flex-direction: column; flex: 1; }
	.lp-fresh .lp-fresh__more li { flex: 1 1 auto; align-content: center; }
	.lp-fresh .lp-fresh__more li:first-child { padding-top: 0; align-content: start; }
}
