/*
Theme Name: Cupel
Theme URI: https://altinavcisi.org/
Author: altinavcisi.org
Description: An assay-ledger theme for bullion and precious metals publishing. Ruled-paper backgrounds, stamped condensed headlines, copper hallmarks and a full-row Popular Topics tray. Fully responsive, self-hosted fonts, no external requests.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
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: cupel
Tags: news, blog, one-column, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ------------------------------------------------------------------ tokens */
:root {
	--paper: #E8ECE6;
	--paper-2: #DCE3DB;
	--paper-3: #CBD5CB;
	--ink: #12201B;
	--ink-2: #33433C;
	--muted: #55645D;
	--copper: #A8461F;
	--copper-hi: #E07A4B;
	--patina: #2F6B5C;
	--patina-lo: #BFD3CA;
	--line: var(--ink);
	--hair: rgba(18, 32, 27, .18);

	--f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
	--f-text: "Newsreader", Georgia, "Times New Roman", serif;
	--f-mono: "Spline Sans Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--gut: clamp(16px, 4vw, 48px);
	--max: 1320px;
	--rule: 32px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}
body {
	margin: 0;
	background-color: var(--paper);
	/* Ledger paper: faint ruled lines. */
	background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--rule) - 1px), rgba(18, 32, 27, .045) calc(var(--rule) - 1px) var(--rule));
	color: var(--ink);
	font-family: var(--f-text);
	font-size: 1.125rem;
	line-height: 1.6;
	font-optical-sizing: auto;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
/* Ledger margin line. */
body::before {
	content: "";
	position: fixed;
	top: 0;
	bottom: 0;
	left: max(8px, calc((100vw - var(--max)) / 2 - 18px));
	width: 1px;
	background: var(--copper);
	opacity: .35;
	pointer-events: none;
	z-index: 0;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--copper); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.05; }
p { margin: 0; }
.screen-reader-text, .seek__label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; font-family: var(--f-mono); font-size: .8rem; }
.skip-link:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); position: relative; z-index: 1; }

.label, .assay-strip, .row__meta, .lead__kicker, .lead__foot, .sheet-head__label, .sheet-head__count,
.pt__sub, .pt__cat, .story__meta dt, .crumbs, .turn__dir, .foot-nav__label, .tool__label, .seek__btn, .note__date, .ledger__label {
	font-family: var(--f-mono);
	font-size: .75rem;
	letter-spacing: .12em;
	text-transform: uppercase;
}

/* ------------------------------------------------------------------ header */
.masthead { position: relative; z-index: 20; background: var(--paper); border-bottom: 3px solid var(--ink); }
.assay-strip { background: var(--ink); color: var(--paper); }
.assay-strip__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.assay-strip__els { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.assay-strip__els b { color: var(--copper-hi); font-weight: 600; }
.assay-strip__els span { opacity: .7; }

.masthead__bar { display: flex; align-items: center; gap: 28px; min-height: 92px; }
.brand { display: block; flex: 0 0 auto; text-decoration: none; }
.brand__img { width: clamp(190px, 22vw, 290px); height: auto; }

.nav { margin-left: auto; }
.nav__list { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.nav__list > li { position: relative; }
.nav__list a {
	display: block;
	padding: 10px 16px;
	font-family: var(--f-display);
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	border-left: 1px solid var(--hair);
}
.nav__list > li:first-child > a { border-left: 0; }
.nav__list a:hover, .nav__list .current-menu-item > a, .nav__list .current_page_item > a { color: var(--copper); box-shadow: inset 0 -3px 0 var(--copper); }
.nav__list .sub-menu { list-style: none; margin: 0; padding: 6px 0; position: absolute; left: 0; top: 100%; min-width: 220px; background: var(--paper); border: 2px solid var(--ink); display: none; }
.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu { display: block; }
.nav__list .sub-menu a { border: 0; font-size: 1rem; }

.masthead__tools { display: flex; gap: 0; }
.tool {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 44px; padding: 0 14px;
	background: transparent; border: 2px solid var(--ink);
	transition: background .2s var(--ease), color .2s var(--ease);
}
.tool + .tool { border-left: 0; }
.tool[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
@media (hover: hover) { .tool:hover { background: var(--ink); color: var(--paper); } }
.tool--menu { display: none; }
.tool__bars { display: grid; gap: 5px; width: 20px; }
.tool__bars i { display: block; height: 2px; background: currentColor; transition: transform .25s var(--ease); }
.tool--menu[aria-expanded="true"] .tool__bars i:first-child { transform: translateY(3.5px) rotate(45deg); }
.tool--menu[aria-expanded="true"] .tool__bars i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.search-drawer { border-top: 1px solid var(--ink); background: var(--paper-2); padding: 22px 0; }
.search-drawer[hidden] { display: none; }

/* Header widget prints right after </header>. */
.masthead + :not(main) { max-width: var(--max); margin: 18px auto 0; padding-inline: var(--gut); position: relative; z-index: 1; }
.hw-title { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); max-width: var(--max); margin: 14px auto 0; padding-inline: var(--gut); }

/* ------------------------------------------------------------------ search form */
.seek__row { display: flex; border: 2px solid var(--ink); background: var(--paper); }
.seek__input {
	flex: 1; min-width: 0; border: 0; background: transparent; padding: 14px 16px;
	font: 400 1.2rem/1.3 var(--f-text); color: var(--ink);
}
.seek__input:focus { outline: none; }
.seek__row:focus-within { outline: 3px solid var(--copper); outline-offset: 2px; }
.seek__btn { border: 0; background: var(--ink); color: var(--paper); padding: 0 22px; min-height: 48px; }
.seek__btn:hover { background: var(--copper); }

/* ------------------------------------------------------------------ intro + sheet heads */
.intro { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px 32px; padding: clamp(28px, 5vw, 56px) 0 22px; border-bottom: 1px solid var(--ink); }
.intro__title {
	font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
	font-size: clamp(3rem, 11vw, 9.5rem); line-height: .82; letter-spacing: -.005em;
}
.intro__desc { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); max-width: 22ch; text-align: right; }

.sheet-head { padding: clamp(28px, 5vw, 60px) 0 26px; border-bottom: 3px solid var(--ink); }
.sheet-head__label { color: var(--copper); margin-bottom: 10px; }
.sheet-head__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 8vw, 6.5rem); line-height: .9; text-transform: uppercase; }
.sheet-head__desc { max-width: 60ch; margin-top: 16px; color: var(--ink-2); }
.sheet-head__count { margin-top: 18px; color: var(--muted); }
.sheet-head__form { max-width: 640px; margin-top: 24px; }

