/*
 * GeoCities of Brass ’96: this site's own layer for the ’96 look. Loaded after site.css, only while the
 * ’96 look is switched on (see the look switch in base.njk). The ’96 design system keeps the main system's
 * class names, so its components.css takes over SiteNav, PostHeader, ArticleIndex, Button and the footer
 * band; this file maps the main system's token names onto ’96 colours (so site.css keeps working) and
 * dresses the parts that exist only on this site: the parchment page, home cards, calendar, zine covers,
 * menu search, editorial layouts and filters.
 */

/* Px437 TandyOld TV, the Tandy face of the Brasslands I site: (c) 2015 VileR, The Ultimate Oldschool PC Font Pack
   (int10h.org), CC BY-SA 4.0. A pixel font on an 8px grid: set at multiples of 8px so every pixel lands whole. */
@font-face {
	font-family: "Tandy";
	src: url("/assets/theme/fonts/Px437_TandyOld_TV.ttf") format("truetype");
	font-display: swap;
}

/* Token names site.css uses, pointed at the ’96 palette. */
:root {
	/* from the Brasslands sites: their goldenrod, and Brasslands II's five-gem divider in our own gems */
	--goldenrod: #daa520;
	--gem-rule:
		url(/assets/theme/img/96/gem-white.svg) calc(50% - 60px) 50% / 20px 20px no-repeat,
		url(/assets/theme/img/96/gem-blue.svg) calc(50% - 30px) 50% / 20px 20px no-repeat,
		url(/assets/theme/img/96/gem-black.svg) 50% 50% / 20px 20px no-repeat,
		url(/assets/theme/img/96/gem-red.svg) calc(50% + 30px) 50% / 20px 20px no-repeat,
		url(/assets/theme/img/96/gem-green.svg) calc(50% + 60px) 50% / 20px 20px no-repeat,
		linear-gradient(var(--goldenrod), var(--goldenrod)) 50% 50% / min(100%, 420px) 2px no-repeat;
	--ink-muted: var(--ink-soft);
	--border-black: #000000;
	--edge: #000000;
	--rule: #c8a070;
	--surface: var(--cell);
	/* the bundle's lemon table-cell yellow sat badly on the parchment: cells are warm ivory instead */
	--cell: #fff6e9;
	--paper: var(--panel);
	--brass: var(--gold);
	--sand: #debe96; /* tan: hover and pressed card tint, as in today's look */
	--vellum: var(--night-ink);
	--font-serif: var(--font-times);
	--font-code: var(--font-courier);
	--radius-art: 0;
	--radius-control: 0;
	--tex-grain-light: none;
	--tex-mottle-light: none;
	--shadow-bevel: inset 2px 2px 0 var(--white), inset -2px -2px 0 var(--bevel-dark);
	--shadow-window: inset 2px 2px 0 var(--bevel-dark), inset -2px -2px 0 var(--white);
}

/* Every page sits on one parchment page with the 2018 site's double gold border, floating on the starfield
   (the system's .article panel, applied to the whole of <main> so the home page gets one too). */
.site-main {
	box-sizing: border-box;
	width: calc(100% - 2 * var(--gutter));
	max-width: calc(var(--wide-width) + 2 * var(--gutter));
	margin: var(--space-6) auto var(--space-7);
	background-color: var(--panel);
	border: var(--panel-border-width) double var(--panel-border);
	color: var(--ink);
	--focus-ring: var(--focus);
}
@media (max-width: 767px) {
	.site-main {
		width: calc(100% - 2 * var(--space-2));
		border-width: 4px;
	}
}
/* the Articles page's own panel would nest inside it */
.site-main .article {
	max-width: none;
	margin: 0;
	padding-block: 0;
	background: none;
	border: 0;
}

/* 1996 type: Times does bold; rules are the gem rule. */
strong,
b {
	font-weight: bold;
	font-style: normal;
}
hr,
.entry-content hr,
.entry-content--editorial hr,
.entry-content .wp-block-separator {
	width: auto;
	max-width: none;
	height: 20px;
	border: 0;
	margin: var(--space-6) 0;
	background: var(--gem-rule);
}
.entry-content h1,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	font-family: var(--font-medieval);
}

