/*
Theme Name: JORDIK
Author: Studio Jordik
Description: Custom theme for JORDIK, the Nordic magazine for men.
Version: 0.7.16
Requires at least: 7.0
Text Domain: jordik
*/

/* ---------- Fonts (self-hosted Jost, no Google connection) ---------- */

@font-face {
	font-family: "Jost";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/jost-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: "Jost";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/jost-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;
}

/* ---------- Colours and sizes from the format guide ---------- */

:root {
	--jk-paper: #F8F7F3;     /* background, hamburger panel */
	--jk-ink: #292929;       /* text, logo, titles */
	--jk-grey: #6B6A67;      /* section labels, captions, credits */
	--jk-line: #E3E1DB;      /* thin lines and borders */
	--jk-footer: #E6E3DA;    /* footer, image placeholders */
	--jk-accent: #1F6FB2;    /* fjord blue: hover and current section in menus and links only */

	--jk-line-strong: #CFCBC1; /* the darker thin line on section pages */
	--jk-field: #8E8A81;     /* clearly visible edge of form fields */
	--jk-overlay: rgba(41, 41, 41, 0.35); /* dims the page behind the hamburger panel */

	--jk-frame: 1305px;      /* page width, the same as Just Hanan: header, homepage, grids */
	--jk-column: 760px;      /* article column */
	--jk-gutter: 32px;
}

/* Dark mode, chosen by the reader with the switch in the hamburger panel:
   charcoal background, light text, the lighter fjord blue and the reversed logos */
:root[data-theme="dark"] {
	--jk-paper: #292929;
	--jk-ink: #F8F7F3;
	--jk-grey: #A9A7A1;
	--jk-line: #45433F;
	--jk-footer: #212121;
	--jk-accent: #8EC0E3;
	--jk-line-strong: #5A5853;
	--jk-field: #7D7A73;
	--jk-overlay: rgba(0, 0, 0, 0.5);
	color-scheme: dark;
}

/* Light logo files in light mode, reversed files in dark mode */
.jk-logo-dark {
	display: none !important;
}

:root[data-theme="dark"] .jk-logo-light {
	display: none !important;
}

:root[data-theme="dark"] .jk-logo-dark {
	display: block !important;
}

/* ---------- Base ---------- */

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

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

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	background: var(--jk-paper);
	color: var(--jk-ink);
	font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
	font-size: 20px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--jk-ink);
}

/* No blue flash when tapping links and buttons on phones */
a,
button {
	-webkit-tap-highlight-color: transparent;
}

img,
svg {
	display: block;
	max-width: 100%;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Header ---------- */

/* Desktop: the whole header stays at the top while scrolling */
.jk-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	background: var(--jk-paper);
}

.jk-header-spacer {
	display: none;
}


.jk-header__bar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	row-gap: 10px;
	max-width: calc(var(--jk-frame) + 2 * var(--jk-gutter)); /* 1305px of content plus the side margins */
	margin: 0 auto;
	padding: 14px var(--jk-gutter) 28px; /* no line under the header: white space separates it from the page */
}

.jk-header__logo {
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
	display: block;
	width: 230px;
	margin-left: -6px; /* the file has a small margin around the letters */
}

.jk-header__logo img {
	width: 100%;
	height: auto;
}

/* "Minimal. Timeless. Essential." right under the wordmark */
.jk-tagline {
	grid-column: 1;
	grid-row: 2;
	justify-self: start;
	margin: 0;
	font-size: 14px;
	letter-spacing: 0.129em; /* makes the line exactly as wide as the wordmark */
	line-height: 1;
	color: var(--jk-grey);
	white-space: nowrap;
}

.jk-nav {
	grid-column: 2;
	grid-row: 1;
}

.jk-nav__list {
	display: flex;
	gap: 36px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jk-nav__list a {
	display: block;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--jk-grey);
	line-height: 1;
	padding: 6px 0;
	transition: color 0.2s ease;
}

/* Fjord blue on hover (mouse), while tapping (phones), and for the section you're in */
.jk-nav__list a:active,
.jk-nav__list a:focus-visible,
.jk-nav__list .is-current a {
	color: var(--jk-accent);
}

@media (hover: hover) {
	.jk-nav__list a:hover {
		color: var(--jk-accent);
	}
}

/* No blue flash when tapping links and buttons on phones */
a,
button {
	-webkit-tap-highlight-color: transparent;
}

.jk-burger {
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 7px;
	width: 44px;
	height: 44px;
	margin-right: -10px;
	padding: 0 10px;
	background: none;
	border: 0;
	cursor: pointer;
}

.jk-burger span {
	display: block;
	width: 24px;
	height: 1.5px;
	background: var(--jk-ink);
}

/* ---------- Header on phones and small tablets ---------- */

@media (max-width: 1240px) {
	/* Wordmark centred with the line under it, hamburger on the right,
	   sections on one line below */
	.jk-header__bar {
		row-gap: 0;
		padding: 10px 16px 20px;
	}

	.jk-header__logo {
		grid-column: 2;
		justify-self: center;
		width: 175px;
		margin-left: 0;
	}

	.jk-tagline {
		grid-column: 1 / -1;
		justify-self: center;
		margin-top: 2px;
		font-size: 13px;
		letter-spacing: 0.08em;
	}

	.jk-nav {
		grid-column: 1 / -1;
		grid-row: 3;
		margin-top: 20px;
	}

	/* All six sections on one line, spread over the full width */
	.jk-nav__list {
		justify-content: space-between;
		gap: 8px;
	}

	.jk-nav__list a {
		font-size: 13px;
		letter-spacing: 0.08em;
	}
}