/* ------------------------------------------------------------------ lead story */
.lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-bottom: 1px solid var(--ink); }
.lead__media { display: block; position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--patina); border-right: 1px solid var(--ink); }
.lead__media img { width: 100%; height: 100%; object-fit: cover; }
.lead__text { display: flex; flex-direction: column; gap: 18px; padding: clamp(20px, 3vw, 40px) 0 clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px); }
.lead__kicker { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lead__lot { background: var(--copper); color: var(--paper); padding: 3px 8px; }
.lead__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem, 4.4vw, 4.1rem); line-height: .92; }
.lead__title a { text-decoration: none; }
.lead__title a:hover { color: inherit; text-decoration: underline; text-decoration-color: var(--copper); text-decoration-thickness: 3px; }
.lead__excerpt { color: var(--ink-2); font-size: 1.15rem; }
.lead__foot { display: flex; gap: 18px; color: var(--muted); margin-top: auto; }
.lead__go {
	align-self: flex-start; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 1.2rem;
	text-transform: uppercase; letter-spacing: .06em; border-bottom: 3px solid var(--copper); padding-bottom: 2px;
}

.cat-link, .tag-link { text-decoration: none; color: var(--patina); font-weight: 600; }
.cat-link:hover, .tag-link:hover { color: var(--copper); }

/* ------------------------------------------------------------------ ledger */
.ledger__label { padding: 30px 0 10px; color: var(--copper); border-bottom: 3px solid var(--ink); font-weight: 600; }
.row {
	display: grid;
	grid-template-columns: 76px 150px minmax(0, 1fr) 200px;
	gap: 0 28px;
	align-items: start;
	padding: 26px 0;
	border-bottom: 1px solid var(--ink);
	position: relative;
	transition: background .2s var(--ease);
}
.row:hover { background: rgba(203, 213, 203, .45); }
.row__no { font-family: var(--f-display); font-weight: 800; font-size: 3rem; line-height: .8; color: var(--copper); padding-left: 4px; }
.row__meta { display: flex; flex-direction: column; gap: 8px; color: var(--muted); padding-top: 4px; }
.row__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1; }
.row__title a { text-decoration: none; }
.row__title a:hover { color: inherit; text-decoration: underline; text-decoration-color: var(--copper); text-decoration-thickness: 2px; }
.row__excerpt { margin-top: 10px; color: var(--ink-2); font-size: 1.05rem; max-width: 62ch; }
.row__media, .lead__media, .pt__link { text-decoration: none; }
.row__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--patina); }
.row__media img { width: 100%; height: 100%; object-fit: cover; }

