@font-face {
	font-family: Vinotok;
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("https://www.vinotok.org/wp-content/uploads/2020/09/Vinotok-2.ttf") format("truetype");
}

:root {
	--vinotok-prophecy: #7B1E1E;
	--vinotok-frost: #F3F0E8;
	--vinotok-equinox: #C96A1B;
	--vinotok-harvest: #D6A11D;
	--vinotok-aspen: #4F6B2A;
	--vinotok-bracken: #7A4E2D;
	--vinotok-grump: #1C1C1A;
	--vinotok-mountain: #0F3E5E;
	--vinotok-paper: #EBE6DC;
	--v-kicker: clamp(0.7rem, 0.64rem + 0.22vw, 0.78rem);
	--v-caption: clamp(0.78rem, 0.74rem + 0.16vw, 0.88rem);
	--v-body: clamp(1.125rem, 1.04rem + 0.42vw, 1.35rem);
	--v-lede: clamp(1.2rem, 1.06rem + 0.6vw, 1.5rem);
	--v-reading: clamp(1.28rem, 1.08rem + 0.85vw, 1.72rem);
	--v-reading-lg: clamp(1.7rem, 1.15rem + 2.15vw, 2.85rem);
	--v-display: clamp(1.65rem, 1.1rem + 7.5cqi, 3.4rem);
	--v-display-sm: clamp(1.35rem, 1.05rem + 1.5vw, 2.05rem);
	--v-wordmark: clamp(2.1rem, 1.15rem + 5vw, 5rem);
	--v-year: clamp(1.45rem, 1rem + 1.7vw, 2.35rem);
	--v-measure: 38em;
	--site-nav-h: 3.4rem;
}

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

html {
	background: var(--vinotok-grump);
}

body {
	margin: 0;
	background: var(--vinotok-paper);
	color: var(--vinotok-grump);
	font-family: "EB Garamond", Georgia, "Times New Roman", serif;
	font-size: var(--v-body);
	font-weight: 500;
	line-height: 1.58;
	text-rendering: optimizeLegibility;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--vinotok-equinox);
}

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

::selection {
	background: var(--vinotok-prophecy);
	color: var(--vinotok-frost);
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--vinotok-harvest);
	color: var(--vinotok-grump);
	padding: 8px 16px;
	z-index: 10000;
}

.skip-link:focus {
	left: 8px;
	top: 8px;
}

/* --- Header --- */

.site-header {
	background: var(--vinotok-grump);
	color: var(--vinotok-frost);
}

.site-header-fire {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 168px;
	padding: 28px 16px 24px;
	background: var(--vinotok-grump);
}

body.home .site-header,
body.front-page .site-header,
body.home .site-header-fire,
body.front-page .site-header-fire {
	min-height: calc(100vh - var(--site-nav-h));
	min-height: calc(100dvh - var(--site-nav-h));
}

body.admin-bar.home .site-header,
body.admin-bar.front-page .site-header,
body.admin-bar.home .site-header-fire,
body.admin-bar.front-page .site-header-fire {
	min-height: calc(100vh - 32px - var(--site-nav-h));
	min-height: calc(100dvh - 32px - var(--site-nav-h));
}

body.home .site-header-fire,
body.front-page .site-header-fire {
	padding: clamp(24px, 4vh, 48px) clamp(16px, 4vw, 40px);
}

.site-header-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-color: var(--vinotok-grump);
	background-size: cover;
	background-position: center center;
}

.site-header-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(28, 28, 26, 0.32) 0%, rgba(28, 28, 26, 0.16) 42%, rgba(28, 28, 26, 0.38) 100%),
		linear-gradient(90deg, rgba(28, 28, 26, 0.28) 0%, transparent 22%, transparent 78%, rgba(28, 28, 26, 0.22) 100%);
}

.site-header-video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	background: var(--vinotok-grump);
	opacity: 0;
	transition: opacity 0.6s ease;
}

.site-header-video.is-ready {
	opacity: 1;
}

.vinotok-reduce-motion .site-header-video {
	display: none;
}