/* Tablets: keep the six together in the middle instead of spread out */
@media (min-width: 601px) and (max-width: 1240px) {
	.jk-nav__list {
		justify-content: center;
		gap: 36px;
	}

	.jk-nav__list a {
		font-size: 15px;
		letter-spacing: 0.18em;
	}
}

/* Very narrow phones */
@media (max-width: 359px) {
	.jk-nav__list a {
		font-size: 11.5px;
		letter-spacing: 0.06em;
	}
}

/* ---------- Header on phones: wordmark, line and hamburger stay at the top,
   the sections slide away when scrolling down and come back
   when scrolling up ---------- */

@media (max-width: 760px) {
	.jk-header {
		position: fixed;
		left: 0;
		right: 0;
	}

	/* Keeps the page from sliding under the fixed header */
	.jk-header-spacer {
		display: block;
		height: var(--jk-header-height, 150px);
	}

	.jk-header__bar {
		transition: padding-bottom 0.3s ease;
	}

	.jk-nav {
		max-height: 60px;
		overflow: hidden;
		transition: max-height 0.3s ease, opacity 0.2s ease, margin-top 0.3s ease;
	}

	.jk-header.is-collapsed .jk-header__bar {
		padding-bottom: 10px;
	}

	.jk-header.is-collapsed .jk-nav {
		max-height: 0;
		margin-top: 0;
		opacity: 0;
	}
}

/* Logged in on a phone: keep the WordPress admin bar fixed too,
   so it doesn't cover the header */
@media (max-width: 600px) {
	html #wpadminbar {
		position: fixed;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jk-header__bar,
	.jk-nav {
		transition: none;
	}
}

/* ---------- Article header: back arrow and wordmark, hidden at the top,
   sliding in once the reader scrolls down ---------- */

.jk-article-header {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	z-index: 100;
	background: var(--jk-paper);
	transform: translateY(-100%);
	visibility: hidden;
	transition: transform 0.3s ease, visibility 0.3s ease;
}

.jk-article-header.is-visible {
	transform: translateY(0);
	visibility: visible;
}

/* Team page and member pages: always visible, as wide as their content */
.jk-article-header.is-fixed {
	transform: none;
	visibility: visible;
	transition: none;
}

.jk-article-header--wide .jk-article-header__inner {
	max-width: calc(1000px + 2 * var(--jk-gutter));
}

.jk-article-header-spacer {
	height: 60px;
}

/* Same width as the article column, so the arrow lines up with the text */
.jk-article-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: calc(var(--jk-column) + 2 * var(--jk-gutter));
	height: 60px;
	margin: 0 auto;
	padding: 0 var(--jk-gutter);
}

