/*
Theme Name: Ten31
Theme URI: https://str.egroeg.com
Author: Ten31 LLC
Description: The guest site's block theme, built to the "Tile, halfway" designs in the AirGnj Paper file (Guest site page). Colours, type and radii come from the --guest- tokens (theme.json). Pages are drafted and published by AirGnj; the booking calendar block lives in the AirGnj Booking Calendar plugin.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.0
Version: 1.0.0
License: Proprietary
Text Domain: ten31
*/

/*
 * Component styles for the class names AirGnj's page drafts and this theme's patterns use
 * (app/Services/WordPress/PageDraftBuilder.php). Values are the Paper guest designs' exact ones:
 * desktop 1440 artboards, phone 390 artboards below 782px.
 */

:root {
	--ten31-gutter: var(--wp--custom--gutter);
	--ten31-section-gap: var(--wp--preset--spacing--90);
}

body {
	-webkit-font-smoothing: antialiased;
	font-synthesis: none;
}

/* Skip link and focus: visible on every interactive element. */
.ten31-skip-link {
	position: absolute;
	left: -9999px;
}
.ten31-skip-link:focus {
	left: 16px;
	top: 16px;
	z-index: 100;
	padding: 12px 16px;
	background: var(--wp--preset--color--background);
	border: 2px solid var(--wp--preset--color--ink);
	border-radius: var(--wp--custom--radius--button);
}
:where(a, button, input, select, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--gold);
	outline-offset: 2px;
}

/* ---------- Text styles ---------- */

.ten31-display {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--display);
	line-height: var(--wp--custom--line-height--display);
	letter-spacing: var(--wp--custom--tracking--display);
	font-weight: 800;
	margin: 0;
}
.ten31-h2 {
	font-size: var(--wp--preset--font-size--section);
	line-height: var(--wp--custom--line-height--section);
	letter-spacing: var(--wp--custom--tracking--tight);
	font-weight: 800;
	margin: 0;
}
.ten31-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--title);
	line-height: var(--wp--custom--line-height--title);
	letter-spacing: var(--wp--custom--tracking--title);
	font-weight: 700;
	margin: 0;
}
.ten31-title a {
	color: inherit;
	text-decoration: none;
}
.ten31-lead {
	font-size: var(--wp--preset--font-size--lead);
	line-height: var(--wp--custom--line-height--lead);
	color: var(--wp--preset--color--text-muted);
	margin: 0;
}
.ten31-lead.is-ink {
	color: var(--wp--preset--color--ink);
}
.ten31-body,
.ten31-note {
	font-size: var(--wp--preset--font-size--body);
	line-height: var(--wp--custom--line-height--body);
	color: var(--wp--preset--color--text-muted);
	margin: 0;
}
.ten31-muted {
	font-size: var(--wp--preset--font-size--small);
	line-height: var(--wp--custom--line-height--small);
	color: var(--wp--preset--color--text-muted);
	margin: 0;
}
.ten31-breadcrumb {
	font-size: var(--wp--preset--font-size--caption);
	line-height: var(--wp--custom--line-height--caption);
	font-weight: 500;
	color: var(--wp--preset--color--text-muted);
	margin: 0;
}
.ten31-kicker {
	font-size: var(--wp--preset--font-size--small);
	line-height: var(--wp--custom--line-height--small);
	font-weight: 700;
	color: var(--wp--preset--color--blue);
	margin: 0;
}
.ten31-promise {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--title);
	line-height: var(--wp--custom--line-height--title);
	font-weight: 800;
	text-align: center;
}

/* ---------- Buttons: fill (default), outline, light (on blue) ---------- */

.wp-block-button__link {
	font-size: var(--wp--preset--font-size--body);
	text-decoration: none;
}
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 2px solid var(--wp--preset--color--ink);
	padding: 14px 26px;
}
.wp-block-button.is-style-light > .wp-block-button__link {
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--blue);
}
.wp-block-buttons {
	gap: 12px;
}

/* ---------- Header and footer ---------- */

