/*
Theme Name:        Compagnie Kade
Theme URI:         https://example.com/themes/compagnie-kade
Author:            De Ouwe Compagnie
Description:       A bold, modern theme in white, dark ochre yellow and vermilion: a wide grotesk set large and tight, flat blocks of colour, numbered sections, photographs with an offset colour block. Every page is built from blocks — hero, page header, intro, photo & text, photo cards, quotation, visit and contact — while the design is set in the Customizer: the lead colour, the full palette, four typeface pairings, three header and three footer layouts, widths, spacing and photograph frames.
Version:           2.0.0
Requires at least: 6.3
Tested up to:      6.8
Requires PHP:      7.4
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       compagnie-kade
Tags:              one-column, block-patterns, block-styles, custom-logo, custom-menu, custom-colors, editor-style, translation-ready, food-and-drink
*/

/* ==========================================================================
   Tokens — the colours, fonts and sizes are overwritten by the Customizer
   (inc/dynamic-css.php). The type scale below is fixed: nothing else in the
   stylesheet sets a font size.
   ========================================================================== */

:root {
	--paper: #ffffff;
	--tint: #f9f2e2;
	--rule: #dddcdb;
	--ink: #1d1a16;
	--ink-soft: #5b5854;
	--ink-faint: #8e8c8a;
	--yellow: #c8900e;
	--on-yellow: #1d1a16;
	--red: #d63c17;
	--on-red: #ffffff;
	--lead: #c8900e;
	--on-lead: #1d1a16;
	--detail: #d63c17;
	--on-detail: #ffffff;
	--header-bg: #ffffff;
	--header-ink: #1d1a16;
	--footer-bg: #c8900e;
	--footer-ink: #1d1a16;
	--footer-rule: #8f6c1a;
	--photo-filter: sepia(0.12) saturate(1.08) contrast(1.02);

	--font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--font-body: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--title-stretch: 112%;
	--title-case: none;
	--title-weight: 800;
	--title-track: -0.03em;
	--title-scale: 1;
	--base-size: 17px;
	--logo-height: 200px;
	--logo-scale: 1;

	/* The type scale. Every size in the theme is one of these. */
	--fs-label: 0.78rem;
	--fs-small: 0.9rem;
	--fs-body: 1rem;
	--fs-lead: 1.22rem;
	--fs-title-s: calc(1.3rem * var(--title-scale));
	--fs-title-m: calc(clamp(1.8rem, 3.4vw, 2.8rem) * var(--title-scale));
	--fs-title-l: calc(clamp(2.2rem, 5vw, 4rem) * var(--title-scale));
	--fs-display: calc(clamp(2.6rem, 6.4vw, 5.75rem) * var(--title-scale));
	--track-label: 0.12em;

	--container: 1320px;
	--narrow: 760px;
	--section: clamp(3rem, 9vw, 128px);

	--gutter: clamp(1.25rem, 4vw, 3rem);
	--edge-width: 6px;
	--offset: clamp(8px, 1.4vw, 16px);
	--radius: 0px;
	--admin: var(--wp-admin--admin-bar--height, 0px);

	/* The colour of the thick edges: the lead colour, or the detail colour when the lead is white. */
	--edge: var(--lead);
}

.lead-white {
	--edge: var(--detail);
}

.frames-rounded {
	--radius: 14px;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
	font-size: var(--base-size);
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

img {
	height: auto;
	vertical-align: middle;
}

a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--red);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.22em;
}

a:hover,
a:focus {
	color: var(--red);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	color: inherit;
	font-family: var(--font-display);
	font-stretch: var(--title-stretch);
	font-weight: var(--title-weight);
	letter-spacing: var(--title-track);
	line-height: 1.05;
	text-transform: var(--title-case);
	text-wrap: balance;
}

h1 {
	font-size: var(--fs-title-l);
}

h2 {
	font-size: var(--fs-title-m);
}