.jk-back {
	position: absolute;
	left: var(--jk-gutter);
	top: 50%;
	display: flex;
	align-items: center;
	height: 44px;
	padding-right: 12px;
	color: var(--jk-ink);
	transform: translateY(-50%);
	transition: color 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.jk-back:active,
.jk-back:focus-visible {
	color: var(--jk-accent);
}

@media (hover: hover) {
	.jk-back:hover {
		color: var(--jk-accent);
	}
}

.jk-article-header__logo {
	display: block;
	width: 120px;
}

.jk-article-header__logo img {
	width: 100%;
	height: auto;
}

@media (max-width: 760px) {
	.jk-article-header__inner {
		height: 54px;
		padding: 0 16px;
	}

	.jk-back {
		left: 16px;
	}

	.jk-article-header__logo {
		width: 110px;
	}

	.jk-article-header-spacer {
		height: 54px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jk-article-header {
		transition: none;
	}
}

/* ---------- Hamburger panel ---------- */

.jk-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: var(--jk-overlay);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.jk-panel {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	right: 0;
	bottom: 0;
	z-index: 1001;
	width: 340px;
	max-width: 85vw;
	padding: 28px 40px 40px;
	background: var(--jk-paper);
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 0.35s ease, visibility 0.35s ease;
	overflow-y: auto;
}

body.jk-menu-open {
	overflow: hidden;
}

body.jk-menu-open .jk-overlay {
	opacity: 1;
	visibility: visible;
}

body.jk-menu-open .jk-panel {
	transform: translateX(0);
	visibility: visible;
}

.jk-panel__close {
	position: relative;
	display: block;
	width: 44px;
	height: 44px;
	margin: 0 -10px 40px auto;
	background: none;
	border: 0;
	cursor: pointer;
}

.jk-panel__close span {
	position: absolute;
	top: 50%;
	left: 10px;
	width: 24px;
	height: 1.5px;
	background: var(--jk-ink);
}

.jk-panel__close span:first-child {
	transform: rotate(45deg);
}

.jk-panel__close span:last-child {
	transform: rotate(-45deg);
}

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

.jk-panel__list li + li {
	margin-top: 22px;
}

.jk-panel__list a {
	font-size: 22px;
	font-weight: 400;
	text-decoration: none;
	line-height: 1.2;
	transition: color 0.2s ease;
}

/* Same fjord blue as the section menu */
.jk-panel__list a:active,
.jk-panel__list a:focus-visible {
	color: var(--jk-accent);
}

@media (hover: hover) {
	.jk-panel__list a:hover {
		color: var(--jk-accent);
	}
}

.jk-panel__list .jk-panel__studio {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid var(--jk-line);
}

.jk-panel__studio a {
	font-size: 16px;
	color: var(--jk-grey);
}

.jk-panel__list .jk-panel__studio a:active,
.jk-panel__list .jk-panel__studio a:focus-visible {
	color: var(--jk-accent);
}

@media (hover: hover) {
	.jk-panel__list .jk-panel__studio a:hover {
		color: var(--jk-accent);
	}
}

/* Light/dark switch under the links */
.jk-mode {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid var(--jk-line);
}

.jk-mode__label {
	font-size: 16px;
	color: var(--jk-grey);
}

.jk-mode__switch {
	position: relative;
	flex: none;
	width: 42px;
	height: 24px;
	padding: 0;
	background: none;
	border: 1px solid var(--jk-ink);
	border-radius: 12px;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.jk-mode__switch span {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--jk-ink);
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.jk-mode__switch[aria-checked="true"] {
	background: var(--jk-ink);
}

.jk-mode__switch[aria-checked="true"] span {
	background: var(--jk-paper);
	transform: translateX(18px);
}

.jk-mode__switch:focus-visible {
	border-color: var(--jk-accent);
	outline: none;
}

@media (hover: hover) {
	.jk-mode__switch:hover {
		border-color: var(--jk-accent);
	}
}

@media (prefers-reduced-motion: reduce) {
	.jk-overlay,
	.jk-panel {
		transition: none;
	}
}

/* ---------- Footer ---------- */

.jk-footer {
	--jk-footer-line: #CFCBC1;
	--jk-grey: #5E5D5A;      /* slightly darker grey, readable on the footer colour */
}

:root[data-theme="dark"] .jk-footer {
	--jk-footer-line: #3F3D3A;
	--jk-grey: #A9A7A1;
}

.jk-footer {
	margin-top: auto; /* keeps the footer at the bottom on short pages */
	background: var(--jk-footer);
	text-align: center;
}

.jk-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: calc(var(--jk-frame) + 2 * var(--jk-gutter));
	margin: 0 auto;
	padding: 56px var(--jk-gutter) 40px;
}

.jk-footer a {
	transition: color 0.2s ease;
}

/* Logo: J/K monogram above the wordmark */
.jk-footer__logo {
	display: block;
	width: 130px;
}

.jk-footer__logo img {
	width: 100%;
	height: auto;
}

/* Sections and the first line: phones only */
.jk-footer__nav,
.jk-footer__line--phone {
	display: none;
}

/* Thin lines, as on Just Hanan */
.jk-footer__line {
	width: 100%;
	height: 0;
	margin: 44px 0;
	border: 0;
	border-top: 1px solid var(--jk-footer-line);
}

/* Subscribe */
.jk-subscribe {
	width: 100%;
	max-width: 520px;
	margin-top: 44px;
}

.jk-subscribe__title {
	margin: 0 0 14px;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	line-height: 1.2;
	margin-right: -0.2em; /* keeps the spaced word optically centred */
}

.jk-subscribe__text {
	margin: 0 0 26px;
	font-size: 17px;
	line-height: 1.5;
}

.jk-subscribe__form {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.jk-subscribe__label {
	font-size: 15px;
	color: var(--jk-grey);
}

.jk-subscribe__input {
	width: 100%;
	height: 50px;
	padding: 0 14px;
	font: inherit;
	font-size: 16px;
	color: var(--jk-ink);
	background: var(--jk-paper);
	border: 1px solid var(--jk-field); /* clearly visible box edge */
	border-radius: 0;
	-webkit-appearance: none;
}

.jk-subscribe__input:focus {
	outline: none;
	border-color: var(--jk-accent);
}

.jk-subscribe__button {
	margin-top: 4px;
	padding: 13px 28px;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--jk-ink);
	background: none;
	border: 1px solid var(--jk-ink);
	border-radius: 0;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.jk-subscribe__note {
	margin: 20px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--jk-grey);
}

/* "Privacy Policy" after the subscribe line (footer and Subscribe page):
   underlined so it is clearly a link, fjord blue on hover; opens in a new tab */
.jk-footer .jk-subscribe__note a,
.jk-signup__note a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

.jk-signup__note a:active,
.jk-signup__note a:focus-visible {
	color: var(--jk-accent);
}

@media (hover: hover) {
	.jk-signup__note a:hover {
		color: var(--jk-accent);
	}
}

/* Copyright and Contact | Legal */
.jk-footer__copyright,
.jk-footer__links {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--jk-grey);
}

.jk-footer__links {
	margin-top: 8px;
}

.jk-footer__links span {
	margin: 0 1px; /* just a small space around the |, as on Just Hanan */
}

.jk-footer__copyright a,
.jk-footer__links a {
	color: var(--jk-grey);
	text-decoration: none;
}

/* "© 2026" with the Studio Jordik logo (about 20px high, on the same baseline),
   together one link to studio.jordik.com (in a new tab); the © and year in the
   blue of the logo, light fjord blue in dark mode */
.jk-footer .jk-footer__copyright a {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	color: var(--jk-accent);
	transition: opacity 0.15s ease;
}

.jk-footer__copyright img {
	display: inline-block;
	width: auto;
	height: 20px;
	position: relative;
	top: 4.6px; /* the j hangs below the baseline */
}

:root[data-theme="dark"] .jk-footer__copyright .jk-logo-dark {
	display: inline-block !important;
}

@media (hover: hover) {
	.jk-footer .jk-footer__copyright a:hover {
		opacity: 0.75;
	}
}

/* Fjord blue, as in the header: hover (mouse), tapping (phones), keyboard */
.jk-footer a:active,
.jk-footer a:focus-visible,
.jk-subscribe__button:active,
.jk-subscribe__button:focus-visible {
	color: var(--jk-accent);
}

.jk-subscribe__button:active,
.jk-subscribe__button:focus-visible {
	border-color: var(--jk-accent);
}

@media (hover: hover) {
	.jk-footer a:hover,
	.jk-subscribe__button:hover {
		color: var(--jk-accent);
	}

	.jk-subscribe__button:hover {
		border-color: var(--jk-accent);
	}
}

/* Phones: sections and the first line appear, as in the header */
@media (max-width: 760px) {
	.jk-footer__inner {
		padding: 44px 16px 32px;
	}

	.jk-footer__logo {
		width: 120px;
	}

	.jk-footer__nav {
		display: block;
		width: 100%;
		margin-top: 28px;
	}

	.jk-footer__line--phone {
		display: block;
	}

	.jk-subscribe {
		margin-top: 0; /* the line above already gives the space */
	}

	.jk-footer__line {
		margin: 32px 0;
	}

	.jk-subscribe__text {
		font-size: 16px;
	}
}

/* ---------- Shared: labels, cards, grids ---------- */

/* Section label, as in the menu: small, capitals, wide spacing, grey */
.jk-label {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	line-height: 1.2;
}

.jk-label a {
	color: var(--jk-accent);
	text-decoration: none;
	transition: color 0.2s ease;
}

.jk-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 28px;
}