.vinotok-reduce-motion .site-header-media {
	background-image: url("header-fire-poster.jpg");
}

@media (prefers-reduced-motion: reduce) {
	.site-header-video {
		display: none;
	}

	.site-header-media {
		background-image: url("header-fire-poster.jpg");
	}
}

.site-header-brand {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: min(94vw, 64rem);
	max-width: 100%;
	gap: 0;
}

.custom-logo-link {
	display: block;
	padding: 0;
	line-height: 0;
}

.custom-logo-link img,
.custom-logo {
	display: block;
	width: auto;
	max-width: 108px;
	max-height: 104px;
	height: auto;
	filter: drop-shadow(0 2px 14px rgba(28, 28, 26, 0.85));
}

body.home .custom-logo-link img,
body.home .custom-logo,
body.front-page .custom-logo-link img,
body.front-page .custom-logo {
	max-width: clamp(200px, 28vw, 380px);
	max-height: clamp(190px, 26vw, 360px);
}

.site-header-copy {
	margin-top: clamp(16px, 2vw, 32px);
	color: var(--vinotok-frost);
	text-shadow: 0 1px 2px rgba(28, 28, 26, 0.85), 0 8px 24px rgba(28, 28, 26, 0.55);
}

.site-header-copy p {
	margin: 0;
}

.site-header-dates {
	font-family: "EB Garamond", Georgia, "Times New Roman", serif;
	font-size: clamp(1.4rem, 1rem + 1.9vw, 2.4rem);
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.05;
}

.site-header-place {
	font-family: "EB Garamond", Georgia, "Times New Roman", serif;
	font-size: clamp(0.68rem, 0.6rem + 0.55vw, 0.95rem);
	font-weight: 600;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	line-height: 1.15;
	margin-top: 0.22em;
	opacity: 0.88;
}

.site-header-tag {
	font-family: Vinotok, Georgia, "Times New Roman", serif;
	font-size: clamp(1.9rem, 1.15rem + 3.5vw, 3.9rem);
	line-height: 1.08;
	margin-top: clamp(0.9em, 0.7em + 1.2vw, 1.4em);
	overflow-wrap: normal;
	word-break: keep-all;
	hyphens: none;
}

@media (min-width: 720px) {
	.site-header-tag {
		white-space: nowrap;
	}
}

@media (max-width: 420px) {
	.site-header-place {
		letter-spacing: 0.16em;
	}

	.site-header-tag {
		font-size: clamp(1.65rem, 8.5vw, 2.2rem);
		margin-top: 0.95em;
	}
}

@media (max-height: 680px) {
	body.home .custom-logo-link img,
	body.home .custom-logo,
	body.front-page .custom-logo-link img,
	body.front-page .custom-logo {
		max-width: clamp(150px, 20vw, 240px);
		max-height: clamp(144px, 19vw, 230px);
	}

	.site-header-copy {
		margin-top: 10px;
	}

	.site-header-dates {
		font-size: clamp(1.2rem, 0.95rem + 1.4vw, 1.85rem);
	}

	.site-header-place {
		margin-top: 0.18em;
		font-size: clamp(0.64rem, 0.58rem + 0.4vw, 0.82rem);
	}

	.site-header-tag {
		font-size: clamp(1.45rem, 1.05rem + 2vw, 2.45rem);
		margin-top: 0.75em;
	}
}

.site-nav-bar {
	flex-shrink: 0;
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--vinotok-grump);
	color: var(--vinotok-frost);
}

body.admin-bar .site-nav-bar {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-nav-bar {
		top: 46px;
	}
}

.site-nav-inner {
	display: flex;
	align-items: center;
	gap: 12px 20px;
	width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
	padding: 0;
	min-height: var(--site-nav-h);
}

.primary-nav {
	flex: 1 1 auto;
	min-width: 0;
	text-align: center;
}

.primary-nav .menu {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	width: 100%;
}

.primary-nav .menu > li {
	display: flex;
	justify-content: center;
	align-items: center;
}

