/* ============================================================================
   Photo Memory Hub — "Album" layer (direction B, 2026-09-29)
   Loads LAST, after theme-variables.css (tokens + faces) and main.css (shared
   core). main.css still supplies the mobile drawer, comments and content
   basics; it reads the --color-* bridge, so it paints on paper too.

   Page architecture (home): paper masthead → the album spread (four prints
   of three sizes on white mounts with black photo corners, tilted a degree,
   titles + a pencil caption UNDER each print; the six drawers as divider tabs
   down the right edge) → "From the drawers" (one row of three small prints
   per category) → the pinned newsletter card → the endpaper footer.
   ========================================================================= */

/* --- Base ---------------------------------------------------------------- */

html { overflow-x: clip; background: var(--pmh-paper); }
body {
    background: var(--pmh-paper);
    color: var(--pmh-ink);
    font-family: var(--pmh-text);
    font-size: var(--pmh-size-body);
    line-height: var(--pmh-lh-body);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--pmh-display);
    color: var(--pmh-ink);
    line-height: var(--pmh-lh-head);
    letter-spacing: var(--pmh-track-head);
    font-weight: 700;
}
a { color: var(--pmh-crimson); }
a:hover { color: var(--pmh-crimson-dark); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--pmh-crimson); outline-offset: 2px; }
button, input, select, textarea { font-family: var(--pmh-ui); }
::selection { background: var(--pmh-crimson); color: var(--pmh-on-crimson); }
img { background: var(--pmh-endpaper); }

.site-container { max-width: var(--pmh-page-max); margin: 0 auto; padding-left: var(--pmh-gutter); padding-right: var(--pmh-gutter); }
/* main.css gives .site-main 3rem padding; the templates own their spacing.
   Every template ends in the newsletter card: the last block's 0.5rem + the
   newsletter's 1rem make the same 24px gap on every page. */
.site-main { padding-top: 0; padding-bottom: 0; }

.pmh-skip-link { position: absolute; left: -9999px; top: 0; background: var(--pmh-crimson); color: var(--pmh-on-crimson); padding: 0.75rem 1rem; z-index: 2000; font-weight: 700; }
.pmh-skip-link:focus { left: 1rem; top: 1rem; }