.jk-card__photo {
	display: block;
	aspect-ratio: 5 / 4;
	margin-bottom: 16px;
	overflow: hidden;
	background: var(--jk-footer);
}

.jk-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jk-card .jk-label {
	margin-bottom: 8px;
}

.jk-card__title {
	margin: 0;
	font-size: 19px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.3;
}

.jk-card__title a {
	color: var(--jk-ink);
	text-decoration: none;
	transition: color 0.2s ease;
}

/* Labels are fjord blue and turn grey on hover; titles turn fjord blue */
.jk-label a:active,
.jk-label a:focus-visible {
	color: var(--jk-grey);
}

.jk-card__title a:active,
.jk-card__title a:focus-visible {
	color: var(--jk-accent);
}

@media (hover: hover) {
	.jk-label a:hover {
		color: var(--jk-grey);
	}

	.jk-card__title a:hover {
		color: var(--jk-accent);
	}
}

@media (max-width: 760px) {
	.jk-grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}
}

/* ---------- Article page ---------- */

.jk-article {
	width: 100%;
	max-width: calc(var(--jk-column) + 2 * var(--jk-gutter));
	margin: 0 auto;
	padding: 20px var(--jk-gutter) 96px; /* no footer on article pages: space at the end */
}

/* Opening: photo left (4:5), label and title right */
.jk-article__opening {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	margin-bottom: 24px; /* space under the opening photo */
}

.jk-article__photo {
	align-self: start;
	margin: 0;
}

.jk-article__photo-frame {
	aspect-ratio: 4 / 5;
	background: var(--jk-footer);
	overflow: hidden;
}

.jk-article__photo-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jk-article__caption {
	margin: 12px 0 0;
}

.jk-article__heading {
	align-self: start;
	padding: 56px 0 0 32px; /* label and title in the upper part, beside the photo */
}

.jk-article__title {
	margin: 0;
	font-size: 46px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.2;
	overflow-wrap: break-word;
}

/* Text */
.jk-article__body {
	font-size: 20px;
	line-height: 1.7;
}

.jk-article__body > * {
	margin-top: 0;
	margin-bottom: 1.1em;
}

.jk-article__body h2 {
	margin-top: 1.7em;
	margin-bottom: 0.5em;
	font-size: 30px;
	font-weight: 600;
	text-transform: lowercase;
	line-height: 1.35;
}

/* Links in text written in the editor (articles, About and other pages):
   no line, fjord blue on hover; a line can be added in the editor with Ctrl + U */
.jk-article__body a {
	color: var(--jk-ink);
	text-decoration: none;
	transition: color 0.2s ease;
}

.jk-article__body ol,
.jk-article__body ul {
	padding-left: 1.3em;
}

.jk-article__body li + li {
	margin-top: 0.4em;
}

/* Photos in the text: at most 500px tall, centred; the caption is exactly
   as wide as the photo and starts at its left edge */
.jk-article__body .wp-block-image {
	display: table;
	margin: 2em auto 24px; /* space under the photo, half of what it was */
}

/* After a photo, a subheading or paragraph adds no space of its own */
.jk-article__body .wp-block-image + * {
	margin-top: 0;
}

.jk-article__body .wp-block-image img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 500px;
}

.jk-article__body .wp-block-image figcaption {
	display: table-caption;
	caption-side: bottom;
	margin-top: 12px;
}

/* Captions: a thin vertical line on the left, as in newspapers */
.jk-article__caption,
.jk-article__body .wp-block-image figcaption {
	padding: 1px 0 1px 12px;
	border-left: 2px solid var(--jk-grey); /* same colour as the caption text */
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--jk-grey);
	text-align: left;
}

/* First paragraph slightly larger */
.jk-article__body .jk-intro {
	font-size: 24px;
	line-height: 1.6;
}

/* Author line after the first paragraph */
.jk-author-line {
	font-size: 14px;
	line-height: 1.5;
	color: var(--jk-grey);
	margin-bottom: 1.8em !important;
}

.jk-author-line a,
.jk-credits-line a {
	text-decoration: none;
	transition: color 0.2s ease;
}

/* Author name in fjord blue, grey on hover */
.jk-author-line__name a {
	color: var(--jk-accent);
}

.jk-author-line__name a:active,
.jk-author-line__name a:focus-visible {
	color: var(--jk-grey);
}

@media (hover: hover) {
	.jk-author-line__name a:hover {
		color: var(--jk-grey);
	}
}

/* End of the piece: tags, credit line, sign-up line */
.jk-article__end {
	margin-top: 56px;
	text-align: center;
}