h3 {
	font-size: var(--fs-title-s);
}

h4,
h5,
h6 {
	font-size: var(--fs-body);
}

p {
	margin: 0 0 1.2em;
}

p:last-child {
	margin-bottom: 0;
}

address {
	font-style: normal;
}

blockquote {
	margin: 0;
}

figure {
	margin: 0;
}

::selection {
	background: var(--yellow);
	color: var(--on-yellow);
}

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

.skip-link:focus {
	position: fixed;
	top: calc(var(--admin) + 0.5rem);
	left: 0.5rem;
	z-index: 100;
	width: auto;
	height: auto;
	clip: auto;
	clip-path: none;
	padding: 0.75rem 1.25rem;
	background: var(--red);
	color: var(--on-red);
}

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

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.container--narrow {
	max-width: calc(var(--narrow) + var(--gutter) * 2);
}

.section {
	position: relative;
	padding: var(--section) 0;
}

.section--tight {
	padding: calc(var(--section) / 2) 0;
}

.section + .section:not(.section--band) {
	padding-top: 0;
}

.section--band + .section {
	padding-top: var(--section);
}

.bands-tint .section--band {
	background: var(--tint);
}

.bands-line .section--band {
	border-top: var(--edge-width) solid var(--line, var(--edge));
}

.section-head,
.legal__header,
.archive-header {
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.split {
	display: grid;
	gap: clamp(2rem, 6vw, 6rem);
	align-items: center;
	grid-template-columns: 1fr;
}

@media (min-width: 860px) {
	.split {
		grid-template-columns: 5fr 6fr;
	}

	.split--reverse {
		grid-template-columns: 6fr 5fr;
	}

	.split--reverse > :first-child {
		order: 2;
	}
}

/* ==========================================================================
   Label text — every small capitalised line in the theme shares this one rule
   ========================================================================== */

.eyebrow,
.card figcaption,
.text-link,
.button,
.wp-block-button .wp-block-button__link,
.compagnie-reserveren__knop,
.nav-toggle,
.strip,
.text-logo__motto,
.footer-col__title,
.site-footer__bottom,
.entry-meta,
.pagination {
	font-family: var(--font-body);
	font-size: var(--fs-label);
	font-weight: 600;
	letter-spacing: var(--track-label);
	line-height: 1.5;
	text-transform: uppercase;
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 0.6em;
	margin: 0 0 1rem;
	color: inherit;
	font-style: normal;
}

.eyebrow::before {
	flex: 0 0 auto;
	width: 0.7em;
	height: 0.7em;
	background: var(--detail);
	content: "";
}

/* The number a block sets above its title; a block without one shows none. */
.section-numeral {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
	color: var(--detail);
	font-family: var(--font-display);
	font-size: var(--fs-title-s);
	font-stretch: var(--title-stretch);
	font-weight: var(--title-weight);
	letter-spacing: 0;
	line-height: 1;
}

.section-numeral::after {
	width: 2.5rem;
	height: 3px;
	background: currentColor;
	content: "";
}

.section-title {
	font-size: var(--fs-title-m);
}

.section-title--large {
	font-size: var(--fs-title-l);
}

.section-title--small,
.entry-title {
	font-size: var(--fs-title-s);
}

.entry-title a {
	text-decoration: none;
}

.lead,
.is-style-kade-lead {
	font-size: var(--fs-lead);
	line-height: 1.55;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	margin-top: 1.25rem;
	text-decoration: none;
}

.text-link::after {
	content: "→";
	transition: transform 0.2s ease;
}

.text-link:hover::after {
	transform: translateX(4px);
}

.entry-meta {
	color: var(--ink-faint);
}

.notice-box {
	padding: 1rem 1.25rem;
	border-left: var(--edge-width) solid var(--red);
	background: var(--tint);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.button,
.wp-block-button .wp-block-button__link,
.compagnie-reserveren__knop {
	display: inline-block;
	padding: 1em 1.6em;
	border: 2px solid var(--red);
	border-radius: var(--radius);
	background: var(--red);
	color: var(--on-red);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus,
.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus,
.compagnie-reserveren__knop:hover,
.compagnie-reserveren__knop:focus-visible {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--paper);
}

.button--ghost,
.wp-block-button.is-style-outline > .wp-block-button__link {
	border-color: currentColor;
	background: transparent;
	color: inherit;
}

/* "Arrow link": a button set as a quiet text link with an arrow. */
.wp-block-button.is-style-kade-arrow > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
}

.wp-block-button.is-style-kade-arrow > .wp-block-button__link::after {
	content: "→";
	transition: transform 0.2s ease;
}

.wp-block-button.is-style-kade-arrow > .wp-block-button__link:hover {
	background: none;
	color: var(--red);
}

.wp-block-button.is-style-kade-arrow > .wp-block-button__link:hover::after {
	transform: translateX(4px);
}

.button--small {
	padding: 0.7em 1.2em;
}

.button-row,
.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
	margin-top: 2rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	background: var(--header-bg);
	color: var(--header-ink);
}