/* Labels — Karla small caps, tracked. */
.pmh-label, .pmh-kicker, .pmh-meta, .pmh-chip, .pmh-ad::before, .pmh-head-count, .pmh-head-kicker, .pmh-widget-title, .pmh-rail-title,
.pmh-index-label, .pmh-archive-kicker, .pmh-breadcrumb, .pmh-pager-count, .pmh-newsletter-eyebrow, .pmh-tabs-label, .pmh-drawer-num,
.pmh-drawer-count, .pmh-bookplate-label {
    font-family: var(--pmh-ui);
    font-size: var(--pmh-size-meta);
    font-weight: 700;
    letter-spacing: var(--pmh-track-meta);
    text-transform: uppercase;
    font-style: normal;
}
.pmh-kicker { color: var(--pmh-crimson); margin: 0 0 0.5rem; }
.pmh-meta { color: var(--pmh-meta); margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pmh-meta .sep { color: var(--pmh-rule-strong); }
/* Drawer label — crimson small caps, text only. Never a pill. */
.pmh-chip, a.pmh-chip { color: var(--pmh-crimson); text-decoration: none; display: inline-flex; align-items: center; min-height: var(--pmh-tap); margin: -12px 0; }
.pmh-chip:hover, a.pmh-chip:hover { color: var(--pmh-crimson-dark); text-decoration: underline; text-underline-offset: 0.2em; }

/* --- The print: white mount, four black photo corners, soft shadow ---------- */

.pmh-print { display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.pmh-mount {
    display: block; position: relative; background: var(--pmh-mount); padding: 12px;
    box-shadow: var(--pmh-shadow); transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.pmh-mount img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
/* Photo corners: four triangles over the photo's corners, one pseudo-element. */
.pmh-mount::after, .pmh-mounted::after {
    content: ""; position: absolute; inset: 4px; pointer-events: none;
    --c: 26px;
    background:
        linear-gradient(135deg, var(--pmh-corner) 0 50%, transparent 50%) top left / var(--c) var(--c) no-repeat,
        linear-gradient(225deg, var(--pmh-corner) 0 50%, transparent 50%) top right / var(--c) var(--c) no-repeat,
        linear-gradient(45deg, var(--pmh-corner) 0 50%, transparent 50%) bottom left / var(--c) var(--c) no-repeat,
        linear-gradient(315deg, var(--pmh-corner) 0 50%, transparent 50%) bottom right / var(--c) var(--c) no-repeat;
}
.pmh-print--lg .pmh-mount { padding: 16px; }
.pmh-print--lg .pmh-mount::after { --c: 34px; inset: 5px; }
.pmh-print--sm .pmh-mount { padding: 9px; }
.pmh-print--sm .pmh-mount::after { --c: 20px; inset: 3px; }
.pmh-print--md .pmh-mount img { aspect-ratio: 16 / 10; }

/* Laid loosely: a degree or so. Only the mount turns; the words stay level. */
.pmh-tilt-1 .pmh-mount { transform: rotate(-1.2deg); }
.pmh-tilt-2 .pmh-mount { transform: rotate(1deg); }
.pmh-tilt-3 .pmh-mount { transform: rotate(-0.7deg); }
.pmh-tilt-4 .pmh-mount { transform: rotate(1.4deg); }
.pmh-print:hover .pmh-mount { transform: rotate(0deg) translateY(-2px); box-shadow: 0 2px 3px rgba(43,33,24,.12), 0 14px 24px -10px rgba(43,33,24,.34); }

.pmh-print-body { display: flex; flex-direction: column; gap: 0.35rem; padding: 0 4px; }
.pmh-print-title { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.22; text-wrap: pretty; }
.pmh-print-title a { color: var(--pmh-ink); text-decoration: none; }
.pmh-print-title a:hover { color: var(--pmh-crimson); }
.pmh-print--lg .pmh-print-title { font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 800; line-height: 1.12; }
.pmh-print--sm .pmh-print-title { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
/* The pencil caption — Caveat, one line, the post's own first sentence. */
.pmh-pencil {
    margin: 0; font-family: var(--pmh-hand); font-weight: 500; font-size: 1.3125rem; line-height: 1.3; color: var(--pmh-meta);
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.pmh-print--lg .pmh-pencil { font-size: 1.5rem; -webkit-line-clamp: 2; }

/* --- Masthead: paper bar, colour logo left, small-caps nav, search ---------- */

.pmh-masthead { background: var(--pmh-paper); border-bottom: 1px solid var(--pmh-rule); }
.pmh-masthead-inner {
    max-width: var(--pmh-page-max); margin: 0 auto; padding: 0 var(--pmh-gutter);
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand nav actions" "search search search";
    align-items: center; column-gap: 1.5rem; min-height: 84px; position: relative;
}
.pmh-brand { grid-area: brand; display: flex; align-items: center; }
.pmh-brand a { display: flex; align-items: center; text-decoration: none; min-height: var(--pmh-tap); }
.pmh-brand-h1 { margin: 0; line-height: 1; display: flex; align-items: center; }
.pmh-brand-logo { height: 42px; width: auto; display: block; background: transparent; }
.pmh-masthead .header-actions { grid-area: actions; display: flex; align-items: center; gap: 0.25rem; }
.pmh-masthead .main-navigation { grid-area: nav; justify-self: end; min-width: 0; }
.pmh-drawer-clip { display: contents; }

/* Six long drawer names: set as two-line small caps, like album divider labels. */
.pmh-masthead .primary-menu { display: flex; align-items: center; justify-content: flex-end; gap: 0; list-style: none; margin: 0; padding: 0; }
.pmh-masthead .main-navigation a {
    display: inline-flex; align-items: center; min-height: 52px; padding: 0 0.7rem; max-width: 10.5em;
    font-family: var(--pmh-nav); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    line-height: 1.3; color: var(--pmh-ink); text-decoration: none; position: relative;
}
.pmh-masthead .main-navigation a:hover { color: var(--pmh-crimson); }
.pmh-masthead .main-navigation a::after { content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.2rem; height: 2px; background: var(--pmh-crimson); opacity: 0; }
.pmh-masthead .main-navigation .current-menu-item > a,
.pmh-masthead .main-navigation .current-post-ancestor > a,
.pmh-masthead .main-navigation .current-cat > a { color: var(--pmh-crimson); }
.pmh-masthead .main-navigation .current-menu-item > a::after,
.pmh-masthead .main-navigation .current_page_item > a::after,
.pmh-masthead .main-navigation .current-post-ancestor > a::after,
.pmh-masthead .main-navigation .current-cat > a::after { opacity: 1; }

.pmh-masthead .desktop-search-toggle, .pmh-masthead .mobile-search-toggle, .pmh-masthead .mobile-menu-toggle {
    width: var(--pmh-tap); height: var(--pmh-tap); min-width: var(--pmh-tap); color: var(--pmh-ink); background: transparent; border: 0;
}
.pmh-masthead .desktop-search-toggle svg, .pmh-masthead .mobile-search-toggle svg { color: var(--pmh-ink); }
.pmh-masthead .desktop-search-toggle:hover svg, .pmh-masthead .mobile-search-toggle:hover svg { color: var(--pmh-crimson); }
.pmh-masthead .hamburger-line { background: var(--pmh-ink); }

.pmh-masthead .desktop-search-form, .pmh-masthead .mobile-search-form { grid-area: search; background: var(--pmh-mount); border-top: 1px solid var(--pmh-rule); margin-bottom: 0; }
.pmh-masthead .search-field { font-family: var(--pmh-ui); font-size: 1rem; min-height: var(--pmh-tap); border-radius: var(--pmh-radius); border: 1px solid var(--pmh-rule-strong); background: var(--pmh-mount); color: var(--pmh-ink); }
.pmh-masthead .desktop-search-form button, .pmh-masthead .mobile-search-form button { min-height: var(--pmh-tap); border-radius: var(--pmh-radius); font-family: var(--pmh-ui); font-weight: 700; background: var(--pmh-crimson); color: var(--pmh-on-crimson); border: 0; }
.pmh-masthead .search-close, .pmh-masthead .mobile-search-close { background: transparent !important; color: var(--pmh-ink) !important; }

/* --- Chapter heads: small-caps kicker, Playfair italic title, count right ---- */

.pmh-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--pmh-rule); margin: 0 0 1.75rem; }
.pmh-head > div { min-width: 0; }
.pmh-head-title { margin: 0; font-size: clamp(1.875rem, 1.4rem + 1.5vw, 2.75rem); font-weight: 500; font-style: italic; letter-spacing: -0.01em; }
.pmh-head-kicker { display: block; color: var(--pmh-crimson); margin-bottom: 0.35rem; }
.pmh-head-count { color: var(--pmh-meta); white-space: nowrap; }
.pmh-head-link { font-family: var(--pmh-ui); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pmh-crimson); text-decoration: none; white-space: nowrap; min-height: var(--pmh-tap); display: inline-flex; align-items: center; }
.pmh-head-link:hover { color: var(--pmh-crimson-dark); text-decoration: underline; }

/* --- The spread: the album page + divider tabs down its right edge ---------- */

.pmh-spread { display: grid; grid-template-columns: minmax(0, 1fr) 204px; align-items: start; margin: clamp(1.75rem, 3.5vw, 2.75rem) 0 0; }
.pmh-spread-page {
    background: #F7F1E6; border: 1px solid var(--pmh-rule); position: relative; z-index: 1;
    box-shadow: inset 0 0 0 10px #F7F1E6, inset 0 0 0 11px var(--pmh-rule);
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2.75rem) clamp(1.75rem, 3vw, 2.5rem);
}
.pmh-spread-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 1.5rem; }
.pmh-spread-head .pmh-kicker { margin: 0; }
.pmh-spread-grid {
    display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr) minmax(0, 0.6fr);
    grid-template-areas: "a b b" "a c d"; gap: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem); align-items: start;
}
.pmh-slot--a { grid-area: a; }
.pmh-slot--b { grid-area: b; }
.pmh-slot--c { grid-area: c; }
.pmh-slot--d { grid-area: d; }
.pmh-slot--e { display: none; }

