/*
Theme Name: Zakynthos Travel
Description: An independent travel theme for Zakynthos with lightweight, accessible destination templates.
Version: 1.0.8
Requires at least: 6.6
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: zakynthos-travel
*/

:root {
	--zt-paper: #f7f5ef;
	--zt-white: #fffefa;
	--zt-ink: #112c29;
	--zt-muted: #485d56;
	--zt-teal: #0d5950;
	--zt-mist: #dcebe3;
	--zt-line: #d5ddd4;
	--zt-serif: Georgia, "Times New Roman", serif;
	--zt-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--zt-gutter: clamp(1rem, 5vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	background: var(--zt-paper);
	color: var(--zt-ink);
	font: 1rem/1.65 var(--zt-sans);
}
@media (min-width: 64rem) {
	html { background: #e9ede7; }
	body {
		--zt-gutter: clamp(1.5rem, 3vw, 2.75rem);
		max-width: 72.5rem;
		margin-inline: auto;
		width: calc(100% - 4rem);
	}
}
a { color: var(--zt-teal); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid #ac4d24; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 {
	font-family: var(--zt-serif);
	font-weight: 400;
	line-height: 1.07;
	letter-spacing: -.035em;
}
.zt-width { width: min(100% - 2 * var(--zt-gutter), 78rem); margin-inline: auto; }
.zt-skip {
	position: absolute;
	z-index: 100;
	inset: .5rem auto auto .5rem;
	padding: .65rem 1rem;
	background: var(--zt-white);
	transform: translateY(-180%);
}
.zt-skip:focus { transform: none; }
.zt-header { border-bottom: 1px solid var(--zt-line); }
.zt-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	min-height: 5rem;
	padding-block: .7rem;
}
.zt-brand {
	display: inline-flex;
	align-items: center;
	gap: .65rem;
	color: var(--zt-ink);
	font: 700 1.6rem/1 var(--zt-serif);
	letter-spacing: -.05em;
	text-decoration: none;
}
.zt-brand img { max-width: 11rem; max-height: 3.2rem; width: auto; }
.zt-brand-mark {
	display: grid;
	flex: 0 0 2.08rem;
	width: 2.08rem;
	height: 2.08rem;
	place-items: center;
	border: 1px solid var(--zt-teal);
	border-radius: 50%;
}
.zt-brand-mark span {
	width: .8rem;
	height: .8rem;
	border-top: 2px solid var(--zt-teal);
	border-right: 2px solid var(--zt-teal);
	transform: rotate(-45deg) translate(-.1rem, .16rem);
}
.zt-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0 clamp(.6rem, 2.6vw, 2.25rem);
	margin: 0;
	padding: 0;
	list-style: none;
}
.zt-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	color: inherit;
	font-size: .9rem;
	font-weight: 650;
	text-decoration: none;
}
.zt-nav a:hover, .zt-nav a[aria-current="page"] { text-decoration: underline; }
.zt-hero {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	min-height: clamp(32rem, 47vw, 44rem);
	max-width: 100rem;
	margin-inline: auto;
}
.zt-hero-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: clamp(2.8rem, 7vw, 8rem) var(--zt-gutter);
}
.zt-kicker {
	margin: 0 0 .9rem;
	color: var(--zt-teal);
	font-size: .77rem;
	font-weight: 750;
	letter-spacing: .105em;
	text-transform: uppercase;
}
.zt-hero h1 {
	max-width: 8ch;
	margin: 0;
	font-size: clamp(3.2rem, 6.1vw, 6rem);
	line-height: .93;
	letter-spacing: -.062em;
}
.zt-intro {
	max-width: 30rem;
	margin: 1.5rem 0 1.75rem;
	color: var(--zt-muted);
	font-size: clamp(1rem, 1.3vw, 1.2rem);
}
.zt-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.05rem; }
.zt-button, .zt-text-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	gap: .6rem;
	font-size: .9rem;
	font-weight: 700;
}
.zt-button {
	padding: .7rem 1.05rem;
	border-radius: .35rem;
	background: var(--zt-teal);
	color: #fff;
	text-decoration: none;
}
.zt-button:hover { background: var(--zt-ink); }
.zt-hero-media {
	position: relative;
	overflow: hidden;
	min-width: 0;
	background: linear-gradient(142deg, #87bcac, #226b65 52%, #163c4c);
}
.zt-hero-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 52% 52%;
}
.zt-hero-media figcaption {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	padding: .35rem .7rem;
	border-radius: .25rem;
	background: #112c29;
	color: #fff;
	font-size: .75rem;
}
.zt-section { padding-block: clamp(2.6rem, 6vw, 5.25rem); }
.zt-section h2, .zt-planning h2 {
	margin: 0 0 1.45rem;
	font-size: clamp(2rem, 4.6vw, 3.55rem);
}
.zt-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(.9rem, 2.1vw, 1.8rem);
}
.zt-card {
	display: block;
	overflow: hidden;
	border: 1px solid var(--zt-line);
	border-radius: .75rem;
	background: var(--zt-white);
	color: inherit;
	text-decoration: none;
}
.zt-card:hover { border-color: var(--zt-teal); }
.zt-card:hover h3 { text-decoration: underline; text-underline-offset: .16em; }
.zt-card-media { aspect-ratio: 1.65; background: var(--zt-mist); overflow: hidden; }
.zt-card-media img { width: 100%; height: 100%; object-fit: cover; }
.zt-card-copy { padding: 1.25rem clamp(1rem, 2.2vw, 1.5rem); }
.zt-card h2, .zt-card h3 { margin: 0; font-size: clamp(1.35rem, 2.05vw, 2rem); }
.zt-card h3 { display: flex; justify-content: space-between; gap: .7rem; }
.zt-card h3 span, .zt-planning-links span { color: var(--zt-teal); font: 700 1rem/1 var(--zt-sans); }
.zt-card p { margin: .6rem 0 0; color: var(--zt-muted); font-size: .94rem; }
.zt-planning { background: var(--zt-mist); }
.zt-home-notice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .65rem 2rem;
	margin-block-start: clamp(1.1rem, 3vw, 2.5rem);
	padding: clamp(1rem, 3vw, 1.65rem);
	background: var(--zt-mist);
	border-inline-start: .25rem solid var(--zt-teal);
}
.zt-home-notice h2 { margin: 0 0 .35rem; font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.zt-home-notice p { max-width: 67ch; margin: 0; }
.zt-home-editorial { padding-block-start: clamp(1.5rem, 3vw, 3rem); }
.zt-home-editorial > p { max-width: 72ch; }
.zt-home-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr));
	gap: clamp(1rem, 3vw, 2rem);
	margin-block-start: 1.4rem;
}
.zt-home-grid article {
	display: grid;
	grid-template-rows: subgrid;
	grid-row: span 4;
	gap: .75rem;
	padding: 1rem;
	border: 1px solid #cbd9ce;
	border-radius: .75rem;
}
.zt-home-grid article > p { margin: 0; }
.zt-home-grid article > a { justify-self: start; }
.zt-coast-photo { position: relative; margin: 0; }
.zt-coast-photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1.85;
	object-fit: cover;
	border-radius: .45rem;
}
.zt-coast-photo figcaption {
	position: absolute;
	inset: auto .4rem .4rem auto;
	padding: .22rem .45rem;
	background: #fff;
	color: #17332c;
	font-size: .72rem;
	border-radius: .25rem;
}
.zt-home-grid h3 { margin: 0; font-size: clamp(1.35rem, 2.3vw, 1.75rem); }
.zt-home-days { max-width: 72ch; padding-inline-start: 1.35rem; }
.zt-home-days li + li { margin-block-start: .7rem; }
.zt-planning-inner {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 1.5rem 3rem;
	align-items: center;
	padding-block: clamp(2rem, 5vw, 4rem);
}
.zt-planning h2 { margin: 0; }
.zt-planning-links a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: .8rem;
	padding: .95rem 0;
	border-bottom: 1px solid #a8bdb0;
	font-weight: 650;
}
.zt-footer { background: var(--zt-ink); color: #f5f8f4; }
.zt-footer-inner {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem 2rem;
	padding-block: 2.1rem;
}
.zt-footer-name { color: inherit; font: 1.9rem/1 var(--zt-serif); text-decoration: none; }
.zt-footer-inner p, .zt-credits { color: #d2e1d7; font-size: .88rem; }
.zt-footer-inner p { margin: .5rem 0 0; }
.zt-credits { padding-block: 0 1.4rem; }
.zt-credits summary { cursor: pointer; }
.zt-credits a { color: inherit; }
.zt-page { padding-block: clamp(2.5rem, 6vw, 5rem); min-height: 53vh; }
.zt-page-title { margin: 0 auto 1.65rem; max-width: 52rem; }
.zt-page-title h1 { margin: 0; font-size: clamp(2.5rem, 6vw, 5.4rem); }
.zt-page-photo { max-width: 64rem; margin: 0 auto 1.7rem; }
.zt-page-photo img { width: 100%; border-radius: .6rem; }
.zt-prose { max-width: 46rem; margin-inline: auto; overflow-wrap: anywhere; }
.zt-prose h2 { margin-block: 1.35em .45em; font-size: clamp(1.6rem, 3.6vw, 2.65rem); }
.zt-prose h3 { font-size: 1.5rem; }
.zt-prose p { margin-block: 0 1em; }
.zt-prose iframe { max-width: 100%; }
.zt-prose .wp-block-table { overflow-x: auto; }
.zt-prose table { border-collapse: collapse; width: 100%; }
.zt-prose td, .zt-prose th { padding: .55rem; border: 1px solid var(--zt-line); text-align: start; }
.zt-page-article:has(.znet-page) .zt-prose { max-width: none; }
@media (min-width: 64rem) {
	.zt-page .zt-page-title,
	.zt-page .zt-page-photo,
	.zt-page .zt-prose { max-width: none; }
	.zt-page .zt-prose > article[style] {
		max-width: none !important;
		padding-inline: 0 !important;
	}
	.zt-page .zt-prose > article:has(> section) {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: clamp(1.5rem, 3vw, 2.5rem);
	}
	.zt-page .zt-prose > article:has(> section) > :not(section) {
		grid-column: 1 / -1;
	}
	.zt-page .zt-prose > article:has(> section) > section {
		min-width: 0;
	}
	.zt-page .zt-prose > article > p { max-width: 76ch; }
}
.znet-page .znet-section { padding-block: clamp(1rem, 3vw, 2.5rem); }
.znet-page .znet-wrap { max-width: 68rem; margin-inline: auto; }
.znet-page .znet-grid-2, .znet-page .znet-grid-3, .znet-page .znet-grid-4 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 1rem;
}
.znet-page .znet-card, .znet-page .znet-mini-card, .zt-note {
	padding: clamp(.9rem, 3vw, 1.65rem);
	border: 1px solid var(--zt-line);
	border-radius: .6rem;
	background: var(--zt-white);
}
.zt-note, .znet-page .znet-alert { padding: 1.2rem; background: var(--zt-mist); }
.zt-note h2 { margin-block-start: 0; }
.zt-note p:last-child { margin-block-end: 0; }
.zt-comments, .zt-archive + .navigation { margin-top: 2rem; }
.zt-contact label { display: block; font-weight: 650; margin-bottom: .3rem; }
.zt-contact input:not([type="hidden"]), .zt-contact textarea {
	width: 100%;
	padding: .65rem;
	border: 1px solid #7b9284;
	border-radius: .25rem;
	background: var(--zt-white);
	color: var(--zt-ink);
	font: inherit;
}
.zt-contact button { border: 0; cursor: pointer; }
.zt-comments input:not([type="checkbox"]), .zt-comments textarea, .search-field {
	max-width: 100%;
	padding: .65rem;
	border: 1px solid #7b9284;
	border-radius: .25rem;
	background: var(--zt-white);
	color: var(--zt-ink);
	font: inherit;
}
.search-submit, .zt-comments input[type="submit"] {
	padding: .65rem .9rem;
	border: 1px solid var(--zt-teal);
	border-radius: .25rem;
	background: var(--zt-teal);
	color: #fff;
	font: inherit;
	cursor: pointer;
}

@media (max-width: 880px) {
	.zt-header-inner { flex-wrap: wrap; padding-block: .85rem .4rem; gap: .25rem 1rem; }
	.zt-nav ul { column-gap: 1rem; }
	.zt-hero-copy { padding-block: 2.75rem; }
}
@media (max-width: 720px) {
	.zt-hero { grid-template-columns: 1fr; min-height: auto; }
	.zt-hero h1 { max-width: 10ch; }
	.zt-hero-media { aspect-ratio: 1.35; }
	.zt-card-grid, .zt-planning-inner { grid-template-columns: 1fr; }
	.zt-footer-inner { flex-direction: column; }
}
