/* GeoCities of Brass ’96 design system: components/bundle.css, copied unchanged except the font @import
   (loaded in base.njk) and the picture addresses (local copies in assets/img/96). */
/* GeoCities of Brass '96: the same components and markup as GeoCities of Brass, dressed as a mid-90s
   fan home page. Values come from tokens.css; pictures are this system's uploads. */

/* The tiled starfield: one 160px tile of fixed stars on night, repeated like a 1996 background GIF. */
:root {
	--tile-stars: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' shape-rendering='crispEdges'><rect width='160' height='160' fill='%23000033'/><g fill='%23ffffff'><rect x='12' y='18' width='2' height='2'/><rect x='57' y='9' width='1' height='1'/><rect x='101' y='31' width='2' height='2'/><rect x='140' y='14' width='1' height='1'/><rect x='30' y='62' width='1' height='1'/><rect x='78' y='70' width='2' height='2'/><rect x='122' y='88' width='1' height='1'/><rect x='9' y='110' width='1' height='1'/><rect x='48' y='131' width='2' height='2'/><rect x='95' y='121' width='1' height='1'/><rect x='150' y='140' width='2' height='2'/><rect x='66' y='100' width='1' height='1'/></g><g fill='%23ffff66'><rect x='118' y='52' width='1' height='1'/><rect x='24' y='148' width='1' height='1'/><rect x='86' y='150' width='1' height='1'/></g><g fill='%23ffff66'><rect x='133' y='112' width='1' height='3'/><rect x='132' y='113' width='3' height='1'/></g></svg>");
}

*,
*:before,
*:after {
	box-sizing: border-box;
}

body {
	margin: 0;
	background-color: var(--night);
	background-image: var(--tile-stars);
	color: var(--night-ink);
	font-family: var(--font-times);
	font-size: 20px;
	line-height: 1.5;
	--focus-ring: var(--focus-inverse);
}
/* Breakpoints (media queries cannot read tokens, so the values are written out):
   desktop 1440px and up; tablet 768-1439px; mobile below 768px (designed at 375px). */
@media (max-width: 1439px) {
	body {
		font-size: 19px;
	}
}
@media (max-width: 767px) {
	body {
		font-size: 17px;
	}
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-medieval);
	font-weight: 400;
	margin: 0 0 var(--space-3);
	color: var(--heading);
}
h2 { font-size: 34px; line-height: 1.2; margin-top: var(--space-6); }
h3 { font-size: 27px; line-height: 1.25; margin-top: var(--space-5); }
h4 { font-size: 23px; line-height: 1.3; margin-top: var(--space-5); }
h2:before {
	content: "";
	display: inline-block;
	width: 22px;
	height: 22px;
	margin-right: 10px;
	vertical-align: -2px;
	background: url(/assets/theme/img/96/bullet-star.svg) center / contain no-repeat;
}

p {
	margin: 0 0 var(--space-4);
}

/* Links: classic blue, visited purple, always underlined, deep red on hover. */
a {
	color: var(--link);
	text-decoration: underline;
}
a:visited {
	color: var(--link-visited);
}
a:hover,
a:active {
	color: var(--link-hover);
}

/* The 90s gem rule in place of a plain horizontal rule. */
hr {
	border: 0;
	height: 20px;
	margin: var(--space-6) 0;
	background: url(/assets/theme/img/96/divider-gems.svg) center / auto 20px no-repeat;
}

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