/* Home: the welcome line between gold ridges. Readability: a paragraph this long is set in Times italic,
   not the medieval display face, and with no drop shadow, which blurred the letters. */
.welcome {
	font-family: var(--font-times);
	font-style: italic;
	line-height: 1.4;
	color: var(--heading);
	border-top: var(--nav-rule) ridge var(--gold);
	border-bottom: var(--nav-rule) ridge var(--gold);
}
.site-hero__credit,
.site-hero__credit a,
.site-hero__credit a:visited {
	font-family: var(--font-times);
	color: var(--white);
	/* a one-pixel black outline keeps it legible over both the bright sky and the dark wings */
	text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000;
}

/* Home: Latest from the City. Pictures in a silver ridge, titles as bold blue links like the tiles. */
.latest__head,
.feature__head {
	border-bottom: 3px groove var(--panel-border);
}
.latest-card__media {
	border: 4px ridge var(--silver);
	background-color: var(--cell);
}
.latest-card__media--plain {
	border-top: 4px ridge var(--silver);
}
.latest-card__title {
	font-family: var(--font-times);
	font-weight: bold;
	font-size: 28px;
	line-height: 1.2;
}
.latest-card__title a {
	color: var(--link);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.latest-card__title a:visited {
	color: var(--link-visited);
}
.latest-card__title a:hover {
	color: var(--link-hover);
}
/* Dates and page counts: Times italic. Courier New's hairline strokes break up below 18px. */
.latest-card__meta,
.zine-cover__meta,
.article-tile__foot {
	font-family: var(--font-times);
	font-style: italic;
	font-size: 16px;
	color: var(--ink-soft);
}
.latest-card__type,
.article-tile__tags {
	font-size: 16px;
}
/* The NEW! burst sits on the type line, so it never breaks a title in the middle. */
.latest-card:first-child .latest-card__type:after {
	content: "";
	display: inline-block;
	width: 44px;
	height: 26px;
	margin-left: var(--space-2);
	vertical-align: middle;
	background: url(/assets/theme/img/96/new-burst.svg) center / contain no-repeat;
}
@media (max-width: 767px) {
	.latest-card__title {
		font-size: 24px;
	}
}

/* Home: calendar, zine and playtest sections. */
.feature__subhead {
	font-family: var(--font-medieval);
	color: var(--heading);
}
.feature__calendar,
.feature__media {
	border: 4px ridge var(--silver);
}
.zine-cover a,
.zine-cover a:visited {
	color: var(--link);
}
.zine-cover img {
	border: 2px solid #000000;
	box-shadow: var(--tile-shadow) var(--tile-shadow) 0 var(--purple);
}
.zine-cover__label {
	font-weight: bold;
	text-decoration-color: currentColor;
}

/* Menu search: a sunken white box and a Windows 95 button on the purple band. */
.site-nav li.site-nav__search {
	border-left: 0;
	margin-left: var(--space-3);
}
.nav-search input {
	font-family: var(--font-times);
	background-color: var(--white);
	border: 2px inset var(--silver);
	border-right: 0;
	border-radius: 0;
}
.nav-search button {
	border: 2px solid #000000;
	border-radius: 0;
	box-shadow: inset 2px 2px 0 var(--white), inset -2px -2px 0 var(--bevel-dark);
}
.nav-search__panel {
	border-top: 3px groove var(--gold);
	border-bottom: var(--panel-border-width) double var(--panel-border);
	--focus-ring: var(--focus);
}
.site-nav .nav-search__list li + li {
	border-left: 0;
}
.site-nav .nav-search__list a,
.site-nav .nav-search__list a:visited,
.site-nav .nav-search__list a:hover {
	color: var(--ink);
	text-decoration: none;
}
.nav-search__title {
	font-weight: bold;
	text-decoration: underline;
}

/* Articles page filters: Windows 95 buttons, the pressed one sunken. */
.filter-chip,
.filter-chip:hover {
	font-family: var(--font-times);
	background-color: var(--silver);
	border: 2px solid #000000;
}
.filter-chip:hover {
	background-color: #fff6e9;
}
.filter-chip[aria-pressed="true"] {
	background-color: #fff6e9;
	padding: 7px 11px 6px 13px;
}

/* Post header tags, and the article text's editorial touches. */
.post-header__tags .tag {
	font-family: var(--font-times);
	color: var(--link);
	text-decoration: underline;
}
.entry-content--editorial .has-dropcap::first-letter {
	font-family: var(--font-medieval);
	color: var(--heading);
}
.entry-content .ed-figure img,
.entry-content .wp-caption img,
.figure.breakout img {
	border: 4px ridge var(--silver);
}
.entry-content blockquote,
.entry-content .wp-block-quote {
	border-left: 4px ridge var(--gold);
}

/* Footer: the strip becomes the hit-counter band; Courier set bold and larger so its strokes hold up. */
.site-footer--band-only {
	border-top: 3px groove var(--gold);
	margin-top: 0;
}
.site-footer--band-only .site-footer__band {
	font-size: 16px;
	font-weight: bold;
	line-height: 1.5;
}

/* Every link button sits centred on its line. */
.site-main p:has(> .button),
.latest__more {
	text-align: center;
}
.feature__actions {
	justify-content: center;
}

/* Text shadows: only the site name in the menu bar keeps one (gold, a red step, then a solid black fill).
   Everything else is set flat, including the gold shadows the ’96 bundle gives post and page titles. */
.site-nav__brand {
	text-shadow: 1px 1px 0 var(--heading), 2px 2px 0 var(--heading), 3px 3px 0 #000, 4px 4px 0 #000;
}
.site-main h1,
.site-main h2,
.site-main h3,
.site-main h4,
.post-header__title,
.article-index__title,
.feature__subhead,
.welcome,
.entry-content--editorial .has-dropcap::first-letter {
	text-shadow: none;
}

/* Category gems: the cut-gem pictures on home cards and on the category filter buttons (the key). */
.latest-card__gems {
	min-height: var(--gem-size);
}
.filter-chip__gem {
	width: 18px;
	height: 18px;
	border: 0;
	border-radius: 0;
	vertical-align: -4px;
	background: url(/assets/theme/img/96/gem-artifact.svg) center / contain no-repeat;
}
.filter-chip__gem[data-c="white"] { background-image: url(/assets/theme/img/96/gem-white.svg); }
.filter-chip__gem[data-c="blue"] { background-image: url(/assets/theme/img/96/gem-blue.svg); }
.filter-chip__gem[data-c="black"] { background-image: url(/assets/theme/img/96/gem-black.svg); }
.filter-chip__gem[data-c="red"] { background-image: url(/assets/theme/img/96/gem-red.svg); }
.filter-chip__gem[data-c="green"] { background-image: url(/assets/theme/img/96/gem-green.svg); }

/* --- Home page layout (design audit) ------------------------------------- */
/* 1. No dead band at the top of the parchment: the welcome starts near the panel's edge. */
.site-main > .column:first-child .welcome {
	margin-top: 0;
}
/* 2. Sections are split by the system's gem rule, centred above each heading, not by blank space alone. */
.feature {
	margin-top: var(--space-7);
}
.feature:before {
	content: "";
	display: block;
	height: 20px;
	margin: 0 auto var(--space-6);
	background: var(--gem-rule);
}
.latest__more {
	margin-top: var(--space-6);
}
/* 3. One text size through the feature sections: no larger "lead" beside smaller paragraphs. */
.feature__text p,
.feature__lead {
	font-size: 20px;
	line-height: 1.5;
}
@media (max-width: 767px) {
	.feature__text p,
	.feature__lead {
		font-size: 18px;
	}
}
/* 4. Stacked on tablets and phones, a feature's photo is capped so it never fills two screens. */
@media (max-width: 1023px) {
	.feature__media {
		max-width: 560px;
		margin-inline: auto;
	}
}
/* 5. Primary buttons large enough to find: bigger Windows 95 buttons. */
.site-main .button {
	font-size: 19px;
	padding: 11px 24px 12px;
}
.site-main .button:active {
	padding: 12px 23px 11px 25px;
}
/* 6. Room under the footer's credit line, so the fixed look switch never covers it. */
.site-footer--band-only .site-footer__band {
	padding-bottom: calc(var(--space-4) + 52px);
}

/* --- Post and page reading (design audit) --------------------------------- */
/* Times at 20px across the whole 1200px panel ran to ~130 characters a line. Posts and pages read in a
   ~75-character column centred on the parchment; photos, photo rows and floats scale with it. */
.site-main > article.entry.column {
	max-width: 860px;
}
/* Pasted text (code blocks: e-mails, lists copied in): the system's "pasted text file", a sunken white box. */
.entry-content pre {
	clear: both;
	background-color: var(--white);
	border: 2px inset var(--silver);
	border-radius: 0;
	color: var(--ink);
	font-size: 17px;
	line-height: 1.65;
	padding: var(--space-4) var(--space-5);
}
.entry-content pre code {
	font-size: inherit;
	background: none;
}
@media (max-width: 767px) {
	.entry-content pre {
		font-size: 15px;
		padding: var(--space-3);
	}
}

/* --- From the Brasslands sites ------------------------------------------- */
/* Black title bars with goldenrod type (Brasslands I): section headings, post and page titles, and the
   main headings inside posts. Goldenrod on black is 9.6:1. */
.latest__head,
.feature__head {
	align-items: center;
	padding: var(--space-2) var(--space-4);
	background-color: #000000;
	border: 3px solid var(--purple);
}
.latest__title,
.feature__title {
	color: var(--goldenrod);
}
.latest__all,
.latest__all:visited,
.feature__more,
.feature__more:visited {
	color: var(--yellow);
}
.latest__all:hover,
.feature__more:hover {
	color: var(--white);
}
.post-header__title,
.article-index__title,
.entry-content h2 {
	display: block;
	padding: 0.18em 0.4em 0.22em;
	background-color: #000000;
	border: 3px solid var(--purple);
	color: var(--goldenrod);
}
.post-header__title a,
.post-header__title a:visited {
	color: var(--goldenrod);
}
.article-index__title {
	display: table; /* shrink to the word, centred on its own line above the search */
	margin-left: auto;
	margin-right: auto;
}
/* Tables in posts: goldenrod with 4px ridged cells, the Brasslands event table. Decklists keep their own. */
.entry-content table:not(.mtg_deck) {
	background-color: var(--goldenrod);
	border-collapse: separate;
	border-spacing: 0;
	border: 4px ridge #b8860b;
	color: #000000;
}
.entry-content table:not(.mtg_deck) th,
.entry-content table:not(.mtg_deck) td {
	border: 4px ridge #b8860b;
	padding: var(--space-2) var(--space-3);
}
.entry-content table:not(.mtg_deck) td:first-child {
	font-weight: bold;
	white-space: nowrap;
}
.entry-content table:not(.mtg_deck) a,
.entry-content table:not(.mtg_deck) a:visited {
	color: #00008b;
}

/* --- Pictures stay on the parchment -------------------------------------------- */
/* In today's look, photos, galleries, tables and embeds break out of the text column to the window's width.
   Here the page is a bordered parchment panel narrower than the window, so the same breakout pushed them
   past its edge onto the starfield. In this look they span the column and no wider. */
.breakout,
.entry-content > .wp-block-gallery,
.entry-content > figure.wp-block-gallery,
.entry-content > figure.wp-block-image:not(.alignleft):not(.alignright),
.entry-content > .wp-block-table,
.entry-content > table:not(.mtg_deck),
.entry-content > .wp-block-embed,
.entry-content > .wp-block-video,
.entry-content > table.mtg_deck,
.entry-content > h3.mtg_deck_title,
.entry-content--wide {
	width: 100%;
	margin-left: 0 !important;
	transform: none;
}
.site-main img,
.site-main video,
.site-main iframe {
	max-width: 100%;
}
/* captioned videos and embeds size to their content, capped at the window in today's look: cap them at the column */
.entry-content > figure.wp-block-video:has(> figcaption):not(.alignleft):not(.alignright),
.entry-content > figure.wp-block-embed:has(> figcaption):not(.alignleft):not(.alignright) {
	max-width: 100% !important;
}

/* --- Cards: today's rounded corners and tan hover --------------------------------- */
/* The article tiles take today's look's rounded corners (radius-control, 4px) and its tan (sand, #debe96)
   when hovered and while pressed; the home cards' pictures take its 6px picture corners. Black on tan 13:1,
   link blue on tan 6.2:1. */
.article-tile {
	border-radius: 4px;
	/* resting: warm ivory, a lighter step of the parchment (the bundle's lemon "cell" sat badly on it);
	   hover and press deepen it to tan */
	background-color: #fff6e9;
}
.article-tile:hover,
.article-tile:active,
.article-tile:has(a:active) {
	background-color: #debe96;
}
.latest-card__media,
.zine-cover img {
	border-radius: 6px;
}
.latest-card {
	border-radius: 6px;
}

/* --- Tandy --------------------------------------------------------------------- */
/* Px437 TandyOld TV: the Articles title and the card titles, and, small, the "meta" lines that sit with a
   post wherever it appears: its type line, date line and tags, on the post itself and on the Articles and
   home cards alike. The face has no curly apostrophe or en dash; those fall back to Courier. */
.article-index__title,
.article-tile__title,
.latest-card__title,
.post-header__type,
.post-header__meta,
.post-header__tags,
.post-header__tags .tag,
.article-tile__type,
.article-tile__tags,
.article-tile__foot,
.latest-card__type,
.latest-card__meta {
	font-family: "Tandy", "Courier New", monospace;
	font-weight: normal;
	letter-spacing: 0;
	-webkit-font-smoothing: none;
}
/* Meta lines: 12px (1.5 x the 8px grid: crisp on high-density screens), upright (a slanted pixel face smears),
   in ink-soft, with every link in them the same underlined '95 blue. */
.post-header__type,
.post-header__meta,
.post-header__tags,
.post-header__tags .tag,
.article-tile__type,
.article-tile__tags,
.article-tile__foot,
.latest-card__type,
.latest-card__meta {
	font-size: 12px;
	font-style: normal;
	line-height: 2;
	color: var(--ink-soft);
}
.post-header__meta a,
.post-header__tags a,
.post-header__tags .tag {
	color: var(--link);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.post-header__meta a:visited,
.post-header__tags a:visited {
	color: var(--link-visited);
}
.post-header__meta a:hover,
.post-header__tags a:hover {
	color: var(--link-hover);
}
.post-header__tags {
	gap: 0 var(--space-4);
}
.article-index__title {
	font-size: 48px;
	line-height: 1.1;
}
.latest-card__title {
	font-size: 24px;
	line-height: 1.34;
}
.article-tile__title {
	font-size: 16px;
	line-height: 1.5;
}
.article-tile__title a,
.latest-card__title a {
	text-underline-offset: 4px;
}
@media (max-width: 1439px) {
	.article-index__title {
		font-size: 40px;
	}
}
@media (max-width: 767px) {
	.article-index__title {
		font-size: 32px;
	}
	.latest-card__title {
		font-size: 16px;
		line-height: 1.5;
	}
	.article-tile__title {
		font-size: 16px;
	}
}

/* Post and page titles: black medieval type straight on the parchment, no bar, no border. */
.post-header__title,
.post-header__title a,
.post-header__title a:visited {
	color: #000000;
}
.post-header__title {
	display: block;
	padding: 0;
	background: none;
	border: 0;
}

/* --- All Tandy text is black ------------------------------------------------------- */
/* The Articles and About titles, and the type lines, tags and dates on posts and cards. Black text cannot
   sit in the black title bar, so those titles drop the bar and border, like the post title. */
.article-index__title,
.post-header__type,
.post-header__meta,
.post-header__meta a,
.post-header__meta a:visited,
.post-header__tags,
.post-header__tags .tag,
.article-tile__type,
.article-tile__tags,
.article-tile__foot,
.latest-card__type,
.latest-card__meta {
	color: #000000;
}
.article-index__title {
	background: none;
	border: 0;
	padding: 0;
}

/* --- Card titles match the post title -------------------------------------------- */
/* The Articles tiles and home cards take the post title's treatment: black medieval type on the card, no
   underline. Hover turns them the links' deep red; the whole card is the link, and keyboard focus rings it. */
.article-tile__title,
.latest-card__title {
	font-family: var(--font-medieval);
	font-weight: normal;
	-webkit-font-smoothing: auto;
}
.article-tile__title {
	font-size: 26px;
	line-height: 1.15;
}
.latest-card__title {
	font-size: 30px;
	line-height: 1.15;
}
@media (max-width: 767px) {
	.article-tile__title {
		font-size: 24px;
	}
	.latest-card__title {
		font-size: 24px;
	}
}

/* No underline under title links anywhere: post and page titles, card titles, zine issue labels and the
   menu search's result titles. */
.post-header__title a,
.post-header__title a:visited,
.post-header__title a:hover,
.article-tile__title a,
.article-tile__title a:visited,
.article-tile__title a:hover,
.latest-card__title a,
.latest-card__title a:visited,
.latest-card__title a:hover {
	color: #000000;
	text-decoration: none;
}
/* hover and press: the band's purple (12.8:1 on the yellow card, 9.6:1 on its tan hover) */
.article-tile__title a:hover,
.latest-card__title a:hover,
.article-tile:hover .article-tile__title a,
.latest-card:hover .latest-card__title a,
.article-tile:active .article-tile__title a,
.article-tile:has(a:active) .article-tile__title a,
.latest-card:active .latest-card__title a,
.latest-card:has(a:active) .latest-card__title a {
	color: var(--purple);
}
.zine-cover__label,
.zine-cover a:hover .zine-cover__label,
.nav-search__title,
.nav-search__list a:hover .nav-search__title {
	text-decoration: none;
}

/* The star bullet marks only the current menu item; the ’96 bundle's star before every h2 (and on footer
   lists) is turned off. */
h2:before,
.entry-content h2:before {
	content: none;
}
.site-footer__list li {
	padding-left: 0;
	background: none;
}

/* Search page (Pagefind): the system's sunken white field; matches in tan. */
.site-main .site-search input.pagefind-ui__search-input {
	background-color: var(--white);
	border: 2px inset var(--silver);
	border-radius: 0;
	box-shadow: none;
	font-family: var(--font-times);
}
.site-main .site-search mark,
.site-nav .nav-search__excerpt mark {
	background-color: #debe96;
	color: #000000;
}

/* Phones: the black section-heading bars stay one or two lines, with the "All …" link under the title. */
@media (max-width: 767px) {
	.latest__head,
	.feature__head {
		flex-wrap: wrap;
		gap: var(--space-1) var(--space-4);
	}
	.latest__title,
	.feature__title {
		font-size: 26px;
		line-height: 1.15;
	}
}

/* The look switch, as a Windows 95 button. */
.look-switch {
	font-family: var(--font-times);
	color: var(--ink);
	background-color: var(--silver);
	border: 2px solid #000000;
	border-radius: 0;
	box-shadow: inset 2px 2px 0 var(--white), inset -2px -2px 0 var(--bevel-dark), 3px 3px 0 var(--purple);
}
.look-switch:hover {
	background-color: var(--cell);
}
