/* ==========================================================================
   The Organized Forge — "module catalog"
   Every title is dressed like a printed game module: a trade-dress band in the
   collection color with a catalog code, a window with the real cover, a heavy
   condensed title. White paper stock, black keylines, flat print colors.
   Type: Archivo (variable width) for display and UI, Source Serif 4 for reading.
   ========================================================================== */

/* Fonts ------------------------------------------------------------------- */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

/* Tokens ------------------------------------------------------------------ */
:root {
	--paper: #FFFFFF;
	--paper-2: #F2F2F0;
	--mat: #E7E7E3;
	--ink: #16181B;
	--ink-2: #4B4F56;
	--hair: #D3D4D7;
	--red: #B23A26;
	--mustard: #D19A12;

	--band: var(--ink);
	--band-ink: #fff;

	--f-display: "Archivo", "Arial Narrow", sans-serif;
	--f-ui: "Archivo", system-ui, sans-serif;
	--f-text: "Source Serif 4", Georgia, serif;

	--wrap: 1320px;
	--gutter: clamp(1rem, 3.5vw, 2.5rem);
	--header-h: 68px;
	--ease: cubic-bezier(.16, 1, .3, 1);
}

/* Base -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-text);
	font-size: 1.125rem;
	line-height: 1.55;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	caret-color: var(--red);
	accent-color: var(--ink);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-stretch: 78%; font-weight: 800; line-height: 1.02; letter-spacing: -.005em; word-spacing: .08em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--mustard); color: var(--ink); }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--ink); color: #fff; padding: .7rem 1rem; font-family: var(--f-ui); font-weight: 700; }
.skip-link:focus { top: 1rem; }
.site-main:focus { outline: none; }
html { scrollbar-color: var(--ink) var(--paper-2); }

/* Layout ------------------------------------------------------------------ */
.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--tight { padding-top: clamp(1.75rem, 3vw, 2.5rem); }
.section--alt { background: var(--paper-2); }
.section--rule { border-top: 2px solid var(--ink); }
.section-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); max-width: 62ch; }
.section-head p { color: var(--ink-2); margin: 0; }
.section-head--row { max-width: none; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section-head--row .section-title { margin: 0; }
.section-title { font-size: clamp(2rem, 1.35rem + 2.2vw, 3.25rem); margin-bottom: .35em; }
.textlink { font-family: var(--f-ui); font-weight: 650; font-size: 1rem; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; }
.textlink:hover { color: var(--red); }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--modules { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(1.5rem, 3vw, 2.25rem); }
.grid--entries { grid-template-columns: 1fr; row-gap: 2.5rem; }
@media (min-width: 720px) { .grid--modules { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid--entries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid--modules { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid--entries { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Buttons & form controls ------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 48px; padding: .7rem 1.3rem;
	font-family: var(--f-ui); font-stretch: 90%; font-weight: 700; font-size: 1.02rem; line-height: 1.1;
	color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 2px;
	text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ink:hover { background: var(--paper); color: var(--ink); }
.btn--lg { min-height: 56px; padding: .9rem 1.7rem; font-size: 1.12rem; }
.btn--sm { min-height: 40px; padding: .45rem .9rem; font-size: .92rem; }
.btn .icon { flex: none; }

label { font-family: var(--f-ui); font-weight: 650; font-size: .9rem; }
input[type="text"], input[type="email"], input[type="search"], input[type="url"], textarea, select {
	width: 100%; min-height: 48px; padding: .65rem .8rem;
	background: var(--paper); color: var(--ink);
	border: 2px solid var(--ink); border-radius: 2px;
	font-family: var(--f-ui); font-size: 1rem;
}
input::placeholder, textarea::placeholder { color: #767A81; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--mustard); outline-offset: 0; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2316181B' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.4rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: .75rem 1rem; font-family: var(--f-ui); font-size: .95rem; margin: 1rem 0 0; border: 2px solid; }
.notice--ok { border-color: #2E6B3F; background: #E6F0E8; color: #17391F; }
.notice--err { border-color: var(--red); background: #F8E4E0; color: #6A1A0E; }

/* Header ------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 2px solid var(--ink); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { text-decoration: none; color: inherit; flex: none; }
.logo { display: inline-flex; align-items: center; gap: .55rem; }
.logo__mark { width: 34px; height: 34px; }
.logo__word { font-family: var(--f-display); font-stretch: 72%; font-weight: 850; font-size: 1.6rem; letter-spacing: -.01em; line-height: 1; }

.nav-toggle { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .8rem; background: var(--paper); border: 2px solid var(--ink); border-radius: 2px; font-family: var(--f-ui); font-weight: 700; cursor: pointer; }
.nav-toggle__open, .nav-toggle__label { display: inline-flex; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: inline-flex; }

.site-nav { display: none; }
.nav-open .site-nav { display: flex; flex-direction: column; gap: 1rem; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 2px solid var(--ink); padding: .5rem var(--gutter) 1.5rem; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.site-nav__list a { display: block; padding: .8rem 0; font-family: var(--f-ui); font-weight: 650; font-size: 1.1rem; text-decoration: none; border-bottom: 1px solid var(--hair); }
.site-nav__list .current-menu-item > a, .site-nav__list .current_page_parent > a, .site-nav__list .current-menu-ancestor > a { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .35em; }
.site-nav__cta { align-self: flex-start; }
@media (min-width: 1000px) {
	.nav-toggle { display: none; }
	.site-nav, .nav-open .site-nav { display: flex; flex-direction: row; align-items: center; gap: 1.5rem; position: static; padding: 0; border: 0; background: none; }
	.site-nav__list { flex-direction: row; gap: 1.4rem; }
	.site-nav__list a { border: 0; padding: .4rem 0; font-size: 1rem; }
	.site-nav__list a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
}

/* Breadcrumbs ------------------------------------------------------------- */
.crumbs ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem .5rem; font-family: var(--f-ui); font-size: .88rem; color: var(--ink-2); }
.crumbs li { display: inline-flex; gap: .5rem; }
.crumbs li + li::before { content: "/"; color: #9A9DA3; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }

/* The module (product card) ---------------------------------------------- */
.module { background: var(--paper); border: 2px solid var(--ink); display: flex; }
.module__link { display: flex; flex-direction: column; width: 100%; text-decoration: none; color: inherit; }
.module__band { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding: .4rem .65rem .38rem; background: var(--band); color: var(--band-ink); font-family: var(--f-ui); font-stretch: 80%; }
.module__code { font-weight: 850; font-size: 1.02rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.module__kind { font-weight: 600; font-size: .84rem; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.module__window { position: relative; aspect-ratio: 4 / 5; background: var(--mat); border-bottom: 2px solid var(--ink); display: grid; place-items: center; padding: clamp(.7rem, 2vw, 1.15rem); overflow: hidden; }
.module__img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(22, 24, 27, .28)); transition: transform .35s var(--ease); }
.module__body { padding: .7rem .75rem .9rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.module__title { font-size: clamp(1.08rem, .95rem + .45vw, 1.32rem); line-height: 1.05; margin: 0; }
.module__meta { font-family: var(--f-ui); font-size: .84rem; color: var(--ink-2); margin: 0; line-height: 1.3; }
.module__link:hover .module__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.module__link:hover .module__img { transform: translateY(-4px); }
.module__link:focus-visible { outline-offset: 4px; }

.stamp {
	display: inline-block; padding: .18rem .45rem;
	font-family: var(--f-ui); font-stretch: 75%; font-weight: 850; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
	color: #A3201F; border: 2px solid #A3201F; background: rgba(255, 255, 255, .92);
}
.module__window .stamp { position: absolute; top: .6rem; right: .55rem; transform: rotate(4deg); }
a.stamp:hover { background: #A3201F; color: #fff; }

/* Home: cover ------------------------------------------------------------- */
.cover { padding-block: clamp(2rem, 4vw, 3.25rem) clamp(3rem, 6vw, 4.5rem); }
.cover__grid { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 1000px) { .cover__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 3.5rem; } }
.cover__title { font-stretch: 70%; font-weight: 880; font-size: clamp(3rem, 1.6rem + 5.4vw, 6rem); line-height: .9; letter-spacing: -.012em; word-spacing: .1em; margin: 0 0 1.25rem; max-width: 13ch; }
.cover__lead { font-size: clamp(1.15rem, 1.05rem + .35vw, 1.35rem); line-height: 1.45; max-width: 52ch; margin: 0; }
.finder { border: 2px solid var(--ink); padding: 1.1rem 1.15rem 1.25rem; display: grid; gap: .85rem; background: var(--paper); }
.finder__title { font-size: 1.5rem; margin: 0; }
.finder__field label { display: block; margin-bottom: .3rem; }
.finder__go { width: 100%; }
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 62%); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: clamp(2rem, 4vw, 3rem); padding-bottom: .5rem; }
.shelf > * { scroll-snap-align: start; display: flex; }
.shelf .module { width: 100%; }
@media (min-width: 720px) { .shelf { grid-auto-columns: minmax(200px, 32%); } }
@media (min-width: 1100px) { .shelf { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; gap: 1.25rem; } }
.cover__proof { font-family: var(--f-ui); font-size: 1rem; margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.cover__proof a { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: .25em; }

@media (prefers-reduced-motion: no-preference) {
	.shelf > * { animation: shelf-in .8s var(--ease) both; }
	.shelf > *:nth-child(2) { animation-delay: 70ms; }
	.shelf > *:nth-child(3) { animation-delay: 140ms; }
	.shelf > *:nth-child(4) { animation-delay: 210ms; }
	.shelf > *:nth-child(5) { animation-delay: 280ms; }
	@keyframes shelf-in { from { transform: translateY(22px); opacity: .001; } to { transform: none; opacity: 1; } }
}

/* Home: seasonal band ----------------------------------------------------- */
.season { background: var(--band); color: var(--band-ink); padding-block: clamp(3rem, 6vw, 5rem); border-block: 2px solid var(--ink); }
.season__grid { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .season__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 3rem; align-items: start; } }
.season__title { font-stretch: 68%; font-weight: 900; font-size: clamp(3rem, 1.8rem + 3.2vw, 4.6rem); line-height: .88; margin-bottom: 1rem; }
.season__head p { font-size: 1.15rem; margin-bottom: 1.5rem; max-width: 34ch; }
.season__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; color: var(--ink); }
@media (min-width: 720px) { .season__row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Home: catalog index ----------------------------------------------------- */
.index { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 3rem; border-bottom: 2px solid var(--ink); }
@media (min-width: 960px) { .index { grid-template-columns: 1fr 1fr; } }
.index-row a { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto; grid-template-areas: "code name count" "code pitch pitch"; gap: .15rem 1rem; align-items: baseline; padding: 1rem 0 1.1rem; border-top: 2px solid var(--ink); text-decoration: none; }
.index-row__code { grid-area: code; align-self: stretch; display: grid; place-items: center; background: var(--band); color: var(--band-ink); font-family: var(--f-ui); font-stretch: 75%; font-weight: 880; font-size: 1.15rem; min-height: 3.6rem; }
.index-row__name { grid-area: name; font-family: var(--f-display); font-stretch: 76%; font-weight: 820; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); line-height: 1.05; }
.index-row__pitch { grid-area: pitch; color: var(--ink-2); font-size: 1rem; line-height: 1.4; }
.index-row__count { grid-area: count; font-family: var(--f-ui); font-weight: 600; font-size: .9rem; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.index-row a:hover .index-row__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }

/* Home: how buying works -------------------------------------------------- */
.how { display: grid; gap: 1.5rem; }
@media (min-width: 1000px) { .how { grid-template-columns: 300px minmax(0, 1fr); gap: 3rem; } .how__more { grid-column: 2; } }
.how__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 760px) { .how__steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.how__steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: .9rem; }
.how__steps li::before { content: counter(step); display: block; font-family: var(--f-display); font-stretch: 70%; font-weight: 900; font-size: 3.2rem; line-height: 1; margin-bottom: .5rem; }
.how__steps h3 { font-size: 1.4rem; margin-bottom: .35rem; }
.how__steps p { color: var(--ink-2); margin: 0; font-size: 1.05rem; }
.how__more { margin: 0; font-family: var(--f-ui); }

/* Home: journal + maker + signup ----------------------------------------- */
.journal-home { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .journal-home { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 3rem; } }
.journal-home a { text-decoration: none; display: block; }
.journal-home__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 1rem; }
.journal-home__title { font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.4rem); margin-bottom: .5rem; }
.journal-home__lead a:hover .journal-home__title, .journal-home__list a:hover .journal-home__item { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.journal-home__list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.journal-home__list li { border-bottom: 1px solid var(--hair); }
.journal-home__list a { padding: 1.1rem 0; }
.journal-home__item { font-size: 1.4rem; margin: .1rem 0 .35rem; }

.entry__cat { font-family: var(--f-ui); font-weight: 700; font-size: .88rem; color: var(--red); margin: 0 0 .3rem; }
.entry__text { color: var(--ink-2); font-size: 1.02rem; line-height: 1.45; margin: 0 0 .5rem; }
.entry__meta { font-family: var(--f-ui); font-size: .85rem; color: var(--ink-2); margin: 0; }
.entry__link { display: block; text-decoration: none; }
.entry__media { margin-bottom: 1rem; }
.entry__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.entry__title { font-size: 1.5rem; line-height: 1.08; margin: 0 0 .5rem; }
.entry__link:hover .entry__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.entry__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.maker { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) { .maker { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 4rem; align-items: start; } }
.maker__text p { font-size: 1.2rem; max-width: 60ch; }
.maker__facts { margin: 0; border-top: 2px solid var(--ink); }
.maker__facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--hair); }
.maker__facts dt { font-family: var(--f-ui); font-weight: 650; font-size: .92rem; color: var(--ink-2); }
.maker__facts dd { margin: 0; font-family: var(--f-ui); font-weight: 600; font-size: 1.05rem; }

.signup { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1000px) { .signup { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.signup p { color: var(--ink-2); max-width: 52ch; }
.nl__label { display: block; margin-bottom: .35rem; }
.nl__row { display: flex; flex-direction: column; gap: .6rem; }
@media (min-width: 560px) { .nl__row { flex-direction: row; } .nl__input { flex: 1; } }
.nl__consent { display: flex; gap: .6rem; align-items: flex-start; margin-top: .85rem; font-family: var(--f-text); font-weight: 400; font-size: .98rem; line-height: 1.45; color: var(--ink-2); }
.nl__consent input { margin-top: .25rem; width: 18px; height: 18px; flex: none; }

/* Page header ------------------------------------------------------------- */
.pagehead { border-top: 14px solid var(--band); border-bottom: 2px solid var(--ink); }
.pagehead__inner { padding-block: clamp(1.5rem, 3vw, 2.25rem) clamp(2rem, 4vw, 3rem); }
.pagehead__title { font-stretch: 70%; font-weight: 880; font-size: clamp(2.6rem, 1.6rem + 4vw, 5.25rem); line-height: .92; letter-spacing: -.012em; word-spacing: .1em; margin: 0 0 .9rem; max-width: 18ch; }
.pagehead__lead { font-size: clamp(1.12rem, 1.02rem + .35vw, 1.32rem); max-width: 58ch; margin: 0; }
.pagehead__meta { font-family: var(--f-ui); font-weight: 600; font-size: .95rem; color: var(--ink-2); margin: 1rem 0 0; }

/* Shop -------------------------------------------------------------------- */
.filters { display: grid; gap: .9rem; align-items: end; padding: 1rem 0 1.5rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--hair); }
@media (min-width: 820px) { .filters { grid-template-columns: 1fr 1fr 1.4fr auto auto; } }
.filters__field label { display: block; margin-bottom: .3rem; }
.filters__reset { font-family: var(--f-ui); font-weight: 600; align-self: center; }
.empty { padding: 3rem 0; border-top: 2px solid var(--ink); }
.empty h2 { font-size: 2rem; }

.checklist__cols { columns: 1; column-gap: 3rem; }
@media (min-width: 720px) { .checklist__cols { columns: 2; } }
@media (min-width: 1100px) { .checklist__cols { columns: 3; } }
.checklist__group { break-inside: avoid; margin-bottom: 2rem; }
.checklist__head { font-size: 1.15rem; margin: 0 0 .4rem; background: var(--band); color: var(--band-ink); padding: .35rem .6rem .3rem; }
.checklist__head a { text-decoration: none; }
.checklist__group ul { list-style: none; margin: 0; padding: 0; }
.checklist__group li a { display: grid; grid-template-columns: 4.2rem 1fr; gap: .5rem; padding: .32rem 0; border-bottom: 1px solid var(--hair); font-family: var(--f-ui); font-size: .95rem; text-decoration: none; line-height: 1.3; }
.checklist__group li a:hover { text-decoration: underline; }
.checklist__code { font-weight: 750; font-stretch: 85%; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* Product ----------------------------------------------------------------- */
.product__band { background: var(--band); color: var(--band-ink); border-bottom: 2px solid var(--ink); }
.product__band-inner { display: flex; align-items: baseline; gap: 1.25rem; min-height: 56px; padding-block: .7rem; font-family: var(--f-ui); font-stretch: 78%; }
.product__code { font-weight: 900; font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.product__collection { font-weight: 650; font-size: 1.05rem; text-decoration: none; }
.product__collection:hover { text-decoration: underline; }
.product__top { padding-block: clamp(2rem, 4vw, 3.5rem) clamp(3rem, 5vw, 4.5rem); }
.product__grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .product__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; } }
.product__cover { background: var(--mat); border: 2px solid var(--ink); padding: clamp(1.25rem, 4vw, 2.75rem); display: grid; place-items: center; }
.product__img { width: 100%; max-height: 680px; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(22, 24, 27, .3)); }
.product__title { font-stretch: 72%; font-weight: 880; font-size: clamp(2.3rem, 1.5rem + 3vw, 4.2rem); line-height: .93; letter-spacing: -.012em; word-spacing: .1em; margin: 0 0 1rem; }
.product__stamps { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.1rem; }
.product__lead { font-size: clamp(1.15rem, 1.05rem + .35vw, 1.35rem); line-height: 1.45; max-width: 56ch; }
.specs { margin: 1.5rem 0 0; border-top: 2px solid var(--ink); }
.specs div { display: grid; grid-template-columns: 1fr; gap: .15rem; padding: .75rem 0; border-bottom: 1px solid var(--hair); }
@media (min-width: 560px) { .specs div { grid-template-columns: 10rem 1fr; gap: 1rem; } }
.specs dt { font-family: var(--f-ui); font-weight: 650; font-size: .92rem; color: var(--ink-2); }
.specs dd { margin: 0; font-size: 1.05rem; line-height: 1.45; }
.product__buy { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.25rem; }
.product__buy p { font-family: var(--f-ui); font-size: .92rem; color: var(--ink-2); margin: 0; max-width: 34ch; }

.back { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .back { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 5rem; } }
.checkboxes { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; max-width: 70ch; }
.checkboxes li { position: relative; padding: .6rem 0 .6rem 2.1rem; border-bottom: 1px solid var(--hair); font-size: 1.08rem; line-height: 1.45; }
.checkboxes li::before { content: ""; position: absolute; left: 0; top: .82rem; width: 1.05rem; height: 1.05rem; border: 2px solid var(--ink); }
.note { margin-top: 1.75rem; padding: 1rem 1.15rem; border: 2px solid var(--ink); font-size: 1.02rem; max-width: 70ch; }
.back__side h3 { font-size: 1.3rem; margin: 0 0 .4rem; padding-top: .7rem; border-top: 2px solid var(--ink); }
.back__side h3 + p { margin-top: 0; }
.back__side p { color: var(--ink-2); font-size: 1.02rem; margin-bottom: 1.6rem; }

.pages { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .pages--3 { grid-template-columns: repeat(3, 1fr); } .pages--4 { grid-template-columns: repeat(4, 1fr); } }
.pages__item { display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--paper); border: 2px solid var(--ink); padding: .8rem; cursor: zoom-in; }
.pages__img { width: 100%; height: 100%; object-fit: contain; }
.pages__item:hover { border-color: var(--red); }

.lines { display: grid; gap: 1.5rem; }
.lines__list { display: grid; gap: 1.5rem 2.5rem; }
@media (min-width: 900px) { .lines__list { grid-template-columns: repeat(3, 1fr); } }
.lines__item { margin: 0; padding-top: 1rem; border-top: 2px solid var(--ink); }
.lines__item p { font-style: italic; font-size: 1.3rem; line-height: 1.42; margin: 0; }

.buybar { background: var(--paper-2); border-block: 2px solid var(--ink); }
.buybar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.buybar__title { font-family: var(--f-display); font-stretch: 76%; font-weight: 820; font-size: 1.5rem; margin: 0; line-height: 1.1; }
.buybar__title span { display: inline-block; background: var(--band); color: var(--band-ink); padding: .1rem .45rem; margin-right: .35rem; font-variant-numeric: tabular-nums; }

/* Lightbox */
.lightbox { padding: 0; border: 2px solid var(--ink); background: var(--paper); max-width: min(92vw, 1000px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(22, 24, 27, .82); }
.lightbox img { max-height: 86vh; width: auto; margin: auto; }
.lightbox__close { position: absolute; top: .5rem; right: .5rem; width: 44px; height: 44px; border: 2px solid var(--ink); background: var(--paper); display: grid; place-items: center; cursor: pointer; }

/* Journal ----------------------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 2.25rem; }
.tabs__item { padding: .45rem .9rem; border: 2px solid var(--ink); font-family: var(--f-ui); font-weight: 650; font-size: .95rem; text-decoration: none; }
.tabs__item:hover { background: var(--paper-2); }
.tabs__item.is-active { background: var(--ink); color: #fff; }
.nav-links { display: flex; justify-content: center; gap: .5rem; margin-top: 3rem; font-family: var(--f-ui); }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .8rem; border: 2px solid var(--ink); text-decoration: none; }
.nav-links .page-numbers.current { background: var(--ink); color: #fff; }

/* Article ----------------------------------------------------------------- */
.article-head { padding-top: clamp(1.5rem, 3vw, 2.25rem); }
.article-head__grid { display: grid; gap: 1.25rem; align-items: end; }
@media (min-width: 1000px) { .article-head__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 3.5rem; } }
.article-head__cat { display: inline-block; font-family: var(--f-ui); font-weight: 700; font-size: .95rem; color: var(--red); margin-bottom: .7rem; text-decoration: none; }
.article-head__cat:hover { text-decoration: underline; }
.article-head__title { font-stretch: 72%; font-weight: 880; font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.6rem); line-height: .93; letter-spacing: -.012em; word-spacing: .1em; margin: 0; }
.article-head__lead { font-size: 1.22rem; line-height: 1.45; margin-bottom: .8rem; }
.article-head__meta { font-family: var(--f-ui); font-size: .92rem; color: var(--ink-2); margin: 0; }
.article-head__figure { margin: clamp(1.75rem, 3vw, 2.5rem) 0 0; }
.article-head__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3.5rem, 6vw, 5rem); }
@media (min-width: 1100px) { .article-layout.has-toc { grid-template-columns: 250px minmax(0, 720px); gap: 5rem; justify-content: center; } .article-layout:not(.has-toc) .prose { max-width: 720px; margin-inline: auto; } }
@media (max-width: 1099px) { .article-layout .prose { max-width: 720px; } }
.toc { border-top: 2px solid var(--ink); padding-top: .8rem; }
@media (min-width: 1100px) { .toc { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.toc__title { font-size: 1.15rem; margin-bottom: .6rem; }
.toc ol { margin: 0; padding-left: 1.25rem; display: grid; gap: .5rem; font-family: var(--f-ui); font-size: .92rem; line-height: 1.3; }
.toc a { text-decoration: none; }
.toc a:hover, .toc a.is-current { text-decoration: underline; text-decoration-thickness: 2px; color: var(--red); }

.prose { font-size: 1.2rem; line-height: 1.66; min-width: 0; overflow-wrap: break-word; }
.prose > * { max-width: 68ch; }
.prose--page { max-width: 760px; }
.prose h2 { font-size: clamp(1.75rem, 1.35rem + 1.2vw, 2.3rem); margin: 2em 0 .5em; }
.prose h3 { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.55rem); font-stretch: 85%; margin: 1.7em 0 .45em; }
.prose h4 { font-size: 1.15rem; font-stretch: 90%; margin: 1.5em 0 .4em; }
.prose > :first-child { margin-top: 0; }
.prose a { text-decoration-thickness: 1px; text-decoration-color: var(--red); }
.prose a:hover { color: var(--red); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose ul li::marker { content: "■  "; font-size: .7em; color: var(--ink); }
.prose ol li::marker { font-family: var(--f-ui); font-weight: 700; }
.prose strong { font-weight: 700; }
.prose hr { border: 0; border-top: 2px solid var(--ink); margin: 2.5em 0; }
.prose blockquote { margin: 2.2em 0; padding: 1.1rem 0; border-block: 2px solid var(--ink); font-style: italic; font-size: 1.5rem; line-height: 1.38; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose figure { margin: 2.2em 0; }
.prose img { height: auto; width: 100%; }
.prose figcaption { font-family: var(--f-ui); font-size: .9rem; color: var(--ink-2); margin-top: .6em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 1.02rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .6em .8em .6em 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.prose th { font-family: var(--f-ui); font-size: .9rem; border-bottom: 2px solid var(--ink); }
.prose code { font-size: .88em; background: var(--paper-2); padding: .1em .3em; }

.callout { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; align-items: start; margin: 2.2em 0; padding: 1rem; border: 2px solid var(--ink); background: var(--paper); max-width: 68ch; }
@media (min-width: 600px) { .callout { grid-template-columns: 140px minmax(0, 1fr); gap: 1.4rem; padding: 1.15rem; } }
.callout__media { display: block; background: var(--mat); padding: .55rem; }
.callout__img { width: 100%; height: auto; filter: drop-shadow(0 4px 8px rgba(22, 24, 27, .25)); }
.callout__band { display: inline-flex; gap: .45rem; margin: 0 0 .5rem; padding: .2rem .5rem; background: var(--band); color: var(--band-ink); font-family: var(--f-ui); font-stretch: 80%; font-weight: 650; font-size: .85rem; line-height: 1.3; }
.callout__band span { font-weight: 850; }
.callout__title { font-family: var(--f-display); font-stretch: 76%; font-weight: 820; font-size: 1.45rem; line-height: 1.05; margin: 0 0 .4rem; }
.prose .callout__title a { text-decoration: none; }
.prose .callout__title a:hover { text-decoration: underline; color: inherit; }
.callout__text { color: var(--ink-2); font-size: 1rem; line-height: 1.45; margin: 0 0 .85rem; }
.prose .callout .btn { color: #fff; text-decoration: none; }

.sources { margin-top: 3rem; padding-top: 1rem; border-top: 2px solid var(--ink); }
.sources h2 { font-size: 1.3rem; margin: 0 0 .6rem; }
.sources h2::before { display: none; }
.sources ul { font-family: var(--f-ui); font-size: .95rem; line-height: 1.45; padding-left: 1.1em; }
.article-foot { margin-top: 2.5rem; font-family: var(--f-ui); font-size: .98rem; }
.tags, .share { display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: baseline; margin: 0 0 1rem; }
.tags span, .share span:first-child { font-weight: 700; }
.share__copy { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font-family: var(--f-ui); }
.author-box { display: flex; gap: 1rem; align-items: flex-start; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--hair); }
.author-box__mark { flex: none; width: 40px; height: 40px; }
.author-box p { margin: 0; font-family: var(--f-text); font-size: 1.02rem; color: var(--ink-2); }

/* Pages ------------------------------------------------------------------- */
.lead-text { font-size: clamp(1.25rem, 1.12rem + .5vw, 1.5rem); line-height: 1.45; }
.page-wide .section:first-child { border-top: 0; }
.twocol { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 960px) { .twocol { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.twocol__head h2 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem); }
.twocol__body { font-size: 1.15rem; max-width: 64ch; }
.twocol__body p { margin-bottom: 1.1em; }
.rules { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.rules li { padding: 1rem 0; border-bottom: 1px solid var(--hair); }
.rules strong { display: block; font-family: var(--f-display); font-stretch: 80%; font-weight: 800; font-size: 1.35rem; line-height: 1.1; margin-bottom: .25rem; }
.rules span { color: var(--ink-2); }
.figure__img { width: 100%; height: auto; }

.faq { max-width: 860px; }
.faq__group { margin-bottom: 3rem; }
.faq__group > h2 { margin-top: 0; }
.faq__item { border-top: 2px solid var(--ink); }
.faq__group .faq__item:last-of-type { border-bottom: 2px solid var(--ink); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; font-family: var(--f-display); font-stretch: 85%; font-weight: 750; font-size: 1.25rem; line-height: 1.25; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-family: var(--f-ui); font-weight: 500; font-size: 1.8rem; line-height: 1; }
.faq__item[open] summary::after { content: "–"; }
.faq__item summary:hover { color: var(--red); }
.faq__a { padding: 0 0 1.25rem; font-size: 1.1rem; }
.faq__a p:last-child { margin-bottom: 0; }

.contact { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; align-items: start; } }
.contact__form { border: 2px solid var(--ink); padding: clamp(1.25rem, 3vw, 2rem); }
.cform .field { margin-bottom: 1.1rem; }
.cform label { display: block; margin-bottom: .35rem; }
.field__opt { color: var(--ink-2); font-weight: 400; }
.cform__note { font-size: 1rem; color: var(--ink-2); margin: .4rem 0 1.2rem; }
.cform .notice { margin: 0 0 1.2rem; }
.info-card { padding: 1rem 1.15rem; border: 2px solid var(--ink); margin: 1.5rem 0; }
.info-card .icon { display: none; }

.notfound { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .notfound { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.notfound .section-title { font-size: 1.8rem; }
.plainlist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); font-family: var(--f-ui); font-size: 1.1rem; }
.plainlist li { border-bottom: 1px solid var(--hair); }
.plainlist a { display: block; padding: .75rem 0; font-weight: 600; text-decoration: none; }
.plainlist a:hover { text-decoration: underline; }
.searchform { display: flex; gap: .5rem; max-width: 560px; }
.searchform input { flex: 1; }
.search-again { margin-bottom: 2.5rem; }
.search-group { margin-top: 3rem; }
.nl-embed { margin-top: 2rem; max-width: 640px; border: 2px solid var(--ink); padding: 1.5rem; }
.legal-draft-note { display: none; }
.legal-updated { font-family: var(--f-ui); font-size: .95rem; color: var(--ink-2); }
.footer-owner a { color: #fff; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--ink); color: #E9E9E7; }
.site-footer a { color: #fff; }
.site-footer .logo__mark { color: #fff; }
.footer-nl { border-bottom: 1px solid rgba(255, 255, 255, .22); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.footer-nl__inner { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .footer-nl__inner { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.footer-nl__title { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); color: #fff; }
.footer-nl p { color: #C9CACD; max-width: 46ch; }
.site-footer input[type="email"] { border-color: #fff; }
.site-footer .btn--primary { background: #fff; color: var(--ink); border-color: #fff; }
.site-footer .btn--primary:hover { background: var(--mustard); border-color: var(--mustard); color: var(--ink); }
.site-footer .nl__consent { color: #C9CACD; }
.site-footer .notice--ok { color: #17391F; }
.site-footer .notice--err { color: #6A1A0E; }
.footer-grid { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 5vw, 4rem); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.3fr 1.5fr .8fr .9fr; gap: 3rem; } }
.footer-brand p { color: #C9CACD; max-width: 36ch; margin: 1rem 0 1.25rem; font-size: 1.02rem; }
.footer-col__title { font-family: var(--f-ui); font-stretch: 85%; font-weight: 800; font-size: 1.05rem; color: #fff; margin-bottom: .85rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-family: var(--f-ui); font-size: .98rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-catalog { grid-template-columns: 1fr; }
@media (min-width: 560px) and (max-width: 1099px) { .footer-catalog { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }
.footer-catalog a { display: flex; align-items: center; gap: .55rem; }
.footer-catalog__code { display: inline-block; min-width: 3rem; padding: .1rem .3rem; background: var(--band); color: #fff; font-stretch: 78%; font-weight: 850; font-size: .8rem; text-align: center; }
.footer-note { font-family: var(--f-ui); font-size: .95rem; color: #C9CACD; margin-top: 1.25rem; }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-family: var(--f-ui); font-size: .98rem; }
.social a { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; min-height: 32px; }
.social a:hover span { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .22); padding-block: 1.25rem; font-family: var(--f-ui); font-size: .86rem; color: #A9ABB0; }
.footer-bottom__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.footer-bottom p { margin: 0; max-width: 80ch; }

/* Reduced motion / print -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
	.site-header, .site-footer, .share, .nl, .buybar { display: none !important; }
}