.ten31-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: 24px var(--ten31-gutter);
}
.ten31-nav {
	display: flex;
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ten31-nav a {
	font-size: var(--wp--preset--font-size--small);
	line-height: 24px;
	font-weight: 500;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.ten31-nav a[aria-current="page"] {
	color: var(--wp--preset--color--blue);
	font-weight: 700;
	border-bottom: 2px solid var(--wp--preset--color--blue);
}
.ten31-header .wp-block-button__link {
	padding: 12px 24px;
	font-size: var(--wp--preset--font-size--small);
}
.ten31-menu {
	display: none;
}

.ten31-footer {
	display: flex;
	justify-content: space-between;
	gap: 64px;
	padding: 64px var(--ten31-gutter);
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--on-blue);
	margin-top: 0;
}
.ten31-footer__brand {
	width: 360px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.ten31-footer .wp-block-site-title,
.ten31-footer .ten31-footer__name {
	color: var(--wp--preset--color--background);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--title);
	line-height: var(--wp--custom--line-height--title);
	letter-spacing: var(--wp--custom--tracking--title);
	font-weight: 800;
	margin: 0;
}
.ten31-footer p,
.ten31-footer li {
	font-size: var(--wp--preset--font-size--small);
	line-height: 24px;
	margin: 0;
}
.ten31-footer__cols {
	display: contents;
}
.ten31-footer__col {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ten31-footer__heading {
	font-size: var(--wp--preset--font-size--caption) !important;
	line-height: var(--wp--custom--line-height--caption) !important;
	font-weight: 700;
	color: var(--wp--preset--color--gold-on-blue);
}
.ten31-footer a {
	color: var(--wp--preset--color--background);
	font-weight: 400;
	text-decoration: none;
}
.ten31-footer__legal {
	font-size: var(--wp--preset--font-size--caption) !important;
	line-height: var(--wp--custom--line-height--caption) !important;
}

/* ---------- Page head and home hero ---------- */

.ten31-page-head,
.ten31-home-hero {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 48px;
	padding: 32px var(--ten31-gutter) 40px;
}
.ten31-page-head__main {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}
.ten31-page-head__aside {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 420px;
	flex-shrink: 0;
	padding-bottom: 12px;
}
.ten31-home-hero .ten31-page-head__aside {
	width: 360px;
}
.ten31-hero-photo {
	position: relative;
	margin: 0 var(--ten31-gutter) 72px;
}

/* ---------- Photos ---------- */

.ten31-photo {
	margin: 0;
}
.ten31-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--photo);
}
.ten31-photo.is-hero img {
	border-radius: var(--wp--custom--radius--hero);
}
.ten31-hero-photo .ten31-photo img {
	height: 520px;
}
.ten31-photo-grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.15fr 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 16px;
	height: 520px;
	padding: 0 var(--ten31-gutter);
}
.ten31-photo-grid > .ten31-photo.is-hero {
	grid-row: 1 / span 2;
}
.ten31-photo-grid.is-1 {
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
}
.ten31-photo-grid.is-3 {
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: 1fr;
	height: 440px;
}
.ten31-photo-grid.is-3 > .ten31-photo.is-hero {
	grid-row: auto;
}
.ten31-card .ten31-photo img {
	height: 240px;
}

/* The gold sticker ("Book direct, skip the fees", event dates). */
.ten31-sticker {
	position: absolute;
	top: -28px;
	right: 56px;
	width: 168px;
	height: 168px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 19px;
	margin: 0;
	border-radius: 84px;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--display);
	font-size: 22px;
	line-height: 24px;
	font-weight: 800;
	text-align: center;
	rotate: -10deg;
}

/* ---------- Chips ---------- */

.ten31-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ten31-chips li {
	padding: 6px 14px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--blue-tint);
	color: var(--wp--preset--color--blue);
	font-size: var(--wp--preset--font-size--caption);
	line-height: var(--wp--custom--line-height--caption);
	font-weight: 700;
}
.ten31-chips.is-outline {
	gap: 10px;
}
.ten31-chips.is-outline li {
	padding: 8px 16px;
	background: transparent;
	border: 2px solid var(--wp--preset--color--ink);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
	line-height: 24px;
	font-weight: 500;
}