.primary-nav a {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px 12px;
	font-family: MedievalSharp, Georgia, serif;
	font-size: clamp(0.92rem, 0.82rem + 0.38vw, 1.08rem);
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--vinotok-frost);
	text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus {
	color: var(--vinotok-equinox);
}

.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
	color: var(--vinotok-harvest);
}

.site-nav-search {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 0;
	margin-left: auto;
	position: relative;
	border: 0;
	background: transparent;
}

.site-nav-search input[type="search"] {
	width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	opacity: 0;
	background: transparent;
	color: var(--vinotok-frost);
	font-family: "EB Garamond", Georgia, serif;
	font-size: 0.95rem;
	line-height: 1.2;
	appearance: none;
	pointer-events: none;
	transition: width 0.28s ease, opacity 0.2s ease, padding 0.28s ease;
}

.site-nav-search.is-open input[type="search"] {
	width: min(12rem, 42vw);
	padding: 8px 10px;
	opacity: 1;
	pointer-events: auto;
	border: 1px solid rgba(243, 240, 232, 0.35);
	border-right: 0;
	background: rgba(28, 28, 26, 0.92);
}

.site-nav-search input[type="search"]::placeholder {
	color: rgba(243, 240, 232, 0.55);
}

.site-nav-search input[type="search"]::-webkit-search-decoration,
.site-nav-search input[type="search"]::-webkit-search-cancel-button {
	appearance: none;
}

.site-nav-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--vinotok-frost);
	cursor: pointer;
}

.site-nav-search.is-open .site-nav-search-toggle {
	border: 1px solid rgba(243, 240, 232, 0.35);
	border-left: 1px solid rgba(243, 240, 232, 0.28);
	background: rgba(28, 28, 26, 0.92);
}

.site-nav-search-toggle:hover,
.site-nav-search-toggle:focus {
	color: var(--vinotok-equinox);
}

@media (prefers-reduced-motion: reduce) {
	.site-nav-search input[type="search"] {
		transition: none;
	}
}

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