/* Focus: the dotted outline browsers drew in the 90s, black on paper, yellow on night and purple. */
:focus-visible {
	outline: var(--focus-width) dotted var(--focus-ring);
	outline-offset: 2px;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Article layout: the same grid, set on a parchment page with the 2018 site's double gold border,
   floating on the starfield. Text, photographs and decklists span the container. */
.article {
	display: grid;
	grid-template-columns:
		[full-start] minmax(var(--gutter), 1fr)
		[wide-start] minmax(0, calc((var(--wide-width) - var(--content-width)) / 2))
		[text-start] min(var(--content-width), calc(100% - 2 * var(--gutter)))
		[text-end] minmax(0, calc((var(--wide-width) - var(--content-width)) / 2))
		[wide-end] minmax(var(--gutter), 1fr)
		[full-end];
	max-width: calc(var(--wide-width) + 2 * var(--gutter));
	margin: var(--space-6) auto var(--space-7);
	padding-block: var(--space-6) 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) {
	.article {
		margin-inline: var(--space-2);
		border-width: 4px;
	}
}
.article > * {
	grid-column: text;
}
.article > .wide {
	grid-column: wide;
}
.article > .full {
	grid-column: full;
}

/* Figure: a photograph in a raised silver table border, caption in small italic Times. */
.figure {
	margin: var(--space-5) 0 var(--space-6);
}
.figure img {
	display: block;
	width: 100%;
	height: auto;
	border: 4px ridge var(--silver);
}
.full.figure img {
	border-inline: 0;
}
.figure figcaption {
	margin-top: var(--space-2);
	font-size: 16px;
	font-style: italic;
	text-align: center;
	color: var(--ink-soft);
}

/* Decklist: Courier New on a white sunken box, like a pasted text file. */
.decklist {
	margin: var(--space-5) 0 var(--space-6);
	padding: var(--space-4) var(--space-5);
	background-color: var(--white);
	border: 2px inset var(--silver);
	font-family: var(--font-courier);
	font-size: 16px;
	line-height: 1.5;
	color: var(--ink);
	columns: 15rem auto;
	column-gap: var(--space-6);
	white-space: pre-line;
}
.decklist h3,
.decklist h4 {
	font-size: 21px;
	margin: 0 0 var(--space-1);
	break-after: avoid;
}
.decklist h3:before,
.decklist h4:before {
	content: none;
}

/* Button: a Windows 95 push button, silver with a two-tone bevel and a black edge. */
.button,
button {
	display: inline-block;
	font-family: var(--font-times);
	font-size: 18px;
	line-height: 1;
	color: var(--ink);
	background-color: var(--silver);
	border: 2px solid var(--ink);
	border-radius: 0;
	box-shadow: inset 2px 2px 0 var(--white), inset -2px -2px 0 var(--bevel-dark);
	padding: 9px 20px 10px;
	cursor: pointer;
	text-decoration: none;
}
.button:visited {
	color: var(--ink);
}
.button:hover,
button:hover {
	color: var(--ink);
	background-color: var(--cell);
}
.button:active,
button:active {
	box-shadow: inset 2px 2px 0 var(--bevel-dark), inset -2px -2px 0 var(--white);
	padding: 10px 19px 9px 21px;
}
.button--quiet,
.button--quiet:hover {
	background-color: var(--panel);
}

/* Colour pip: a round gem, the deck colour lit from the top left. Always beside a word. */
.pip {
	display: inline-block;
	width: var(--pip);
	height: var(--pip);
	border-radius: 50%;
	border: 1px solid var(--ink);
	background: radial-gradient(circle at 32% 30%, var(--white) 0 18%, var(--pip-color, var(--tag-artifact)) 36%);
	vertical-align: -1px;
}
.tag {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	font-size: 17px;
	color: var(--ink);
}

/* Text field: a sunken white box, label in bold Times. */
.field {
	display: grid;
	gap: var(--space-1);
	font-size: 17px;
	font-weight: bold;
}
.field input,
.field textarea {
	font-family: var(--font-times);
	font-size: 19px;
	font-weight: normal;
	color: var(--ink);
	background-color: var(--white);
	border: 2px inset var(--silver);
	border-radius: 0;
	padding: 6px var(--space-2);
}
.field input::placeholder,
.field textarea::placeholder {
	color: var(--ink-soft);
	font-style: italic;
}

/* Post header */
.post-header__type {
	font-size: 17px;
	font-style: italic;
	color: var(--ink-soft);
	margin: 0 0 var(--space-1);
}
.post-header__title {
	font-size: 50px;
	line-height: 1.05;
	margin: 0 0 var(--space-2);
	color: var(--heading);
	text-shadow: 2px 2px 0 var(--gold);
}
@media (max-width: 1439px) {
	.post-header__title {
		font-size: 44px;
	}
}
@media (max-width: 767px) {
	.post-header__title {
		font-size: 34px;
	}
}
.post-header__title a,
.post-header__title a:visited {
	color: var(--heading);
}
.post-header__meta {
	font-size: 16px;
	font-style: italic;
	color: var(--ink-soft);
	margin: 0 0 var(--space-5);
	padding-bottom: var(--space-3);
	border-bottom: 3px groove var(--panel-border);
}
.post-header__tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2) var(--space-4);
	margin: calc(-1 * var(--space-3)) 0 var(--space-5);
}
.post-intro {
	font-size: 23px;
	font-style: italic;
	line-height: 1.45;
	color: var(--ink-soft);
}
@media (max-width: 767px) {
	.post-intro {
		font-size: 19px;
	}
}

/* Site nav: a purple band between two gold ridges, the colours of 1994 Magic packaging.
   Name far left in medieval gold with a red drop shadow, links centred, tagline far right. */
