/*
Theme Name: Vioolschool
Description: Theme for Vioolschool Voorburg (violin and viola lessons in Voorburg / The Hague). Warm, classical look with an off-canvas mobile menu, a full-width photo hero on the home page, and the Featured Image of each page as its header image. Includes block patterns for the Home, Over ons and Contact pages.
Author: Plethora Design
Version: 1.1.1
Requires at least: 6.5
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: vioolschool
*/

/*
 * Colours, fonts, font sizes and block styles are defined in theme.json and
 * available here as --wp--preset--* custom properties. This file styles the
 * theme's own markup: header, menu, heroes, footer and post lists.
 */

:root {
	--cream: var(--wp--preset--color--cream, #f8f3ec);
	--paper: var(--wp--preset--color--paper, #fffdf9);
	--ink: var(--wp--preset--color--ink, #2b2220);
	--muted: var(--wp--preset--color--muted, #6b5d55);
	--burgundy: var(--wp--preset--color--burgundy, #7b2d3b);
	--burgundy-dark: var(--wp--preset--color--burgundy-dark, #4f1b25);
	--varnish: var(--wp--preset--color--varnish, #b5713a);
	--varnish-light: #e8b98b;
	--line: var(--wp--preset--color--line, #e3d8cb);
	--display: var(--wp--preset--font-family--display, Georgia, serif);
	--body: var(--wp--preset--font-family--body, Arial, sans-serif);
	--wide: 1200px;
	--gutter: 20px;
	--header-height: 72px;
	--drawer-width: min(86vw, 360px);
	--speed: .3s;
}


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

*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-height) + 16px);
}
body {
	background: var(--cream);
	color: var(--ink);
	font-family: var(--body);
	margin: 0;
	-webkit-font-smoothing: antialiased;
}
img,
video {
	height: auto;
	max-width: 100%;
}

/* Keep the footer at the bottom of the window on short pages. */
.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
}
.site-main {
	flex: 1 0 auto;
}
:focus-visible {
	outline: 2px solid var(--varnish);
	outline-offset: 3px;
}
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.skip-link:focus {
	background: var(--paper);
	clip: auto;
	clip-path: none;
	color: var(--ink);
	height: auto;
	left: 8px;
	padding: 1em 1.5em;
	top: 8px;
	width: auto;
	z-index: 1000;
}

/* Buttons used in theme templates (block buttons get theirs from theme.json). */
.button,
.button:visited {
	background: var(--varnish);
	border: 2px solid var(--varnish);
	border-radius: 999px;
	color: #fff;
	display: inline-block;
	font-weight: 700;
	line-height: 1.2;
	padding: .8em 1.6em;
	text-decoration: none;
	transition: background-color var(--speed), border-color var(--speed), color var(--speed);
}
.button:hover {
	background: var(--burgundy);
	border-color: var(--burgundy);
	color: #fff;
}
.button-outline,
.button-outline:visited {
	background: transparent;
	border-color: currentColor;
	color: inherit;
}
.button-outline:hover {
	background: var(--paper);
	border-color: var(--paper);
	color: var(--burgundy-dark);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="password"],
textarea {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 4px;
	color: var(--ink);
	font: inherit;
	padding: .65em .8em;
	width: 100%;
}
input[type="submit"],
button[type="submit"] {
	background: var(--varnish);
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	padding: .7em 1.4em;
}
.search-form {
	display: flex;
	gap: .5em;
}
.search-form label {
	flex: 1;
}


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

.site-header {
	background: rgba(255, 253, 249, .94);
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
}
@supports (backdrop-filter: blur(8px)) {
	.site-header {
		backdrop-filter: blur(8px);
		background: rgba(255, 253, 249, .85);
	}
}
@media (max-width: 600px) {
	/* The admin bar scrolls away on small screens. */
	.site-header {
		top: 0;
	}
}
.site-header-inner {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin: 0 auto;
	max-width: calc(var(--wide) + 2 * var(--gutter));
	min-height: var(--header-height);
	padding: 8px var(--gutter);
}
.site-branding {
	align-items: center;
	display: flex;
	gap: 12px;
	min-width: 0;
}
.site-title {
	font-family: var(--display);
	font-size: clamp(1.45rem, 4.6vw, 1.85rem);
	font-weight: 600;
	letter-spacing: .01em;
	line-height: 1.1;
	margin: 0;
}
.site-title a {
	color: var(--burgundy-dark);
	text-decoration: none;
}
.site-title a:hover {
	color: var(--burgundy);
}


/* =Menu: shared
----------------------------------------------- */

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.main-navigation a {
	display: block;
	text-decoration: none;
}
.menu-toggle,
.menu-close,
.submenu-toggle {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 6px;
	color: var(--ink);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	justify-content: center;
	padding: 0;
}
.nav-backdrop[hidden] {
	display: none;
}


/* =Menu: desktop
----------------------------------------------- */

@media (min-width: 900px) {
	.menu-toggle,
	.nav-drawer-header,
	.nav-backdrop,
	.submenu-toggle {
		display: none !important;
	}
	.main-navigation > div > ul {
		display: flex;
		flex-wrap: wrap;
		gap: 4px;
		justify-content: flex-end;
	}
	.main-navigation li {
		position: relative;
	}
	.main-navigation a {
		color: var(--ink);
		font-size: .98rem;
		font-weight: 600;
		letter-spacing: .02em;
		padding: 10px 14px;
		position: relative;
		transition: color var(--speed);
	}
	.main-navigation > div > ul > li > a::after {
		background: var(--varnish);
		bottom: 4px;
		content: "";
		height: 2px;
		left: 14px;
		position: absolute;
		right: 14px;
		transform: scaleX(0);
		transition: transform var(--speed);
	}
	.main-navigation li:hover > a,
	.main-navigation li:focus-within > a {
		color: var(--burgundy);
	}
	.main-navigation > div > ul > li:hover > a::after,
	.main-navigation > div > ul > li:focus-within > a::after,
	.main-navigation .current-menu-item > a::after,
	.main-navigation .current_page_item > a::after,
	.main-navigation .current-menu-ancestor > a::after,
	.main-navigation .current_page_ancestor > a::after {
		transform: scaleX(1);
	}
	.main-navigation .current-menu-item > a,
	.main-navigation .current_page_item > a,
	.main-navigation .current-menu-ancestor > a,
	.main-navigation .current_page_ancestor > a {
		color: var(--burgundy);
	}

	/* Dropdowns */
	.main-navigation ul ul {
		background: var(--paper);
		border: 1px solid var(--line);
		border-radius: 8px;
		box-shadow: 0 12px 32px rgba(43, 34, 32, .14);
		left: 0;
		min-width: 220px;
		opacity: 0;
		padding: 6px;
		position: absolute;
		top: calc(100% + 4px);
		transform: translateY(-4px);
		transition: opacity .15s, transform .15s, visibility 0s .15s;
		visibility: hidden;
		z-index: 100;
	}
	.main-navigation ul ul::before {
		/* Bridge the gap so the dropdown stays open while moving the mouse. */
		content: "";
		height: 8px;
		left: 0;
		position: absolute;
		right: 0;
		top: -8px;
	}
	.main-navigation ul ul ul {
		left: 100%;
		top: -7px;
	}
	.main-navigation li:hover > ul,
	.main-navigation li:focus-within > ul {
		opacity: 1;
		transform: none;
		transition: opacity .15s, transform .15s;
		visibility: visible;
	}
	.main-navigation ul ul a {
		border-radius: 5px;
		padding: 9px 12px;
	}
	.main-navigation ul ul a:hover {
		background: var(--cream);
	}
}


/* =Menu: mobile drawer
----------------------------------------------- */

@media (max-width: 899px) {
	/* Hamburger button; the three bars morph into a cross when open. */
	.menu-toggle {
		flex: none;
		gap: 10px;
		margin-right: -8px;
		min-height: 44px;
		padding: 0 8px;
	}
	.menu-toggle:hover {
		color: var(--burgundy);
	}
	.menu-toggle-label {
		font-size: .8rem;
		font-weight: 800;
		letter-spacing: .12em;
		text-transform: uppercase;
	}
	@media (max-width: 379px) {
		/* Very narrow phones: icon only, label stays for screen readers. */
		.menu-toggle-label {
			clip-path: inset(50%);
			height: 1px;
			overflow: hidden;
			position: absolute;
			width: 1px;
		}
	}
	.menu-toggle-icon,
	.menu-toggle-icon::before,
	.menu-toggle-icon::after,
	.menu-toggle-icon span {
		background: currentColor;
		border-radius: 2px;
		display: block;
		height: 2px;
		width: 22px;
	}
	.menu-toggle-icon {
		background: transparent;
		height: 16px;
		position: relative;
	}
	.menu-toggle-icon::before,
	.menu-toggle-icon::after,
	.menu-toggle-icon span {
		content: "";
		left: 0;
		position: absolute;
		transition: transform var(--speed), opacity var(--speed);
	}
	.menu-toggle-icon::before { top: 0; }
	.menu-toggle-icon span { top: 7px; }
	.menu-toggle-icon::after { top: 14px; }
	.nav-open .menu-toggle-icon::before { transform: translateY(7px) rotate(45deg); }
	.nav-open .menu-toggle-icon span { opacity: 0; }
	.nav-open .menu-toggle-icon::after { transform: translateY(-7px) rotate(-45deg); }

	/* Off-canvas drawer */
	.js .main-navigation {
		background: var(--paper);
		box-shadow: -12px 0 40px rgba(43, 34, 32, .2);
		display: flex;
		flex-direction: column;
		height: 100%;
		height: 100dvh;
		overflow-y: auto;
		overscroll-behavior: contain;
		position: fixed;
		right: 0;
		top: 0;
		transform: translateX(100%);
		transition: transform var(--speed) ease, visibility 0s var(--speed);
		visibility: hidden;
		width: var(--drawer-width);
		z-index: 200;
	}
	.js.nav-open .main-navigation {
		transform: none;
		transition: transform var(--speed) ease;
		visibility: visible;
	}
	.nav-backdrop {
		background: rgba(43, 34, 32, .5);
		inset: 0;
		opacity: 0;
		position: fixed;
		transition: opacity var(--speed);
		z-index: 150;
	}
	.nav-open .nav-backdrop {
		opacity: 1;
	}
	.nav-open,
	.nav-open body {
		overflow: hidden;
	}

	.nav-drawer-header {
		align-items: center;
		border-bottom: 1px solid var(--line);
		display: flex;
		justify-content: space-between;
		min-height: var(--header-height);
		padding: 8px 12px 8px 24px;
	}
	.nav-drawer-title {
		color: var(--burgundy-dark);
		font-family: var(--display);
		font-size: 1.35rem;
		font-weight: 600;
	}
	.menu-close {
		height: 44px;
		width: 44px;
	}
	.menu-close:hover {
		color: var(--burgundy);
	}

	.main-navigation > div {
		padding: 12px 0 32px;
	}
	.main-navigation li {
		display: flex;
		flex-wrap: wrap;
	}
	.main-navigation li > a {
		flex: 1;
	}
	.main-navigation a {
		border-left: 3px solid transparent;
		color: var(--ink);
		font-family: var(--display);
		font-size: 1.6rem;
		font-weight: 600;
		line-height: 1.2;
		padding: 12px 24px 12px 21px;
	}
	.main-navigation a:hover {
		color: var(--burgundy);
	}
	.main-navigation .current-menu-item > a,
	.main-navigation .current_page_item > a {
		border-left-color: var(--varnish);
		color: var(--burgundy);
	}

	/* Submenus: collapsed until their toggle is used. */
	.submenu-toggle {
		color: var(--muted);
		margin-right: 12px;
		width: 48px;
	}
	.submenu-toggle svg {
		transition: transform var(--speed);
	}
	.submenu-open > .submenu-toggle svg {
		transform: rotate(180deg);
	}
	.main-navigation ul ul {
		display: none;
		flex-basis: 100%;
		padding-bottom: 8px;
	}
	.no-js .main-navigation ul ul,
	.submenu-open > ul {
		display: block !important;
	}
	.main-navigation ul ul a {
		font-family: var(--body);
		font-size: 1.05rem;
		padding: 9px 24px 9px 41px;
	}

	/* Without JavaScript the menu is simply listed below the title. */
	.no-js .site-header-inner {
		flex-wrap: wrap;
	}
	.no-js .menu-toggle,
	.no-js .nav-drawer-header {
		display: none;
	}
	.no-js .main-navigation {
		flex-basis: 100%;
	}
	.no-js .main-navigation a {
		font-size: 1.2rem;
		padding: 6px 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--speed: 0s;
	}
}


/* =Home hero
----------------------------------------------- */

.home-hero {
	align-items: center;
	background: radial-gradient(ellipse at 30% 20%, var(--burgundy) 0%, var(--burgundy-dark) 70%);
	color: var(--paper);
	display: flex;
	isolation: isolate;
	min-height: clamp(460px, 80vh, 780px);
	overflow: hidden;
	position: relative;
}
.home-hero.has-image::after {
	background:
		linear-gradient(90deg, rgba(43, 20, 22, .82) 0%, rgba(43, 20, 22, .55) 45%, rgba(43, 20, 22, .1) 80%),
		linear-gradient(0deg, rgba(43, 20, 22, .45) 0%, transparent 40%);
	content: "";
	inset: 0;
	position: absolute;
	z-index: -1;
}
.hero-image {
	height: 100% !important;
	inset: 0;
	object-fit: cover;
	position: absolute;
	width: 100%;
	z-index: -2;
}
.home-hero-inner {
	margin: 0 auto;
	max-width: calc(var(--wide) + 2 * var(--gutter));
	padding: 72px var(--gutter);
	width: 100%;
}
.home-hero-inner > * {
	max-width: 620px;
}
.home-hero-kicker,
.page-hero-kicker {
	color: var(--varnish-light);
	font-size: .85rem;
	font-weight: 800;
	letter-spacing: .16em;
	margin: 0 0 .75rem;
	text-transform: uppercase;
}
.home-hero-title {
	color: #fff;
	font-family: var(--display);
	font-size: clamp(3rem, 9vw, 5.5rem);
	font-weight: 600;
	line-height: .98;
	margin: 0 0 1.25rem;
	text-wrap: balance;
}
.home-hero-text {
	font-size: clamp(1.1rem, 2.4vw, 1.3rem);
	line-height: 1.5;
	margin: 0 0 2rem;
}
.home-hero-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 2rem;
}
.home-hero-buttons .button-outline {
	color: #fff;
}
@media (max-width: 699px) {
	.home-hero {
		align-items: flex-end;
		min-height: clamp(480px, 82svh, 680px);
	}
	.home-hero.has-image::after {
		background: linear-gradient(0deg, rgba(43, 20, 22, .9) 0%, rgba(43, 20, 22, .6) 45%, rgba(43, 20, 22, .05) 75%);
	}
	.home-hero-inner {
		padding-bottom: 40px;
	}
}


/* =Page hero (title band / Featured Image header)
----------------------------------------------- */

.page-hero {
	padding: clamp(3rem, 8vw, 5rem) var(--gutter) clamp(2rem, 5vw, 3rem);
	text-align: center;
}
.page-hero-inner {
	margin: 0 auto;
	max-width: var(--wide);
}
.page-hero-title {
	color: var(--burgundy-dark);
	font-family: var(--display);
	font-size: clamp(2.4rem, 6vw, 3.6rem);
	font-weight: 600;
	line-height: 1.05;
	margin: 0;
	text-wrap: balance;
}
.page-hero:not(.has-image) .page-hero-title::after {
	background: var(--varnish);
	content: "";
	display: block;
	height: 2px;
	margin: 1.25rem auto 0;
	width: 56px;
}
.page-hero:not(.has-image) .page-hero-kicker {
	color: var(--varnish);
}
.page-hero.has-image {
	align-items: flex-end;
	color: #fff;
	display: flex;
	isolation: isolate;
	min-height: clamp(280px, 46vh, 480px);
	overflow: hidden;
	position: relative;
	text-align: left;
}
.page-hero.has-image::after {
	background: linear-gradient(0deg, rgba(43, 20, 22, .85) 0%, rgba(43, 20, 22, .35) 45%, transparent 75%);
	content: "";
	inset: 0;
	position: absolute;
	z-index: -1;
}
.page-hero.has-image .page-hero-inner {
	width: 100%;
}
.page-hero.has-image .page-hero-title {
	color: #fff;
}


/* =Content
----------------------------------------------- */

.entry-content {
	padding: var(--wp--preset--spacing--50, 3rem) var(--gutter);
}
.entry-content:has(> .alignfull:first-child) {
	padding-top: 0;
}
.entry-content:has(> .alignfull:last-child) {
	padding-bottom: 0;
}
.entry-content > .alignfull {
	margin-left: calc(-1 * var(--gutter)) !important;
	margin-right: calc(-1 * var(--gutter)) !important;
	max-width: none;
	width: auto;
}
/* Full-width bands sit flush against each other and the page hero. */
.entry-content > .alignfull,
.entry-content > .alignfull + * {
	margin-block-start: 0;
}
.entry-content > :first-child {
	margin-top: 0;
}
.entry-content::after {
	clear: both;
	content: "";
	display: table;
}
.page-links,
.edit-link {
	font-size: .9rem;
}

/* Post lists */
.post-list {
	display: grid;
	gap: 24px;
	margin: 0 auto;
	max-width: calc(900px + 2 * var(--gutter));
	padding: 0 var(--gutter) var(--wp--preset--spacing--60, 4rem);
}
.post-card {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 8px;
	display: grid;
	overflow: hidden;
}
@media (min-width: 700px) {
	.post-card:has(.post-card-image) {
		grid-template-columns: 280px 1fr;
	}
}
.post-card-image img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}
.post-card-body {
	padding: 24px 28px;
}
.post-card .entry-title {
	font-family: var(--display);
	font-size: 1.75rem;
	margin: 0 0 .5rem;
}
.post-card .entry-title a {
	color: var(--burgundy-dark);
	text-decoration: none;
}
.post-card .entry-title a:hover {
	color: var(--burgundy);
}
.entry-meta {
	color: var(--muted);
	font-size: .85rem;
	letter-spacing: .06em;
	margin: 0 0 .25rem;
	text-transform: uppercase;
}
.entry-summary p {
	margin: 0;
}
.entry-footer-wrap {
	border-top: 1px solid var(--line);
	margin: 0 auto var(--wp--preset--spacing--50, 3rem);
	max-width: 720px;
	padding: 1.5rem var(--gutter) 0;
}
.entry-footer-wrap footer.entry-meta {
	text-transform: none;
}
.nav-links {
	display: flex;
	gap: 1em;
	justify-content: space-between;
	margin-top: 1rem;
}
.nav-next {
	margin-left: auto;
	text-align: right;
}


/* =Comments
----------------------------------------------- */

.comments-area {
	margin: 0 auto var(--wp--preset--spacing--50, 3rem);
	max-width: calc(720px + 2 * var(--gutter));
	padding: 0 var(--gutter);
}
.commentlist,
.commentlist .children {
	list-style: none;
	margin: 0;
	padding: 0;
}
.commentlist .children {
	margin-left: 1.5em;
}
.commentlist .comment {
	border-top: 1px solid var(--line);
	padding: 1.5em 0;
}
.comment-author .avatar {
	border-radius: 50%;
	float: left;
	margin-right: 1em;
}
.says {
	display: none;
}
.comment-form label {
	display: block;
	font-size: .9rem;
	font-weight: 700;
}


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

.site-footer {
	background: var(--burgundy-dark);
	color: rgba(255, 253, 249, .85);
	font-size: .95rem;
}
.site-footer a {
	color: #fff;
}
.site-footer a:hover {
	color: var(--varnish-light);
}
.site-footer-inner {
	display: grid;
	gap: 32px;
	margin: 0 auto;
	max-width: calc(var(--wide) + 2 * var(--gutter));
	padding: 56px var(--gutter) 40px;
}
@media (min-width: 800px) {
	.site-footer-inner:has(.site-footer-widgets) {
		grid-template-columns: 1fr 2fr;
	}
}
.site-footer-title {
	color: #fff;
	font-family: var(--display);
	font-size: 1.9rem;
	font-weight: 600;
	line-height: 1.1;
	margin: 0 0 .5rem;
}
.site-footer-description {
	margin: 0;
}
.site-footer-widgets {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.site-footer .widget-title {
	color: var(--varnish-light);
	font-family: var(--body);
	font-size: .8rem;
	font-weight: 800;
	letter-spacing: .14em;
	margin: 0 0 .75rem;
	text-transform: uppercase;
}
.site-footer .widget p {
	margin: 0 0 .5rem;
}
.site-info {
	border-top: 1px solid rgba(255, 253, 249, .15);
	font-size: .85rem;
	margin: 0 auto;
	max-width: calc(var(--wide) + 2 * var(--gutter));
	padding: 18px var(--gutter) 24px;
}
