/* Aurora. One stylesheet, no JavaScript on the front end.
   Paper, ink and one yellow. Sharp corners everywhere, because the logo is a diamond.
   Serif for reading, monospace for labels, dates and code. */

:root {
	--paper: #fbfaf6;
	--ink: #17181f;
	--muted: #666a78;
	--rule: #e3e0d6;
	--card: #f3f1e8;
	--accent: #f2b632;      /* the yellow from the logo */
	--slate: #474b68;       /* the blue-grey from the old header pattern */
	--code-bg: #17181f;
	--code-ink: #ece9e1;
	--code-dim: #8d90a0;
	--code-str: #e3d6a8;
	--serif: "Newsreader", "Iowan Old Style", Georgia, serif;
	--mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--wide: 64rem;
	--text: 41rem;
	--mid: 50rem;
	--wash: color-mix(in srgb, var(--accent) 28%, transparent);
}

@media (prefers-color-scheme: dark) {
	:root {
		--paper: #111218;
		--ink: #ece9e1;
		--muted: #9a9cab;
		--rule: #2a2c38;
		--card: #191b23;
		--accent: #f6c453;
		--slate: #5a5f82;
		--code-bg: #0b0c10;
	}
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--serif);
	font-size: 1.1875rem;
	line-height: 1.6;
	font-optical-sizing: auto;
	text-rendering: optimizeLegibility;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

img,
video,
iframe { max-width: 100%; }

img { height: auto; }

.wrap {
	max-width: var(--wide);
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* ---------- header ---------- */

.site-header .wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	padding-top: 1.75rem;
	padding-bottom: 1.75rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
	font-family: var(--mono);
	font-size: 1.2rem;
	letter-spacing: -0.03em;
	font-weight: 300;
}

.brand b { font-weight: 700; }
.brand svg { width: 2rem; height: 2rem; display: block; }

.site-header .wp-block-navigation {
	font-family: var(--mono);
	font-size: 0.8rem;
}

.site-header .wp-block-navigation .wp-block-navigation__container { gap: 0.25rem 1.5rem; }

.site-header .wp-block-navigation .wp-block-navigation-item__content {
	text-decoration: none;
	padding: 0.25rem 0;
	border-bottom: 2px solid transparent;
}

.site-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.post-type-archive-talk .site-header a[href$="/talks/"],
.single-talk .site-header a[href$="/talks/"],
.post-type-archive-workshop .site-header a[href$="/workshops/"],
.single-workshop .site-header a[href$="/workshops/"],
.post-type-archive-code_note .site-header a[href$="/code/"],
.single-code_note .site-header a[href$="/code/"],
.post-type-archive-event .site-header a[href$="/wordcamps/"],
.single-event .site-header a[href$="/wordcamps/"],
.aurora-photos .site-header a[href$="/photos/"],
.blog .site-header a[href$="/blog/"],
.category .site-header a[href$="/blog/"],
.single-post .site-header a[href$="/blog/"] { border-bottom-color: var(--accent); }

.site-header .wp-block-navigation-item.sr { color: var(--muted); }

.site-header .wp-block-navigation-item.sr::before {
	content: "";
	width: 1px;
	height: 0.9em;
	background: var(--rule);
	margin-right: 1.5rem;
}

/* ---------- small pieces ---------- */

.label {
	font-family: var(--mono);
	font-size: 0.74rem;
	font-weight: 400;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 1rem;
}

.label.dia::before {
	content: "";
	display: inline-block;
	flex: none;
	width: 0.5em;
	height: 0.5em;
	background: var(--accent);
	transform: rotate(45deg);
	margin-right: 0.8em;
	vertical-align: 0.12em;
}

/* a label made of two blocks, e.g. category and date */
.wp-block-group.label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 0.9em;
}

.wp-block-group.label a { text-decoration: none; }
.wp-block-group.label a:hover { color: var(--ink); }
.wp-block-group.label .wp-block-post-date::before { content: "·"; margin-right: 0.9em; }

.meta {
	font-family: var(--mono);
	font-size: 0.8rem;
	color: var(--muted);
}