/* Divider tabs: stacked index tabs sticking out of the page's right edge. */
.pmh-tabs { min-width: 0; padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.pmh-tabs-label { color: var(--pmh-meta); margin: 0 0 0.6rem 0.9rem; }
.pmh-tabs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pmh-tab {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.5rem; min-height: 52px;
    padding: 0.55rem 0.85rem 0.55rem 0.9rem; margin-left: -1px;
    background: var(--pmh-endpaper); border: 1px solid var(--pmh-rule); border-left: 0; border-radius: 0 3px 3px 0;
    font-family: var(--pmh-ui); font-size: 0.8125rem; font-weight: 700; line-height: 1.25; color: var(--pmh-ink); text-decoration: none;
    box-shadow: 2px 1px 0 rgba(43,33,24,.06); transition: transform 0.2s ease, background 0.2s ease;
}
.pmh-tabs li:nth-child(even) .pmh-tab { background: #EDE2CF; }
.pmh-tab:hover { transform: translateX(4px); color: var(--pmh-crimson); }
.pmh-tab.is-active { background: var(--pmh-crimson); color: var(--pmh-on-crimson); border-color: var(--pmh-crimson); }
.pmh-tab-count { font-family: var(--pmh-display); font-weight: 700; font-size: 0.9375rem; color: var(--pmh-crimson); font-variant-numeric: tabular-nums; }
.pmh-tab.is-active .pmh-tab-count { color: var(--pmh-on-crimson); }

/* --- From the drawers: one row of three small prints per category ---------- */

.pmh-drawers { padding: clamp(2.5rem, 5vw, 4rem) 0 0.5rem; }
.pmh-drawer { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem); padding: 2rem 0 2.25rem; border-bottom: 1px solid var(--pmh-rule); align-items: start; }
.pmh-drawers .pmh-head + .pmh-drawer { padding-top: 0.5rem; }
.pmh-drawer-head { display: flex; flex-direction: column; gap: 0.35rem; position: sticky; top: 1.5rem; }
.pmh-drawer-num { margin: 0; color: var(--pmh-crimson); }
.pmh-drawer-name { margin: 0; font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); font-weight: 700; line-height: 1.15; }
.pmh-drawer-name a { color: var(--pmh-ink); text-decoration: none; }
.pmh-drawer-name a:hover { color: var(--pmh-crimson); }
.pmh-drawer-count { margin: 0; color: var(--pmh-meta); }
.pmh-drawer-link { margin-top: 0.35rem; align-self: flex-start; font-family: var(--pmh-ui); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pmh-crimson); text-decoration: none; min-height: var(--pmh-tap); display: inline-flex; align-items: center; }
.pmh-drawer-link:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.pmh-drawer-prints { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }

/* --- Index rows: 64px mounted square thumb, Playfair title, meta ------------ */

.pmh-rows { display: grid; grid-template-columns: minmax(0, 1fr); }
.pmh-rows--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
.pmh-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.1rem 0; border-bottom: 1px solid var(--pmh-rule); min-width: 0; }
.pmh-rows > .pmh-row:first-child { border-top: 1px solid var(--pmh-rule); }
.pmh-rows--2col > .pmh-row:nth-child(2) { border-top: 1px solid var(--pmh-rule); }
.pmh-row-thumb { display: block; width: 64px; height: 64px; background: var(--pmh-mount); padding: 4px; box-shadow: 0 1px 2px rgba(43,33,24,.14), 0 4px 8px -4px rgba(43,33,24,.3); }
.pmh-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pmh-row-thumb--empty { background: var(--pmh-endpaper); }
.pmh-row-body { min-width: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.pmh-row-title { margin: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.3; text-wrap: pretty; }
.pmh-row-title a { color: var(--pmh-ink); text-decoration: none; display: inline-block; padding: 11px 0; margin: -11px 0; }
.pmh-row-title a:hover { color: var(--pmh-crimson); }

/* --- Ad frames: hairline, labelled, reserved; collapse when unfilled -------- */

.pmh-ad { text-align: center; border: 1px solid var(--pmh-rule); padding: 0.75rem 0; background: var(--pmh-mount); }
.pmh-ad::before { content: "Advertisement"; display: block; font-size: 0.6875rem; color: var(--pmh-meta); margin-bottom: 0.5rem; }
.pmh-ad:has(ins[data-ad-status="unfill-optimized"]), .pmh-ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.pmh-ad-placeholder { border: 1px dashed var(--pmh-rule-strong); padding: 2rem 1rem; color: var(--pmh-meta); font-family: var(--pmh-ui); font-size: 0.875rem; margin: 0 1rem; }
.pmh-ad--band { max-width: 760px; margin: 2rem auto 0.5rem; }

/* --- Newsletter: a paper card pinned to the page, line-art ground ---------- */

.pmh-newsletter { padding: 1rem var(--pmh-gutter) 1.5rem; background: var(--pmh-paper); }
.pmh-newsletter-inner {
    max-width: var(--pmh-page-max); margin: 0 auto; position: relative;
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
    border: 1px solid var(--pmh-rule); padding: clamp(2rem, 4vw, 3.25rem) clamp(1.5rem, 4vw, 3.25rem);
    background: var(--pmh-mount) url('../images/newsletter-lineart.webp?v=100') center / cover no-repeat;
    box-shadow: var(--pmh-shadow);
}
/* Two strips of paper tape holding the card to the page. */
.pmh-pin { position: absolute; inset: 0; pointer-events: none; }
.pmh-pin::before, .pmh-pin::after {
    content: ""; position: absolute; top: -13px; width: 112px; height: 26px;
    background: rgba(230, 217, 195, 0.82); border: 1px solid rgba(185, 168, 142, 0.5);
    box-shadow: 0 1px 2px rgba(43,33,24,.08);
}
.pmh-pin::before { left: 9%; transform: rotate(-4deg); }
.pmh-pin::after { right: 9%; transform: rotate(3deg); }
.pmh-newsletter-eyebrow { color: var(--pmh-crimson); margin: 0 0 0.6rem; }
.pmh-newsletter h2 { margin: 0 0 0.75rem; font-size: clamp(1.625rem, 1.25rem + 1.3vw, 2.375rem); font-weight: 700; line-height: 1.12; text-wrap: balance; }
.pmh-newsletter-text p { margin: 0; color: var(--pmh-ink); font-size: 1.0625rem; max-width: 34rem; }
.pmh-newsletter-signup { display: flex; flex-direction: column; gap: 0.75rem; }
.pmh-newsletter .newsletter-form { display: flex; flex-direction: column; gap: 0.6rem; max-width: none; margin: 0; position: relative; }
.pmh-newsletter .newsletter-form input[type="email"] { border: 1px solid var(--pmh-rule-strong); border-radius: var(--pmh-radius); background: var(--pmh-mount); color: var(--pmh-ink); min-height: 52px; font-size: 1.0625rem; padding: 0 1rem; font-family: var(--pmh-ui); }
.pmh-newsletter .newsletter-form input[type="email"]::placeholder { color: var(--pmh-meta); }
.pmh-newsletter .newsletter-form input[type="email"]:focus { border-color: var(--pmh-crimson); outline: none; }
.pmh-btn, .pmh-newsletter .newsletter-form button { border: 0; border-radius: var(--pmh-radius); min-height: 52px; padding: 0 1.5rem; background: var(--pmh-crimson); color: var(--pmh-on-crimson); font-family: var(--pmh-ui); font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.pmh-btn:hover, .pmh-newsletter .newsletter-form button:hover { background: var(--pmh-crimson-dark); color: var(--pmh-on-crimson); }
.pmh-newsletter-note { margin: 0; text-transform: none; letter-spacing: 0; font-size: 0.875rem; font-weight: 500; }
.pmh-newsletter .newsletter-message.success { color: var(--pmh-crimson); }
.pmh-newsletter .newsletter-message.error { color: var(--pmh-crimson-dark); }

/* --- Footer: the endpaper --------------------------------------------------
   The album closes on its endpaper: a darker paper with a fine diagonal
   pattern and a patterned rule on top. Bookplate left (identity), the index
   right in two ruled columns (Drawers · This site + The Print), Legal full
   width under it with the CCPA trio last, one colophon line. */

.pmh-footer {
    color: var(--pmh-ink); padding: clamp(2.25rem, 4.5vw, 3.25rem) 0 clamp(1.5rem, 3vw, 2rem); position: relative;
    background-color: var(--pmh-endpaper);
    background-image: repeating-linear-gradient(45deg, rgba(43,33,24,.035) 0 1px, transparent 1px 9px), repeating-linear-gradient(-45deg, rgba(43,33,24,.035) 0 1px, transparent 1px 9px);
}
.pmh-footer::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px;
    background: repeating-linear-gradient(90deg, var(--pmh-crimson) 0 6px, transparent 6px 12px);
    opacity: 0.55;
}
.pmh-footer-inner { max-width: var(--pmh-page-max); margin: 0 auto; padding: 0 var(--pmh-gutter); }
.pmh-endpaper { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

.pmh-bookplate {
    background: var(--pmh-mount); padding: 1.75rem 1.75rem 1.5rem; position: relative;
    border: 1px solid var(--pmh-ink); outline: 1px solid var(--pmh-ink); outline-offset: -7px;
    display: flex; flex-direction: column; gap: 0.75rem; box-shadow: var(--pmh-shadow);
}
.pmh-bookplate-label { margin: 0; color: var(--pmh-crimson); }
.pmh-bookplate-logo { display: inline-flex; align-items: center; min-height: var(--pmh-tap); }
.pmh-bookplate-logo img { height: 40px; width: auto; display: block; background: transparent; }
.pmh-bookplate-tagline { margin: 0; font-family: var(--pmh-display); font-style: italic; font-weight: 500; font-size: 1.25rem; line-height: 1.3; }
.pmh-bookplate-mission { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--pmh-meta); }
.pmh-bookplate .pmh-index-label { border-top: 1px solid var(--pmh-rule); padding-top: 0.85rem; margin-top: 0.25rem; }
.pmh-bookplate-owner { margin: 0; font-family: var(--pmh-ui); font-size: 0.9375rem; line-height: 1.65; color: var(--pmh-meta); }
.pmh-bookplate-owner a { color: var(--pmh-crimson); text-decoration: none; display: inline-flex; align-items: center; min-height: var(--pmh-tap); margin: -8px 0; }
.pmh-bookplate-owner a:hover { text-decoration: underline; }

.pmh-index-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem clamp(2rem, 4vw, 3.5rem); align-items: start; }
.pmh-index-stack { display: flex; flex-direction: column; gap: 1.75rem; }
.pmh-index-group { min-width: 0; }
.pmh-index-group--legal { grid-column: 1 / -1; }
.pmh-index-label { margin: 0 0 0.35rem; color: var(--pmh-crimson); padding-bottom: 0.6rem; border-bottom: 2px solid var(--pmh-ink); }
.pmh-index-list { list-style: none; margin: 0; padding: 0; }
.pmh-index-list li { border-bottom: 1px dotted var(--pmh-rule-strong); }
.pmh-index-list a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: var(--pmh-tap); font-family: var(--pmh-ui); font-size: 0.9375rem; font-weight: 600; color: var(--pmh-ink); text-decoration: none; }
.pmh-index-list a:hover { color: var(--pmh-crimson); }
.pmh-index-count { font-family: var(--pmh-display); font-weight: 700; font-size: 0.9375rem; color: var(--pmh-crimson); font-variant-numeric: tabular-nums; }
.pmh-index-list--inline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
.pmh-index-list--legal { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); column-gap: 1.5rem; }
.pmh-index-list--legal a { font-weight: 500; font-size: 0.875rem; color: var(--pmh-meta); }
.pmh-index-list--legal a:hover { color: var(--pmh-crimson); }
.pmh-colophon { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--pmh-rule-strong); font-family: var(--pmh-ui); font-size: 0.8125rem; color: var(--pmh-meta); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }

/* --- Single post: header on paper, mounted lead print, reading on a mount -- */

.pmh-single { display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--pmh-sidebar) + var(--pmh-side-gap) + 1px); gap: 0; padding: clamp(1.5rem, 3vw, 2.5rem) 0 0.5rem; align-items: start; }
.pmh-single > * { padding-bottom: 0; margin-bottom: 0; }
.pmh-article { min-width: 0; padding-right: var(--pmh-side-gap); }
.pmh-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; color: var(--pmh-meta); margin-bottom: 1.25rem; }
.pmh-breadcrumb a { color: var(--pmh-crimson); text-decoration: none; min-height: var(--pmh-tap); margin: -10px 0; display: inline-flex; align-items: center; }
.pmh-breadcrumb a:hover { text-decoration: underline; }
.pmh-breadcrumb .sep { color: var(--pmh-rule-strong); }
.pmh-article-head { margin-bottom: 2rem; }
.pmh-title { font-size: var(--pmh-title); font-weight: 800; margin: 0 0 1rem; line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
.pmh-standfirst { margin: 0 0 1.1rem; font-family: var(--pmh-text); font-style: italic; font-size: 1.25rem; line-height: 1.55; color: var(--pmh-meta); max-width: 42rem; }
.pmh-article-meta { padding-bottom: 1.25rem; border-bottom: 1px solid var(--pmh-rule); }
/* The lead photo as a mounted print on the paper, corners and all. */
.pmh-lead-photo.pmh-mounted { position: relative; margin: 0 0 2.25rem; background: var(--pmh-mount); padding: 16px; box-shadow: var(--pmh-shadow); transform: rotate(-0.4deg); }
.pmh-lead-photo.pmh-mounted::after { --c: 36px; inset: 5px; }
.pmh-lead-photo img { width: 100%; height: auto; display: block; }
.pmh-caption, .pmh-article .entry-content figcaption { font-family: var(--pmh-ui); font-style: normal; font-size: 0.8125rem; font-weight: 500; color: var(--pmh-meta); text-align: left; padding: 0.6rem 0 0; }

.pmh-reading { background: var(--pmh-mount); border: 1px solid var(--pmh-rule); box-shadow: 0 1px 2px rgba(43,33,24,.06); padding: clamp(1.25rem, 3.5vw, 3rem); }
.pmh-article .entry-content { font-family: var(--pmh-text); font-size: var(--pmh-size-body); line-height: var(--pmh-lh-body); color: var(--pmh-ink); }
.pmh-article .entry-content > * { max-width: 100%; }
.pmh-article .entry-content p { text-wrap: pretty; color: var(--pmh-ink); }
.pmh-article .entry-content h2 { font-size: var(--pmh-h2); font-weight: 700; margin: 3rem 0 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--pmh-rule); scroll-margin-top: 1.5rem; color: var(--pmh-ink); }
.pmh-article .entry-content h3 { font-size: var(--pmh-h3); margin: 2rem 0 0.8rem; color: var(--pmh-ink); }
.pmh-article .entry-content h4 { color: var(--pmh-ink); font-family: var(--pmh-ui); font-weight: 700; }
.pmh-article .entry-content a { color: var(--pmh-crimson); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.pmh-article .entry-content a:hover { color: var(--pmh-crimson-dark); text-decoration-thickness: 2px; }
.pmh-article .entry-content img { border: 1px solid var(--pmh-rule); }
.pmh-article .entry-content figure { margin: 2rem 0; }
.pmh-article .entry-content strong { color: var(--pmh-ink); }
.pmh-article .entry-content li::marker { color: var(--pmh-crimson); }
.pmh-article .entry-content code { background: var(--pmh-paper); color: var(--pmh-ink); border-radius: var(--pmh-radius-sm); padding: 0.1em 0.35em; }
.pmh-article .entry-content pre { background: var(--pmh-paper); color: var(--pmh-ink); border: 1px solid var(--pmh-rule); }
.pmh-article .entry-content hr { border: 0; border-top: 1px solid var(--pmh-rule); }

/* Contents as an index card: ruled lines, a crimson top rule, two columns. */
.pmh-article .entry-content .toc {
    background-color: #FFFEFA;
    background-image: repeating-linear-gradient(180deg, transparent 0 35px, rgba(122,150,190,.22) 35px 36px);
    border: 1px solid var(--pmh-rule); border-top: 3px solid var(--pmh-crimson); border-radius: 0;
    padding: 1.25rem 1.75rem 1.5rem; margin: 2rem 0; box-shadow: 0 2px 6px -3px rgba(43,33,24,.25);
}
.pmh-article .entry-content .toc h2 { font-family: var(--pmh-ui); font-size: var(--pmh-size-meta); font-weight: 700; letter-spacing: var(--pmh-track-meta); text-transform: uppercase; margin: 0 0 0.75rem; padding-bottom: 0.6rem; border-bottom: 0; color: var(--pmh-crimson); }
.pmh-article .entry-content .toc ul, .pmh-article .entry-content .toc ol { margin: 0; padding: 0; list-style: none; counter-reset: pmh-toc; columns: 2; column-gap: 2rem; }
.pmh-article .entry-content .toc li { margin: 0; padding: 0; list-style: none; counter-increment: pmh-toc; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.5rem; align-items: baseline; break-inside: avoid; }
.pmh-article .entry-content .toc li::before { content: counter(pmh-toc, decimal-leading-zero); display: block; font-family: var(--pmh-display); font-weight: 700; color: var(--pmh-crimson); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.pmh-article .entry-content .toc a { display: block; font-family: var(--pmh-ui); font-size: 0.9375rem; font-weight: 600; line-height: 1.4; padding: 0.5rem 0; color: var(--pmh-ink); text-decoration: none; }
.pmh-article .entry-content .toc a:hover { color: var(--pmh-crimson); }

.pmh-article .entry-content blockquote { border-left: 3px solid var(--pmh-crimson); background: transparent; border-radius: 0; margin: 2rem 0; padding: 0.25rem 0 0.25rem 1.5rem; font-family: var(--pmh-display); font-size: 1.375rem; font-style: italic; font-weight: 500; line-height: 1.45; color: var(--pmh-ink); }
.pmh-article .entry-content blockquote p { margin: 0; }
.pmh-article .entry-content blockquote p + p { margin-top: 0.75rem; }

.table-scroll { overflow-x: auto; margin: 1.5rem 0; -webkit-overflow-scrolling: touch; border: 1px solid var(--pmh-rule); }
.table-scroll table { min-width: 560px; margin: 0; }
.pmh-article .entry-content table { border-collapse: collapse; width: 100%; background: transparent; }
.pmh-article .entry-content th { background: var(--pmh-endpaper); color: var(--pmh-ink); font-family: var(--pmh-ui); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; }
.pmh-article .entry-content td, .pmh-article .entry-content th { border: 1px solid var(--pmh-rule); padding: 0.7rem 0.9rem; color: var(--pmh-ink); }
.pmh-article .entry-content tr:nth-child(even) td { background: #FBF7EF; }

.pmh-page-links { margin: 1.75rem 0; display: flex; gap: 0.5rem; align-items: center; font-family: var(--pmh-ui); }
.pmh-page-links span { padding: 0.25rem 0.6rem; }
.pmh-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--pmh-rule); }
.pmh-share .pmh-label { color: var(--pmh-meta); }
.pmh-share a { color: var(--pmh-crimson); text-decoration: none; font-family: var(--pmh-ui); font-size: 0.9375rem; font-weight: 700; min-height: var(--pmh-tap); display: inline-flex; align-items: center; }
.pmh-share a:hover { text-decoration: underline; }
.pmh-related { margin-top: 3rem; }

.comments-area { margin-top: 2rem; padding-top: 0; border-top: 0; color: var(--pmh-ink); }
.comments-area .comments-title, .comments-area .comment-reply-title { font-size: var(--pmh-h3); color: var(--pmh-ink); }
.comments-area .comment-list { list-style: none; padding: 0; }
.comments-area .comment-respond { margin-top: 0; margin-bottom: 0; background: var(--pmh-mount); border: 1px solid var(--pmh-rule); border-radius: 0; }
.comments-area label, .comments-area .comment-notes, .comments-area .logged-in-as { color: var(--pmh-meta); font-family: var(--pmh-ui); }
.comments-area input:not([type="checkbox"]):not([type="submit"]), .comments-area textarea { border-radius: var(--pmh-radius); border: 1px solid var(--pmh-rule-strong); background: #FFFEFA; color: var(--pmh-ink); font-family: var(--pmh-ui); }
.comments-area input:focus, .comments-area textarea:focus { border-color: var(--pmh-crimson); outline: none; }
.comments-area .submit, .comments-area #submit { background: var(--pmh-crimson) !important; border: none; border-radius: var(--pmh-radius) !important; color: var(--pmh-on-crimson) !important; font-weight: 700; min-height: var(--pmh-tap); padding: 0 1.5rem; cursor: pointer; }
.comments-area .submit:hover, .comments-area #submit:hover { background: var(--pmh-crimson-dark) !important; }
.comments-area .comment-body { background: var(--pmh-mount); border: 1px solid var(--pmh-rule); color: var(--pmh-ink); }

/* --- Sidebar (single) ------------------------------------------------------- */

.pmh-sidebar { display: flex; flex-direction: column; gap: 1.75rem; border-left: 1px solid var(--pmh-rule); padding-left: var(--pmh-side-gap); min-width: 0; }
.pmh-widget { margin: 0; }
.pmh-widget-title { color: var(--pmh-crimson); margin: 0 0 0.6rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--pmh-ink); }
.pmh-mostread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pmh-mostread li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px dotted var(--pmh-rule-strong); }
.pmh-mostread-num { font-family: var(--pmh-display); font-weight: 700; color: var(--pmh-crimson); font-size: 1.0625rem; line-height: 1.35; font-variant-numeric: tabular-nums; }
.pmh-mostread-text { min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.pmh-mostread-title { font-family: var(--pmh-display); font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--pmh-ink); text-decoration: none; display: inline-block; padding: 12px 0; margin: -12px 0; }
.pmh-mostread-title:hover { color: var(--pmh-crimson); }
.pmh-cat-list { list-style: none; margin: 0; padding: 0; }
.pmh-cat-list li { border-bottom: 1px dotted var(--pmh-rule-strong); }
.pmh-cat-list a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: var(--pmh-tap); font-family: var(--pmh-ui); font-size: 0.9375rem; font-weight: 600; color: var(--pmh-ink); text-decoration: none; }
.pmh-cat-list a:hover { color: var(--pmh-crimson); }
.pmh-cat-count { font-family: var(--pmh-display); font-weight: 700; font-size: 0.9375rem; color: var(--pmh-crimson); font-variant-numeric: tabular-nums; }
.pmh-widget-news { background: var(--pmh-mount); border: 1px solid var(--pmh-rule); padding: 1.5rem 1.25rem 1.25rem; position: relative; box-shadow: var(--pmh-shadow); }
.pmh-widget-news::before { content: ""; position: absolute; top: -11px; left: 50%; width: 88px; height: 22px; margin-left: -44px; transform: rotate(-3deg); background: rgba(230, 217, 195, 0.85); border: 1px solid rgba(185, 168, 142, 0.5); }
.pmh-widget-news .pmh-widget-title { border-bottom: 0; padding-bottom: 0; margin-bottom: 0.5rem; }
.pmh-widget-news p { margin: 0 0 0.9rem; font-size: 0.9375rem; color: var(--pmh-ink); }
.pmh-widget-news .newsletter-form { display: flex; flex-direction: column; gap: 0.6rem; position: relative; }
.pmh-widget-news .newsletter-form input[type="email"] { border: 1px solid var(--pmh-rule-strong); border-radius: var(--pmh-radius); background: #FFFEFA; color: var(--pmh-ink); min-height: var(--pmh-tap); padding: 0 0.9rem; font-family: var(--pmh-ui); font-size: 0.9375rem; }
.pmh-widget-news .newsletter-form input[type="email"]:focus { border-color: var(--pmh-crimson); outline: none; }
.pmh-widget-news .newsletter-form button { border: 0; border-radius: var(--pmh-radius); min-height: var(--pmh-tap); background: var(--pmh-crimson); color: var(--pmh-on-crimson); font-family: var(--pmh-ui); font-weight: 700; cursor: pointer; }
.pmh-widget-news .newsletter-form button:hover { background: var(--pmh-crimson-dark); }
.pmh-widget-news .pmh-newsletter-note { margin: 0.75rem 0 0; font-family: var(--pmh-ui); font-size: 0.8125rem; color: var(--pmh-meta); }
.pmh-widget-news .newsletter-message.success { color: var(--pmh-crimson); }

/* --- Archive: a chapter head on the endpaper, three prints, index + rail ---- */

.pmh-archive-head { margin: clamp(1.5rem, 3vw, 2.25rem) 0 0; }
.pmh-archive-head-inner {
    background: var(--pmh-endpaper); border: 1px solid var(--pmh-rule);
    padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.25rem, 3.5vw, 2.75rem);
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 3rem; align-items: end;
}
.pmh-archive-kicker { color: var(--pmh-crimson); margin: 0 0 0.6rem; }
.pmh-archive-title { margin: 0; font-size: var(--pmh-h1); font-weight: 800; letter-spacing: -0.015em; line-height: 1.05; text-wrap: balance; }
.pmh-archive-title::after { content: ""; display: block; width: 64px; height: 2px; background: var(--pmh-crimson); margin-top: 1rem; }
.pmh-archive-description { margin: 1rem 0 0; font-size: 1.125rem; line-height: 1.6; color: var(--pmh-ink); max-width: 46rem; }
.pmh-archive-count { margin: 0; font-family: var(--pmh-display); font-weight: 700; font-size: clamp(1.75rem, 1.35rem + 1.2vw, 2.5rem); color: var(--pmh-crimson); white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1; }
.pmh-archive-count small { font-family: var(--pmh-ui); font-size: var(--pmh-size-meta); font-weight: 700; letter-spacing: var(--pmh-track-meta); text-transform: uppercase; color: var(--pmh-meta); }
/* On archives the divider tabs hang under the head as a row of tabs. */
.pmh-archive-head .pmh-tabs { padding-top: 0; display: flex; align-items: flex-start; gap: 0.75rem; overflow-x: auto; scrollbar-width: none; }
.pmh-archive-head .pmh-tabs::-webkit-scrollbar { display: none; }
.pmh-archive-head .pmh-tabs-label { margin: 0; padding: 1rem 0 0; white-space: nowrap; }
.pmh-archive-head .pmh-tabs ul { flex-direction: row; gap: 4px; }
.pmh-archive-head .pmh-tab { margin: -1px 0 0; border: 1px solid var(--pmh-rule); border-top: 0; border-radius: 0 0 3px 3px; white-space: nowrap; min-height: 48px; }
.pmh-archive-head .pmh-tab:hover { transform: translateY(3px); }
.pmh-chapter-prints { padding: clamp(2rem, 4vw, 2.75rem) 0 0; }
.pmh-chapter-prints > .pmh-kicker { margin: 0 0 1.5rem; }
.pmh-chapter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.pmh-index-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--pmh-sidebar); gap: 2.75rem; margin: clamp(2.25rem, 4vw, 3.25rem) 0 0.5rem; align-items: start; }
.pmh-side { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.pmh-card { background: var(--pmh-mount); border: 1px solid var(--pmh-rule); box-shadow: 0 1px 2px rgba(43,33,24,.06); }
.pmh-rail { padding: 1.25rem 1.25rem 0.5rem; }
.pmh-rail-title { color: var(--pmh-crimson); margin: 0 0 0.35rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--pmh-ink); }
.pmh-rail-list { list-style: none; margin: 0; padding: 0; }
.pmh-rail-list li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px dotted var(--pmh-rule-strong); }
.pmh-rail-list li:last-child { border-bottom: 0; }
.pmh-rail-list a { font-family: var(--pmh-display); font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--pmh-ink); text-decoration: none; display: inline-block; padding: 12px 0; margin: -12px 0; }
.pmh-rail-list a:hover { color: var(--pmh-crimson); }
.pmh-rail-num { font-family: var(--pmh-display); font-weight: 700; color: var(--pmh-crimson); font-size: 1.0625rem; line-height: 1.3; font-variant-numeric: tabular-nums; }

