/*
Theme Name: Stajnica
Description: Tema za portal Zavičajnog kluba Stajnica, Lika.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.2
Text Domain: stajnica
*/

/* ---------------------------------------------------------------- fonts */

@font-face {
	font-family: "Alegreya";
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url("assets/fonts/alegreya-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Alegreya";
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url("assets/fonts/alegreya-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Alegreya";
	font-style: italic;
	font-weight: 400 900;
	font-display: swap;
	src: url("assets/fonts/alegreya-latin-ext-wght-italic.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Alegreya";
	font-style: italic;
	font-weight: 400 900;
	font-display: swap;
	src: url("assets/fonts/alegreya-latin-wght-italic.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Alegreya Sans";
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/alegreya-sans-latin-ext-400-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Alegreya Sans";
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/alegreya-sans-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Alegreya Sans";
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/alegreya-sans-latin-ext-700-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Alegreya Sans";
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/alegreya-sans-latin-700-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------- tokens */

:root {
	--limestone: #f1f2ee;
	--paper: #fbfbf9;
	--ink: #1e2b25;
	--kapa: #9e1b1e;
	--velebit: #2e5140;
	--stone: #5f665f;
	--rule: #d3d7cf;

	--serif: "Alegreya", Georgia, "Times New Roman", serif;
	--sans: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;

	--step--1: 0.889rem;
	--step-0: 1.125rem;
	--step-1: 1.333rem;
	--step-2: 1.6rem;
	--step-3: 2.1rem;
	--step-4: clamp(2.2rem, 1.6rem + 2.4vw, 3rem);
	--brand: clamp(3.2rem, 2rem + 6vw, 6.25rem);

	--gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
	--measure: 68ch;

	/* Lički vez: red triangles with ink and limestone diamonds, repeated across the masthead. */
	--vez: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Cpath d='M0 14 8 2l8 12zm16 0 8-12 8 12z' fill='%239e1b1e'/%3E%3Cpath d='M16 1l3 4-3 4-3-4zM0 1l3 4-3 4zm32 0v8l-3-4z' fill='%231e2b25'/%3E%3Cpath d='M8 7l2 3-2 3-2-3zm16 0 2 3-2 3-2-3z' fill='%23f1f2ee'/%3E%3Cpath d='M0 15h32v1H0z' fill='%231e2b25'/%3E%3C/svg%3E");
}

/* ----------------------------------------------------------------- base */

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

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

body {
	margin: 0;
	background: var(--limestone);
	color: var(--ink);
	font-family: var(--serif);
	font-size: var(--step-0);
	line-height: 1.6;
	font-variant-numeric: oldstyle-nums;
}

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

img {
	height: auto;
}

a {
	color: var(--velebit);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--kapa);
}

:focus-visible {
	outline: 3px solid var(--kapa);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 0.5em;
	text-wrap: balance;
}

.wrap {
	width: 100%;
	max-width: 76rem;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 10;
	padding: 0.5rem 1rem;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--sans);
}

.skip-link:focus {
	top: 1rem;
}

/* ------------------------------------------------------------- masthead */

.band {
	height: 16px;
	background: var(--vez) repeat-x left center;
}

.band--thin {
	height: 8px;
	background-size: 16px 8px;
}

.masthead__top {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--paper);
	border-bottom: 1px solid var(--rule);
}

.masthead__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding-block: 1.75rem 1.25rem;
}

.brand {
	display: flex;
	flex-direction: column;
	color: var(--ink);
	text-decoration: none;
}

.brand:hover {
	color: var(--ink);
}

.brand__club {
	font-family: var(--sans);
	font-size: var(--step-1);
	color: var(--kapa);
	line-height: 1;
	padding-left: 0.2em;
}

/* Header photo: the live Stajnica webcam (uploads/webcam, refreshed by the mu-plugin). */
.masthead__top.has-photo {
	min-height: clamp(17rem, 26vw, 23rem);
	overflow: hidden;
	background: var(--ink);
	border-bottom: 0;
	color: #fff;
}

.masthead__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 0;
	filter: saturate(1.35) contrast(1.08) brightness(1.03);
	z-index: 0;
}

