/*
Theme Name: Tallro
Theme URI: https://example.com/tallro
Author: Tallro
Description: A one-house retreat theme for a timber house in the pines. The front page follows the visitor's local time: a light dial fades the house from day to night and the whole site shifts with it. Includes a room-by-room walk-through, a date-range booking calendar with live price estimate, booking requests saved in the dashboard and emailed to you, and a journal. Edit prices, availability and contact details under Appearance → Customize → Tallro settings.
Version: 1.0.0
Requires at least: 6.2
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: tallro
Tags: one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks, blog
*/

/* ---------- Fonts (bundled, no external requests) ---------- */
@font-face {
	font-family: "Fraunces";
	src: url("assets/fonts/fraunces.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Fraunces";
	src: url("assets/fonts/fraunces-italic.woff2") format("woff2");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "DM Sans";
	src: url("assets/fonts/dm-sans.woff2") format("woff2");
	font-weight: 100 1000;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	--n: 0;

	/* Day */
	--bg: #f3f4ef;
	--bg-2: #e5e9df;
	--ink: #1e2b25;
	--muted: #5b6557;
	--line: rgba(30, 43, 37, 0.16);
	--accent: #4e5f45;
	--btn-bg: #1e2b25;
	--btn-ink: #f3f4ef;
	--btn-hover: #4e5f45;
	--range: rgba(78, 95, 69, 0.16);

	--light: #f4f5ef;
	--ember: #e6a462;

	--serif: "Fraunces", "Iowan Old Style", Georgia, serif;
	--sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	--gutter: clamp(1.25rem, 4vw, 3.5rem);
	--max: 1360px;
	--section: clamp(5rem, 10vw, 9rem);
	--radius-img: 6px;
	--radius-ui: 12px;
	--header-h: 76px;

	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html[data-theme="night"] {
	--bg: #16201b;
	--bg-2: #1e2a24;
	--ink: #e4e8db;
	--muted: #a0a999;
	--line: rgba(228, 232, 219, 0.15);
	--accent: #e6a462;
	--btn-bg: #e6a462;
	--btn-ink: #1b1710;
	--btn-hover: #f0bb83;
	--range: rgba(230, 164, 98, 0.16);
	color-scheme: dark;
}

/* ---------- Base ---------- */
[hidden] {
	display: none !important;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	transition: background-color 0.9s ease, color 0.9s ease;
}

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

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--serif);
	font-weight: 340;
	font-variation-settings: "SOFT" 100, "WONK" 0;
	line-height: 1.08;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

h2 {
	font-size: clamp(2.1rem, 4.4vw, 3.9rem);
}

h3 {
	font-size: clamp(1.3rem, 1.8vw, 1.55rem);
	line-height: 1.2;
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
}

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

figure {
	margin: 0;
}

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: var(--accent);
	color: var(--bg);
}

.muted {
	color: var(--muted);
}