html {
	scroll-padding-top: 84px;
}
.site-hero__image {
	display: block;
	width: 100%;
	height: auto;
}
.site-nav {
	position: sticky;
	top: 0;
	z-index: 20;
	background-color: var(--purple);
	border-top: var(--nav-rule) ridge var(--gold);
	border-bottom: var(--nav-rule) ridge var(--gold);
	color: var(--lavender);
	padding: var(--space-3) var(--gutter);
	--focus-ring: var(--focus-inverse);
}
.site-nav__inner {
	max-width: calc(var(--site-width) - 2 * var(--gutter));
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	grid-template-areas: "brand links tagline";
	align-items: center;
	gap: var(--space-2) var(--space-6);
}
.site-nav__brand,
.site-nav__brand:visited {
	grid-area: brand;
	justify-self: start;
	display: inline-block;
	min-height: var(--target-min);
	font-family: var(--font-medieval);
	font-size: 30px;
	line-height: 1.1;
	color: var(--gold);
	text-shadow: 2px 2px 0 var(--heading);
	text-decoration: none;
	white-space: nowrap;
}
.site-nav__brand:hover {
	color: var(--yellow);
	text-decoration: underline;
}
.site-nav__tagline {
	grid-area: tagline;
	justify-self: end;
	margin: 0;
	font-size: 17px;
	font-style: italic;
	line-height: 1.2;
	color: var(--lavender);
	white-space: nowrap;
}
.site-nav ul {
	grid-area: links;
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.site-nav li + li {
	border-left: 1px solid var(--lavender);
}
.site-nav ul a,
.site-nav ul a:visited {
	display: inline-block;
	min-height: var(--target-min);
	padding: 2px var(--space-3);
	font-size: 19px;
	color: var(--yellow);
	text-decoration: underline;
}
.site-nav ul a:hover {
	color: var(--white);
}
.site-nav ul a[aria-current="page"] {
	color: var(--white);
	text-decoration-thickness: 2px;
}
.site-nav ul a[aria-current="page"]:before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 6px;
	vertical-align: -1px;
	background: url(/assets/theme/img/96/bullet-star.svg) center / contain no-repeat;
}
@media (max-width: 1199px) {
	html {
		scroll-padding-top: 128px;
	}
	.site-nav__inner {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"brand tagline"
			"links links";
	}
}
@media (max-width: 767px) {
	html {
		scroll-padding-top: 136px;
	}
	.site-nav {
		padding-block: var(--space-2);
	}
	.site-nav__inner {
		gap: var(--space-1) var(--space-4);
	}
	.site-nav__brand {
		font-size: 22px;
	}
	.site-nav__tagline {
		font-size: 14px;
	}
	.site-nav ul a {
		font-size: 17px;
		padding-inline: var(--space-2);
	}
}
@media (max-width: 359px) {
	html {
		scroll-padding-top: 190px;
	}
	.site-nav__inner {
		grid-template-columns: 1fr;
		grid-template-areas:
			"brand"
			"tagline"
			"links";
	}
	.site-nav__tagline {
		justify-self: start;
	}
}

/* Site footer: on the starfield, gold headings and light-blue links, then a black band in green LED type,
   like a hit counter. */
.site-footer {
	border-top: 3px groove var(--gold);
	color: var(--night-ink);
	--focus-ring: var(--focus-inverse);
}
.site-footer__inner {
	max-width: calc(var(--wide-width) + 2 * var(--gutter));
	margin: 0 auto;
	padding: var(--space-6) var(--gutter);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--space-6);
}
.site-footer__title {
	font-size: 26px;
	line-height: 1.3;
	margin: 0 0 var(--space-3);
	color: var(--gold);
}
.site-footer__title:before {
	content: none;
}
.site-footer a {
	color: var(--night-link);
}
.site-footer a:visited {
	color: var(--night-visited);
}
.site-footer a:hover {
	color: var(--yellow);
}
.site-footer__list {
	list-style: none;
	margin: 0 0 var(--space-3);
	padding: 0;
	columns: 2;
	font-size: 18px;
}
.site-footer__list li {
	margin-bottom: var(--space-1);
	padding-left: 22px;
	background: url(/assets/theme/img/96/bullet-star.svg) left 0.3em / 14px no-repeat;
}
.site-footer__search {
	display: flex;
	align-items: flex-end;
	gap: var(--space-2);
	flex-wrap: wrap;
}
.site-footer__search .field {
	flex: 1 1 220px;
	color: var(--night-ink);
}
.site-footer__band {
	background-color: var(--ink);
	border-top: 2px solid var(--led);
	color: var(--led);
	font-family: var(--font-courier);
	font-size: 15px;
	text-align: center;
	padding: var(--space-4) var(--gutter);
}
.site-footer__band p {
	margin: 0 0 var(--space-1);
}
.site-footer__band a,
.site-footer__band a:visited {
	color: var(--yellow);
}
.site-footer__band a:hover {
	color: var(--white);
}

/* Article index: the articles page. Light-yellow table cells with a black edge and a hard purple drop
   shadow, in 1993 card proportions, the deck's colours as cut gems along the top. Pressing a tile taps it
   in three jerky frames, like an animated GIF. */