.has-sticky-header .site-header {
	position: sticky;
	top: var(--admin);
	z-index: 20;
}

/* Below 601px WordPress lets the admin bar scroll away, so the header sticks to the very top. */
@media (max-width: 600px) {
	.has-sticky-header .site-header {
		top: 0;
	}
}

.header-band-line .site-header {
	border-bottom: var(--edge-width) solid var(--edge);
}

.header-band-rule .site-header {
	border-bottom: 1px solid var(--rule);
}

.strip {
	background: var(--detail);
	color: var(--on-detail);
}

.strip__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
	align-items: center;
	justify-content: space-between;
	min-height: 2.4rem;
}

.strip p {
	margin: 0;
}

.strip__phone {
	color: inherit;
	text-decoration: none;
}

.strip__phone:hover {
	color: inherit;
	text-decoration: underline;
}

.site-header__inner {
	display: grid;
	gap: 1rem 2.5rem;
	align-items: center;
	padding-top: clamp(0.9rem, 2vw, 1.4rem);
	padding-bottom: clamp(0.9rem, 2vw, 1.4rem);
}

.text-logo {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.2rem 0.9rem;
	color: inherit;
	text-decoration: none;
}

.text-logo:hover {
	color: inherit;
}

.text-logo__name {
	margin: 0;
	font-family: var(--font-display);
	font-size: calc(var(--fs-title-s) * var(--logo-scale));
	font-stretch: var(--title-stretch);
	font-weight: var(--title-weight);
	letter-spacing: var(--title-track);
	line-height: 1.1;
	text-transform: var(--title-case);
}

.text-logo__motto {
	opacity: 0.7;
}

.text-logo__tagline {
	flex-basis: 100%;
	font-size: var(--fs-small);
	opacity: 0.7;
}

.custom-logo {
	max-height: var(--logo-height);
	width: auto;
}

.primary-nav__list,
.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav__list a {
	padding: 0.3em 0;
	border-bottom: 2px solid transparent;
	color: inherit;
	font-weight: 500;
	text-decoration: none;
}

.nav-uppercase .primary-nav__list a {
	font-size: var(--fs-label);
	font-weight: 600;
	letter-spacing: var(--track-label);
	text-transform: uppercase;
}

.primary-nav__list a:hover,
.primary-nav__list .current-menu-item > a {
	border-bottom-color: var(--red);
	color: inherit;
}

.header-cta {
	display: none;
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 0.6rem;
	padding: 0.6rem 0.9rem;
	border: 2px solid currentColor;
	border-radius: var(--radius);
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	content: "";
}

.nav-toggle__bars {
	position: relative;
}

.nav-toggle__bars::before {
	position: absolute;
	top: -6px;
}