.wrap {
	width: 100%;
	max-width: calc(var(--max) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.wrap-narrow {
	width: 100%;
	max-width: calc(720px + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

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

.skip-link {
	position: absolute;
	left: 1rem;
	top: -100px;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--btn-bg);
	color: var(--btn-ink);
	border-radius: 8px;
}

.skip-link:focus {
	top: 1rem;
}

.section {
	padding-block: var(--section);
}

/* ---------- Buttons & links ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 48px;
	padding: 0.8em 1.5em;
	border: 0;
	border-radius: 999px;
	background: var(--btn-bg);
	color: var(--btn-ink);
	font-weight: 560;
	font-size: 1rem;
	line-height: 1.1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}

.btn:hover {
	background: var(--btn-hover);
}

.btn:active {
	transform: scale(0.98);
}

.btn--small {
	min-height: 40px;
	padding: 0.6em 1.15em;
	font-size: 0.9375rem;
}

.btn--light {
	background: var(--light);
	color: #1e2b25;
}

.btn--light:hover {
	background: #fff;
}

html[data-theme="night"] .btn--light {
	background: var(--ember);
	color: #1b1710;
}

.btn--block {
	width: 100%;
}

.btn[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.link-light {
	color: var(--light);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: rgba(244, 245, 239, 0.45);
}

.link-light:hover {
	text-decoration-color: currentColor;
}

.link-under {
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: var(--line);
}

.link-under:hover {
	text-decoration-color: currentColor;
}

.round-btn {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.round-btn svg {
	width: 22px;
	height: 22px;
}

.round-btn:hover:not([disabled]) {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--bg);
}

.round-btn[disabled] {
	opacity: 0.35;
	cursor: default;
}

.round-btn--sm {
	width: 40px;
	height: 40px;
	font-size: 1.25rem;
}

.round-btn--sm svg {
	width: 18px;
	height: 18px;
}

/* ---------- Header ---------- */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	color: var(--ink);
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: saturate(1.2) blur(14px);
	-webkit-backdrop-filter: saturate(1.2) blur(14px);
	border-bottom: 1px solid var(--line);
	transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.4s var(--ease);
}

.has-hero .site-header:not(.is-scrolled):not(.is-open) {
	color: var(--light);
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border-bottom-color: transparent;
}

.site-header.is-hidden {
	transform: translateY(-100%);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 2rem;
	height: var(--header-h);
	max-width: calc(var(--max) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	color: inherit;
	text-decoration: none;
	margin-right: auto;
}

.brand .mark {
	width: 34px;
	height: 34px;
}

.brand__name {
	font-family: var(--serif);
	font-size: 1.7rem;
	font-weight: 360;
	font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
	letter-spacing: -0.01em;
	line-height: 1;
	transform: translateY(-1px);
}

.custom-logo-link {
	margin-right: auto;
}

.custom-logo {
	max-height: 44px;
	width: auto;
}

.site-nav .menu {
	display: flex;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	display: block;
	padding: 0.5rem 0.8rem;
	border-radius: 999px;
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
	background: color-mix(in srgb, currentColor 12%, transparent);
}

.has-hero .site-header:not(.is-scrolled) .site-header__cta {
	background: var(--light);
	color: #1e2b25;
}

html[data-theme="night"] .has-hero .site-header:not(.is-scrolled) .site-header__cta {
	background: var(--ember);
	color: #1b1710;
}

.menu-toggle {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
	position: absolute;
	left: 11px;
	width: 22px;
	height: 1.5px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.menu-toggle__bars {
	top: 21px;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
	content: "";
	left: 0;
}

.menu-toggle__bars::before {
	transform: translateY(-6px);
}

.menu-toggle__bars::after {
	transform: translateY(6px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
	background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
	transform: rotate(-45deg);
}

.mobile-menu {
	padding: 1rem var(--gutter) 2rem;
	border-top: 1px solid var(--line);
	max-height: calc(100svh - var(--header-h));
	overflow-y: auto;
}

.mobile-menu .menu {
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.mobile-menu .menu a {
	display: block;
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--line);
	font-family: var(--serif);
	font-size: 1.9rem;
	font-weight: 330;
	font-variation-settings: "SOFT" 100;
	text-decoration: none;
}

.mobile-menu .btn {
	width: 100%;
}

.mobile-menu__contact {
	margin-top: 1.5rem;
	color: var(--muted);
}

/* ---------- Hero + light dial ---------- */
.hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: max(640px, 100svh);
	color: var(--light);
	background: #26332c;
	overflow: hidden;
	isolation: isolate;
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to bottom, rgba(14, 20, 17, 0.45) 0%, rgba(14, 20, 17, 0) 22%),
		linear-gradient(to top, rgba(14, 20, 17, 0.82) 0%, rgba(14, 20, 17, 0.35) 38%, rgba(14, 20, 17, 0) 62%);
}

.hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 60%;
}

.hero__img--night {
	opacity: var(--n);
	will-change: opacity;
}

.hero__body {
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
	gap: 2rem 4rem;
	align-items: end;
	padding-bottom: clamp(2rem, 4vw, 3rem);
}

.hero__title {
	max-width: 15ch;
	font-size: clamp(2.6rem, 6.2vw, 6.4rem);
	font-weight: 300;
	font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
	line-height: 0.98;
	letter-spacing: -0.025em;
}

.hero__aside {
	max-width: 30rem;
}

.hero__text {
	text-shadow: 0 1px 14px rgba(10, 16, 13, 0.45);
	font-size: 1.125rem;
	line-height: 1.5;
	color: rgba(244, 245, 239, 0.88);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	margin-top: 1.5rem;
}

.dial {
	position: relative;
	padding-bottom: clamp(1.25rem, 3vw, 2.25rem);
}

.dial__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 1.25rem;
	margin-bottom: 0.25rem;
}

.dial__label {
	font-size: 0.875rem;
	font-weight: 500;
	color: rgba(244, 245, 239, 0.7);
}

.dial__read {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.85rem;
	margin: 0;
}

.dial__time {
	font-family: var(--serif);
	font-size: 1.6rem;
	font-weight: 340;
	font-variant-numeric: tabular-nums;
	font-variation-settings: "SOFT" 100, "opsz" 72;
	min-width: 3.2em;
}

.dial__caption {
	font-size: 0.9375rem;
	color: rgba(244, 245, 239, 0.86);
}

.dial__now {
	margin-left: auto;
	padding: 0.35rem 0.85rem;
	border: 1px solid rgba(244, 245, 239, 0.35);
	border-radius: 999px;
	background: transparent;
	color: var(--light);
	font-size: 0.875rem;
	cursor: pointer;
}

.dial__now:hover {
	background: rgba(244, 245, 239, 0.12);
}

.dial__track {
	position: relative;
}

/* The slider is the horizon: night at the edges, dawn and dusk in ember, daylight in the middle. */
.dial__input {
	--track: linear-gradient(
		to right,
		#2c3a34 0%,
		#2c3a34 19%,
		#e6a462 27%,
		#e9ecdf 36%,
		#e9ecdf 70%,
		#e6a462 79%,
		#2c3a34 88%,
		#2c3a34 100%
	);
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	height: 44px;
	margin: 0;
	background: transparent;
	cursor: grab;
	touch-action: pan-y;
}

.dial__input:active {
	cursor: grabbing;
}

.dial__input::-webkit-slider-runnable-track {
	height: 3px;
	border-radius: 3px;
	background: var(--track);
}

.dial__input::-moz-range-track {
	height: 3px;
	border-radius: 3px;
	background: var(--track);
}

.dial__input::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 30px;
	height: 30px;
	margin-top: -13.5px;
	border: 0;
	border-radius: 50%;
	background: #f6f1e2;
	box-shadow: 0 0 0 7px rgba(246, 241, 226, 0.16), 0 0 34px 6px rgba(246, 224, 170, 0.55);
	transition: box-shadow 0.6s ease, background 0.6s ease;
}