/* Tags: each in a thin box, centred, fjord blue; grey on hover */
.jk-tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.jk-tags a {
	display: inline-block;
	padding: 8px 14px 7px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	line-height: 1;
	color: var(--jk-accent);
	text-decoration: none;
	border: 1px solid var(--jk-accent);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.jk-tags a:active,
.jk-tags a:focus-visible {
	color: var(--jk-grey);
	border-color: var(--jk-grey);
}

@media (hover: hover) {
	.jk-tags a:hover {
		color: var(--jk-grey);
		border-color: var(--jk-grey);
	}
}

/* Credit line and sign-up line: centred, in the text colour */
.jk-credits-line,
.jk-signup-line {
	margin: 0 0 10px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--jk-ink);
}

.jk-credits-line a {
	color: var(--jk-ink);
}

.jk-signup-line a {
	color: var(--jk-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	transition: color 0.2s ease;
}

.jk-credits-line a:active,
.jk-credits-line a:focus-visible,
.jk-signup-line a:active,
.jk-signup-line a:focus-visible,
.jk-article__body a:active,
.jk-article__body a:focus-visible {
	color: var(--jk-accent);
}

@media (hover: hover) {
	.jk-credits-line a:hover,
	.jk-signup-line a:hover,
	.jk-article__body a:hover {
		color: var(--jk-accent);
	}
}

/* Three more pieces from the same section, in the wide frame */
.jk-more {
	width: 100%;
	max-width: calc(var(--jk-frame) + 2 * var(--jk-gutter));
	margin: 0 auto 96px;
	padding: 0 var(--jk-gutter);
}

.jk-more__title {
	margin: 0 0 24px;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.jk-more__title a {
	color: var(--jk-ink);
	text-decoration: none;
	transition: color 0.2s ease;
}

@media (hover: hover) {
	.jk-more__title a:hover {
		color: var(--jk-accent);
	}
}


/* Phones: photo first and edge to edge, then label and title; text with a small margin */
@media (max-width: 760px) {
	.jk-article {
		padding: 0 16px 64px;
	}

	.jk-article__opening {
		grid-template-columns: 1fr;
		margin: 0 -16px 16px;
	}

	.jk-article__heading {
		padding: 24px 16px 0;
	}

	.jk-article__title {
		font-size: 36px;
	}

	.jk-article__caption {
		margin-left: 16px;
		margin-right: 16px;
	}

	.jk-article__body {
		font-size: 18px;
	}

	.jk-article__body .jk-intro {
		font-size: 21px;
	}

	.jk-credits-line {
		font-size: 13px;
	}

	.jk-article__body h2 {
		font-size: 25px;
	}

	.jk-article__body .wp-block-image {
		display: block;
		margin-left: -16px;
		margin-right: -16px;
	}

	.jk-article__body .wp-block-image img {
		width: 100%;
		max-height: none;
	}

	.jk-article__body .wp-block-image figcaption {
		display: block;
		margin: 12px 16px 0;
	}

	.jk-more {
		margin: 0 auto 64px;
		padding: 0 16px;
	}
}

/* ---------- Page titles and buttons ---------- */

/* Title of the Team page, member pages and (later) section pages: capitals */
.jk-page-title {
	margin: 0 0 12px;
	font-size: 40px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.15;
}

/* Outlined button, like SIGN UP in the footer */
.jk-button {
	display: inline-block;
	padding: 13px 28px;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1.2;
	color: var(--jk-ink);
	text-decoration: none;
	background: none;
	border: 1px solid var(--jk-ink);
	border-radius: 0;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.jk-button:active,
.jk-button:focus-visible {
	color: var(--jk-accent);
	border-color: var(--jk-accent);
}

@media (hover: hover) {
	.jk-button:hover {
		color: var(--jk-accent);
		border-color: var(--jk-accent);
	}
}

.jk-button:disabled {
	opacity: 0.5;
	cursor: default;
}

/* "More from [name] >": plain bold link, normal size, no box */
.jk-more-link {
	display: inline;
	padding: 0;
	font: inherit;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--jk-ink);
	text-decoration: none;
	background: none;
	border: 0;
	cursor: pointer;
	transition: color 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.jk-more-link:active,
.jk-more-link:focus-visible {
	color: var(--jk-accent);
}

@media (hover: hover) {
	.jk-more-link:hover {
		color: var(--jk-accent);
	}
}

.jk-more-link:disabled {
	opacity: 0.5;
	cursor: default;
}

/* ---------- Team page and member pages ---------- */

.jk-team {
	width: 100%;
	max-width: calc(1000px + 2 * var(--jk-gutter)); /* narrower than the homepage, so the photos are smaller */
	margin: 0 auto;
	padding: 24px var(--jk-gutter) 96px;
}

.jk-team > .jk-page-title {
	margin-bottom: 48px;
}

.jk-team--single > .jk-page-title {
	margin-bottom: 12px;
}

.jk-team__member + .jk-team__member {
	margin-top: 80px;
}

.jk-team__name {
	margin: 0 0 6px;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.2;
}

.jk-team__name a {
	color: var(--jk-ink);
	text-decoration: none;
	transition: color 0.2s ease;
}

.jk-team__name a:active,
.jk-team__name a:focus-visible {
	color: var(--jk-accent);
}

@media (hover: hover) {
	.jk-team__name a:hover {
		color: var(--jk-accent);
	}
}

.jk-team__line {
	margin: 0 0 28px;
	font-size: 17px;
	line-height: 1.5;
	color: var(--jk-grey);
}

.jk-team--single .jk-team__line {
	margin-bottom: 40px;
}

.jk-grid--four {
	grid-template-columns: repeat(4, 1fr);
	gap: 32px 24px;
}

.jk-card__roles {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.4;
	color: var(--jk-grey);
}

.jk-card--member .jk-card__title {
	font-size: 15px;
	letter-spacing: 0.03em;
}

.jk-team__more {
	margin: 24px 0 0;
}

/* The list of further pieces on a member page */
.jk-member-list {
	max-width: var(--jk-column);
	margin: 56px 0 0;
	padding: 0;
	list-style: none;
}

.jk-member-list__item {
	padding: 14px 0;
	border-top: 1px solid var(--jk-line);
	font-size: 17px;
	line-height: 1.4;
}

.jk-member-list__item:last-child {
	border-bottom: 1px solid var(--jk-line);
}

.jk-member-list__item a {
	color: var(--jk-ink);
	text-decoration: none;
	transition: color 0.2s ease;
}

.jk-member-list__item a:active,
.jk-member-list__item a:focus-visible {
	color: var(--jk-accent);
}

@media (hover: hover) {
	.jk-member-list__item a:hover {
		color: var(--jk-accent);
	}
}

.jk-member-list__roles {
	margin-left: 8px;
	font-size: 14px;
	color: var(--jk-grey);
}

@media (max-width: 960px) {
	.jk-grid--four {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 760px) {
	.jk-page-title {
		font-size: 32px;
	}

	.jk-team {
		padding: 16px 16px 64px;
	}

	.jk-team > .jk-page-title {
		margin-bottom: 36px;
	}

	.jk-team__member + .jk-team__member {
		margin-top: 56px;
	}

	/* Phones: two rows of two */
	.jk-grid--four {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px 16px;
	}

	.jk-card--member .jk-card__title {
		font-size: 14px;
	}

	.jk-card__roles {
		font-size: 13px;
	}
}

/* ---------- Articles list (jordik.com/articles/) ---------- */

.jk-articles {
	width: 100%;
	max-width: calc(var(--jk-column) + 2 * var(--jk-gutter));
	margin: 0 auto;
	padding: 40px var(--jk-gutter) 64px;
}

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

/* Label on the left, title on the right */
.jk-articles__item {
	display: grid;
	grid-template-columns: 140px 1fr;
	align-items: baseline;
	gap: 16px;
	padding: 16px 0;
	border-top: 1px solid var(--jk-line);
}

.jk-articles__item:last-child {
	border-bottom: 1px solid var(--jk-line);
}

.jk-articles__item .jk-label {
	margin: 0;
}

.jk-articles__title {
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	line-height: 1.35;
	color: var(--jk-ink);
	text-decoration: none;
	transition: color 0.2s ease;
}

.jk-articles__title:active,
.jk-articles__title:focus-visible {
	color: var(--jk-accent);
}

@media (hover: hover) {
	.jk-articles__title:hover {
		color: var(--jk-accent);
	}
}

/* Phones: label above the title */
@media (max-width: 760px) {
	.jk-articles {
		padding: 16px 16px 64px;
	}

	.jk-articles__item {
		grid-template-columns: 1fr;
		gap: 6px;
		padding: 14px 0;
	}

	.jk-articles__title {
		font-size: 16px;
	}
}

/* ---------- Section pages ---------- */

.jk-section {
	width: 100%;
	max-width: calc(var(--jk-frame) + 2 * var(--jk-gutter));
	margin: 0 auto;
	padding: 24px var(--jk-gutter) 96px;
}

.jk-section > .jk-page-title {
	margin-bottom: 32px;
}

/* Lead: 5:4 card photo on the left half, title on the right */
.jk-lead {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	margin-bottom: 48px;
}

.jk-lead__photo {
	display: block;
	aspect-ratio: 5 / 4;
	overflow: hidden;
	background: var(--jk-footer);
}

.jk-lead__photo picture,
.jk-lead__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jk-lead__heading {
	align-self: start;
	padding-top: 40px;
}

.jk-lead__title {
	margin: 0;
	font-size: 40px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.2;
}

.jk-lead__title a,
.jk-sec-card__title a {
	color: var(--jk-ink);
	text-decoration: none;
	transition: color 0.2s ease;
}

.jk-lead__title a:active,
.jk-lead__title a:focus-visible,
.jk-sec-card__title a:active,
.jk-sec-card__title a:focus-visible {
	color: var(--jk-accent);
}

@media (hover: hover) {
	.jk-lead__title a:hover,
	.jk-sec-card__title a:hover {
		color: var(--jk-accent);
	}
}

/* Grid of three: photo and title only, with a thin line between the lead and the rest */
.jk-sec-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 28px;
	padding-top: 48px;
	border-top: 1px solid var(--jk-line-strong); /* a little darker than the other thin lines */
}

.jk-sec-card__photo {
	display: block;
	aspect-ratio: 5 / 4;
	margin-bottom: 14px;
	overflow: hidden;
	background: var(--jk-footer);
}

.jk-sec-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jk-sec-card__title {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	line-height: 1.35;
}

.jk-section__more {
	margin: 40px 0 0;
	text-align: center;
}

.jk-section__empty {
	color: var(--jk-grey);
}

/* Phones: lead with the 5:4 card photo in the text width, a line, then a list
   with a small photo (30%) on the left and the title on the right, top-aligned */
@media (max-width: 760px) {
	.jk-section {
		padding: 16px 16px 64px;
	}

	.jk-section > .jk-page-title {
		margin-bottom: 24px;
	}

	.jk-lead {
		grid-template-columns: 1fr;
		gap: 0;
		margin: 0 0 24px;
	}

	.jk-lead__heading {
		padding: 14px 0 0;
	}

	.jk-lead__title {
		font-size: 28px;
	}

	.jk-sec-grid {
		grid-template-columns: 1fr;
		gap: 20px;
		padding-top: 24px;
	}

	/* Small photo on the left, title on the right */
	.jk-sec-card {
		display: grid;
		grid-template-columns: 30% 1fr;
		align-items: start;
		gap: 16px;
	}

	.jk-sec-card__photo {
		margin: 0;
	}

	.jk-sec-card__title {
		font-size: 15px;
	}

	.jk-section__more {
		margin-top: 28px;
	}
}

/* ---------- Homepage ---------- */

.jk-home {
	width: 100%;
	max-width: calc(var(--jk-frame) + 2 * var(--jk-gutter));
	margin: 0 auto;
	padding: 24px var(--jk-gutter) 96px;
}

/* Lead: the section page lead, with the label above the title, the title the
   same size as the card titles (desktop and phones), and the SEO description underneath */
.jk-lead--home {
	margin-bottom: 64px;
}

.jk-lead--home .jk-lead__title {
	font-size: 19px;
	line-height: 1.3;
}

.jk-lead__desc {
	margin: 14px 0 0;
	font-size: 17px;
	line-height: 1.55;
	color: var(--jk-ink);
}

/* "More [section] >" under each row: the plain bold link of the Team page */
.jk-row__more {
	margin: 40px 0 0;
}

/* One row per section: the section name, then three cards */
.jk-row + .jk-row {
	margin-top: 32px; /* "More [section] >" sits close to the line of the next row */
}

/* The section name: the same size as the page titles (Team, section pages) */
.jk-row__title {
	margin: 0 0 24px;
	padding-top: 24px;
	border-top: 1px solid var(--jk-line);
}

.jk-row__title a {
	color: var(--jk-ink);
	text-decoration: none;
	transition: color 0.2s ease;
}

.jk-row__title a:active,
.jk-row__title a:focus-visible {
	color: var(--jk-accent);
}

@media (hover: hover) {
	.jk-row__title a:hover {
		color: var(--jk-accent);
	}
}

/* Phones: the lead uses the 4:5 opening photo, edge to edge, with the label and
   title underneath; the cards of each row sit under each other, full width */
@media (max-width: 760px) {
	.jk-home {
		padding: 0 16px 64px;
	}

	.jk-lead--home {
		margin: 0 -16px 48px;
	}

	.jk-lead--home .jk-lead__photo {
		aspect-ratio: 4 / 5;
	}

	.jk-lead--home .jk-lead__heading {
		padding: 20px 16px 0;
	}

	.jk-row + .jk-row {
		margin-top: 24px;
	}

	.jk-row__title {
		margin-bottom: 20px;
		padding-top: 20px;
	}

	.jk-lead__desc {
		margin-top: 12px;
		font-size: 16px;
	}

	.jk-row__more {
		margin-top: 32px;
	}
}

/* ---------- Contact page ---------- */

/* Email line right under the title, then the form, all compact */
.jk-contact > .jk-page-title {
	margin-bottom: 8px;
}

.jk-contact__email {
	margin: 0 0 24px;
	font-size: 18px;
	line-height: 1.5;
}

.jk-contact__form,
.jk-signup__form {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

/* Labels as "email" in the footer: small, lowercase, grey */
.jk-contact__label,
.jk-signup__label {
	margin: 0 0 6px;
	font-size: 15px;
	color: var(--jk-grey);
}

/* Fields as the email box in the footer: a clearly visible edge */
.jk-contact__input,
.jk-signup__input {
	width: 100%;
	height: 50px;
	margin: 0 0 14px;
	padding: 0 14px;
	font: inherit;
	font-size: 16px;
	color: var(--jk-ink);
	background: var(--jk-paper);
	border: 1px solid var(--jk-field);
	border-radius: 0;
	-webkit-appearance: none;
}

.jk-contact__textarea {
	height: 176px; /* one line (24px) less than before */
	padding: 12px 14px;
	line-height: 1.5;
	resize: vertical;
}

.jk-contact__input:focus,
.jk-signup__input:focus {
	outline: none;
	border-color: var(--jk-accent);
}

.jk-contact__note {
	margin: -6px 0 20px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--jk-grey);
}

/* Email and phone share one row on desktop and stack on phones */
.jk-contact__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 20px;
	width: 100%;
}

.jk-contact__col {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* Phone: the dialling code dropdown, then the number */
.jk-contact__phone {
	display: flex;
	align-items: stretch;
	gap: 8px;
	width: 100%;
}

.jk-contact__phone .jk-contact__input {
	height: auto;
	min-height: 50px;
	min-width: 0;
}

.jk-contact__phone .jk-contact__input[type="tel"] {
	flex: 1 1 auto;
}

/* The dropdown looks like the other fields, with its own arrow */
.jk-contact__select {
	flex: 0 0 132px;
	width: 132px;
	padding-right: 36px;
	text-overflow: ellipsis;
	white-space: nowrap;
	cursor: pointer;
	-moz-appearance: none;
	appearance: none;
	background-image:
		linear-gradient(45deg, transparent 50%, var(--jk-grey) 50%),
		linear-gradient(135deg, var(--jk-grey) 50%, transparent 50%);
	background-position:
		right 19px center,
		right 14px center;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
}

.jk-contact__select option {
	color: var(--jk-ink);
	background: var(--jk-paper);
}

@media (max-width: 600px) {
	.jk-contact__row {
		grid-template-columns: 1fr;
	}
}

/* The compulsory Privacy Policy box, and the alternative under it */
.jk-contact__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 8px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--jk-ink);
	cursor: pointer;
}

.jk-contact__consent input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--jk-accent);
	cursor: pointer;
}