/* ---------- Sections, tiles, cards, bands ---------- */

.ten31-main,
.ten31-section {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.ten31-with-card {
	padding: 72px var(--ten31-gutter) var(--ten31-section-gap);
	gap: 64px !important;
	align-items: flex-start !important;
}
.ten31-with-card > .wp-block-column:first-child {
	display: flex;
	flex-direction: column;
	gap: 56px;
}
.ten31-with-card > .wp-block-column:last-child {
	position: sticky;
	top: 24px;
}
.ten31-setups,
body .ten31-section.ten31-setups,
.wp-block-post-content > .ten31-section {
	padding: 24px var(--ten31-gutter) 88px;
	gap: 32px;
}

.ten31-tiles {
	gap: 16px !important;
	margin: 0 !important;
}
.ten31-tile {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	padding: 24px;
	border-radius: var(--wp--custom--radius--photo);
}
.ten31-tile.is-blue {
	background: var(--wp--preset--color--blue-tint);
}
.ten31-tile.is-sand {
	background: var(--wp--preset--color--sand);
}
.ten31-tile__title {
	font-size: var(--wp--preset--font-size--body);
	line-height: var(--wp--custom--line-height--body);
	font-weight: 700;
	color: var(--wp--preset--color--ink);
	margin: 0;
}
.ten31-tile__text {
	font-size: var(--wp--preset--font-size--small);
	line-height: 24px;
	color: var(--wp--preset--color--text-muted);
	margin: 0;
}
.ten31-tile.is-sand .ten31-tile__text {
	color: var(--wp--preset--color--on-sand);
}

.ten31-cards {
	gap: 20px !important;
	margin: 0 !important;
}
.ten31-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	height: 100%;
	padding: 20px;
	border: 2px solid var(--wp--preset--color--ink);
	border-radius: var(--wp--custom--radius--card);
}
.ten31-card.is-plain {
	padding: 28px;
	gap: 12px;
	background: var(--wp--preset--color--background);
}
.ten31-card.is-blue {
	border-color: var(--wp--preset--color--blue);
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--on-blue);
}
.ten31-card.is-blue .ten31-title,
.ten31-card.is-blue .ten31-title a {
	color: var(--wp--preset--color--background);
}
.ten31-card.is-blue .ten31-muted {
	color: var(--wp--preset--color--on-blue);
}
.ten31-card__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.ten31-band {
	margin: 0 var(--ten31-gutter) var(--ten31-section-gap);
	padding: 64px;
	border-radius: var(--wp--custom--radius--hero);
	display: flex;
	flex-direction: column;
	gap: 48px;
}
.ten31-band.is-sand {
	background: var(--wp--preset--color--sand);
}
.ten31-band.is-sand .ten31-lead {
	color: var(--wp--preset--color--on-sand);
}
.ten31-band.is-blue {
	padding: 40px;
	background: var(--wp--preset--color--blue);
}
.ten31-band.is-blue .wp-block-columns {
	align-items: center !important;
	gap: 56px !important;
	margin: 0;
}
.ten31-band.is-blue .ten31-h2 {
	color: var(--wp--preset--color--background);
}
.ten31-band.is-blue .ten31-lead {
	color: var(--wp--preset--color--on-blue);
}
.ten31-band.is-blue .ten31-photo img {
	height: 320px;
}
.ten31-band__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 48px;
}
.ten31-band__head .ten31-lead {
	width: 420px;
	flex-shrink: 0;
	font-size: var(--wp--preset--font-size--body);
	line-height: var(--wp--custom--line-height--body);
}