/* Fir-green shade from the left keeps the white name readable over a bright sky. */
.has-photo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(30, 43, 37, 0.88) 0%, rgba(30, 43, 37, 0.55) 38%, rgba(30, 43, 37, 0) 70%);
}

.has-photo .band,
.has-photo .masthead__inner {
	position: relative;
	z-index: 2;
}

.has-photo .masthead__inner {
	flex: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-rows: auto 1fr;
	gap: 1rem 2rem;
	align-items: start;
	padding-block: 2.5rem 1.1rem;
}

.has-photo .brand,
.has-photo .brand:hover {
	color: #fff;
	text-shadow: 0 1px 12px rgba(30, 43, 37, 0.35);
}

.has-photo .brand__club {
	color: #f2c9c4;
}

.has-photo .search-form {
	margin-top: 1rem;
}

.has-photo .search-form input {
	background: rgba(251, 251, 249, 0.92);
	border-color: rgba(255, 255, 255, 0.5);
}

.has-photo .search-form button {
	background: var(--kapa);
	border-color: var(--kapa);
}

.has-photo .search-form button:hover {
	background: #7d1417;
	border-color: #7d1417;
}

.masthead__cam {
	grid-column: 2;
	align-self: end;
	justify-self: end;
	padding: 0.3rem 0.75rem;
	border-radius: 2px;
	background: rgba(30, 43, 37, 0.72);
	color: #fff;
	font-family: var(--sans);
	font-size: 0.95rem;
	font-variant-numeric: lining-nums;
	text-decoration: none;
}

.masthead__cam:hover {
	background: var(--kapa);
	color: #fff;
}

/* Weather card from the pljusak.com station: mostly solid, so the photo barely shows through. */
.weather {
	grid-column: 2;
	align-self: end;
	justify-self: end;
	padding: 0.45rem 0.9rem 0.5rem 0.55rem;
	border-left: 3px solid var(--kapa);
	border-radius: 2px;
	background: rgba(30, 43, 37, 0.9);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: #fff;
	font-family: var(--sans);
	font-variant-numeric: lining-nums;
}

.weather__now {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.weather__icon {
	display: block;
	width: 2.75rem;
	height: 2.75rem;
	margin-block: -0.25rem;
}

.weather__temp {
	font-family: var(--serif);
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 1;
}

.weather__text {
	display: flex;
	flex-direction: column;
	margin-left: 0.15rem;
	line-height: 1.2;
}

.weather__label {
	font-size: 0.95rem;
	font-weight: 700;
}

.weather__details {
	font-size: 0.82rem;
	color: #c3cdc6;
}

.weather__cam {
	display: block;
	margin: 0.3rem 0 0 0.25rem;
	color: #e5ebe6;
	font-size: 0.82rem;
}

.weather__cam:hover {
	color: #fff;
}

@media (max-width: 47.99rem) {
	.has-photo::before {
		background: linear-gradient(180deg, rgba(30, 43, 37, 0.78) 0%, rgba(30, 43, 37, 0.35) 55%, rgba(30, 43, 37, 0.65) 100%);
	}

	.masthead__photo {
		object-position: 42% 0;
	}

	.has-photo .masthead__inner {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto auto 1fr;
		padding-top: 1.75rem;
	}

	.has-photo .search-form {
		margin-top: 0;
	}

	.masthead__cam,
	.weather {
		grid-column: 1;
		justify-self: start;
	}
}

.brand__name {
	font-size: var(--brand);
	font-weight: 900;
	line-height: 0.95;
	letter-spacing: -0.02em;
	font-variant-numeric: normal;
}

.search-form {
	display: flex;
	min-width: min(100%, 19rem);
}

.search-form input {
	flex: 1;
	min-width: 0;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--rule);
	border-right: 0;
	border-radius: 2px 0 0 2px;
	background: var(--limestone);
	color: var(--ink);
	font: inherit;
	font-family: var(--sans);
	font-size: 1rem;
}

.search-form button,
.nav-toggle {
	padding: 0.55rem 1rem;
	border: 1px solid var(--ink);
	border-radius: 0 2px 2px 0;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--sans);
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
}

.search-form button:hover {
	background: var(--kapa);
	border-color: var(--kapa);
}