.prose a,
.lead a,
.more a,
.note-sr a {
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.prose a:hover,
.lead a:hover,
.more a:hover,
.rows a:hover,
.arhiva-card li a:hover,
.pager a:hover { background: var(--wash); }

.more {
	font-family: var(--mono);
	font-size: 0.8rem;
	margin: 0;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	padding: 0;
	margin: 0.5rem 0 0;
}

.chips a {
	display: inline-block;
	font-family: var(--mono);
	font-size: 0.72rem;
	padding: 0.2rem 0.6rem;
	border: 1px solid var(--rule);
	text-decoration: none;
}

.chips a:hover,
.chips .current-cat a { border-color: var(--accent); }

/* "What I ate in …": the one filled chip in a row, in the logo's yellow */
.chips .food a { background: var(--accent); border-color: var(--accent); color: #17181f; }
.chips .food a:hover { background: transparent; color: var(--ink); }
.food-icon { display: inline-block; vertical-align: -2px; margin-right: 0.4rem; }

/* "From the road" on the home page: one photo per event, newest first */
.road-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.6rem; }
.road-tiles li { margin: 0; }
.road-tiles a { display: block; text-decoration: none; color: var(--ink); }
.road-tiles img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--card); }
.road-tiles .name { display: block; margin-top: 0.4rem; font-family: var(--serif); font-size: 1rem; line-height: 1.3; }
.road-tiles .meta { display: block; font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
.road-tiles a:hover img { outline: 2px solid var(--accent); outline-offset: -2px; }
.road-tiles a:hover .name { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* "From the trip" at the end of a talk: the event's photos and its wpnibbles story, side by side */
.trips { max-width: var(--mid); margin: 2.5rem 0 0; display: grid; gap: 1rem; }
.trip-card { border: 1px solid var(--rule); }
.trip-card > .label { margin: 0; padding: 1rem 1rem 0; }
.trip-card .halves { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; padding: 0.75rem 1rem 1rem; }
.trip-card .half { display: flex; flex-direction: column; gap: 0.3rem; text-decoration: none; color: var(--ink); }
.trip-card .pic { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; background: var(--card); overflow: hidden; margin-bottom: 0.35rem; }
.trip-card .pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.trip-card .food-mark { color: var(--accent); }
.trip-card .food-mark .food-icon { width: 2rem; height: 2rem; margin: 0; }
.trip-card .t { font-family: var(--serif); font-size: 1.1rem; line-height: 1.3; }
.trip-card .go { align-self: flex-start; font-family: var(--mono); font-size: 0.76rem; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.trip-card .half:hover .t { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.trip-card .harlequin { height: 10px; background-size: 20px 10px; background-position: -10px 0, -10px 0, 0 0, 0 0; }

/* the banner on an event's page */
.food-card { max-width: var(--mid); margin: 0 0 2.5rem; border: 1px solid var(--rule); }
main > .facts + .food-card,
main > .also + .food-card,
main > .chips + .food-card { margin-top: 0.5rem; }
.food-card > a { display: flex; gap: 1.1rem; align-items: center; padding: 1rem; text-decoration: none; color: var(--ink); }
.food-card .pic { flex: none; width: 9.5rem; aspect-ratio: 16 / 10; background: var(--card); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.food-card .pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.food-card .food-mark { color: var(--accent); }
.food-card .food-mark .food-icon { width: 2rem; height: 2rem; margin: 0; }
.food-card .txt { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.food-card .label { margin: 0; }
.food-card .t { font-family: var(--serif); font-size: 1.2rem; line-height: 1.3; }
.food-card .go { align-self: flex-start; font-family: var(--mono); font-size: 0.76rem; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.food-card > a:hover .t { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.food-card .harlequin { height: 10px; background-size: 20px 10px; background-position: -10px 0, -10px 0, 0 0, 0 0; }
@media (max-width: 34rem) {
	.food-card > a { flex-direction: column; align-items: stretch; }
	.food-card .pic { width: 100%; }
}

.rows-empty {
	font-family: var(--mono);
	font-size: 0.8rem;
	color: var(--muted);
	border-top: 1px solid var(--rule);
	padding: 1.15rem 0;
	margin: 0;
}

/* ---------- home ---------- */

.hero {
	padding: 4.5rem 0 4rem;
	max-width: var(--mid);
}

h1 {
	font-weight: 500;
	font-size: clamp(2.3rem, 6vw, 3.9rem);
	line-height: 1.04;
	letter-spacing: -0.02em;
	margin: 0 0 1.5rem;
	text-wrap: balance;
}

h1 em {
	font-style: italic;
	font-weight: 400;
}

.lead {
	font-size: 1.3rem;
	line-height: 1.5;
	color: var(--muted);
	max-width: 36rem;
	margin: 0;
}

.lead strong { color: var(--ink); font-weight: 500; }

main > section { padding: 0 0 4rem; }

.section-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	border-top: 2px solid var(--ink);
	padding-top: 0.9rem;
	margin-bottom: 0.25rem;
}

.section-head .label { margin: 0; color: var(--ink); }

/* ---------- lists of talks, workshops, code, old posts ---------- */

.rows {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rows > li {
	display: grid;
	grid-template-columns: 8.5rem 1fr;
	gap: 0 1.5rem;
	padding: 1.15rem 0;
	border-bottom: 1px solid var(--rule);
}

.rows .when {
	font-family: var(--mono);
	font-size: 0.8rem;
	color: var(--muted);
	padding-top: 0.42rem;
}

.rows .when b {
	display: block;
	font-weight: 400;
	color: var(--ink);
	letter-spacing: 0.09em;
	text-transform: uppercase;
	font-size: 0.7rem;
}

.rows h3 {
	font-size: 1.45rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 0;
	text-wrap: balance;
}

.rows h3 a { text-decoration: none; }
.rows h3 a.to-page { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.rows h3 a.to-page:hover { background: var(--wash); }
.rows p a.ext { font-family: var(--mono); font-size: 0.76rem; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; white-space: nowrap; }
.rows p a.ext:hover { text-decoration-color: var(--accent); }

.rows p {
	margin: 0.3rem 0 0;
	font-size: 1rem;
	color: var(--muted);
}

.rows.tight > li { padding: 0.7rem 0; grid-template-columns: 5rem 1fr; }
.rows.tight h3 { font-size: 1.15rem; font-weight: 400; }
.rows.tight .when { padding-top: 0.25rem; }
.rows.tight p { margin-top: 0.1rem; font-size: 0.95rem; }

.year {
	font-family: var(--mono);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	margin: 3rem 0 0;
	padding-bottom: 0.6rem;
	border-bottom: 2px solid var(--ink);
	display: flex;
	justify-content: space-between;
}

.year span { color: var(--muted); letter-spacing: 0; font-weight: 400; }

/* an event's name in the grey line under a title leads to the event's website */
.rows p a {
	text-decoration: underline;
	text-decoration-color: var(--rule);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.rows p a:hover { text-decoration-color: var(--accent); }

/* the list of events: the name leads to the event's website; the talks given there sit under it */
.rows.events > li { scroll-margin-top: 1.5rem; }
.rows.events > li:target h3 { background: var(--wash); display: inline; }

.rows .given,
.also .given {
	list-style: none;
	margin: 0.6rem 0 0;
	padding: 0;
	font-size: 1.05rem;
	line-height: 1.35;
}

.rows .given li,
.also .given li { margin: 0.25rem 0 0; }

.rows .given b,
.also .given b {
	font-family: var(--mono);
	font-size: 0.7rem;
	font-weight: 400;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--muted);
	margin-right: 0.75rem;
}

.rows .given a,
.also .given a,
.facts a {
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.facts a:hover { background: var(--wash); }

/* the same talk at other events, under the facts of a talk */
.also {
	max-width: var(--mid);
	margin: 0 0 1.5rem;
}

.also .label { margin: 0; }
.also .given { margin-top: 0.35rem; }

.given a.mini {
	font-family: var(--mono);
	font-size: 0.72rem;
	margin-left: 0.6rem;
	text-decoration-color: var(--rule);
	text-decoration-thickness: 1px;
}

.given a.mini:hover { text-decoration-color: var(--accent); }

/* a line of explanation under a group title */
.rows-note {
	font-size: 1rem;
	color: var(--muted);
	max-width: var(--text);
	margin: 0.9rem 0 0.25rem;
}

/* the page of a talk not given yet has no older / newer links */
.aurora-pitch .pager { display: none; }

/* ---------- the door to the Serbian archive ---------- */

.arhiva-card {
	background: var(--card);
	padding: 2rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem 3rem;
}

.arhiva-card h2 {
	font-size: 1.9rem;
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 0.75rem;
}

.arhiva-card p { margin: 0 0 1rem; font-size: 1.05rem; color: var(--muted); }
.arhiva-card p.label { font-size: 0.74rem; }
.arhiva-card p.more { font-size: 0.8rem; color: var(--ink); margin: 0; }
.arhiva-card ol { margin: 0; padding: 0; list-style: none; }

.arhiva-card ol li {
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--rule);
	font-size: 1.05rem;
	line-height: 1.3;
}

.arhiva-card ol li:first-child { border-top: 1px solid var(--rule); }
.arhiva-card ol a { text-decoration: none; }

/* the same card inside a page's text (About): a little wider than the text, no heading gap */
.prose > .arhiva-card { max-width: var(--mid); margin: 2.5rem 0; }
.prose .arhiva-card h2 { margin-top: 0; font-size: 1.9rem; }
.prose .arhiva-card ol { padding-left: 0; }
.prose .arhiva-card ol li { margin-bottom: 0; }
.prose .arhiva-card a { text-decoration: none; }
.prose .arhiva-card .more a { text-decoration: underline; }

/* ---------- a single page: talk, workshop, code note, old post, page ---------- */

.page-head { padding: 3.5rem 0 2rem; max-width: var(--mid); }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin-bottom: 1rem; }
.page-head .chips { margin-top: 1.5rem; }
.page-head .wp-block-term-description { color: var(--muted); max-width: 36rem; }

.facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: 1rem 2rem;
	border-top: 2px solid var(--ink);
	border-bottom: 1px solid var(--rule);
	padding: 1rem 0;
	margin: 0 0 1.5rem;
	max-width: var(--mid);
}

.facts dt {
	font-family: var(--mono);
	font-size: 0.68rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--muted);
}

.facts dd { margin: 0.15rem 0 0; font-size: 1.05rem; }

main > .chips { margin: 0 0 2.5rem; }

.wp-block-post-featured-image { max-width: var(--mid); margin: 0 0 2rem; }

/* the text of a post or page: a narrow column, with code and media a little wider */
.prose > * {
	max-width: var(--text);
	margin: 0 0 1.35rem;
}

.prose > pre,
.prose > figure,
.prose > .wp-block-embed,
.prose > .wp-block-image,
.prose > .wp-block-gallery,
.prose > .wp-block-table,
.prose > .wp-caption,
.prose > .gallery,
.prose > table { max-width: var(--mid); }

.prose h2,
.prose h3,
.prose h4 {
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin-top: 2.75rem;
}

.prose h2 { font-size: 1.65rem; }
.prose h3 { font-size: 1.35rem; margin-top: 2.25rem; }
.prose h4 { font-size: 1.15rem; margin-top: 2rem; }

.prose ul,
.prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--muted); }

.prose blockquote {
	margin-left: 0;
	margin-right: 0;
	padding: 0 0 0 1.25rem;
	border-left: 3px solid var(--accent);
	font-style: italic;
	font-size: 1.25rem;
	line-height: 1.45;
}

.prose blockquote p { margin: 0 0 0.75rem; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite { font-family: var(--mono); font-size: 0.75rem; font-style: normal; color: var(--muted); }

.prose hr {
	border: 0;
	border-top: 1px solid var(--rule);
	margin: 2.5rem 0;
}

.prose :not(pre) > code,
.prose kbd {
	font-family: var(--mono);
	font-size: 0.82em;
	background: var(--card);
	padding: 0.1em 0.35em;
}

.prose pre {
	font-family: var(--mono);
	font-size: 0.82rem;
	line-height: 1.65;
	background: var(--code-bg);
	color: var(--code-ink);
	padding: 1.25rem 1.5rem;
	overflow-x: auto;
	tab-size: 2;
	white-space: pre;
}

.prose pre code {
	font-family: inherit;
	font-size: inherit;
	background: none;
	padding: 0;
	/* keep code lines whole; the block scrolls sideways instead of wrapping */
	white-space: pre;
	overflow-wrap: normal;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
}

.prose th,
.prose td {
	text-align: left;
	padding: 0.5rem 0.75rem 0.5rem 0;
	border-bottom: 1px solid var(--rule);
	vertical-align: top;
}

.prose th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); font-weight: 400; }

.prose figcaption,
.prose .wp-caption-text,
.prose .gallery-caption {
	font-family: var(--mono);
	font-size: 0.72rem;
	color: var(--muted);
	margin-top: 0.5rem;
	text-align: left;
}

/* pictures placed with the old editor */
.prose .wp-caption { width: auto !important; }
.prose .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.prose .alignleft { float: left; margin: 0.3rem 1.5rem 1rem 0; max-width: 50%; }
.prose .alignright { float: right; margin: 0.3rem 0 1rem 1.5rem; max-width: 50%; }
.prose::after { content: ""; display: block; clear: both; }
.prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.75rem; }
.prose .gallery-item { margin: 0; }
.prose .gallery br { display: none; }

.prose iframe { display: block; border: 0; }

.note-sr {
	max-width: var(--mid);
	background: var(--card);
	border-left: 3px solid var(--accent);
	padding: 0.9rem 1.25rem;
	font-size: 1rem;
	line-height: 1.5;
	margin: 0 0 2.5rem;
}

.note-sr p { margin: 0; }
.note-sr p + p { color: var(--muted); margin-top: 0.3rem; }

.pager {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
	border-top: 1px solid var(--rule);
	margin-top: 3.5rem;
	padding: 1.25rem 0 0;
	max-width: var(--mid);
	font-size: 1.05rem;
	line-height: 1.35;
}

.pager > * { max-width: 22rem; }
.pager a { text-decoration: none; }

.pager .post-navigation-link__label {
	display: block;
	font-family: var(--mono);
	font-size: 0.7rem;
	color: var(--muted);
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.pager .post-navigation-link-next { text-align: right; margin-left: auto; }

.old-pages { margin-top: 3rem; }

/* ---------- search ---------- */

.wp-block-search { max-width: 36rem; margin-top: 1.5rem; }
.wp-block-search__label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }

.wp-block-search__input,
.wp-block-search__button {
	font: inherit;
	font-size: 1rem;
	border: 1px solid var(--ink);
	border-radius: 0;
	padding: 0.5rem 0.75rem;
	background: var(--paper);
	color: var(--ink);
}

.wp-block-search__button {
	font-family: var(--mono);
	font-size: 0.8rem;
	background: var(--ink);
	color: var(--paper);
	cursor: pointer;
	margin-left: 0.4rem;
}

/* ---------- footer ---------- */

.site-footer { margin-top: 3rem; }

/* one row of the old header's diamonds, as a thin band */
.harlequin {
	height: 14px;
	background-color: var(--accent);
	background-image:
		linear-gradient(135deg, var(--slate) 25%, transparent 25%),
		linear-gradient(225deg, var(--slate) 25%, transparent 25%),
		linear-gradient(315deg, var(--slate) 25%, transparent 25%),
		linear-gradient(45deg, var(--slate) 25%, transparent 25%);
	background-position: -14px 0, -14px 0, 0 0, 0 0;
	background-size: 28px 14px;
}

.site-footer .wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	padding-top: 1.5rem;
	padding-bottom: 2.5rem;
	font-family: var(--mono);
	font-size: 0.76rem;
	color: var(--muted);
}

.site-footer p { margin: 0; }
.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer a { text-underline-offset: 3px; text-decoration-color: var(--rule); }
.site-footer a:hover { text-decoration-color: var(--accent); }

/* ---------- small screens ---------- */

@media (max-width: 40rem) {
	body { font-size: 1.0625rem; }
	.wrap { padding: 0 1rem; }
	.hero { padding: 2.5rem 0 2.5rem; }
	.lead { font-size: 1.15rem; }
	.rows > li,
	.rows.tight > li { grid-template-columns: 1fr; }
	.rows .when { padding: 0 0 0.25rem; }
	.rows .when b { display: inline; margin-right: 0.75rem; }
	.rows h3 { font-size: 1.25rem; }
	.arhiva-card { grid-template-columns: 1fr; padding: 1.25rem; }
	.site-header .wp-block-navigation-item.sr::before { display: none; }
	.site-header .wp-block-navigation,
	.site-header .wp-block-navigation .wp-block-navigation__container { justify-content: flex-start; }
	.pager { flex-direction: column; gap: 1rem; }
	.pager .post-navigation-link-next { text-align: left; margin-left: 0; }
	.prose .alignleft,
	.prose .alignright { float: none; margin: 0 0 1.35rem; max-width: 100%; }
}

/* label groups hold small blocks; keep them on one line */
.wp-block-group.label p,
.wp-block-group.label > div { margin: 0; }
.wp-block-group.label p + .wp-block-post-date::before { content: "·"; margin-right: 0.9em; }

/* ---------- forms inside a page (the contact form) ---------- */

.prose label { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); }