.nav-toggle__bars::after {
	position: absolute;
	top: 6px;
}

@media (min-width: 900px) {
	.header-cta {
		display: block;
	}

	.header-left .site-header__inner {
		grid-template-columns: auto 1fr auto;
	}

	.header-left .primary-nav {
		justify-self: end;
	}

	.header-centred .site-header__inner {
		grid-template-columns: 1fr auto 1fr;
	}

	.header-centred .primary-nav {
		grid-column: 1;
		grid-row: 1;
	}

	.header-centred .site-branding {
		grid-column: 2;
		grid-row: 1;
		text-align: center;
	}

	.header-centred .text-logo {
		justify-content: center;
	}

	.header-centred .header-cta {
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
	}

	.header-stacked .site-header__inner {
		grid-template-columns: 1fr auto;
	}

	.header-stacked .site-branding {
		grid-column: 1 / -1;
		padding-bottom: 1rem;
		border-bottom: 1px solid var(--rule);
	}

	.header-stacked .text-logo__name {
		font-size: calc(var(--fs-title-l) * var(--logo-scale));
	}
}

@media (max-width: 899px) {
	.site-header__inner {
		grid-template-columns: 1fr auto;
	}

	.nav-toggle {
		display: flex;
		justify-self: end;
	}

	.primary-nav {
		grid-column: 1 / -1;
		width: 100%;
	}

	.js .primary-nav {
		display: none;
	}

	.js .primary-nav.is-open {
		display: block;
	}

	.primary-nav__list {
		flex-direction: column;
		gap: 0.75rem;
		padding: 1rem 0 0.5rem;
		border-top: 1px solid var(--rule);
	}

	.primary-nav__list a {
		font-size: var(--fs-title-s);
	}
}

/* ==========================================================================
   Photographs
   ========================================================================== */

.card img {
	display: block;
	width: 100%;
	border-radius: var(--radius);
	filter: var(--photo-filter);
}

.frames-offset .card img {
	width: calc(100% - var(--offset));
	box-shadow: var(--offset) var(--offset) 0 var(--edge);
}

.frames-offset .card-row .card:nth-child(even) img,
.frames-offset .card-grid .card:nth-child(even) img,
.frames-offset .split--reverse .card img {
	box-shadow: var(--offset) var(--offset) 0 var(--detail);
}

.card figcaption {
	display: flex;
	gap: 0.75rem;
	align-items: baseline;
	padding-top: calc(1rem + var(--offset));
}

.frames-square .card figcaption,
.frames-rounded .card figcaption {
	padding-top: 1rem;
}

.card-row,
.card-grid {
	counter-reset: kade-card;
}

.card__number {
	counter-increment: kade-card;
	color: var(--red);
}

.card__number::before {
	content: counter(kade-card, decimal-leading-zero);
}

.card__number--set::before {
	content: none;
}

.card-row .card img,
.card--tall img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.card--wide img {
	aspect-ratio: 21 / 9;
	object-fit: cover;
}

.card-row {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card-grid {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (min-width: 900px) {
	/* The middle photograph drops a little, so the row does not read as a table. */
	.card-row .card:nth-child(2) {
		margin-top: clamp(2rem, 5vw, 4.5rem);
	}
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
	--hero-height: 82vh;
	position: relative;
}

.hero__media img {
	display: block;
	width: 100%;
	height: var(--hero-height);
	object-fit: cover;
	filter: var(--photo-filter);
}

.hero__inner {
	background: var(--lead);
	color: var(--on-lead);
}

.hero .eyebrow::before {
	background: currentColor;
}

.hero__title {
	margin-bottom: 0.35em;
	font-size: var(--fs-display);
	line-height: 0.98;
}

.hero__text {
	max-width: 40rem;
	font-size: var(--fs-lead);
	line-height: 1.5;
}

.hero .wp-block-button .wp-block-button__link {
	border-color: var(--on-lead);
	background: var(--on-lead);
	color: var(--lead);
}

.hero .wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--on-lead);
}