/* Primary navigation */

.site-nav {
	display: flow-root;
	background: var(--velebit);
}

.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	display: block;
	padding: 0.7rem 0.9rem;
	color: var(--paper);
	font-family: var(--sans);
	font-size: 1.05rem;
	font-weight: 700;
	text-decoration: none;
}

.site-nav li:first-child a {
	padding-left: 0;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-menu-parent > a,
.site-nav .current-post-ancestor > a {
	color: #fff;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.35em;
}

.nav-toggle {
	display: none;
	margin-block: 0.5rem;
	border-radius: 2px;
	background: transparent;
	border-color: var(--paper);
}

@media (max-width: 47.99rem) {
	.nav-toggle {
		display: block;
	}

	.site-nav ul {
		display: none;
		flex-direction: column;
		padding-bottom: 0.5rem;
	}

	.site-nav.is-open ul {
		display: flex;
	}

	.site-nav a,
	.site-nav li:first-child a {
		padding: 0.55rem 0;
	}
}

/* --------------------------------------------------------------- layout */

.layout {
	display: grid;
	gap: 2.5rem;
	padding-block: 2.5rem 4rem;
}

.content {
	min-width: 0;
}

@media (min-width: 60rem) {
	.layout {
		grid-template-columns: 15.5rem minmax(0, 1fr);
		gap: 3.5rem;
	}

	/* Sidebar comes after main in the source for keyboard and mobile order, but sits on the left. */
	.sidebar {
		grid-column: 1;
		grid-row: 1;
	}

	.content {
		grid-column: 2;
	}
}

/* -------------------------------------------------------------- sidebar */

.sidebar {
	font-family: var(--sans);
	font-size: 1.05rem;
	line-height: 1.35;
}

.widget {
	margin-bottom: 2.25rem;
}

.widget-title,
.widget h2 {
	margin: 0 0 0.6rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid var(--kapa);
	font-family: var(--serif);
	font-size: var(--step-1);
	font-weight: 800;
}

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

.widget li {
	border-bottom: 1px solid var(--rule);
}

.widget li a {
	display: block;
	padding: 0.45rem 0;
	color: var(--ink);
	text-decoration: none;
}

.widget li a:hover {
	color: var(--kapa);
}

.widget .sub-menu {
	padding-left: 0.9rem;
	border-top: 1px solid var(--rule);
}

.widget .sub-menu li:last-child {
	border-bottom: 0;
}

.widget .current-menu-item > a {
	color: var(--kapa);
	font-weight: 700;
}

.widget p {
	margin: 0;
}

.widget .wp-block-image {
	margin: 0;
}

.widget .webcam img {
	display: block;
	width: 100%;
	border: 1px solid var(--rule);
}

/* ------------------------------------------------------------- listings */

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.9rem;
	margin: 0 0 0.35rem;
	color: var(--stone);
	font-family: var(--sans);
	font-size: var(--step--1);
	font-variant-numeric: lining-nums;
}

.entry-meta__cat {
	color: var(--kapa);
	font-weight: 700;
	text-decoration: none;
}

.lead {
	margin-bottom: 2.5rem;
	padding-bottom: 2.5rem;
	border-bottom: 2px solid var(--ink);
}

.lead__image img {
	display: block;
	width: 100%;
	max-height: 32rem;
	object-fit: cover;
	margin-bottom: 1.25rem;
}

.lead__title {
	font-size: var(--step-4);
	max-width: 22ch;
}

.lead__title a,
.entry__title a {
	color: var(--ink);
	text-decoration: none;
}

.lead__title a:hover,
.entry__title a:hover {
	color: var(--kapa);
}

.lead__excerpt {
	max-width: var(--measure);
	font-size: var(--step-1);
	line-height: 1.5;
}

.lead__excerpt p,
.entry__excerpt p {
	margin: 0;
}

.entries {
	display: grid;
}

.entry {
	display: grid;
	grid-template-columns: 9.5rem minmax(0, 1fr);
	gap: 1.25rem;
	padding-block: 1.25rem;
	border-bottom: 1px solid var(--rule);
}

.entry:first-child {
	padding-top: 0;
}