/* Duotone treatment: images print in ink on patina until hovered. */
.lead__media img, .row__media img, .pt__media img {
	filter: grayscale(1) contrast(1.12) brightness(1.05);
	mix-blend-mode: multiply;
	transition: filter .35s var(--ease), mix-blend-mode .35s;
}
.lead:hover .lead__media img, .row:hover .row__media img, .pt__link:hover .pt__media img, .pt__link:focus-visible .pt__media img {
	filter: none;
	mix-blend-mode: normal;
}

/* Element tile used when a post has no image. */
.element {
	display: grid; place-content: center; justify-items: center; gap: 2px;
	width: 100%; height: 100%; min-height: 100%;
	background: var(--patina-lo); color: var(--ink);
	position: relative;
}
.element__z { position: absolute; top: 10px; left: 12px; font-family: var(--f-mono); font-size: .75rem; }
.element__sym { font-family: var(--f-display); font-weight: 800; font-size: clamp(3rem, 6vw, 5rem); line-height: .9; }
.element__name { font-family: var(--f-mono); font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; }
.lead__media .element__sym { font-size: clamp(6rem, 16vw, 12rem); }

/* ------------------------------------------------------------------ pagination */
.pager { margin: 32px 0 0; }
.pager ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; border: 2px solid var(--ink); width: max-content; max-width: 100%; }
.pager li + li { border-left: 1px solid var(--ink); }
.pager li > .page-numbers { display: grid; place-items: center; min-width: 48px; min-height: 48px; padding: 0 14px; white-space: nowrap; font-family: var(--f-mono); font-size: .85rem; text-decoration: none; }
.pager li > .current { background: var(--ink); color: var(--paper); }
.pager a.page-numbers:hover { background: var(--copper); color: var(--paper); }

.empty { padding: 40px 0; font-size: 1.25rem; }

/* ------------------------------------------------------------------ popular topics */
.pt { margin: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.pt__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; border-bottom: 3px solid var(--ink); padding-bottom: 10px; }
.pt__title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: .85; }
.pt__sub { color: var(--muted); padding-bottom: 4px; }
.pt__grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	border-left: 1px solid var(--ink);
}
.pt[data-cols="2"] .pt__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pt[data-cols="1"] .pt__grid { grid-template-columns: minmax(0, 1fr); }
.pt__item { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; }
.pt__link {
	display: grid; grid-template-rows: auto auto 1fr; gap: 14px;
	width: 100%; padding: 16px 16px 20px; text-decoration: none;
	transition: background .2s var(--ease), color .2s var(--ease);
}
.pt__link:hover, .pt__link:focus-visible { background: var(--ink); color: var(--paper); }
.pt__no { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--copper); }
.pt__link:hover .pt__no { color: var(--copper-hi); }
.pt__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--patina); }
.pt__media img { width: 100%; height: 100%; object-fit: cover; }
.pt__body { display: flex; flex-direction: column; gap: 6px; }
.pt__cat { color: var(--patina); font-size: .68rem; }
.pt__link:hover .pt__cat { color: var(--patina-lo); }
.pt__name { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; line-height: 1.02; }

/* ------------------------------------------------------------------ single */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 0; list-style: none; margin: 0 0 22px; padding: 0; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--copper); }
.crumbs a { text-decoration: none; }
.crumbs .cat-link { color: inherit; font-weight: 400; }

.story__head { padding-top: clamp(28px, 5vw, 56px); padding-bottom: 28px; }
.story__title {
	font-family: var(--f-display); font-weight: 800;
	font-size: clamp(2.5rem, 6.4vw, 5.6rem); line-height: .9; max-width: 18ch;
	text-wrap: balance;
}
.story__dek { margin-top: 20px; max-width: 54ch; font-size: clamp(1.2rem, 2vw, 1.45rem); color: var(--ink-2); font-style: italic; }
.story__figure { margin: 0 auto; }
.story__figure img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); }
.story__figure figcaption { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); padding-top: 8px; }

.story__grid {
	display: grid;
	grid-template-columns: 220px minmax(0, 720px);
	gap: 0 clamp(28px, 4vw, 64px);
	padding-top: 40px;
	justify-content: start;
}
.has-rail .story__grid { grid-template-columns: 200px minmax(0, 720px) minmax(220px, 1fr); }
.story--page .story__grid { grid-template-columns: minmax(0, 760px); }
.has-rail .story--page .story__grid { grid-template-columns: minmax(0, 760px) minmax(220px, 300px); }