.jk-contact__alt {
	margin: 0 0 22px 28px; /* lines up with the text of the box */
	font-size: 14px;
	line-height: 1.5;
	color: var(--jk-grey);
}

.jk-contact__consent a {
	color: var(--jk-ink);
	text-decoration: underline; /* clearly a link */
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

.jk-contact__consent a:active,
.jk-contact__consent a:focus-visible {
	color: var(--jk-accent);
}

@media (hover: hover) {
	.jk-contact__consent a:hover {
		color: var(--jk-accent);
	}
}

.jk-contact__sent {
	margin: 0;
	font-size: 18px;
	line-height: 1.5;
}

/* ---------- Subscribe page and the sign-up form in the footer ---------- */

/* Subscribe page: laid out as the Contact page; the privacy line under SIGN UP */
.jk-signup__note {
	margin: 20px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--jk-grey);
}

.jk-signup__done,
.jk-subscribe__done {
	margin: 0;
	font-size: 18px;
	line-height: 1.5;
}

.jk-signup__error,
.jk-subscribe__error {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--jk-ink);
}

/* The hidden field for robots: off screen, never seen by readers */
.jk-contact__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 760px) {
	.jk-contact > .jk-page-title {
		margin-bottom: 6px;
	}

	.jk-contact__email {
		margin-bottom: 20px;
		font-size: 17px;
	}

	.jk-contact__note,
	.jk-contact__alt,
	.jk-signup__note {
		font-size: 13px;
	}

	.jk-contact__consent {
		font-size: 14px;
	}
}