.entry__image {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--paper) var(--vez) repeat-x left bottom / 16px 8px;
	border: 1px solid var(--rule);
	overflow: hidden;
}

.entry__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.entry__title {
	font-size: var(--step-2);
	margin-bottom: 0.3rem;
}

.entry__excerpt {
	max-width: var(--measure);
	color: #36423c;
}

@media (max-width: 35rem) {
	.entry {
		grid-template-columns: 6rem minmax(0, 1fr);
		gap: 0.9rem;
	}

	.entry__title {
		font-size: var(--step-1);
	}

	.entry__excerpt {
		display: none;
	}
}

.listing-header {
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid var(--ink);
}

.listing-header h1 {
	font-size: var(--step-4);
	margin: 0;
}

.listing-header__desc {
	margin-top: 0.5rem;
	color: var(--stone);
}

.listing-header__desc p {
	margin: 0;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 2.5rem;
	font-family: var(--sans);
	font-variant-numeric: lining-nums;
}

.pagination .page-numbers {
	display: inline-block;
	min-width: 2.5rem;
	padding: 0.4rem 0.75rem;
	border: 1px solid var(--rule);
	background: var(--paper);
	color: var(--ink);
	text-align: center;
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--paper);
}

.pagination a.page-numbers:hover {
	border-color: var(--kapa);
	color: var(--kapa);
}

.pagination .dots {
	border-color: transparent;
	background: none;
}

.empty {
	max-width: var(--measure);
}

.empty .search-form {
	max-width: 28rem;
	margin-block: 1.5rem;
}

/* -------------------------------------------------------------- article */

.article__header {
	margin-bottom: 2rem;
	padding-bottom: 1.25rem;
	border-bottom: 2px solid var(--ink);
}

.article__header h1 {
	font-size: var(--step-4);
	margin: 0;
	max-width: 24ch;
}

.entry-content {
	max-width: var(--measure);
	line-height: 1.65;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content h2 {
	font-size: var(--step-3);
	margin-top: 2rem;
}

.entry-content h3 {
	font-size: var(--step-2);
	margin-top: 1.75rem;
}

.entry-content h4,
.entry-content h5,
.entry-content h6 {
	font-size: var(--step-1);
	margin-top: 1.5rem;
}

.entry-content blockquote {
	margin: 1.5rem 0;
	padding-left: 1.25rem;
	border-left: 3px solid var(--kapa);
	color: #36423c;
}

.entry-content table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	font-size: 0.95em;
	display: block;
	overflow-x: auto;
}

.entry-content td,
.entry-content th {
	padding: 0.4rem 0.6rem;
	border: 1px solid var(--rule);
	vertical-align: top;
}

.entry-content hr {
	border: 0;
	height: 8px;
	margin: 2rem 0;
	background: var(--vez) repeat-x left center / 16px 8px;
}

/* Old FCKeditor content: alignment classes, align attributes and fixed widths. */
.rteright {
	text-align: right;
}

.rtecenter {
	text-align: center;
}

.rtejustify {
	text-align: justify;
}

.entry-content img[align="left"],
.entry-content .alignleft {
	float: left;
	margin: 0.3rem 1.25rem 0.75rem 0;
}

.entry-content img[align="right"],
.entry-content .alignright {
	float: right;
	margin: 0.3rem 0 0.75rem 1.25rem;
}

.entry-content .aligncenter {
	display: block;
	margin-inline: auto;
}

.entry-content img {
	max-width: 100%;
	height: auto !important;
}

@media (max-width: 35rem) {
	.entry-content img[align],
	.entry-content img[style*="float"] {
		float: none !important;
		display: block;
		margin: 1rem 0 !important;
	}
}

.entry-content::after {
	content: "";
	display: table;
	clear: both;
}

.embed,
.wp-block-embed__wrapper {
	position: relative;
	aspect-ratio: 16 / 9;
	margin: 1.5rem 0;
}

.embed iframe,
.wp-block-embed__wrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.attachments {
	padding-left: 1.2rem;
}

.file-size {
	color: var(--stone);
	font-family: var(--sans);
	font-size: var(--step--1);
}

.contact-list {
	padding: 0;
	list-style: none;
}