.prose input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.prose textarea,
.prose select {
	display: block;
	width: 100%;
	font: inherit;
	font-size: 1rem;
	color: var(--ink);
	background: var(--paper);
	border: 1px solid var(--ink);
	border-radius: 0;
	padding: 0.5rem 0.75rem;
	margin-top: 0.25rem;
}

.prose input[type="submit"],
.prose input[type="button"],
.prose button {
	font-family: var(--mono);
	font-size: 0.8rem;
	color: var(--paper);
	background: var(--ink);
	border: 1px solid var(--ink);
	border-radius: 0;
	padding: 0.6rem 1.25rem;
	cursor: pointer;
}

.prose input[type="submit"]:hover,
.prose button:hover { background: var(--slate); border-color: var(--slate); }

/* ---------- the old [terminal] shortcode: show it as a plain code area ---------- */

.prose .fakeMenu { display: none; }

.prose .fakeScreen {
	max-width: var(--mid);
	background: var(--code-bg);
	color: var(--code-ink);
	font-family: var(--mono);
	font-size: 0.82rem;
	line-height: 1.65;
	padding: 1.25rem 1.5rem;
	margin: 0 0 1.35rem;
	overflow-x: auto;
}

.prose .fakeScreen p {
	margin: 0;
	overflow-wrap: anywhere;
}