.pmh-pager { margin: 2rem 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.pmh-pager .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pmh-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: var(--pmh-tap); min-height: var(--pmh-tap); padding: 0 0.75rem; border: 1px solid var(--pmh-rule-strong); background: var(--pmh-mount); font-family: var(--pmh-ui); font-size: 0.875rem; font-weight: 700; color: var(--pmh-ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.pmh-pager .page-numbers:hover { border-color: var(--pmh-crimson); color: var(--pmh-crimson); }
.pmh-pager .page-numbers.current { background: var(--pmh-crimson); border-color: var(--pmh-crimson); color: var(--pmh-on-crimson); }
.pmh-pager .page-numbers.dots { border: 0; background: transparent; }
.pmh-pager-count { color: var(--pmh-meta); }

/* --- Static pages, search, 404, empty states -------------------------------- */

.pmh-page { max-width: var(--pmh-content-max); margin: 0 auto; padding: clamp(1.5rem, 3vw, 2.5rem) 0 0.5rem; }
.pmh-page-title { font-size: var(--pmh-h1); font-weight: 800; margin: 0 0 1.75rem; }
.pmh-page .entry-content a { color: var(--pmh-crimson); text-decoration: underline; text-underline-offset: 0.18em; }
.pmh-empty { max-width: 38rem; margin: 0 auto; text-align: center; padding: 4rem 0 3rem; }
.pmh-empty p { color: var(--pmh-meta); }
.pmh-empty .search-form, .pmh-empty form { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.5rem; }
.pmh-empty input[type="search"] { border: 1px solid var(--pmh-rule-strong); border-radius: var(--pmh-radius); background: var(--pmh-mount); color: var(--pmh-ink); min-height: var(--pmh-tap); padding: 0 0.9rem; flex: 1 1 auto; max-width: 22rem; }
.pmh-empty button { border: 0; border-radius: var(--pmh-radius); background: var(--pmh-crimson); color: var(--pmh-on-crimson); font-weight: 700; min-height: var(--pmh-tap); padding: 0 1.25rem; }
.pmh-archive-head--search .pmh-archive-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); }
.pmh-band { padding: clamp(1.5rem, 3vw, 2.5rem) 0 0.5rem; }
.pmh-band-inner { max-width: var(--pmh-page-max); margin: 0 auto; }