.contact-list li {
	padding-block: 0.75rem;
	border-bottom: 1px solid var(--rule);
}

/* Galleries ([gallery] shortcode and the block). */
.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
	gap: 0.5rem;
	margin: 1.5rem 0;
}

.gallery br {
	display: none;
}

.gallery-item {
	margin: 0;
}

.gallery-icon a {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--paper);
}

.gallery-icon img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.gallery-icon a:hover img {
	transform: scale(1.04);
}

.gallery-caption {
	font-family: var(--sans);
	font-size: var(--step--1);
	color: var(--stone);
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
figcaption {
	font-family: var(--sans);
	font-size: var(--step--1);
	color: var(--stone);
}

/* Prev / next article */
.post-navigation {
	max-width: var(--measure);
	margin-top: 3rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--rule);
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 1.5rem;
}

.post-navigation .nav-next {
	text-align: right;
}

.post-navigation a {
	color: var(--ink);
	text-decoration: none;
}

.post-nav__dir {
	display: block;
	color: var(--kapa);
	font-family: var(--sans);
	font-size: var(--step--1);
	font-weight: 700;
}

.post-nav__title {
	font-weight: 700;
	line-height: 1.3;
}

.post-navigation a:hover .post-nav__title {
	color: var(--kapa);
}

.comments {
	max-width: var(--measure);
	margin-top: 3rem;
}

.comment-list {
	padding-left: 1.2rem;
}

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

.site-footer {
	background: var(--ink);
	color: #dfe3dc;
	font-family: var(--sans);
}

.site-footer .band {
	background-color: var(--paper);
}

.site-footer__inner {
	display: grid;
	gap: 2rem;
	padding-block: 2.5rem;
}

@media (min-width: 48rem) {
	.site-footer__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	}

	.site-footer__small {
		grid-column: 1 / -1;
	}
}

.site-footer p {
	margin: 0 0 0.4rem;
}

.site-footer__name {
	font-family: var(--serif);
	font-size: var(--step-1);
	font-weight: 800;
	color: #fff;
}

.site-footer h2 {
	margin: 0 0 0.75rem;
	font-family: var(--serif);
	font-size: var(--step-1);
	color: #fff;
}

.site-footer a {
	color: #fff;
}

.site-footer a:hover {
	color: #f2b8b5;
}

.years {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-variant-numeric: lining-nums;
}

.years a {
	text-decoration: none;
}

.years a:hover,
.years a[aria-current] {
	text-decoration: underline;
}

.site-footer__small {
	padding-top: 1.25rem;
	border-top: 1px solid #3a4a42;
	font-size: var(--step--1);
	color: #b7beb5;
}

.site-footer__small a {
	margin-left: 1rem;
}

/* ------------------------------------------------------------- lightbox */

.lightbox {
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(20, 29, 25, 0.96);
	color: var(--paper);
	font-family: var(--sans);
}

.lightbox::backdrop {
	background: transparent;
}

.lightbox__figure {
	display: grid;
	place-items: center;
	height: 100%;
	margin: 0;
	padding: 3.5rem 4rem 3rem;
}

.lightbox__figure img {
	max-width: 100%;
	max-height: calc(100vh - 7rem);
	object-fit: contain;
	height: auto;
}

.lightbox__count {
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	font-variant-numeric: lining-nums;
}

.lightbox button {
	position: absolute;
	padding: 0.6rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 2px;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.lightbox button:hover {
	background: var(--kapa);
	border-color: var(--kapa);
}

.lightbox__close {
	top: 1rem;
	right: 1rem;
}

.lightbox__prev,
.lightbox__next {
	top: 50%;
	transform: translateY(-50%);
}

.lightbox__prev {
	left: 1rem;
}

.lightbox__next {
	right: 1rem;
}

@media (max-width: 35rem) {
	.lightbox__figure {
		padding-inline: 0.5rem;
	}

	.lightbox__prev,
	.lightbox__next {
		top: auto;
		bottom: 1rem;
		transform: none;
	}

	.lightbox__prev {
		left: auto;
		right: 7.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.masthead .search-form,
	.site-nav,
	.sidebar,
	.post-navigation,
	.site-footer__years {
		display: none;
	}

	.layout {
		display: block;
	}
}