.dial__input::-moz-range-thumb {
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 50%;
	background: #f6f1e2;
	box-shadow: 0 0 0 7px rgba(246, 241, 226, 0.16), 0 0 34px 6px rgba(246, 224, 170, 0.55);
}

/* At night the sun becomes a crescent moon. */
html[data-theme="night"] .dial__input::-webkit-slider-thumb {
	background: transparent;
	box-shadow: inset 9px -5px 0 0 #efe6cf, 0 0 26px 2px rgba(239, 230, 207, 0.22);
}

html[data-theme="night"] .dial__input::-moz-range-thumb {
	background: transparent;
	box-shadow: inset 9px -5px 0 0 #efe6cf, 0 0 26px 2px rgba(239, 230, 207, 0.22);
}

.dial__input:focus-visible {
	outline: none;
}

.dial__input:focus-visible::-webkit-slider-thumb {
	outline: 2px solid var(--light);
	outline-offset: 6px;
}

.dial__input:focus-visible::-moz-range-thumb {
	outline: 2px solid var(--light);
	outline-offset: 6px;
}

.dial__ticks {
	display: flex;
	justify-content: space-between;
	font-size: 0.75rem;
	color: rgba(244, 245, 239, 0.6);
	font-variant-numeric: tabular-nums;
}

