/*
Theme Name: Shaping Woodcuts
Theme URI: https://shapingwoodcuts.com
Author: Zachary Fisher
Author URI: https://senseshaper.com
Description: The picture book of Shaping Sense: prints set large on vellum inside a woodcut border with printer's devices, a grid of cuts by series, a Cabinet of woodcuts gathered from early books, and the same apparatus as the essays (marginal glosses, citable paragraph numbers, a triangular colophon and an MLA "Cite as"). Pair with the Senseshaper Marginalia plugin.
Version: 1.4.3
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shaping-woodcuts
Tags: blog, portfolio, photography, grid-layout, one-column, custom-menu, translation-ready
*/

/* ------------------------------------------------------------------
   Ink, rubric, vellum (as Shaping Sense)
   ------------------------------------------------------------------ */
:root {
	--ink: #1C1A17;
	--ink-soft: #3A352D;
	--gloss: #3F3A32;
	--grey: #4D473E;
	--rule: #D8D0C0;
	--rubric: #8B1A10;
	--rubric-dark: #640F08;
	--rubric-light: #E07A6A;
	--paper: #F5F0E2;
	--mount: #FBF8EF;
	--margin: 214px;
	--gloss-w: 190px;
	--pad: clamp(20px, 4vw, 64px);
}

html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper) var(--sw-vellum) repeat;
	color: var(--ink);
	font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
	font-size: 19px;
	line-height: 1.6;
	font-variant-ligatures: common-ligatures;
}
a { color: var(--rubric); }
a:hover { color: var(--rubric-dark); }
img { max-width: 100%; height: auto; }
.sc { font-variant: small-caps; letter-spacing: .07em; }
.rubric { color: var(--rubric); }
.center { text-align: center; }
.screen-reader-text, .skip-link:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { position: absolute; z-index: 10; top: 8px; left: 8px; padding: 8px 14px; background: var(--paper); border: 1px solid var(--ink); }

/* ------------------------------------------------------------------
   The page: vellum, the printer's border and the devices at the corners
   ------------------------------------------------------------------ */