.article-index {
	padding-block: var(--space-6);
}
.article-index__head {
	text-align: center;
	margin-bottom: var(--space-6);
}
.article-index__title {
	font-size: 68px;
	line-height: 0.95;
	margin: 0 0 var(--space-5);
	color: var(--heading);
	text-shadow: 3px 3px 0 var(--gold);
}
.article-index__title:before {
	content: none;
}
@media (max-width: 1439px) {
	.article-index__title {
		font-size: 58px;
	}
}
@media (max-width: 767px) {
	.article-index__title {
		font-size: 44px;
	}
}
.article-search {
	display: inline-flex;
	align-items: stretch;
	gap: var(--space-2);
	width: min(100%, 560px);
}
.article-search input {
	flex: 1;
	min-width: 0;
	font-family: var(--font-times);
	font-size: 19px;
	color: var(--ink);
	background-color: var(--white);
	border: 2px inset var(--silver);
	border-radius: 0;
	padding: 6px var(--space-2);
}
.article-search input::placeholder {
	color: var(--ink-soft);
	font-style: italic;
}
.article-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--tile-min)), 1fr));
	gap: var(--space-5);
}
.article-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	aspect-ratio: var(--card-ratio);
	padding: var(--space-4) var(--space-4) var(--space-4);
	background-color: var(--cell);
	border: var(--tile-border) solid var(--ink);
	box-shadow: var(--tile-shadow) var(--tile-shadow) 0 var(--purple);
	transform-origin: 50% 60%;
	transition: transform 0.24s steps(3, end);
	--focus-ring: var(--focus);
}
.article-tile:hover {
	background-color: var(--white);
}
.article-tile:active,
.article-tile:has(a:active) {
	transform: rotate(var(--tap-angle));
	transition-duration: 0.12s;
}
@media (prefers-reduced-motion: reduce) {
	.article-tile:active,
	.article-tile:has(a:active) {
		transform: none;
	}
}
.article-tile:focus-within {
	outline: var(--focus-width) dotted var(--focus);
	outline-offset: 4px;
}
.article-tile__bar {
	display: flex;
	gap: 2px;
	margin-bottom: var(--space-3);
}
.article-tile__bar span {
	display: block;
	width: var(--gem-size);
	height: var(--gem-size);
	background: url(/assets/theme/img/96/gem-artifact.svg) center / contain no-repeat;
}
.article-tile__bar [data-c="white"] { background-image: url(/assets/theme/img/96/gem-white.svg); }
.article-tile__bar [data-c="blue"] { background-image: url(/assets/theme/img/96/gem-blue.svg); }
.article-tile__bar [data-c="black"] { background-image: url(/assets/theme/img/96/gem-black.svg); }
.article-tile__bar [data-c="red"] { background-image: url(/assets/theme/img/96/gem-red.svg); }
.article-tile__bar [data-c="green"] { background-image: url(/assets/theme/img/96/gem-green.svg); }
.article-tile__bar [data-c="land"] { background-image: url(/assets/theme/img/96/gem-land.svg); }
.article-tile__type {
	margin: 0;
	font-size: 15px;
	font-style: italic;
	line-height: 1.2;
	color: var(--ink-soft);
}
.article-tile__title {
	margin: auto 0;
	padding-block: var(--space-4);
	font-family: var(--font-times);
	font-size: 28px;
	font-weight: bold;
	line-height: 1.1;
}
.article-tile__title:before {
	content: none;
}
.article-tile__title a {
	color: var(--link);
	text-decoration: underline;
}
.article-tile__title a:visited {
	color: var(--link-visited);
}
.article-tile__title a:hover {
	color: var(--link-hover);
}
.article-tile__title a:after {
	content: "";
	position: absolute;
	inset: 0;
}
.article-tile__title a:focus-visible {
	outline: none;
}
.article-tile__tags {
	margin: 0 0 var(--space-2);
	font-size: 14px;
	line-height: 1.35;
	color: var(--ink-soft);
}
.article-tile__foot {
	margin: 0;
	padding-top: var(--space-2);
	border-top: 2px groove var(--panel-border);
	font-family: var(--font-courier);
	font-size: 13px;
	line-height: 1.3;
	color: var(--ink);
}
@media (max-width: 767px) {
	.article-tile {
		aspect-ratio: auto;
	}
	.article-tile__title {
		font-size: 24px;
		margin: 0;
		padding-block: var(--space-3) var(--space-4);
	}
}
.article-index__year {
	margin-bottom: var(--space-7);
}
.article-index__year-title {
	font-size: 36px;
	line-height: 1.2;
	margin: 0 0 var(--space-5);
	padding-bottom: var(--space-2);
	border-bottom: 3px groove var(--panel-border);
}