.story__meta dl { margin: 0; border-top: 3px solid var(--ink); position: sticky; top: 20px; }
.story__meta dl > div { padding: 12px 0; border-bottom: 1px solid var(--hair); }
.story__meta dt { color: var(--copper); font-size: .68rem; margin-bottom: 2px; }
.story__meta dd { margin: 0; font-size: 1rem; }
.story__rail { border-top: 3px solid var(--ink); padding-top: 12px; }
.rail-widget { margin-bottom: 32px; font-size: 1rem; }
.rail-widget__title { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); margin-bottom: 10px; }

.prose { font-size: 1.2rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--f-display); font-weight: 800; line-height: 1; margin-top: 1.7em; }
.prose h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.prose h3 { font-size: 1.6rem; }
.prose h4 { font-size: 1.3rem; text-transform: uppercase; letter-spacing: .04em; }
.prose a { color: var(--copper); text-decoration-thickness: 1px; }
.prose a:hover { color: var(--ink); }
.prose > p:first-child::first-letter {
	float: left; font-family: var(--f-display); font-weight: 800; font-size: 5.2em; line-height: .78;
	padding: 6px 12px 0 0; color: var(--copper);
}
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 22px; border-left: 6px solid var(--copper); font-style: italic; font-size: 1.35rem; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li::marker { color: var(--copper); }
.prose img { height: auto; }
.prose figure { margin-inline: 0; }
.prose figcaption, .wp-caption-text { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: .9rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--ink); padding: 10px 12px; text-align: left; white-space: nowrap; }
.prose th { background: var(--ink); color: var(--paper); font-weight: 600; }
.prose tr:nth-child(even) td { background: rgba(203, 213, 203, .5); }
.prose hr { border: 0; border-top: 3px double var(--ink); margin: 2em 0; }
.prose pre { background: var(--ink); color: var(--paper); padding: 16px; overflow-x: auto; font-size: .9rem; }
.prose code { font-family: var(--f-mono); font-size: .88em; }
.alignwide { max-width: none; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-inline: auto; }
.more-link { font-family: var(--f-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }

.story__tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--ink); }
.story__tags > span { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.story__tags .tag-link { font-family: var(--f-mono); font-size: .78rem; font-weight: 400; border: 1px solid var(--ink); padding: 4px 10px; color: var(--ink); }
.story__tags .tag-link:hover { background: var(--ink); color: var(--paper); }
.page-links { font-family: var(--f-mono); font-size: .85rem; }

.turn { display: grid; grid-template-columns: 1fr 1fr; margin-top: 56px; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); }
.turn__link { display: flex; flex-direction: column; gap: 8px; padding: 22px 0; text-decoration: none; }
.turn__link--next { text-align: right; border-left: 1px solid var(--ink); padding-left: 24px; grid-column: 2; }
.turn__link--prev { padding-right: 24px; }
.turn__dir { color: var(--copper); }
.turn__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.02; }
.turn__link:hover .turn__title { text-decoration: underline; text-decoration-color: var(--copper); }