.hero .wp-block-button .wp-block-button__link:hover,
.hero .wp-block-button .wp-block-button__link:focus {
	border-color: var(--red);
	background: var(--red);
	color: var(--on-red);
}

.lead-red .hero .wp-block-button .wp-block-button__link:hover,
.lead-red .hero .wp-block-button .wp-block-button__link:focus {
	border-color: var(--yellow);
	background: var(--yellow);
	color: var(--on-yellow);
}

.lead-white .hero .wp-block-button .wp-block-button__link {
	border-color: var(--red);
	background: var(--red);
	color: var(--on-red);
}

.lead-white .hero .wp-block-button.is-style-outline > .wp-block-button__link {
	border-color: var(--ink);
	background: transparent;
	color: var(--ink);
}

.lead-white .hero__inner {
	border-top: var(--edge-width) solid var(--line, var(--edge));
}

/* Photograph with a colour block over its lower edge. */
.hero--block .hero__panel {
	position: relative;
	max-width: var(--container);
	margin: calc(clamp(5rem, 16vh, 11rem) * -1) auto 0;
	padding: 0 var(--gutter);
}

.hero--block .hero__inner {
	max-width: 58rem;
	padding: clamp(1.75rem, 5vw, 4rem);
}

/* Colour field left, photograph right. */
.hero--split .hero__inner {
	padding: clamp(2rem, 6vw, 5rem) var(--gutter);
}

@media (min-width: 900px) {
	.hero--split {
		display: grid;
		grid-template-columns: 1fr 1fr;
		min-height: var(--hero-height);
	}

	.hero--split .hero__media {
		grid-column: 2;
		grid-row: 1;
	}

	.hero--split .hero__media img {
		height: 100%;
		min-height: var(--hero-height);
	}

	.hero--split .hero__panel {
		display: flex;
		grid-column: 1;
		grid-row: 1;
		background: var(--lead);
	}

	.hero--split .hero__inner {
		align-self: flex-end;
		padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
	}

	.lead-white .hero--split .hero__inner {
		border-top: 0;
	}

	.lead-white .hero--split .hero__panel {
		border-top: var(--edge-width) solid var(--line, var(--edge));
	}
}

/* Title over a darkened photograph. */
.hero--overlay {
	display: grid;
}

.hero--overlay .hero__media,
.hero--overlay .hero__panel {
	grid-area: 1 / 1;
}

.hero--overlay .hero__media img {
	filter: var(--photo-filter) brightness(0.5);
}

/* The photograph's filter lifts it into its own layer; the panel is raised above it. */
.hero--overlay .hero__panel {
	position: relative;
	z-index: 1;
	align-self: end;
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter) clamp(2rem, 7vw, 5rem);
}

.hero--overlay .hero__inner,
.lead-white .hero--overlay .hero__inner {
	max-width: 60rem;
	border: 0;
	background: none;
	color: #fff;
}

.hero--overlay .eyebrow::before {
	background: var(--yellow);
}

.hero.hero--overlay .wp-block-button .wp-block-button__link,
.lead-white .hero.hero--overlay .wp-block-button .wp-block-button__link {
	border-color: var(--red);
	background: var(--red);
	color: var(--on-red);
}

.hero.hero--overlay .wp-block-button.is-style-outline > .wp-block-button__link,
.lead-white .hero.hero--overlay .wp-block-button.is-style-outline > .wp-block-button__link {
	border-color: #fff;
	background: transparent;
	color: #fff;
}

.hero.hero--overlay .wp-block-button .wp-block-button__link:hover,
.hero.hero--overlay .wp-block-button .wp-block-button__link:focus {
	border-color: var(--yellow);
	background: var(--yellow);
	color: var(--on-yellow);
}

/* ==========================================================================
   Sections — the Kade blocks
   ========================================================================== */