.menu-toggle {
	display: none;
	margin: 8px 0;
	padding: 10px 14px;
	border: 1px solid var(--vinotok-frost);
	background: transparent;
	color: var(--vinotok-frost);
	font-family: MedievalSharp, Georgia, serif;
	font-size: 0.92rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

/* --- Content --- */

.site-content {
	min-height: 40vh;
}

.entry:not(.entry-fullbleed) {
	max-width: 42em;
	margin: 0 auto;
	padding: clamp(48px, 6vw, 96px) clamp(24px, 5vw, 48px) clamp(72px, 8vw, 120px);
}

.entry-fullbleed {
	margin: 0;
	padding: 0;
	max-width: none;
}

.entry-fullbleed .entry-content {
	margin: 0;
	padding: 0;
	max-width: none;
}

.entry-title {
	font-family: "EB Garamond", Georgia, serif;
	font-size: var(--v-reading-lg);
	font-weight: 600;
	line-height: 1.22;
	text-wrap: balance;
	margin: 0 0 0.6em;
	color: var(--vinotok-grump);
}

.entry-content > * + * {
	margin-top: 1em;
}

.entry-fullbleed .entry-content > * + * {
	margin-top: 0;
}

body:has(.vinotok-home, .vinotok-page) {
	background: var(--vinotok-grump);
}

.wp-block-button__link,
.wp-element-button,
.wp-block-file__button {
	display: inline-block;
	background: var(--vinotok-prophecy);
	color: var(--vinotok-frost);
	border: 0;
	border-radius: 0;
	padding: 0.7em 1.4em;
	text-decoration: none;
	font-family: "EB Garamond", Georgia, serif;
	font-weight: 600;
}

.wp-block-button__link:hover,
.wp-element-button:hover,
.wp-block-file__button:hover {
	background: var(--vinotok-equinox);
	color: var(--vinotok-frost);
}

.wp-block-quote {
	border-left: 3px solid var(--vinotok-equinox);
	margin: 1.5em 0;
	padding-left: 1em;
}

/* Historical Gutenberg pages */
.page-id-241 .entry-content,
.page-id-696 .entry-content {
	font-size: var(--v-body);
	line-height: 1.62;
}

.page-id-241 .entry-content h1,
.page-id-696 .entry-content h1 {
	font-size: var(--v-reading-lg);
}

/* --- Type roles --- */

.vinotok-display {
	container-type: inline-size;
	font-family: Vinotok, Georgia, "Times New Roman", serif;
	font-size: var(--v-display);
	line-height: 1.12;
	overflow-wrap: normal;
	word-break: keep-all;
	hyphens: none;
}

.vinotok-display-sm {
	container-type: inline-size;
	font-family: Vinotok, Georgia, "Times New Roman", serif;
	font-size: var(--v-display-sm);
	line-height: 1.14;
	overflow-wrap: normal;
	word-break: keep-all;
	hyphens: none;
}

.vinotok-line {
	display: block;
	white-space: nowrap;
}

.vinotok-reading {
	font-family: "EB Garamond", Georgia, "Times New Roman", serif;
	font-size: var(--v-reading);
	line-height: 1.42;
	font-weight: 500;
	text-wrap: pretty;
}

.vinotok-reading-lg {
	font-size: var(--v-reading-lg);
	line-height: 1.26;
	font-weight: 500;
	max-width: 18em;
	text-wrap: balance;
}

.vinotok-kicker {
	font-family: "EB Garamond", Georgia, "Times New Roman", serif;
	font-size: var(--v-kicker);
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	line-height: 1.3;
	margin-bottom: 0.85em;
}

.vinotok-lede {
	font-family: "EB Garamond", Georgia, "Times New Roman", serif;
	font-size: var(--v-lede);
	font-weight: 500;
	line-height: 1.5;
	max-width: 36em;
}

.vinotok-caption {
	font-family: "EB Garamond", Georgia, "Times New Roman", serif;
	font-size: var(--v-caption);
	letter-spacing: 0.03em;
	line-height: 1.35;
	margin-top: 0.55em;
}

.vinotok-price {
	font-family: Vinotok, Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 1.4rem + 1.8vw, 2.65rem);
	line-height: 1;
}

.vinotok-home,
.vinotok-page {
	font-family: "EB Garamond", Georgia, "Times New Roman", serif;
	font-size: var(--v-body);
	font-weight: 500;
	line-height: 1.58;
}

.vinotok-home p,
.vinotok-page p {
	font-size: var(--v-body);
	line-height: 1.58;
	max-width: var(--v-measure);
}

.vinotok-cta {
	display: inline-block;
	font-family: "EB Garamond", Georgia, "Times New Roman", serif;
	font-size: var(--v-kicker);
	font-weight: 600;
	text-decoration: none;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--vinotok-equinox);
}

.vinotok-cta:hover,
.vinotok-cta:focus {
	color: var(--vinotok-equinox);
}

/* --- Hero --- */

.vinotok-hero {
	min-height: 100vh;
	display: flex;
	align-items: flex-end;
	background-color: var(--vinotok-grump);
	background-image:
		linear-gradient(180deg,
			rgba(28, 28, 26, 0.28) 0%,
			rgba(28, 28, 26, 0) 22%,
			rgba(28, 28, 26, 0) 50%,
			rgba(28, 28, 26, 0.72) 78%,
			rgba(28, 28, 26, 0.94) 100%),
		url("https://www.vinotok.org/wp-content/uploads/2020/09/Home-Portraits-copy.jpg");
	background-size: cover;
	background-position: center 18%;
	background-repeat: no-repeat;
}

.vinotok-hero-copy {
	width: 100%;
	max-width: 1380px;
	margin: 0 auto;
	padding: 0 clamp(24px, 5vw, 72px) clamp(28px, 4vw, 48px);
	color: var(--vinotok-frost);
	text-shadow: 0 1px 2px rgba(28, 28, 26, 0.85), 0 10px 28px rgba(28, 28, 26, 0.45);
}