/* ---------- Page not found ---------- */

.jk-notfound > .jk-page-title {
	margin-bottom: 8px;
	text-align: center;
}

/* Text from the "Page not found" page in WordPress: centred in the page */
.jk-notfound__text {
	max-width: var(--jk-column);
	margin: 0 auto;
	text-align: center;
	font-size: 18px;
	line-height: 1.5;
}

.jk-notfound__text > * {
	margin: 0 0 0.7em;
}

.jk-notfound__text > *:last-child {
	margin-bottom: 0;
}

/* Subheadings (Heading H2) as in the articles */
.jk-notfound__text h2 {
	margin: 1.2em 0 0.4em;
	font-size: 30px;
	font-weight: 600;
	text-transform: lowercase;
	line-height: 1.35;
}

.jk-notfound__text h2:first-child {
	margin-top: 0;
}

/* Links as Contact | Legal: no line, fjord blue on hover (a line can be added in the editor with Ctrl + U) */
.jk-notfound__text a {
	color: var(--jk-ink);
	text-decoration: none;
	transition: color 0.2s ease;
}

.jk-notfound__text a:active,
.jk-notfound__text a:focus-visible {
	color: var(--jk-accent);
}

@media (hover: hover) {
	.jk-notfound__text a:hover {
		color: var(--jk-accent);
	}
}