/* ---------- a file in the text: slides as a PDF, with a preview where the browser can show one ---------- */

.prose > .wp-block-file {
	max-width: var(--mid);
	font-family: var(--mono);
	font-size: 0.8rem;
}

.prose .wp-block-file__embed {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9.6;
	height: auto !important;
	border: 1px solid var(--rule);
	background: var(--card);
	margin-bottom: 0.75rem;
}

.prose .wp-block-file a:not(.wp-block-file__button) { margin-right: 1rem; }

.prose .wp-block-file .wp-block-file__button {
	display: inline-block;
	background: var(--ink);
	color: var(--paper);
	padding: 0.3rem 0.8rem;
	border-radius: 0;
	text-decoration: none;
	font-size: 0.72rem;
}

.prose .wp-block-file .wp-block-file__button:hover { background: var(--slate); }

/* a small portrait at the top of a page */
.prose .portrait { margin: 0 0 1.75rem; }
.prose .portrait img { display: block; width: 11rem; height: auto; }

/* ---------- colour in code: comments quiet, keywords yellow, strings pale ---------- */

.prose pre .tok-c { color: var(--code-dim); font-style: italic; }
.prose pre .tok-k { color: var(--accent); }
.prose pre .tok-s { color: var(--code-str); }
.prose pre .tok-v { color: var(--code-ink); }