.vinotok-hero-copy .vinotok-wordmark {
	font-family: Vinotok, Georgia, "Times New Roman", serif;
	font-size: var(--v-wordmark);
	line-height: 0.92;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	color: var(--vinotok-frost);
	white-space: nowrap;
}

.vinotok-hero-copy .vinotok-year {
	font-family: Vinotok, Georgia, "Times New Roman", serif;
	font-size: var(--v-year);
	line-height: 1.05;
	margin-top: 0.35em;
	color: var(--vinotok-harvest);
}

.vinotok-hero-copy .vinotok-dates {
	font-family: "EB Garamond", Georgia, "Times New Roman", serif;
	font-size: var(--v-lede);
	font-weight: 600;
	margin-top: 0.85em;
	color: var(--vinotok-frost);
}

.vinotok-hero-copy .vinotok-place {
	font-family: "EB Garamond", Georgia, "Times New Roman", serif;
	font-size: var(--v-kicker);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 600;
	margin-top: 0.7em;
	color: var(--vinotok-frost);
	opacity: 0.92;
}

.vinotok-hero-copy .vinotok-tag {
	font-family: Vinotok, Georgia, "Times New Roman", serif;
	font-size: clamp(1.2rem, 0.95rem + 1.15vw, 1.8rem);
	line-height: 1.15;
	margin-top: 0.7em;
	color: var(--vinotok-frost);
}

.vinotok-page-hero {
	min-height: 58vh;
	display: flex;
	align-items: flex-end;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center 22%;
	background-image:
		linear-gradient(180deg,
			rgba(28, 28, 26, 0.2) 0%,
			rgba(28, 28, 26, 0.05) 40%,
			rgba(28, 28, 26, 0.88) 100%),
		url("https://www.vinotok.org/wp-content/uploads/2020/09/Home-Portraits-copy.jpg");
}

.vinotok-page-hero > div {
	text-shadow: 0 1px 2px rgba(28, 28, 26, 0.85), 0 10px 28px rgba(28, 28, 26, 0.45);
}

/* --- Footer --- */

.site-footer {
	background: var(--vinotok-grump);
	color: var(--vinotok-frost);
	text-align: center;
	padding: 36px 16px 28px;
}

.vinotok-footer-mark {
	display: inline-block;
}

.vinotok-footer-mark img {
	display: block;
	margin: 0 auto;
	width: 140px;
	height: auto;
	max-width: 40vw;
}

.site-copy {
	margin: 12px 0 0;
	font-family: "EB Garamond", Georgia, serif;
	letter-spacing: 0.08em;
	font-size: var(--v-caption);
}

.site-footer a {
	color: var(--vinotok-frost);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--vinotok-equinox);
}

.vinotok-week-row {
	display: grid;
	grid-template-columns: minmax(140px, 220px) 1fr;
	background: var(--vinotok-paper);
}

@media (max-width: 767px) {
	.vinotok-week-row {
		grid-template-columns: 1fr;
	}

	.vinotok-week-row .vinotok-kicker {
		padding-bottom: 4px;
	}

	.menu-toggle {
		display: inline-block;
		order: 1;
	}

	.site-nav-inner {
		flex-wrap: wrap;
		width: calc(100% - 24px);
		padding: 4px 0;
	}

	.site-nav-search {
		order: 2;
		margin-left: auto;
	}

	.primary-nav {
		display: none;
		order: 3;
		flex: 1 0 100%;
		width: 100%;
		text-align: center;
	}

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

	.primary-nav .menu {
		display: block;
	}

	.primary-nav .menu > li {
		display: block;
	}

	.primary-nav li {
		display: block;
		border-top: 1px solid rgba(243, 240, 232, 0.16);
	}

	.site-nav-bar .primary-nav.is-open {
		padding-bottom: 8px;
	}

	.vinotok-hero {
		min-height: 92vh;
		background-position: center 12%;
	}

	.site-header-video,
	.site-header-media {
		object-position: center 78%;
		background-position: center 78%;
	}
}