@media (max-width: 760px) {
	.jk-notfound > .jk-page-title {
		margin-bottom: 6px;
	}

	.jk-notfound__text {
		font-size: 17px;
	}

	.jk-notfound__text h2 {
		font-size: 25px;
	}
}

/* ---------- Cookie banner (visitors from Europe only) ---------- */

.jk-consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 900;
	background: var(--jk-paper);
	border-top: 1px solid var(--jk-line-strong);
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

.jk-consent.is-visible {
	transform: translateY(0);
}

.jk-consent__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: calc(var(--jk-frame) + 2 * var(--jk-gutter));
	margin: 0 auto;
	padding: 12px var(--jk-gutter);
}

.jk-consent__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
}

.jk-consent__text a {
	color: var(--jk-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

.jk-consent__buttons {
	display: flex;
	flex-shrink: 0;
	gap: 10px;
}

/* Small versions of the outlined SIGN UP button; Accept filled */
.jk-consent__btn {
	padding: 8px 20px;
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.2;
	color: var(--jk-ink);
	background: none;
	border: 1px solid var(--jk-ink);
	border-radius: 0;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.jk-consent__accept {
	color: var(--jk-paper);
	background: var(--jk-ink);
}

.jk-consent__text a:active,
.jk-consent__text a:focus-visible,
.jk-consent__decline:active,
.jk-consent__decline:focus-visible {
	color: var(--jk-accent);
	border-color: var(--jk-accent);
}

.jk-consent__accept:active,
.jk-consent__accept:focus-visible {
	background: var(--jk-accent);
	border-color: var(--jk-accent);
}

@media (hover: hover) {
	.jk-consent__text a:hover,
	.jk-consent__decline:hover {
		color: var(--jk-accent);
		border-color: var(--jk-accent);
	}

	.jk-consent__accept:hover {
		background: var(--jk-accent);
		border-color: var(--jk-accent);
	}
}

/* While the banner shows, the page gets room at the bottom so nothing is covered */
body.jk-consent-open {
	padding-bottom: 64px;
}

@media (max-width: 760px) {
	.jk-consent__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		padding: 12px 16px;
	}

	.jk-consent__text {
		font-size: 14px;
	}

	.jk-consent__btn {
		flex: 1;
	}

	body.jk-consent-open {
		padding-bottom: 110px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jk-consent {
		transition: none;
	}
}

/* ---------- Temporary placeholder content ---------- */

.jk-placeholder {
	max-width: var(--jk-column);
	margin: 0 auto;
	padding: 80px var(--jk-gutter) 160px;
	text-align: center;
	font-size: 16px;
	color: var(--jk-grey);
}