/* in dark mode the yellow is lighter already; keep it readable on the light scheme's dark code box too */
@media (prefers-color-scheme: light) {
	.prose pre .tok-k { color: #f6c453; }
}

/* ---------- photos in a story: a gallery a little wider than the text ---------- */

.prose .wp-block-gallery { gap: 0.5rem; }
.prose .wp-block-gallery figure,
.prose .wp-block-image { margin: 0; }
.prose > .wp-block-image { margin-bottom: 1.35rem; }
.prose .wp-block-image img,
.prose .wp-block-gallery img { display: block; border-radius: 0; }
main > .facts + .chips,
main > .also + .chips { margin: 0 0 2.5rem; }

/* ---------- the Photos page: a plain grid, grouped by event ---------- */

.photos {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
	gap: 0.5rem;
}

.photos li { margin: 0; }
.photos a { display: block; }

.photos img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: var(--card);
}

.photos a:hover img { outline: 2px solid var(--accent); outline-offset: -2px; }
.photos .credit { display: block; margin-top: 0.3rem; font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }

/* captions in a gallery sit under the picture, not over it (WordPress puts them on top, on a dark fade) */
.prose .wp-block-gallery.has-nested-images figure.wp-block-image { flex-direction: column; justify-content: flex-start; }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	position: static;
	flex: none;
	max-height: none;
	overflow: visible;
	background: none;
	color: var(--muted);
	text-shadow: none;
	padding: 0.35rem 0 0;
	margin: 0;
	text-align: left;
	font-family: var(--mono);
	font-size: 0.68rem;
	line-height: 1.45;
}
.prose .wp-block-gallery.has-nested-images figure.wp-block-image figcaption a { color: inherit; }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image::before { display: none; }
.year a { text-decoration: none; }
.year a:hover { background: var(--wash); }
.page-head .more { margin-top: 1.25rem; }