/* The one load moment: the headline settles, then the horizon draws across. */
@media (prefers-reduced-motion: no-preference) {
	.js .hero__title {
		animation: rise 1.1s var(--ease) both 0.15s;
	}
	.js .hero__aside {
		animation: rise 1.1s var(--ease) both 0.35s;
	}
	.js .dial__track {
		animation: draw 1.4s var(--ease) both 0.55s;
	}
	.js .dial__head {
		animation: fade 1s ease both 1.1s;
	}
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(28px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes draw {
	from {
		clip-path: inset(0 100% 0 0);
	}
	to {
		clip-path: inset(0 0 0 0);
	}
}

@keyframes fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* ---------- Intro ---------- */
.intro__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 2rem;
	align-items: start;
}

.intro__title {
	grid-column: 1 / span 6;
	max-width: 11ch;
}

.intro__text {
	grid-column: 7 / -1;
	padding-top: 0.6rem;
}

.lede {
	font-size: clamp(1.2rem, 1.6vw, 1.4rem);
	line-height: 1.55;
	max-width: 34em;
}

.intro__figure {
	margin-block: clamp(3rem, 6vw, 5rem);
}

.intro__figure img {
	width: 100%;
	aspect-ratio: 16 / 8;
	object-fit: cover;
	border-radius: var(--radius-img);
}

.intro__lists {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem clamp(2rem, 6vw, 6rem);
}

.intro__lists h3 {
	margin-bottom: 1rem;
}

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

.list-plain li {
	padding: 0.85rem 0;
	border-top: 1px solid var(--line);
}

.list-plain li:last-child {
	border-bottom: 1px solid var(--line);
}

.list-plain--struck li {
	color: var(--muted);
	text-decoration: line-through;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 1.5px;
}

/* ---------- Walk-through ---------- */
.walk {
	background: var(--bg-2);
	transition: background-color 0.9s ease;
	overflow: hidden;
}

.walk__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 2rem;
}

.walk__head h2 {
	margin-bottom: 0.75rem;
}

.walk__head p {
	max-width: 34rem;
}

.walk__controls {
	display: flex;
	gap: 0.6rem;
	flex-shrink: 0;
}

/* The rooms are a real sequence (the order you walk through them), so they read as a path. */
.walk__path {
	margin-top: 2.5rem;
	overflow-x: auto;
	scrollbar-width: none;
}

.walk__path::-webkit-scrollbar {
	display: none;
}

.walk__path ol {
	display: flex;
	gap: 0;
	margin: 0;
	padding: 0 0 0.5rem;
	list-style: none;
	white-space: nowrap;
}

.walk__path li {
	display: flex;
	align-items: center;
}

.walk__path li + li::before {
	content: "";
	width: clamp(1rem, 3vw, 2.5rem);
	height: 1px;
	background: var(--line);
	margin-inline: 0.5rem;
}

.walk__path a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0;
	color: var(--muted);
	font-size: 0.9375rem;
	text-decoration: none;
	transition: color 0.3s ease;
}

.walk__path a::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	border: 1px solid currentColor;
	transition: background-color 0.3s ease;
}

.walk__path a:hover {
	color: var(--ink);
}

.walk__path a[aria-current="true"] {
	color: var(--ink);
	font-weight: 560;
}

.walk__path a[aria-current="true"]::before {
	background: var(--accent);
	border-color: var(--accent);
}

.walk__track {
	--pad: max(var(--gutter), calc((100vw - var(--max)) / 2));
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(78vw, 1000px);
	gap: clamp(1rem, 2vw, 1.75rem);
	margin-top: 1.5rem;
	padding-inline: var(--pad);
	padding-bottom: 1rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--pad);
	scrollbar-width: none;
	cursor: grab;
}

.walk__track::-webkit-scrollbar {
	display: none;
}

.walk__track.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	user-select: none;
}

.walk__track.is-dragging img {
	pointer-events: none;
}

.room {
	scroll-snap-align: start;
}

.room__media {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-img);
	background: var(--line);
}

.room__media img {
	width: 100%;
	aspect-ratio: 16 / 9.4;
	object-fit: cover;
}

.room__night {
	position: absolute;
	inset: 0;
	height: 100%;
	opacity: 0;
	transition: opacity 1.2s ease;
}

html[data-theme="night"] .room__night {
	opacity: 1;
}

.room__caption {
	display: grid;
	grid-template-columns: minmax(10rem, auto) minmax(0, 1fr);
	gap: 0.25rem 2.5rem;
	align-items: baseline;
	padding-top: 1.1rem;
}

.room__caption p {
	color: var(--muted);
	max-width: 36em;
}

/* ---------- Outside ---------- */
.outside__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.75rem);
}

.outside__grid figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--radius-img);
}

.outside__a {
	grid-column: 1 / span 7;
	grid-row: 1 / span 2;
	min-height: 520px;
}

.outside__text {
	grid-column: 8 / -1;
	grid-row: 1;
	align-self: end;
	padding: 0 0 1rem clamp(0rem, 2vw, 2rem);
}

