/*
 * Design "Journal": a different layout, like a printed journal. A masthead header (name above,
 * menu below), the hero title on a paper card, About in two columns of text, a gallery of photos
 * of different heights, numbered amenities, columns of reviews and a light footer.
 * Loaded after main.css for villas with "villa.design": "journal". Same sections, order and markup as
 * Classic; only the look and the layout change. Colours: villa_designs().
 */

/* ==========================================================================
   Fonts (self-hosted, latin + latin-ext)
   ========================================================================== */

@font-face { font-family: "Lora"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lora-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lora-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/lora-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/lora-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/lora-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/lora-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/work-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/work-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/work-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/work-sans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/work-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/work-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
	--color-text: #22282a;
	--color-text-muted: #616a68;
	--color-bg: #fbfaf7;
	--color-bg-soft: #f2f0ea;
	--color-bg-sand: #efece4;
	--color-footer: #efece4;
	--color-border: rgb(34 40 42 / 0.14);
	--color-day-available: #e3ece7;
	--font-heading: "Lora", Georgia, "Times New Roman", serif;
	--font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--radius: 0;
	--shadow-card: 0 1px 0 var(--color-border);
}

body {
	font-size: 15px;
}

h1,
h2,
h3,
h4 {
	font-weight: 500;
}

.button {
	font-weight: 500;
	letter-spacing: 0.14em;
}

.section-label {
	font-weight: 500;
	letter-spacing: 0.22em;
}

/* ==========================================================================
   Header: a masthead, the name centred above and the menu below a line
   ========================================================================== */

.site-header {
	background: var(--color-bg);
	border-bottom: 3px double var(--color-border);
}

@media (min-width: 901px) {
	:root {
		--header-height: 136px;
	}

	.site-header__inner {
		grid-template-rows: auto auto;
		row-gap: 0;
		min-height: 0;
		padding-top: 18px;
	}

	.site-branding {
		grid-column: 2;
		grid-row: 1;
		justify-self: center;
		align-items: center;
		text-align: center;
	}

	.site-header__actions {
		grid-column: 3;
		grid-row: 1;
	}

	.site-nav {
		grid-column: 1 / -1;
		grid-row: 2;
		margin-top: 16px;
		padding: 12px 0;
		border-top: 1px solid var(--color-border);
	}

	.site-nav__menu {
		justify-content: center;
	}
}

.site-branding__name {
	font-size: 28px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: none;
}

.site-nav__menu a {
	font-weight: 500;
	letter-spacing: 0.16em;
}

/* ==========================================================================
   Hero: the title and text on a paper card over the photo
   ========================================================================== */

.hero::after {
	background: rgb(20 24 22 / 0.12);
}

.hero__content {
	max-width: 780px;
	margin-inline: auto;
	padding: clamp(28px, 3.4vw, 52px) clamp(24px, 4vw, 64px);
	background: var(--color-bg);
	color: var(--color-text);
}

.hero__title {
	font-size: clamp(34px, 3.4vw, 56px);
	white-space: normal;
}

.hero__text {
	color: var(--color-text-muted);
	font-size: 16px;
}

.availability-form {
	max-width: 780px;
	grid-template-columns: 1fr 1fr 0.8fr;
	background: var(--color-bg);
	border-top: 1px solid var(--color-border);
	box-shadow: none;
}

.availability-form__submit {
	grid-column: 1 / -1;
}

.hero__inner + .availability-form-section {
	margin-top: -40px;
}

@media (max-width: 768px) {
	.availability-form {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero__title {
		font-size: 30px;
	}
}

/* ==========================================================================
   About: a wide photo, then the text in two columns
   ========================================================================== */

.about__inner {
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
}

.about__content {
	max-width: none;
}

.about__photo img {
	aspect-ratio: 21 / 9;
}

@media (max-width: 768px) {
	.about__photo img {
		aspect-ratio: 4 / 3;
	}
}

@media (min-width: 901px) {
	.about__text {
		column-count: 2;
		column-gap: 56px;
		column-rule: 1px solid var(--color-border);
	}

	.about__text p:first-child {
		margin-top: 0;
	}
}

.about__signature {
	font-family: var(--font-heading);
	font-size: 28px;
	font-style: italic;
	color: var(--color-accent);
}

/* ==========================================================================
   Gallery: two columns of photos of different heights
   ========================================================================== */

@media (min-width: 769px) {
	.small-gallery__grid {
		display: block;
		height: auto;
		column-count: 2;
		column-gap: 14px;
	}

	.small-gallery__grid > .small-gallery__item {
		display: block;
		margin-bottom: 14px;
		break-inside: avoid;
		aspect-ratio: 3 / 2;
	}

	.small-gallery__grid--4 > .small-gallery__item:nth-child(2),
	.small-gallery__grid--4 > .small-gallery__item:nth-child(3) {
		aspect-ratio: 16 / 9;
	}

	.small-gallery__row {
		margin-top: 0;
	}
}

/* ==========================================================================
   Video band: a short band, italic title
   ========================================================================== */

.video-band {
	min-height: clamp(320px, 28vw, 460px);
}

.video-band__title {
	font-size: clamp(32px, 3.6vw, 60px);
	font-style: italic;
	font-weight: 400;
	letter-spacing: 0.01em;
	text-transform: none;
}

/* ==========================================================================
   Amenities: numbered, in four columns, no icons
   ========================================================================== */

.amenities__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0 32px;
	counter-reset: amenity;
}

.amenity {
	flex-direction: row;
	align-items: baseline;
	gap: 14px;
	padding: 14px 0;
	border-top: 1px solid var(--color-border);
	background: none;
	box-shadow: none;
	counter-increment: amenity;
}

.amenity::before {
	content: counter(amenity, decimal-leading-zero);
	color: var(--color-accent);
	font-family: var(--font-heading);
	font-style: italic;
}

.amenity__icon {
	display: none;
}

.amenity__label {
	font-weight: 500;
}

@media (max-width: 768px) {
	.amenities__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 20px;
	}
}

/* ==========================================================================
   Prices: a plain green band instead of a photo
   ========================================================================== */

.prices__photo,
.prices__band::after {
	display: none;
}

.prices__band {
	background: var(--color-button);
}

/* ==========================================================================
   Reviews: columns divided by lines, no cards
   ========================================================================== */

.review {
	padding: 0 28px;
	border-left: 1px solid var(--color-border);
	background: none;
	box-shadow: none;
}

.review:first-child {
	border-left: 0;
}

.review__text {
	font-family: var(--font-heading);
	font-size: 17px;
	font-style: italic;
}

.review__name {
	font-weight: 600;
}

.review__stars {
	color: var(--color-accent);
}

@media (max-width: 768px) {
	.review {
		padding: 20px 0 0;
		border-top: 1px solid var(--color-border);
		border-left: 0;
	}
}

.house-rules__list {
	border-width: 1px 0;
	border-radius: 0;
	background: none;
}

/* ==========================================================================
   Get in touch and a light footer
   ========================================================================== */

.contact-item__icon {
	color: var(--color-accent);
}

.contact-item__title {
	font-family: var(--font-heading);
	font-size: 19px;
}

.site-footer {
	border-top: 3px double var(--color-border);
	color: var(--color-text-muted);
}

.site-footer a,
.site-footer__menu a {
	color: var(--color-text);
}

.platform-link {
	border-color: var(--color-border);
	color: var(--color-text);
}

.platform-link:hover {
	border-color: var(--color-accent);
	background: none;
	color: var(--color-accent);
}

/* ==========================================================================
   Theme pages
   ========================================================================== */

.theme-page__band {
	background: var(--color-button);
}