/* ---------- the contact form (WPForms): the theme's plain fields, sharp corners ---------- */

.prose div.wpforms-container-full,
.prose .wpforms-container {
	max-width: var(--text);
	margin: 0 0 1.35rem !important;
	/* WPForms takes its colours from these; hand it the theme's */
	--wpforms-button-background-color: var(--ink);
	--wpforms-button-text-color: var(--paper);
	--wpforms-button-border-color: var(--ink);
	--wpforms-button-border-radius: 0;
	--wpforms-field-border-radius: 0;
	--wpforms-field-border-color: var(--ink);
	--wpforms-field-background-color: var(--paper);
	--wpforms-field-text-color: var(--ink);
	--wpforms-label-color: var(--muted);
}
.prose .wpforms-container .wpforms-field { padding: 0 0 1.1rem; }

.prose .wpforms-container .wpforms-field-label {
	display: block;
	font-family: var(--mono);
	font-size: 0.76rem;
	font-weight: 400;
	color: var(--muted);
	margin: 0 0 0.25rem;
}

.prose .wpforms-container input[type="text"],
.prose .wpforms-container input[type="email"],
.prose .wpforms-container textarea {
	max-width: 100%;
	height: auto;
	font-family: var(--serif);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--ink);
	background: var(--paper);
	border: 1px solid var(--ink);
	border-radius: 0;
	box-shadow: none;
	padding: 0.5rem 0.75rem;
}