.section--intro {
	padding-top: calc(var(--section) * 1.1);
}

/* An Intro straight before loose blocks (a menu, a text) is their heading: it stays close to them. */
.page-content > .section--intro:has(+ :not(.alignfull)) {
	padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.intro,
.visit {
	display: grid;
	gap: clamp(1.5rem, 5vw, 5rem);
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.intro {
		grid-template-columns: 7fr 5fr;
		align-items: start;
	}

	.visit {
		grid-template-columns: 2fr 1fr 1fr;
		align-items: start;
	}
}

.intro__head .section-title,
.visit__head .section-title {
	margin-bottom: 0;
}

.visit__head .wp-block-buttons {
	margin-top: 2rem;
}

.visit__details {
	padding-top: 1.25rem;
	border-top: var(--edge-width) solid var(--line, var(--edge));
}

.visit__details .eyebrow::before {
	display: none;
}

.quote-block {
	padding: calc(var(--section) * 0.9) 0;
	background: var(--lead);
	color: var(--on-lead);
}

.lead-white .quote-block {
	border-top: var(--edge-width) solid var(--line, var(--edge));
	border-bottom: var(--edge-width) solid var(--line, var(--edge));
}

.quote-block__quote p {
	max-width: 22ch;
	margin-bottom: 1.5rem;
	font-family: var(--font-display);
	font-size: var(--fs-title-l);
	font-stretch: var(--title-stretch);
	font-weight: var(--title-weight);
	letter-spacing: var(--title-track);
	line-height: 1.08;
	text-transform: var(--title-case);
	text-wrap: balance;
}

.quote-block .eyebrow::before {
	background: currentColor;
}

/* The quotation is a blockquote, but not one in running text: no line beside it. */
.quote-block .quote-block__quote {
	padding-left: 0;
	border-left: 0;
}

.visit--plain .visit__details {
	border-top: 0;
}

/*
 * Lines a block sets for itself (Lines in the block sidebar) replace the
 * automatic ones from the Customizer. The colour reaches every thick line
 * in the block.
 */
.line-red {
	--line: var(--red);
}

.line-yellow {
	--line: var(--yellow);
}

.line-ink {
	--line: var(--ink);
}

.alignfull.has-lines,
.has-lines.hero .hero__inner,
.has-lines.hero .hero__panel {
	border-top: 0;
	border-bottom: 0;
}

.has-lines.lines-top,
.has-lines.lines-both {
	border-top: var(--edge-width) solid var(--line, var(--edge));
}

.has-lines.lines-bottom,
.has-lines.lines-both {
	border-bottom: var(--edge-width) solid var(--line, var(--edge));
}

/* ==========================================================================
   Page headers, entries and pages
   ========================================================================== */

.page-head__inner {
	padding-top: clamp(2.5rem, 7vw, 6rem);
	padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.page-head__title {
	max-width: 18ch;
	margin: 0;
	font-size: var(--fs-display);
	line-height: 0.98;
}

.page-head__media {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.page-head__media img {
	display: block;
	width: 100%;
	height: clamp(240px, 52vh, 600px);
	border-radius: var(--radius);
	object-fit: cover;
	filter: var(--photo-filter);
}

.frames-offset .page-head__media img {
	width: calc(100% - var(--offset));
	box-shadow: var(--offset) var(--offset) 0 var(--edge);
}

.page-head__meta {
	margin-top: 1.25rem;
}

/* Without a photograph the next block follows the title closely, as loose text does. */
.page-head:not(.page-head--photo) + .section:not(.section--band) {
	padding-top: clamp(1rem, 2vw, 1.5rem);
}

/*
 * A page is a column of blocks. The Kade blocks are full-width sections that
 * space themselves; every other block sits in the text column, with a section
 * of room above and below a run of them.
 */
/* Loose blocks keep the left edge of the sections, so they line up under the titles. */
.page-content > :not(.alignfull) {
	width: min(var(--narrow), 100% - var(--gutter) * 2);
	margin-right: auto;
	margin-left: max(var(--gutter), (100% - var(--container)) / 2 + var(--gutter));
}

.page-content > .alignwide {
	width: min(var(--container) - var(--gutter) * 2, 100% - var(--gutter) * 2);
}

.page-content > :not(.alignfull) + :not(.alignfull) {
	margin-top: 1.2em;
}

.page-content > :not(.alignfull):first-child,
.page-content > :is(.page-head--photo, .hero, .quote-block, .section--band) + :not(.alignfull) {
	margin-top: var(--section);
}

.page-content > :not(.alignfull):last-child,
.page-content > :not(.alignfull):has(+ :is(.page-head, .hero, .quote-block, .section--band)) {
	margin-bottom: var(--section);
}

.wp-block-image.is-style-kade-frame img {
	display: block;
	width: 100%;
	border-radius: var(--radius);
	filter: var(--photo-filter);
}

.frames-offset .wp-block-image.is-style-kade-frame img {
	width: calc(100% - var(--offset));
	box-shadow: var(--offset) var(--offset) 0 var(--edge);
}

.wp-block-image.alignwide.is-style-kade-frame img {
	aspect-ratio: 21 / 9;
	object-fit: cover;
}

.entry-content > * + *,
.flow > * + * {
	margin-top: 1.2em;
}

:is(.entry-content, .flow) :is(h2, h3),
.page-content > :is(h2, h3) {
	margin-top: 1.8em;
}

:is(.entry-content, .flow, .page-content) :is(ul, ol) {
	padding-left: 1.3em;
}

:is(.entry-content, .flow, .page-content) blockquote {
	padding-left: 1.25rem;
	border-left: var(--edge-width) solid var(--edge);
	font-size: var(--fs-lead);
}

.entry + .entry {
	margin-top: 3rem;
	padding-top: 3rem;
	border-top: 1px solid var(--rule);
}

.pagination {
	margin-top: 3rem;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 0.5em 0.9em;
	text-decoration: none;
}

.pagination .current {
	background: var(--red);
	color: var(--on-red);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-layout {
	display: grid;
	gap: clamp(2rem, 5vw, 5rem);
	grid-template-columns: 1fr;
}

@media (min-width: 860px) {
	.contact-layout {
		grid-template-columns: 22rem 1fr;
	}
}

.contact-layout__details .section-title + .contact-details {
	margin-bottom: 2.5rem;
}

.contact-details {
	display: grid;
	gap: 0.35rem;
	line-height: 1.6;
}

.contact-details a {
	text-decoration: none;
}

.contact-details a:hover {
	text-decoration: underline;
	text-decoration-color: var(--red);
}

.contact-hours {
	margin-top: 0.9rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	overflow: hidden;
	padding-top: var(--section);
	background: var(--footer-bg);
	color: var(--footer-ink);
}

.site-footer a {
	color: inherit;
	text-decoration: none;
}

.site-footer a:hover {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: currentColor;
}

.site-footer .text-logo__name {
	font-size: calc(var(--fs-title-m) * var(--logo-scale));
}

.footer-grid {
	display: grid;
	gap: clamp(2rem, 4vw, 3.5rem);
	grid-template-columns: 1fr;
	padding-bottom: 3rem;
}

.footer-col__title {
	margin-bottom: 1rem;
	opacity: 0.75;
}

.footer-menu {
	flex-direction: column;
	gap: 0.5rem;
}

.footer-note {
	max-width: 34ch;
	margin-top: 1rem;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	padding: 1.5rem 0;
	border-top: 2px solid var(--footer-ink);
}

.site-footer__copyright {
	margin: 0;
}

.footer-wordmark {
	margin: 0;
	padding: 0 var(--gutter);
	font-family: var(--font-display);
	/* Sized so the name fills the width: --chars is set in footer.php. */
	font-size: min(15rem, calc((100vw - var(--gutter) * 2) / (var(--chars, 12) * 0.64)));
	font-stretch: var(--title-stretch);
	font-weight: var(--title-weight);
	letter-spacing: -0.05em;
	line-height: 0.78;
	text-transform: var(--title-case);
	white-space: nowrap;
	transform: translateY(0.12em);
}

@media (min-width: 720px) {
	.footer-columns .footer-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.footer-split .footer-grid {
		grid-template-columns: 2fr 1fr 1fr 1fr;
	}

	.footer-stacked .footer-grid,
	.footer-stacked .site-footer__bottom {
		justify-content: center;
		justify-items: center;
		text-align: center;
	}

	.footer-stacked .text-logo,
	.footer-stacked .footer-menu {
		align-items: center;
		justify-content: center;
	}

	.footer-stacked .footer-note {
		margin-inline: auto;
	}

	.footer-stacked .footer-wordmark {
		text-align: center;
	}
}

/* ==========================================================================
   Plugin blocks — the menu, the reservation form and the map in the Kade look.
   The plugins set their own look in :where(), so these rules win.
   ========================================================================== */

/* Compagnie Menu */
.compagnie-menu {
	--compagnie-menu-accent: var(--detail);
}

.compagnie-menu__gang-titel {
	font-size: var(--fs-title-s);
}

.compagnie-menu__gang-titel::after {
	height: 3px;
	background: var(--detail);
}

.compagnie-menu__gang-beschrijving,
.compagnie-menu__gerecht-inhoud {
	color: var(--ink-soft);
	opacity: 1;
}

/* A dish is read, not a heading: body type, as typed. */
.compagnie-menu__gerecht-naam {
	font-family: var(--font-body);
	font-size: var(--fs-body);
	font-stretch: normal;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.35;
	text-transform: none;
}

.compagnie-menu__gerecht-inhoud {
	font-size: var(--fs-small);
}

.compagnie-menu__stippen {
	border-bottom-color: var(--rule);
}

/* Compagnie Reserveren */
.compagnie-reserveren {
	--compagnie-reserveren-accent: var(--red);
	--compagnie-reserveren-accent-tekst: var(--on-red);
	--compagnie-reserveren-paneel: var(--paper);
	--compagnie-reserveren-paneel-tekst: var(--ink);
}

.page-content .compagnie-reserveren {
	--cr-radius: var(--radius);
	--cr-lijn: var(--rule);
}

.compagnie-reserveren__stap-titel {
	font-family: var(--font-display);
	font-size: var(--fs-title-s);
	font-stretch: var(--title-stretch);
	font-weight: var(--title-weight);
	letter-spacing: var(--title-track);
	line-height: 1.1;
	text-transform: var(--title-case);
}

.compagnie-reserveren__nummer {
	border-radius: var(--radius);
	background: var(--detail);
	color: var(--on-detail);
	font-family: var(--font-body);
	letter-spacing: 0;
}

.compagnie-reserveren__paneel {
	border-radius: var(--radius);
}

.compagnie-reserveren__tijd {
	border-color: var(--rule);
	border-radius: var(--radius);
}

.compagnie-reserveren__knop {
	min-height: 0;
	margin-top: 0.5rem;
	cursor: pointer;
}

.compagnie-reserveren__knop:hover {
	opacity: 1;
}

/* Compagnie Locatie */
.compagnie-locatie {
	margin-top: 2rem;
}

.compagnie-locatie__kaart {
	border-radius: var(--radius);
}

/* ==========================================================================
   WordPress bits
   ========================================================================== */

.alignwide {
	max-width: var(--container);
}

.alignfull {
	max-width: none;
}

.wp-caption-text,
.wp-element-caption {
	color: var(--ink-faint);
	font-size: var(--fs-small);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.button-row {
		display: none;
	}

	body {
		background: #fff;
		color: #000;
	}
}