/* --- Responsive ----------------------------------------------------------------- */

@media (max-width: 1200px) {
    .pmh-masthead .main-navigation a { padding: 0 0.5rem; letter-spacing: 0.08em; }
    .pmh-masthead .main-navigation a::after { left: 0.5rem; right: 0.5rem; }
    .pmh-masthead-inner { column-gap: 1rem; }
    .pmh-brand-logo { height: 38px; }
}

@media (max-width: 1024px) {
    .pmh-masthead-inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand actions" "search search"; min-height: 68px; }
    .pmh-brand-logo { height: 36px; }
    .pmh-masthead .main-navigation { grid-area: auto; }
    /* Contain the off-canvas drawer so its parking spot never widens the page. */
    .pmh-drawer-clip { display: block; position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 1000; }
    .pmh-drawer-clip .main-navigation { position: absolute; pointer-events: auto; background: var(--pmh-mount); }
    .pmh-masthead .main-navigation { display: block; justify-self: auto; }
    .pmh-masthead .primary-menu, .pmh-masthead .main-navigation ul { display: block; text-align: left; }
    .pmh-masthead .main-navigation li { border-bottom: 1px solid var(--pmh-rule); }
    .pmh-masthead .main-navigation a { min-height: var(--pmh-nav-tap); padding: 0 1.5rem; max-width: none; font-size: 0.875rem; }
    .pmh-masthead .main-navigation a::after { display: none; }
    .pmh-masthead .header-actions { margin-left: auto; grid-column: 2; }
    .pmh-masthead .mobile-menu-toggle.active { position: fixed; top: 0.75rem; right: 0.75rem; z-index: 1002; }

    /* The tabs move above the spread and scroll sideways. */
    .pmh-spread { grid-template-columns: minmax(0, 1fr); }
    .pmh-spread .pmh-tabs { order: -1; padding-top: 0; margin-bottom: -1px; display: flex; align-items: flex-end; gap: 0.75rem; overflow-x: auto; scrollbar-width: none; }
    .pmh-spread .pmh-tabs::-webkit-scrollbar { display: none; }
    .pmh-spread .pmh-tabs-label { margin: 0 0 0.9rem; white-space: nowrap; }
    .pmh-spread .pmh-tabs ul { flex-direction: row; }
    .pmh-spread .pmh-tab { margin: 0; border: 1px solid var(--pmh-rule); border-bottom: 0; border-radius: 3px 3px 0 0; white-space: nowrap; min-height: 48px; }
    .pmh-spread .pmh-tab:hover { transform: translateY(-3px); }

    .pmh-drawer { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .pmh-drawer-head { position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 1rem; }
    .pmh-drawer-num, .pmh-drawer-name, .pmh-drawer-count { grid-column: 1; }
    .pmh-drawer-link { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin: 0; }

    .pmh-rows--2col { grid-template-columns: minmax(0, 1fr); }
    .pmh-rows--2col > .pmh-row:nth-child(2) { border-top: 0; }
    .pmh-single { grid-template-columns: minmax(0, 1fr); }
    .pmh-article { padding-right: 0; }
    .pmh-sidebar { border-left: none; border-top: 1px solid var(--pmh-rule); padding-left: 0; padding-top: 2rem; margin-top: 2.5rem; }
    .pmh-index-layout { grid-template-columns: minmax(0, 1fr); }
    .pmh-endpaper { grid-template-columns: minmax(0, 1fr); }
    .pmh-bookplate { max-width: 420px; }
}

@media (max-width: 900px) {
    .pmh-newsletter-inner { grid-template-columns: minmax(0, 1fr); }
    .pmh-chapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pmh-chapter-grid > .pmh-print:nth-child(3) { display: none; }
}

@media (max-width: 760px) {
    .pmh-spread-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "a a" "b b" "c d"; }
    .pmh-index-cols { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
    /* Straight prints on phones: a tilt at 390px reads as a rendering fault. */
    .pmh-tilt-1 .pmh-mount, .pmh-tilt-2 .pmh-mount, .pmh-tilt-3 .pmh-mount, .pmh-tilt-4 .pmh-mount, .pmh-lead-photo.pmh-mounted { transform: none; }
    .pmh-spread-page { padding: 1.25rem 1rem 1.5rem; box-shadow: none; }
    .pmh-spread-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "a" "b" "c" "d"; gap: 1.75rem; }
    .pmh-mount { padding: 9px; }
    .pmh-mount::after { --c: 20px; inset: 3px; }
    .pmh-print--lg .pmh-mount { padding: 10px; }
    .pmh-print--lg .pmh-mount::after { --c: 24px; inset: 3px; }
    .pmh-print--lg .pmh-print-title { font-size: 1.5rem; }
    .pmh-print--lg .pmh-pencil { -webkit-line-clamp: 1; }
    .pmh-print--sm .pmh-mount img { aspect-ratio: 16 / 10; }
    /* Drawer prints scroll sideways instead of stacking eighteen deep. */
    .pmh-drawer-prints { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--pmh-gutter)); padding: 0.5rem var(--pmh-gutter) 0.75rem; scrollbar-width: none; }
    .pmh-drawer-prints::-webkit-scrollbar { display: none; }
    .pmh-drawer-prints > .pmh-print { flex: 0 0 72%; scroll-snap-align: start; }
    .pmh-chapter-grid { grid-template-columns: minmax(0, 1fr); }
    .pmh-chapter-grid > .pmh-print:nth-child(3) { display: flex; }
    .pmh-row { grid-template-columns: 56px minmax(0, 1fr); }
    .pmh-row-thumb { width: 56px; height: 56px; }
    .pmh-reading { padding: 1.15rem; }
    .pmh-lead-photo.pmh-mounted { padding: 9px; }
    .pmh-lead-photo.pmh-mounted::after { --c: 22px; inset: 3px; }
    .pmh-article .entry-content .toc { padding: 1rem 1.15rem 1.25rem; }
    .pmh-article .entry-content .toc ul, .pmh-article .entry-content .toc ol { columns: 1; }
    .pmh-article-meta .sep { display: none; }
    .pmh-article-meta > * { flex-basis: 100%; }
    .pmh-archive-head-inner { grid-template-columns: minmax(0, 1fr); }
    .pmh-head-link { white-space: normal; }
    .pmh-index-list--inline, .pmh-index-list--legal { grid-template-columns: minmax(0, 1fr); }
    .pmh-colophon { flex-direction: column; }
    .pmh-pin::before { left: 6%; width: 84px; }
    .pmh-pin::after { right: 6%; width: 84px; }
    .pmh-ad--band { margin-top: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* --- Harness fixes (2026-09-29) ------------------------------------------------ */
/* main.css keeps nav links on one line; the drawer names need two. */
@media (min-width: 1025px) {
    .pmh-masthead .primary-menu > li { flex: 0 1 auto; min-width: 0; }
    .pmh-masthead .main-navigation a { white-space: normal; text-wrap: balance; }
}
.pmh-brand-logo { height: 46px; }
/* Small prints: the meta line stays on one row (no dangling separator). */
.pmh-print--sm .pmh-meta { letter-spacing: 0.05em; gap: 0.3rem; flex-wrap: nowrap; white-space: nowrap; }
/* The large print fills its column's height beside md + two sm (columns set in the base rule). */
.pmh-print--lg .pmh-mount img { aspect-ratio: 1 / 1; }
@media (max-width: 760px) { .pmh-print--lg .pmh-mount img { aspect-ratio: 4 / 3; } }
/* Tab rows (archive always, the spread ≤1024px) scroll; tabs never shrink. */
.pmh-archive-head .pmh-tabs ul, .pmh-archive-head .pmh-tabs li { flex: 0 0 auto; }
.pmh-archive-head .pmh-tabs ul { flex-wrap: nowrap; }
@media (max-width: 1024px) {
    .pmh-spread .pmh-tabs ul { flex-wrap: nowrap; flex: 0 0 auto; }
    .pmh-spread .pmh-tabs li { flex: 0 0 auto; }
}
/* Drawer names are links too: a 44px hit area even on one line. */
.pmh-drawer-name a { display: inline-flex; align-items: center; min-height: var(--pmh-tap); }
/* The phone drawer scroller snaps to its padding edge, not the screen edge. */
@media (max-width: 640px) { .pmh-drawer-prints { scroll-padding-inline: var(--pmh-gutter); } }
/* Index-card TOC: one blue ruled line under each entry instead of a fixed
   36px ruling that cut through two-line entries. */
.pmh-article .entry-content .toc { background-image: none; }
.pmh-article .entry-content .toc li { border-bottom: 1px solid rgba(122,150,190,.32); }

/* Homepage spread without the divider tabs (user, 2026-09-29): the page fills the width. */
.home .pmh-spread { grid-template-columns: minmax(0, 1fr); }

/* New film-heart logo (1.0.2) is wider than the old mark: slightly smaller
   logo and tighter nav padding keep all six drawers on one row down to 1025px
   (at 1024 and below the off-canvas drawer takes over). */
@media (min-width: 1025px) {
    .pmh-brand-logo { height: 36px; }
    .pmh-masthead .primary-menu { flex-wrap: nowrap; }
    .pmh-masthead .main-navigation a { padding: 0 0.55rem; letter-spacing: 0.08em; }
    .pmh-masthead .main-navigation a::after { left: 0.55rem; right: 0.55rem; }
}
/* The wide film-heart lockup must shrink on the hamburger layouts, or the
   wordmark runs into the menu and search icons (an unconditional 46px rule
   above wins otherwise). */
@media (max-width: 1024px) { .pmh-brand-logo { height: 32px; } }
@media (max-width: 480px)  { .pmh-brand-logo { height: 28px; } }

/* Archive head with category art (user, 2026-09-29): the drawer tabs are gone;
   the category's line drawing sits faded on the right half of the head, and the
   print count moves under the description so no text sits on the drawing. */
.pmh-archive-head--art .pmh-archive-head-inner {
    grid-template-columns: minmax(0, 1fr);
    background: var(--pmh-endpaper) var(--pmh-cat-art) right clamp(1rem, 3vw, 2.5rem) center / auto 88% no-repeat;
    padding-right: min(46%, 520px); min-height: 260px; align-content: center;
}
.pmh-archive-head--art .pmh-archive-count { margin-top: 0.25rem; }
@media (max-width: 834px) {
    .pmh-archive-head--art .pmh-archive-head-inner { padding-right: clamp(1.25rem, 3.5vw, 2.75rem); padding-bottom: 12.5rem; background-position: right 1rem bottom 1rem; background-size: auto 11rem; min-height: 0; }
}

/* --- QA fixes 2026-09-29 (visual-qa 20260929-163823) --------------------------- */
/* 1. Tablet archive hid the third "newest" print, which then appeared nowhere on
      page 1: keep it and let it span both columns instead. */
@media (max-width: 900px) and (min-width: 641px) {
    .pmh-chapter-grid > .pmh-print:nth-child(3) { display: flex; grid-column: 1 / -1; }
}
/* 2. The lead photo's bottom-left mount corner covered the caption's first letter. */
.pmh-lead-photo .pmh-caption { padding-left: 1.75rem; padding-right: 1.75rem; }
/* 3. Newsletter card ran 40px past the page column on desktop. */
.pmh-newsletter-inner { max-width: calc(var(--pmh-page-max) - 2 * var(--pmh-gutter)); }