.prose .wpforms-container textarea { min-height: 9rem; }

.prose .wpforms-container input:focus,
.prose .wpforms-container textarea:focus {
	border-color: var(--ink);
	box-shadow: none;
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.prose div.wpforms-container-full .wpforms-form button[type="submit"],
.prose .wpforms-container button[type="submit"] {
	height: auto;
	background-color: var(--ink) !important;
	color: var(--paper) !important;
	border-color: var(--ink) !important;
	font-family: var(--mono);
	font-size: 0.8rem;
	font-weight: 400;
	color: var(--paper);
	background: var(--ink);
	border: 1px solid var(--ink);
	border-radius: 0;
	box-shadow: none;
	padding: 0.6rem 1.25rem;
	cursor: pointer;
}

.prose div.wpforms-container-full .wpforms-form button[type="submit"]:hover,
.prose .wpforms-container button[type="submit"]:hover { background-color: var(--slate) !important; border-color: var(--slate) !important; }
.prose .wpforms-container .wpforms-required-label { color: var(--muted); font-weight: 400; }
.prose .wpforms-container label.wpforms-error,
.prose .wpforms-container em.wpforms-error { font-family: var(--mono); font-size: 0.72rem; font-style: normal; color: #b3261e; }
.prose .wpforms-confirmation-container-full { background: var(--card); border: 0; border-left: 3px solid var(--accent); color: var(--ink); padding: 0.9rem 1.25rem; }
.prose .wpforms-confirmation-container-full p { margin: 0; }