.outside__text h2 {
	margin-bottom: 1.25rem;
}

.outside__b {
	grid-column: 8 / -1;
	grid-row: 2;
	aspect-ratio: 4 / 3;
}

.outside__c {
	grid-column: 5 / -1;
	grid-row: 3;
	aspect-ratio: 16 / 8;
}

.outside__d {
	grid-column: 1 / span 4;
	grid-row: 3;
}

/* ---------- Details ---------- */
.details {
	background: var(--bg-2);
	transition: background-color 0.9s ease;
}

.details__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 3rem clamp(2rem, 6vw, 6rem);
}

.details__price {
	display: grid;
	gap: 0.25rem;
	margin-top: 2rem;
}

.details__amount {
	font-family: var(--serif);
	font-size: clamp(3rem, 6vw, 4.75rem);
	font-weight: 300;
	font-variation-settings: "SOFT" 100, "opsz" 144;
	line-height: 1;
	letter-spacing: -0.02em;
}

.facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 2.5rem;
	margin: 0;
}

.facts > div {
	padding: 1rem 0 1.1rem;
	border-top: 1px solid var(--line);
}

.facts dt {
	font-size: 0.875rem;
	color: var(--muted);
}

.facts dd {
	margin: 0.15rem 0 0;
	font-size: 1.1875rem;
}

.facts__wide {
	grid-column: 1 / -1;
	border-bottom: 1px solid var(--line);
}

/* ---------- Booking ---------- */
.book__head {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 1rem clamp(2rem, 6vw, 6rem);
	align-items: end;
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.book__head p {
	max-width: 36rem;
}

.book__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 2.5rem clamp(2rem, 5vw, 5rem);
	align-items: start;
}

.cal {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
	position: relative;
}

.cal__summary {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border: 1px solid var(--line);
	border-radius: var(--radius-ui);
	overflow: hidden;
	margin-bottom: 1.5rem;
}

.cal__pick {
	display: grid;
	gap: 0.1rem;
	padding: 0.9rem 1.1rem;
	transition: background-color 0.25s ease;
}

.cal__pick + .cal__pick {
	border-left: 1px solid var(--line);
}

.cal__pick.is-active {
	background: var(--range);
	box-shadow: inset 0 -2px 0 var(--accent);
}

.cal__pick-label {
	font-size: 0.8125rem;
	color: var(--muted);
}

.cal__pick-value {
	font-family: var(--serif);
	font-size: 1.25rem;
	font-variation-settings: "SOFT" 100;
}

.cal__nav {
	position: absolute;
	right: 0;
	display: flex;
	gap: 0.5rem;
	margin-top: -0.35rem;
}

.cal__months {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2.5rem;
}

.cal__month h3 {
	font-size: 1.25rem;
	margin-bottom: 0.85rem;
	min-height: 32px;
	display: flex;
	align-items: center;
}

.cal__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	row-gap: 2px;
}

.cal__dow {
	padding-bottom: 0.4rem;
	font-size: 0.75rem;
	color: var(--muted);
	text-align: center;
}

.cal__day {
	position: relative;
	aspect-ratio: 1;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 0.9375rem;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
	z-index: 0;
}

.cal__day::before {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	z-index: -1;
	transition: background-color 0.15s ease;
}

.cal__day:hover:not([disabled])::before {
	background: var(--range);
	box-shadow: inset 0 0 0 1px var(--accent);
}

.cal__day.is-today {
	font-weight: 700;
}

.cal__day.is-range {
	background: var(--range);
}

.cal__day.is-start,
.cal__day.is-end {
	color: var(--btn-ink);
}

.cal__day.is-start::before,
.cal__day.is-end::before {
	background: var(--btn-bg);
	box-shadow: none;
}

.cal__day.is-start.has-range {
	background: linear-gradient(to right, transparent 50%, var(--range) 50%);
}

.cal__day.is-end {
	background: linear-gradient(to left, transparent 50%, var(--range) 50%);
}

.cal__day[disabled] {
	color: var(--muted);
	opacity: 0.45;
	cursor: default;
}

.cal__day.is-blocked {
	opacity: 0.7;
	text-decoration: line-through;
	text-decoration-color: var(--accent);
}