/* ------------------------------------------------------------------ comments */
.notes { margin-top: 56px; max-width: 760px; }
.notes__title { font-family: var(--f-display); font-weight: 800; font-size: 2rem; text-transform: uppercase; border-bottom: 3px solid var(--ink); padding-bottom: 8px; margin-bottom: 8px; }
.notes__list, .notes__list .children { list-style: none; margin: 0; padding: 0; }
.notes__list .children { padding-left: clamp(16px, 4vw, 40px); border-left: 1px solid var(--copper); }
.note { padding: 18px 0; border-bottom: 1px solid var(--hair); }
.note__head { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.note__author { font-weight: 600; }
.note__date { color: var(--muted); }
.note__body { margin-top: 6px; font-size: 1.05rem; }
.note__reply a, .comment-reply-link { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.comment-form { display: grid; gap: 14px; margin-top: 16px; }
.comment-form label { display: block; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; border: 2px solid var(--ink); background: var(--paper); padding: 12px; font: inherit; font-size: 1rem; color: var(--ink); border-radius: 0;
}
.comment-form .seek__btn { min-height: 48px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { text-transform: none; letter-spacing: 0; font-family: var(--f-text); font-size: .95rem; }

/* ------------------------------------------------------------------ footer */
.foot { background: var(--ink); color: var(--paper); margin-top: 24px; position: relative; z-index: 1; }
.foot__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(32px, 5vw, 56px); }
.foot .brand__img { width: clamp(220px, 30vw, 380px); }
.foot__tagline { margin-top: 18px; max-width: 40ch; color: var(--patina-lo); }
.foot-nav__label { color: var(--copper-hi); border-bottom: 1px solid rgba(232, 236, 230, .25); padding-bottom: 10px; margin-bottom: 4px; }
.foot-nav__list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.foot-nav__list li { break-inside: avoid; border-bottom: 1px solid rgba(232, 236, 230, .12); }
.foot-nav__list a { display: block; padding: 10px 0; text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; letter-spacing: .03em; border: 0; box-shadow: none; }
.foot-nav__list a:hover { color: var(--copper-hi); }
.foot__base { border-top: 1px solid rgba(232, 236, 230, .25); }
.foot__base-in { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-top: 18px; padding-bottom: 18px; font-family: var(--f-mono); font-size: .72rem; color: var(--patina-lo); }
.foot__up { text-decoration: none; text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; }
.foot a:focus-visible { outline-color: var(--copper-hi); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
	.has-rail .story__grid { grid-template-columns: 200px minmax(0, 1fr); }
	.has-rail .story__rail { grid-column: 2; margin-top: 40px; }
	.row { grid-template-columns: 64px 130px minmax(0, 1fr) 160px; gap: 0 20px; }
}

@media (max-width: 959px) {
	.tool--menu { display: inline-flex; }
	.masthead__tools { margin-left: auto; }
	.nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--paper); border-bottom: 3px solid var(--ink);
		margin: 0; padding: 8px var(--gut) 20px;
		display: none;
	}
	.nav-open .nav { display: block; }
	.nav__list { flex-direction: column; }
	.nav__list a { border-left: 0; border-bottom: 1px solid var(--hair); padding: 14px 0; font-size: 1.6rem; }
	.nav__list .sub-menu { position: static; display: block; border: 0; padding: 0 0 0 16px; background: transparent; }
	.masthead__bar { position: static; }
	.masthead { position: relative; }

	.lead { grid-template-columns: 1fr; }
	.lead__media { border-right: 0; border-bottom: 1px solid var(--ink); }
	.lead__text { padding-left: 0; }

	.row { grid-template-columns: 56px minmax(0, 1fr) 140px; grid-template-areas: "no meta media" "no text media"; gap: 8px 18px; }
	.row__no { grid-area: no; font-size: 2.3rem; }
	.row__meta { grid-area: meta; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; padding: 0; }
	.row__text { grid-area: text; }
	.row__media { grid-area: media; }

	.pt__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.story__grid, .has-rail .story__grid { grid-template-columns: minmax(0, 1fr); }
	.has-rail .story__rail { grid-column: auto; }
	.story__meta dl { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 20px; margin-bottom: 32px; }
	.has-rail .story--page .story__grid { grid-template-columns: minmax(0, 1fr); }

	.foot__top { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	body { font-size: 1.0625rem; }
	.assay-strip__els span { display: none; }
	.assay-strip__els { gap: 12px; }
	.masthead__bar { min-height: 72px; gap: 12px; }
	.brand__img { width: 168px; }
	.tool { padding: 0 11px; }
	.tool--search .tool__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

	.intro { grid-template-columns: 1fr; }
	.intro__desc { text-align: left; }

	.row { grid-template-columns: 40px minmax(0, 1fr) 96px; grid-template-areas: "no meta media" "no text media"; gap: 6px 14px; padding: 20px 0; }
	.row__no { font-size: 1.7rem; padding-left: 0; }
	.row__excerpt { display: none; }
	.row__title { font-size: 1.4rem; }
	.row__media { aspect-ratio: 1; }
	.row__media .element__sym { font-size: 2.2rem; }
	.row__media .element__name, .row__media .element__z { display: none; }

	.pt__grid, .pt[data-cols="2"] .pt__grid { grid-template-columns: minmax(0, 1fr); }
	.pt__link { grid-template-columns: 34px 92px minmax(0, 1fr); grid-template-rows: auto; align-items: start; gap: 12px; padding: 14px 12px; }
	.pt__media { aspect-ratio: 1; }
	.pt__media .element__sym { font-size: 2rem; }
	.pt__media .element__name, .pt__media .element__z { display: none; }
	.pt__name { font-size: 1.2rem; }
	.pt__head { flex-direction: column; align-items: flex-start; gap: 6px; }

	.prose { font-size: 1.12rem; }
	.turn { grid-template-columns: 1fr; }
	.turn__link--next { grid-column: auto; border-left: 0; border-top: 1px solid var(--ink); padding-left: 0; text-align: left; }
	.foot-nav__list { columns: 1; }
	.foot__base-in { flex-direction: column; align-items: flex-start; }
}

@media print {
	body { background: #fff; }
	body::before, .masthead, .foot, .pt, .turn, .notes { display: none; }
}