/* House rules: label column 200px, rows ruled in blue tint. */
.ten31-rules table {
	width: 100%;
	border-collapse: collapse;
}
.ten31-rules th,
.ten31-rules td {
	padding: 12px 0;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--blue-tint);
	text-align: left;
	vertical-align: top;
	font-size: var(--wp--preset--font-size--small);
	line-height: 24px;
}
.ten31-rules tr:last-child th,
.ten31-rules tr:last-child td {
	border-bottom: 1px solid var(--wp--preset--color--blue-tint);
}
.ten31-rules th {
	width: 200px;
	padding-right: 24px;
	font-weight: 400;
	color: var(--wp--preset--color--text-muted);
}
.ten31-rules td {
	font-weight: 500;
	color: var(--wp--preset--color--ink);
}

.ten31-distances {
	margin: 0;
	padding-left: 20px;
	color: var(--wp--preset--color--text-muted);
}

.ten31-faq,
.ten31-about-hero {
	padding: 0 var(--ten31-gutter) var(--ten31-section-gap);
	gap: 64px !important;
}
.ten31-faq > .wp-block-column:last-child {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* ---------- Phone (the 390 artboards) ---------- */

@media (max-width: 781px) {
	.ten31-header {
		padding: 12px 20px;
	}
	.ten31-header .wp-block-site-title {
		font-size: 24px;
		line-height: 28px;
	}
	.ten31-nav {
		display: none;
	}
	.ten31-menu {
		display: block;
	}
	.ten31-menu summary {
		list-style: none;
		cursor: pointer;
		font-size: var(--wp--preset--font-size--small);
		font-weight: 500;
		min-height: 44px;
		display: flex;
		align-items: center;
	}
	.ten31-menu[open] .ten31-nav {
		display: flex;
		flex-direction: column;
		position: absolute;
		left: 0;
		right: 0;
		padding: 16px 20px;
		background: var(--wp--preset--color--background);
		border-bottom: 2px solid var(--wp--preset--color--ink);
		z-index: 10;
	}
	.ten31-header .wp-block-button__link {
		padding: 10px 18px;
	}
	.ten31-page-head,
	.ten31-home-hero,
	.ten31-band__head {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
		padding: 20px 20px 40px;
	}
	.ten31-page-head__aside,
	.ten31-home-hero .ten31-page-head__aside,
	.ten31-band__head .ten31-lead {
		width: auto;
	}
	.ten31-hero-photo {
		margin: 28px 20px 56px;
	}
	.ten31-hero-photo .ten31-photo img {
		height: 300px;
	}
	.ten31-sticker {
		width: 116px;
		height: 116px;
		right: 16px;
		border-radius: 58px;
		padding: 0 10px;
		font-size: 16px;
		line-height: 18px;
	}
	.ten31-photo-grid,
	.ten31-photo-grid.is-3 {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 260px 140px;
		height: auto;
		padding: 0 20px;
	}
	.ten31-photo-grid > .ten31-photo.is-hero {
		grid-column: 1 / span 2;
		grid-row: auto;
	}
	.ten31-photo-grid > .ten31-photo:nth-child(n + 4) {
		display: none;
	}
	.ten31-card .ten31-photo img {
		height: 190px;
	}
	.ten31-with-card {
		padding: 40px 20px 56px;
		gap: 40px !important;
	}
	.ten31-with-card > .wp-block-column:last-child {
		position: static;
	}
	.ten31-band {
		margin: 0 0 56px;
		padding: 48px 20px;
		border-radius: 0;
	}
	.ten31-band.is-blue {
		margin: 0 20px 56px;
		padding: 20px;
		border-radius: var(--wp--custom--radius--card);
	}
	.ten31-band.is-blue .ten31-photo img {
		height: 200px;
	}
	.ten31-rules th {
		width: 120px;
	}
	.ten31-footer {
		flex-direction: column;
		gap: 28px;
		padding: 40px 20px 48px;
	}
	.ten31-footer__brand {
		width: auto;
	}
	.ten31-footer__cols {
		display: flex;
		gap: 20px;
	}
	.ten31-faq,
	.ten31-about-hero {
		padding: 0 20px 56px;
		gap: 20px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