.cal__legend {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1rem;
	font-size: 0.875rem;
	color: var(--muted);
}

.cal__key--blocked {
	display: inline-block;
	width: 18px;
	height: 1.5px;
	background: var(--accent);
}

.cal__fallback {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.cal__fallback label {
	display: grid;
	gap: 0.35rem;
	font-weight: 500;
}

.js .cal__fallback {
	display: none;
}

html:not(.js) .cal__summary,
html:not(.js) .cal__nav,
html:not(.js) .cal__legend {
	display: none;
}

.book__form {
	display: grid;
	gap: 1.1rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--line);
	border-radius: calc(var(--radius-ui) + 4px);
}

.field {
	display: grid;
	gap: 0.4rem;
}

.field label {
	font-size: 0.9375rem;
	font-weight: 520;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="url"],
input[type="password"],
textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.75rem 0.95rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: color-mix(in srgb, var(--bg) 70%, transparent);
	color: var(--ink);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:hover,
textarea:hover {
	border-color: color-mix(in srgb, var(--ink) 35%, transparent);
}

input:focus,
textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--range);
}

.field.has-error input,
.field.has-error textarea {
	border-color: #b4532a;
}

html[data-theme="night"] .field.has-error input {
	border-color: #f08a5d;
}

textarea {
	resize: vertical;
	min-height: 96px;
}

.stepper {
	display: grid;
	grid-template-columns: 40px 1fr 40px;
	align-items: center;
	gap: 0.5rem;
	max-width: 220px;
}

.stepper input {
	text-align: center;
	-moz-appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.field-error {
	margin: 0;
	font-size: 0.875rem;
	color: #a2461f;
}

html[data-theme="night"] .field-error {
	color: #f3a07a;
}

.field-error:empty {
	display: none;
}

.hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.quote {
	padding: 1rem 0 0.25rem;
	border-top: 1px solid var(--line);
}

.quote__empty {
	color: var(--muted);
}

.quote__rows {
	display: grid;
	gap: 0.4rem;
	margin: 0;
}

.quote__rows > div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.quote__rows dd {
	margin: 0;
	font-variant-numeric: tabular-nums;
}

.quote__total {
	margin-top: 0.4rem;
	padding-top: 0.6rem;
	border-top: 1px solid var(--line);
	font-family: var(--serif);
	font-size: 1.45rem;
	font-variation-settings: "SOFT" 100;
}

.form-status {
	margin: 0;
	font-size: 0.9375rem;
}

.form-status:empty {
	display: none;
}

.form-status.is-ok {
	padding: 0.9rem 1rem;
	border-radius: 10px;
	background: var(--range);
}

.form-status.is-error {
	color: #a2461f;
}

html[data-theme="night"] .form-status.is-error {
	color: #f3a07a;
}

/* ---------- Journal ---------- */
.journal__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	margin-bottom: 2.5rem;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 3rem clamp(1rem, 2.5vw, 2rem);
}

.card__link {
	display: block;
	text-decoration: none;
}

.card__media {
	overflow: hidden;
	border-radius: var(--radius-img);
	margin-bottom: 1.1rem;
	background: var(--bg-2);
}

.card__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.8s var(--ease);
}

.card__link:hover img {
	transform: scale(1.03);
}

.card__title {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

.card__link:hover .card__title {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	margin: 0;
	font-size: 0.875rem;
	color: var(--muted);
}

/* ---------- Inner pages ---------- */
.page-shell {
	padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem));
	padding-bottom: var(--section);
}

.page-head {
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.page-head h1,
.entry__title {
	font-size: clamp(2.5rem, 5.5vw, 5rem);
	font-weight: 300;
	font-variation-settings: "SOFT" 100, "opsz" 144;
	line-height: 1.02;
	letter-spacing: -0.02em;
	max-width: 18ch;
}

.page-head__text {
	max-width: 36rem;
	margin-top: 1rem;
}

.page-head .search-form {
	margin-top: 1.5rem;
}

.entry__head .post-meta {
	margin-bottom: 1rem;
}

.entry__hero {
	margin-block: clamp(2rem, 5vw, 3.5rem);
}

.entry__hero img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--radius-img);
}

.entry__head + .entry-content {
	margin-top: 2.5rem;
}

.entry-content {
	font-size: 1.1875rem;
	line-height: 1.7;
}

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