.vel { padding: 1px 0; box-shadow: inset 0 0 180px rgba(110, 80, 35, .10); min-height: 100vh; }
.frame {
	position: relative;
	box-sizing: border-box;
	width: calc(100% - 48px);
	max-width: 1480px;
	margin: 36px auto;
	border: 48px solid transparent;
	border-image: var(--sw-border) 60 round;
}
.pdev {
	position: absolute;
	z-index: 2;
	width: 80px;
	height: 80px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	background: var(--paper) var(--sw-vellum) repeat;
	border: 3px solid var(--ink);
	box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--ink);
}
.pdev img { width: 58px; height: auto; display: block; }
.pdev.tl { left: -64px; top: -64px; }
.pdev.tr { right: -64px; top: -64px; }
.pdev.bl { left: -64px; bottom: -64px; }
.pdev.br { right: -64px; bottom: -64px; }

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */
.hdr { padding: 28px var(--pad) 0; }
.hdr-in { max-width: 1360px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.kick { font-size: 15px; color: var(--grey); }
.mast-wrap { margin: 0; font-size: inherit; font-weight: 400; line-height: 1; }
.mast { text-decoration: none; color: var(--ink); font-family: '1456 Gutenberg', 'UnifrakturMaguntia', serif; font-size: clamp(56px, 8vw, 112px); line-height: 1; }
.mast:hover { color: var(--ink); }
.mast .rubric { color: var(--rubric); }
.tagline { margin: 0; font-style: italic; font-size: 21px; color: var(--ink-soft); }
.nav { align-self: stretch; margin-top: 14px; padding: 4px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; font-variant: small-caps; letter-spacing: .07em; font-size: 18px; }
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.nav-list a:hover, .nav-list .current-menu-item > a { color: var(--rubric); }
.nav-list .menu-rubric > a { color: var(--rubric); }

/* On inner pages the masthead shrinks to a line with the menu beside it */
.hdr.is-compact .hdr-in { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 32px; border-bottom: 1px solid var(--ink); padding-bottom: 6px; text-align: left; }
.hdr.is-compact .mast { font-size: 44px; }
.hdr.is-compact .nav { align-self: auto; margin: 0; padding: 0; border: 0; }
.hdr.is-compact .nav-list { gap: 0 24px; justify-content: flex-start; }

/* ------------------------------------------------------------------
   Shared pieces
   ------------------------------------------------------------------ */
.wrap { max-width: 1360px; margin: 0 auto; padding: 44px var(--pad) 56px; display: flex; flex-direction: column; gap: 64px; }
.kicker { color: var(--rubric); font-size: 17px; }
.kicker a { color: inherit; text-decoration: none; }
.pt { margin: 0; font-family: 'JSL Ancient', 'IM Fell English', Georgia, serif; font-weight: 400; font-size: clamp(40px, 5.5vw, 72px); line-height: 1.05; }
.pt a { color: var(--ink); text-decoration: none; }
.pt a:hover { color: var(--rubric-dark); }
.pt .rubric, .sec-h .rubric { color: var(--rubric); }
.byline { font-style: italic; font-size: 19px; color: var(--ink-soft); }
.standfirst { margin: 0; max-width: 46ch; font-style: italic; font-size: 21px; line-height: 1.5; color: var(--ink-soft); }
.sec-h { margin: 0; font-family: 'JSL Ancient', Georgia, serif; font-weight: 400; font-size: 40px; line-height: 1.1; }
.block { display: flex; flex-direction: column; gap: 28px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; border-bottom: 1px solid var(--ink); padding-bottom: 10px; }
.block-note { font-style: italic; font-size: 18px; color: var(--grey); }

/* A print on its mount */
.mount { display: block; box-sizing: border-box; background: var(--mount); padding: 14px; box-shadow: 0 1px 0 var(--rule), 0 14px 30px -22px rgba(28, 26, 23, .6); }
.plate { display: block; border: 1px solid var(--ink); background: #E6DDC6; line-height: 0; }
.plate img { display: block; width: 100%; height: auto; }
.ph { display: block; aspect-ratio: 4 / 5; background-color: #E6DDC6; background-image: repeating-linear-gradient(45deg, rgba(28, 26, 23, .13) 0 1px, transparent 1px 6px), repeating-linear-gradient(-45deg, rgba(28, 26, 23, .07) 0 1px, transparent 1px 6px); }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btns.center { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; box-sizing: border-box; text-decoration: none; font-variant: small-caps; letter-spacing: .07em; font-size: 18px; border: 1px solid transparent; }
.btn-solid { background: var(--rubric); color: #fff; }
.btn-solid:hover { background: var(--rubric-dark); color: #fff; }
.btn-line { border-color: var(--rubric); color: var(--rubric); }
.btn-line:hover { background: rgba(139, 26, 16, .06); color: var(--rubric-dark); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; color: var(--paper); }
.btn-quiet { border-color: var(--ink); color: var(--ink); }
.btn-quiet:hover { color: var(--rubric); border-color: var(--rubric); }

/* Series and filters */
.series { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.series-h { font-size: 16px; color: var(--grey); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); background: var(--mount); color: var(--ink); text-decoration: none; font-size: 18px; }
.chip:hover { color: var(--rubric); }
.chip.is-on { background: var(--ink); color: var(--paper); }
.chip-n { color: var(--rubric); font-size: 15px; }
.chip.is-on .chip-n { color: var(--rubric-light); }

/* ------------------------------------------------------------------
   Home
   ------------------------------------------------------------------ */
.feature { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.feature-img { flex: 3 1 520px; min-width: 0; padding: 26px; }
.feature-text { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.feature .pt { font-size: clamp(40px, 4.2vw, 56px); }
.feature-p { margin: 0; font-size: 20px; line-height: 1.5; max-width: 34ch; }

.masonry { columns: 4 260px; column-gap: 32px; }
.card { break-inside: avoid; display: block; margin: 0 0 32px; color: var(--ink); text-decoration: none; }
.card .mount { margin-bottom: 10px; }
.card-t { display: block; font-size: 19px; line-height: 1.25; }
.card-no { color: var(--rubric); font-size: 15px; margin-right: 4px; }
.card-m { display: block; margin-top: 2px; font-style: italic; font-size: 15px; color: var(--grey); }
.card:hover .card-t { color: var(--rubric); }

/* The process: a black band across the page */
.process { display: flex; flex-direction: column; gap: 24px; background: var(--ink); color: var(--paper); margin: 0 calc(-1 * var(--pad)); padding: 48px var(--pad); }
.process .block-head { border: 0; padding: 0; }
.process .sec-h { color: var(--paper); }
.process .block-note { color: var(--rule); }
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 24px; }
.step { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.step-img { display: block; aspect-ratio: 1 / 1; background: #3A352D; border: 1px solid var(--rule); overflow: hidden; }
.step-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step figcaption { font-size: 19px; font-style: normal; color: var(--paper); text-align: left; margin: 0; }
.step-n { color: var(--rubric-light); font-size: 15px; margin-right: 4px; }
.process-link { color: var(--paper); font-size: 18px; align-self: flex-start; }
.process-link:hover { color: var(--rubric-light); }

.cab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 32px; }
.cab-card { display: flex; gap: 18px; align-items: flex-start; color: var(--ink); text-decoration: none; }
.cab-thumb { flex: none; width: 150px; aspect-ratio: 3 / 4; overflow: hidden; }
.cab-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cab-thumb .ph { height: 100%; aspect-ratio: auto; }
.cab-card-text { display: flex; flex-direction: column; gap: 4px; }
.cab-card .kicker { font-size: 15px; }
.cab-card-t { font-size: 21px; line-height: 1.2; }
.cab-card:hover .cab-card-t { color: var(--rubric); }
.cab-card-s { font-style: italic; font-size: 16px; color: var(--ink-soft); }
.cab-card-e { font-size: 15px; color: var(--grey); margin-top: 6px; }

/* CONSUME | SUPPORT */
.cs { display: flex; flex-wrap: wrap; gap: 36px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 36px 0; }
.cs-half { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 0 40px 0 0; }
.cs-half + .cs-half { padding: 0 0 0 40px; border-left: 1px solid var(--rule); }
.cs-h { margin: 0; color: var(--rubric); font-size: 34px; font-weight: 600; letter-spacing: .14em; line-height: 1.1; }
.cs-p { margin: 0; font-size: 20px; line-height: 1.5; max-width: 40ch; }
.cs-note { margin: 0; font-size: 15px; color: var(--grey); }

.closing { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.about-p { margin: 0; font-size: 20px; line-height: 1.55; max-width: 52ch; }

/* ------------------------------------------------------------------
   A plate (single print or Cabinet entry)
   ------------------------------------------------------------------ */
.leaf { width: 100%; max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.leaf-head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.leaf-plate { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.leaf-plate .mount { width: fit-content; max-width: min(100%, 900px); padding: clamp(14px, 3vw, 36px); box-shadow: 0 1px 0 var(--rule), 0 24px 50px -28px rgba(28, 26, 23, .6); }
.leaf-plate .plate img { width: auto; max-height: 82vh; }
/* Glosses beside the cut: the same margins as the commentary below */
.plate-row { display: grid; grid-template-columns: var(--gloss-w) minmax(0, 1fr) var(--gloss-w); column-gap: calc(var(--margin) - var(--gloss-w)); align-items: start; width: 100%; }
.plate-row > .mount { justify-self: center; max-width: 100%; }
.plate-row .plate img { max-height: 76vh; }
.cut-margin { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.cut-margin-left { text-align: right; }
.cut-margin-right { text-align: left; }
.cut-gloss { display: block; font-size: 15px; line-height: 1.45; font-style: italic; color: var(--gloss); }
.cut-gloss a { color: inherit; }
.cut-gloss-ruled { font-style: normal; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 8px 0; }
.cut-gloss > .ssm-manicule:first-child { display: block; font-size: 34px; line-height: 1; margin: 2px 0 6px; font-style: normal; color: var(--rubric); }
.leaf-plate figcaption { font-size: 17px; font-style: italic; color: var(--ink-soft); text-align: center; max-width: 60ch; }

.record { margin: 0 auto; width: min(100%, 720px); display: grid; grid-template-columns: max-content 1fr; gap: 8px 28px; font-size: 18px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 18px 0; }
.record dt { color: var(--grey); }
.record dd { margin: 0; }
.record-tight { margin: 0; width: auto; border: 0; padding: 0; gap: 4px 20px; }

/* The commentary, with margins for glosses (as Shaping Sense) */
.entry { padding: 0 var(--margin); font-size: 21px; }
.entry > * { margin-top: 0; margin-bottom: 22px; }
.entry p { margin: 0 0 22px; }
.entry h2, .entry h3 { font-weight: 400; line-height: 1.25; margin: 32px 0 14px; }
.entry h2 { font-family: 'JSL Ancient', Georgia, serif; font-size: 28px; }
.entry h3 { font-variant: small-caps; letter-spacing: .06em; font-size: 21px; }
.entry blockquote { margin: 0 0 22px; padding: 0 0 0 1.2em; border-left: 2px solid var(--rule); font-size: 19px; }
.entry img { display: block; margin: 0 auto; }
.entry figure { margin: 0 0 22px; }
.entry .wp-block-gallery, .entry .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.entry .gallery br { display: none; }
.entry .gallery-item { margin: 0; }
.entry [style*="font-family"] { font-family: inherit !important; }
.entry [style*="font-size"] { font-size: inherit !important; }
.aligncenter, .wp-caption.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 4px 22px 12px 0; }
.alignright { float: right; margin: 4px 0 12px 22px; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-element-caption, figcaption { font-size: 15px; font-style: italic; color: var(--grey); text-align: center; margin: 6px 0 0; }

.ssm-numbered { position: relative; }
.ssm-pn {
	position: absolute; top: 0; left: calc(-1 * var(--margin)); width: var(--gloss-w); padding-top: 5px;
	text-align: right; font-style: normal; font-variant: small-caps; font-size: 14px; letter-spacing: .04em; line-height: 1.4;
	color: var(--rubric); opacity: .45; text-decoration: none; transition: opacity .15s;
}
.ssm-numbered > .ssm-gloss-left { margin-top: 1.5em; }
.ssm-pn:hover, .ssm-pn:focus, .ssm-pn:target, p:target > .ssm-pn { opacity: 1; }
.ssm-gloss { display: block; width: var(--gloss-w); margin-bottom: 14px; padding-top: 4px; font-size: 15px; line-height: 1.45; font-style: italic; color: var(--gloss); border: 0; opacity: 1; }
.ssm-gloss-left { float: left; clear: left; margin-left: calc(-1 * var(--margin)); text-align: right; }
.ssm-gloss-right { float: right; clear: right; margin-right: calc(-1 * var(--margin)); text-align: left; }
.ssm-gloss-ruled { font-style: normal; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 8px 0; }
.ssm-gloss > .ssm-manicule:first-child { display: block; font-size: 34px; line-height: 1; margin: 2px 0 6px; font-style: normal; }
.ssm-gloss-left > .ssm-manicule:first-child { text-align: right; }
.ssm-manicule { color: var(--rubric); font-style: normal; }
.ssm-mani-text { font-weight: 600; }
.ssm-fnref, sup.fn { font-size: 12px; line-height: 0; }
.ssm-fnref a, sup.fn a { color: var(--rubric); text-decoration: none; font-weight: 600; padding: 0 1px; }
.ssm-sidenote { display: block; float: right; clear: right; width: var(--gloss-w); margin: 0 calc(-1 * var(--margin)) 12px 0; padding-top: 4px; font-size: 14px; line-height: 1.4; font-style: normal; text-align: left; color: var(--gloss); }
.ssm-sn-q { display: block; margin: 4px 0 4px 10px; padding-left: 8px; border-left: 1px solid var(--rule); }
.ssm-sn-no { color: var(--rubric); font-weight: 600; font-size: 12px; margin-right: 2px; }
.ssm-sidenote.is-lit { background: rgba(139, 26, 16, .08); transition: background-color .6s; }
.ssm-gloss .ssm-sidenote { display: none; }
@media (min-width: 1101px) { .ssm-notes, .wp-block-footnotes { display: none; } }
.ssm-excursus { margin: 0 0 22px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 6px 0; }
.ssm-excursus > summary { cursor: pointer; font-variant: small-caps; letter-spacing: .05em; color: var(--rubric); min-height: 32px; }
.ssm-exc-body { padding: 10px 0 0 1.2em; font-size: 19px; }

.signature { text-align: right; font-size: 20px; letter-spacing: .08em; }
.endmatter { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.colo { width: 100%; max-width: 540px; margin: 8px auto 0; text-align: center; font-size: 17px; line-height: 1.5; font-style: italic; }
.colo .sc { font-style: normal; }
.colo a { color: inherit; }
.two-faces { display: block; margin: 10px auto 6px; }
.cite { width: 100%; max-width: 560px; margin: 6px auto 0; text-align: center; font-size: 17px; line-height: 1.5; }
.leaf > :not(.entry):not(.leaf-head) { clear: both; }

.ssm-notes { border-top: 1px solid var(--ink); padding-top: 18px; font-size: 16px; line-height: 1.5; }
.ssm-notes-title { margin: 0 0 10px; font-weight: 400; font-variant: small-caps; letter-spacing: .08em; font-size: 18px; }
.ssm-notes ol { margin: 0; padding-left: 1.6em; display: flex; flex-direction: column; gap: 8px; }
.fold { border-top: 1px solid var(--rule); padding-top: 10px; font-size: 17px; }
.fold > summary { cursor: pointer; color: var(--rubric); min-height: 44px; display: flex; align-items: center; }
.fold-note { color: var(--grey); font-size: 15px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	font: inherit; font-size: 17px; width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--ink); background: rgba(255, 252, 243, .55);
}
.comment-form .submit { font: inherit; font-variant: small-caps; letter-spacing: .08em; padding: 8px 18px; min-height: 44px; border: 0; background: var(--rubric); color: #fff; cursor: pointer; }

.pn-nav { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--ink); padding-top: 12px; font-size: 19px; }
.pn-nav a { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; text-decoration: none; color: var(--ink); max-width: 48%; }
.pn-nav a:hover { color: var(--rubric); }
.pn-nav .sc { color: var(--rubric); }
.pn-next { margin-left: auto; text-align: right; justify-content: flex-end; }

.more { display: flex; flex-direction: column; gap: 18px; }
.more .sec-h { font-size: 32px; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 28px; align-items: start; }
.card-small { margin: 0; }
.card-small .mount { padding: 12px; }

/* ------------------------------------------------------------------
   Archives and the Cabinet catalogue
   ------------------------------------------------------------------ */
.arch-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.arch-head .standfirst p { margin: 0; }
.catalogue { display: flex; flex-direction: column; }
.cat-row { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-start; padding: 32px 0; border-top: 1px solid var(--ink); }
.cat-img { flex: 0 1 300px; min-width: 220px; padding: 16px; }
.cat-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cat-t { margin: 0; font-family: 'JSL Ancient', Georgia, serif; font-weight: 400; font-size: 34px; line-height: 1.1; }
.cat-t a { color: var(--ink); text-decoration: none; }
.cat-t a:hover { color: var(--rubric-dark); }
.cat-t .rubric { color: var(--rubric); }
.cat-essay { margin: 0; font-size: 18px; }
.cat-gloss { flex: 0 1 200px; font-size: 15px; line-height: 1.4; font-style: italic; color: var(--gloss); border-top: 1px solid var(--gloss); border-bottom: 1px solid var(--gloss); padding: 6px 0; }
.search { display: flex; flex-direction: column; gap: 6px; width: min(100%, 420px); }
.search .side-h { font-variant: small-caps; letter-spacing: .07em; font-size: 16px; color: var(--grey); }
.search input { font: inherit; padding: 10px 12px; border: 1px solid var(--ink); background: rgba(255, 252, 243, .55); min-height: 44px; box-sizing: border-box; width: 100%; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; font-variant: small-caps; font-size: 18px; }
.pagination .page-numbers { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }

/* ------------------------------------------------------------------
   Footer: the device and its motto
   ------------------------------------------------------------------ */
.ftr { max-width: 1360px; margin: 0 auto; padding: 8px var(--pad) 48px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.device { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.device img { width: 150px; height: auto; }
.motto { font-size: 17px; letter-spacing: .18em; padding: 4px 14px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); color: var(--ink); font-style: normal; margin: 0; }
.ftr-line { margin: 0; font-size: 15px; color: var(--grey); }
.ftr-small { margin: 0; font-size: 14px; color: var(--grey); }

/* ------------------------------------------------------------------
   Narrower screens
   ------------------------------------------------------------------ */
/* Images, video and embeds take glosses on either side, like paragraphs (Marginalia 1.3) */
.entry .ssm-media > figure, .entry .ssm-media > p, .entry .ssm-media > div { margin-bottom: 0; }
.ssm-media > .ssm-gloss-left, .ssm-media > .ssm-gloss-right { margin-top: 0; }
.ssm-media.ssm-numbered > .ssm-gloss-left { margin-top: 1.5em; }
.ssm-media > :not(.ssm-gloss) { clear: none; } /* centred images and captions clear floats by default */
.ssm-gm-wrap { max-width: 100%; }
.ssm-gloss .ssm-gm-wrap img, .ssm-gloss .ssm-gm-wrap video, .cut-gloss .ssm-gm-wrap img, .cut-gloss .ssm-gm-wrap video { box-shadow: 0 1px 0 var(--rule); }
.cut-margin-left .ssm-gm-wrap { margin-left: auto; }

@media (max-width: 1100px) {
	.ssm-gloss-left .ssm-gm-wrap img, .ssm-gloss-left .ssm-gm-wrap video, .cut-margin-left .ssm-gm-wrap img, .cut-margin-left .ssm-gm-wrap video { margin-left: 0; }
	.ssm-gm-wrap, .ssm-gloss-left .ssm-gm-wrap, .cut-margin-left .ssm-gm-wrap { max-width: 240px; margin-left: 0; }
	.ssm-media { display: flex; flex-direction: column; }
	.ssm-media > * { order: 1; }
	.ssm-media > .ssm-pn { order: 0; }
	.ssm-media > .ssm-gloss, .ssm-media.ssm-numbered > .ssm-gloss-left { order: 2; margin: 10px 0 0; }
	.entry { padding: 0; }
	.ssm-gloss, .ssm-gloss-left, .ssm-gloss-right { float: none; width: auto; margin: 0 0 12px; text-align: left; border-left: 2px solid var(--rule); padding: 0 0 0 12px; }
	.ssm-gloss-ruled { border-top: 0; border-bottom: 0; }
	.ssm-gloss > .ssm-manicule:first-child { display: inline; font-size: inherit; margin: 0 .3em 0 0; }
	.ssm-pn { position: static; display: block; width: auto; margin: 0 0 4px; padding: 0; text-align: left; }
	.ssm-numbered > .ssm-gloss-left { margin-top: 0; }
	.plate-row { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
	.plate-row > .mount { order: -1; }
	.cut-margin:empty { display: none; }
	.cut-margin, .cut-margin-left, .cut-margin-right { text-align: left; gap: 12px; padding-top: 0; }
	.cut-gloss { border-left: 2px solid var(--rule); padding: 0 0 0 12px; }
	.cut-gloss-ruled { border-top: 0; border-bottom: 0; padding: 0 0 0 12px; }
	.cut-gloss > .ssm-manicule:first-child { display: inline; font-size: inherit; margin: 0 .3em 0 0; }
	.ssm-sidenote { display: none; }
	.cs-half, .cs-half + .cs-half { padding: 0; border-left: 0; }
	.cs-half + .cs-half { border-top: 1px solid var(--rule); padding-top: 28px; }
}

@media (max-width: 700px) {
	body { font-size: 18px; }
	.frame { width: auto; margin: 12px; border-width: 22px; border-image-source: var(--sw-border-phone); }
	.pdev { width: 40px; height: 40px; border-width: 2px; box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px var(--ink); }
	.pdev img { width: 28px; }
	.pdev.tl { left: -31px; top: -31px; }
	.pdev.tr { right: -31px; top: -31px; }
	.pdev.bl { left: -31px; bottom: -31px; }
	.pdev.br { right: -31px; bottom: -31px; }
	.hdr { padding: 16px 14px 0; }
	.hdr.is-compact .hdr-in { flex-direction: column; align-items: center; text-align: center; }
	.hdr.is-compact .nav-list { justify-content: center; gap: 0 16px; }
	.nav-list { gap: 0 16px; font-size: 16px; }
	.wrap { padding: 28px 16px 40px; gap: 40px; }
	.process { margin: 0 -16px; padding: 32px 16px; }
	.masonry { columns: 2; column-gap: 14px; }
	.card { margin-bottom: 18px; }
	.card .mount { padding: 8px; }
	.card-t { font-size: 16px; }
	.feature-img { padding: 14px; }
	.cab-thumb { width: 96px; }
	.cs-h { font-size: 26px; }
	.btns .btn { flex: 1 1 100%; }
	.entry { font-size: 19px; }
	.alignleft, .alignright { float: none; display: block; margin: 0 auto 12px; }
	.pn-nav { flex-direction: column; }
	.pn-nav a { max-width: none; }
	.record { grid-template-columns: 1fr; gap: 0; }
	.record dd { margin-bottom: 8px; }
}

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

@media print {
	.vel { box-shadow: none; }
	.frame { border: 0; margin: 0; width: auto; }
	.pdev, .nav, .pn-nav, .btns, .cs, .more, .skip-link, .ssm-sidenote, .process { display: none !important; }
	.ssm-notes, .wp-block-footnotes { display: block !important; }
}

/* The Commonplace Book: the books within it, then the century filter, smaller. */
.chips + .chips-century { margin-top: -8px; }
.chips-century .chip { min-height: 36px; font-size: 16px; padding: 0 12px; }

/* A Commonplace Book leaf is headed by its whole joke, which can run long. */
.pt.pt-long { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.15; max-width: 30ch; margin-inline: auto; text-wrap: balance; }