.entry-content p {
	margin: 0;
}

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

.entry-content h2 {
	font-size: 2rem;
	margin-top: 2em;
}

.entry-content h3 {
	margin-top: 1.75em;
}

.entry-content a {
	color: var(--ink);
	text-decoration-color: var(--accent);
}

.entry-content blockquote,
.entry-content .wp-block-quote {
	margin-inline: 0;
	padding-left: 1.25rem;
	border-left: 2px solid var(--accent);
	font-family: var(--serif);
	font-size: 1.4rem;
	font-variation-settings: "SOFT" 100;
}

.entry-content img {
	border-radius: var(--radius-img);
}

.entry-content .alignwide {
	width: min(1100px, 92vw);
	max-width: none;
	margin-inline: calc(50% - min(550px, 46vw));
}

.entry-content .alignfull {
	width: 100vw;
	max-width: none;
	margin-inline: calc(50% - 50vw);
}

.entry-content .alignfull img {
	border-radius: 0;
}

.wp-caption-text,
figcaption {
	margin-top: 0.6rem;
	font-size: 0.875rem;
	color: var(--muted);
}

.entry__foot {
	margin-top: 4rem;
}

.tags a {
	display: inline-block;
	margin: 0 0.4rem 0.4rem 0;
	padding: 0.3rem 0.8rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 0.875rem;
	text-decoration: none;
}

.entry__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.5rem 0;
	border-block: 1px solid var(--line);
	margin-bottom: 2rem;
}

.entry__cta p {
	margin: 0;
	font-family: var(--serif);
	font-size: 1.5rem;
	font-variation-settings: "SOFT" 100;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

.post-navigation a {
	display: grid;
	gap: 0.2rem;
	text-decoration: none;
	font-family: var(--serif);
	font-size: 1.2rem;
}

.post-navigation .muted {
	font-family: var(--sans);
	font-size: 0.875rem;
}

.post-navigation .nav-next {
	grid-column: 2;
	text-align: right;
}

.pager {
	margin-top: 3rem;
}

.pager .nav-links {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.pager .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 0.9rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	text-decoration: none;
}

.pager .page-numbers.current {
	background: var(--ink);
	color: var(--bg);
}

.empty {
	display: grid;
	justify-items: start;
	gap: 1.5rem;
	font-size: 1.2rem;
}

.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 32rem;
}

/* Comments */
.comments {
	margin-top: 3rem;
}

.comments__title,
.comment-reply-title {
	font-size: 1.75rem;
	margin-bottom: 1.5rem;
}

.comment-list {
	margin: 0 0 3rem;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	list-style: none;
	padding-left: 1.5rem;
}

.comment-body {
	padding: 1.25rem 0;
	border-top: 1px solid var(--line);
}

.comment-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.875rem;
	color: var(--muted);
	margin-bottom: 0.5rem;
}

.comment-author .avatar {
	border-radius: 50%;
	float: left;
	margin-right: 0.75rem;
}

.comment-form p {
	display: grid;
	gap: 0.35rem;
	margin-bottom: 1rem;
}

.comment-form .comment-form-cookies-consent {
	display: flex;
	gap: 0.5rem;
	align-items: start;
}

/* 404 */
.lost {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 100svh;
	color: var(--light);
	isolation: isolate;
}

.lost__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}

.lost::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(14, 20, 17, 0.85), rgba(14, 20, 17, 0.1) 65%);
}

.lost__body {
	padding-bottom: clamp(3rem, 8vw, 6rem);
}

.lost h1 {
	font-size: clamp(2.5rem, 6vw, 5.5rem);
	font-weight: 300;
	font-variation-settings: "SOFT" 100, "opsz" 144;
	max-width: 13ch;
	margin-bottom: 1rem;
}

.lost p {
	max-width: 32rem;
	color: rgba(244, 245, 239, 0.88);
}

/* ---------- Footer ---------- */
.site-footer {
	padding-top: clamp(4rem, 8vw, 6rem);
	background: #1e2b25;
	color: #e4e8db;
	--line: rgba(228, 232, 219, 0.15);
}

html[data-theme="night"] .site-footer {
	background: #111915;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
	gap: 2.5rem;
	padding-bottom: clamp(3rem, 6vw, 5rem);
}

.site-footer__word {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	margin-bottom: 1rem;
}

.site-footer__word .mark {
	width: 52px;
	height: 52px;
}

.site-footer__word span {
	font-family: var(--serif);
	font-size: 3rem;
	font-weight: 320;
	font-variation-settings: "SOFT" 100, "opsz" 144;
	line-height: 1;
}

.site-footer__brand p {
	color: #a9b2a2;
	max-width: 22rem;
}

.site-footer h2 {
	font-family: var(--sans);
	font-size: 0.875rem;
	font-weight: 560;
	letter-spacing: 0;
	color: #a9b2a2;
	margin-bottom: 0.9rem;
}

.site-footer__col p {
	margin-bottom: 0.5rem;
}

.site-footer a {
	text-decoration-color: rgba(228, 232, 219, 0.35);
}

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

.site-footer .menu,
.footer-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer .menu li,
.footer-menu li {
	margin-bottom: 0.5rem;
}

.site-footer__base {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.5rem;
	border-top: 1px solid var(--line);
	font-size: 0.875rem;
	color: #a9b2a2;
}

.site-footer__base p {
	margin: 0;
}

/* Mobile booking bar */
.book-bar {
	display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.site-nav a {
		padding-inline: 0.55rem;
	}
	.cal__months {
		gap: 1.5rem;
	}
}

@media (max-width: 960px) {
	:root {
		--header-h: 64px;
	}
	.site-nav,
	.site-header__cta {
		display: none;
	}
	.menu-toggle {
		display: block;
		color: inherit;
	}
	.hero__body {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}
	.hero__aside {
		max-width: 34rem;
	}
	.intro__title,
	.intro__text {
		grid-column: 1 / -1;
	}
	.intro__figure img {
		aspect-ratio: 4 / 3;
	}
	.details__grid,
	.book__head,
	.book__grid {
		grid-template-columns: 1fr;
	}
	.outside__a,
	.outside__text,
	.outside__b,
	.outside__c,
	.outside__d {
		grid-column: 1 / -1;
		grid-row: auto;
		min-height: 0;
		aspect-ratio: 4 / 3;
	}
	.outside__text {
		aspect-ratio: auto;
		order: -1;
		padding: 0 0 1rem;
	}
	.outside__d {
		display: none;
	}
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
	.site-footer__brand {
		grid-column: 1 / -1;
	}

	.book-bar {
		position: fixed;
		inset: auto 0 0;
		z-index: 40;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
		background: color-mix(in srgb, var(--bg) 94%, transparent);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
		border-top: 1px solid var(--line);
		transform: translateY(110%);
		transition: transform 0.4s var(--ease), background-color 0.9s ease;
	}
	.book-bar.is-visible {
		transform: none;
	}
	.book-bar p {
		margin: 0;
		color: var(--muted);
	}
	.book-bar strong {
		font-family: var(--serif);
		font-size: 1.35rem;
		font-weight: 400;
		color: var(--ink);
	}
}

@media (max-width: 720px) {
	body {
		font-size: 1rem;
	}
	.dial__caption {
		flex-basis: 100%;
	}
	.dial__now {
		margin-left: 0;
	}
	.dial__ticks span:nth-child(2),
	.dial__ticks span:nth-child(4) {
		visibility: hidden;
	}
	.intro__lists {
		grid-template-columns: 1fr;
	}
	.walk__head {
		flex-direction: column;
		align-items: flex-start;
	}
	.walk__controls {
		display: none;
	}
	.walk__track {
		grid-auto-columns: 86vw;
	}
	.room__caption {
		grid-template-columns: 1fr;
	}
	.facts {
		grid-template-columns: 1fr;
	}
	.cal__months {
		grid-template-columns: 1fr;
	}
	.cal__month + .cal__month {
		display: none;
	}
	.post-grid {
		grid-template-columns: 1fr;
	}
	.site-footer__grid {
		grid-template-columns: 1fr;
	}
	.site-footer__base {
		flex-direction: column;
		padding-bottom: 5.5rem;
	}
	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}
	.post-navigation .nav-next {
		grid-column: 1;
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* WordPress core classes */
.alignleft {
	float: left;
	margin: 0 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0 0 1rem 1.5rem;
}

.aligncenter {
	margin-inline: auto;
}

.sticky,
.bypostauthor,
.gallery-caption {
	outline: none;
}
