/* Place colours are --wp--custom--place--*, set by each child theme's theme.json. */

:root {
	--ground: var(--wp--custom--place--ground);
	--soft: var(--wp--custom--place--soft);
	--ink: var(--wp--preset--color--ink);
	--muted: var(--wp--preset--color--muted);
	--line: var(--wp--preset--color--line);
	--mist: var(--wp--preset--color--mist);
	--link: var(--wp--preset--color--link);
	--display: var(--wp--preset--font-family--display);
	--radius: 28px;
	--gutter: clamp(20px, 4vw, 40px);
	--panel-gap: 12px;
	--column: 88px;
	--side: 340px;
}

body { overflow-wrap: break-word; }
h1, h2, h3, p, ul { margin-block: 0; }
.wp-site-blocks > * { margin-block: 0; }
a { text-decoration-color: #2F6BFF; text-decoration-thickness: 2px; text-underline-offset: 4px; }
:where(a, button, input, summary, select, textarea):focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
button { font: inherit; }

.inner { box-sizing: border-box; width: 100%; max-width: 1200px; margin-inline: auto; }
.lead { font-size: 20px; max-width: 30em; text-wrap: pretty; }
.h3 { font-size: 30px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack > * { margin-block: 0; }

/* Panels */
.panel-wrap { padding: var(--panel-gap) var(--panel-gap) 0; }
.panel-wrap--footer { padding-bottom: var(--panel-gap); }
.panel { border-radius: var(--radius); padding-inline: clamp(16px, 3vw, 28px); }
.panel--place { background: var(--ground); }
.panel--newsletter { background: var(--wp--custom--place--panel); padding-block: clamp(48px, 7vw, 80px); }
.panel--footer { background: var(--ink); color: #fff; padding-block: 64px 40px; }

/* Masthead */
.masthead { position: relative; z-index: 5; padding-block: 20px; font-weight: 500; font-size: 16px; }
.masthead-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; }
.masthead ul { list-style: none; padding: 0; }
.masthead a { color: inherit; text-decoration: none; }
.masthead a:hover { color: inherit; }
.place-switch { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: -0.01em; }
.place-switch details { position: relative; }
.place-switch summary { list-style: none; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px 0 20px; border-radius: 24px; background: #fff; cursor: pointer; }
.place-switch summary::-webkit-details-marker { display: none; }
.place-switch summary svg { transition: transform 160ms; }
.place-switch details[open] summary svg { transform: rotate(180deg); }
.place-switch details ul { position: absolute; top: 56px; left: 0; width: min(300px, calc(100vw - 56px)); max-height: 60vh; overflow: auto; box-sizing: border-box; padding: 10px; border-radius: 20px; background: #fff; box-shadow: 0 16px 40px rgb(16 35 58 / 0.22); font: 500 17px/1.4 var(--wp--preset--font-family--body); letter-spacing: 0; }
.place-switch li a { display: block; padding: 11px 14px; border-radius: 12px; }
.place-switch li a:hover { background: var(--mist); }
.place-switch-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.place-switch-all:first-child { border: 0; margin: 0; padding: 0; }
.place-switch-home { line-height: 48px; white-space: nowrap; }
.masthead nav ul { display: flex; flex-wrap: wrap; gap: 0 4px; margin-inline: -14px; }
.masthead nav a { display: block; line-height: 44px; padding: 0 14px; border-radius: 22px; }
.masthead nav a[aria-current], .masthead nav a:hover { background: rgb(255 255 255 / 0.6); }

/* Hero */
.hero { position: relative; min-height: 590px; }
.hero--plain { min-height: 0; padding-bottom: 40px; }
.hero-text { box-sizing: border-box; max-width: min(580px, calc(100% - 620px)); padding: 48px 0 56px; display: flex; flex-direction: column; gap: 24px; }
.hero--plain .hero-text { max-width: 760px; }
.hero h1 { font-size: clamp(42px, 5vw, 68px); line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance; }
/* The creature's legs line up with the column below: half the column, plus the side, from the right edge. */
.hero-creature { position: absolute; bottom: 0; right: calc(var(--side) + var(--column) / 2 - 206px); width: 420px; height: auto; }

.page-header { padding-block: 32px 56px; }
.page-header-text { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.page-header h1 { font-size: clamp(38px, 4.8vw, 60px); line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.page-header--creature { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 0 48px; padding-bottom: 0; }
.page-header--creature .page-header-text { flex: 1 1 440px; max-width: 600px; align-self: center; padding-bottom: 56px; gap: 20px; }
.page-header--creature img { display: block; flex: 0 1 420px; min-width: 0; height: auto; margin-left: auto; }

/* Pill field */
.pill-field { display: flex; align-items: center; gap: 8px; max-width: 520px; box-sizing: border-box; padding: 8px; border-radius: 34px; background: #fff; }
.pill-field input { flex: 1 1 0; min-width: 0; box-sizing: border-box; height: 52px; padding: 0 18px; border: 0; border-radius: 26px; background: #fff; font: inherit; font-size: 18px; color: var(--ink); }
.pill-field button { height: 52px; padding: 0 28px; border: 0; border-radius: 26px; background: var(--ink); color: #fff; font-weight: 600; font-size: 17px; cursor: pointer; }
.pill-field button:disabled { opacity: 0.6; cursor: default; }
.signup { display: flex; flex-direction: column; gap: 10px; }
.signup label { font-weight: 600; }
.form-trap { position: absolute; left: -9999px; }
.signup-message { min-height: 1.5em; }
.signup.is-done .pill-field, .signup.is-done label { display: none; }
.signup.is-done .signup-message { font: 700 26px/1.2 var(--display); letter-spacing: -0.02em; }
.signup-note { padding: 14px 18px; border-radius: 16px; background: rgb(255 255 255 / 0.6); font-size: 15px; }

/* Home columns */
.place-home { padding-inline: var(--gutter); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) var(--column) var(--side); }
.cols > * { margin-block: 0; }
.cols-main { display: flex; flex-direction: column; gap: 88px; min-width: 0; padding-block: 72px 96px; }
.cols-side { display: flex; flex-direction: column; gap: 56px; min-width: 0; padding-block: 72px 96px; }
.cols-main > *, .cols-side > * { margin-block: 0; }
.cols-side { grid-column: 3; }

.column { position: relative; grid-column: 2; grid-row: 1; }
.column-line { position: absolute; inset: 0; bottom: calc(var(--wp--custom--place--column-line-end) - var(--panel-gap)); background: no-repeat center top / var(--column) auto; background-repeat: no-repeat round; }
.column-joint { position: absolute; left: 0; width: 100%; top: var(--wp--custom--place--column-joint); }
.column-joint--2 { top: var(--wp--custom--place--column-joint-2); }
.column-foot { position: absolute; left: 50%; bottom: calc(-1 * (var(--wp--custom--place--column-drop) + var(--panel-gap))); transform: translateX(-50%); z-index: 1; max-width: none; }

/* Rows */
.rows { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.row { display: flex; align-items: center; gap: 20px; padding: 10px; margin-inline: -10px; border-radius: 24px; color: inherit; text-decoration: none; }
a.row { transition: background-color 140ms; }
a.row:hover { background: #F2F6F8; color: inherit; }
.row-icon { flex: 0 0 auto; width: 68px; height: 68px; border-radius: 18px; background: var(--soft); }
.row-icon svg { display: block; }
.row-icon--directory { background: var(--wp--preset--color--butter); }
.row-icon--events { background: var(--wp--preset--color--sky); }
.row-icon--notices { background: var(--wp--preset--color--coral); }
.row-text { flex: 1 1 auto; min-width: 0; }
.row-text > * { display: block; }
.row-text strong { font-weight: 600; font-size: 20px; line-height: 1.3; }
.row-text span { color: var(--muted); text-wrap: pretty; }
.row-action { flex: 0 0 auto; line-height: 44px; font-weight: 500; }
.date-tile { flex: 0 0 auto; width: 68px; height: 68px; border-radius: 18px; background: var(--soft); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.date-tile span { font-size: 14px; font-weight: 500; }
.date-tile b { font: 700 28px/1.05 var(--display); letter-spacing: -0.025em; }

.today, .useful { display: flex; flex-direction: column; gap: 10px; }
.useful ul { list-style: none; padding: 0; }
.useful a { display: inline-block; line-height: 44px; }

.newsletter { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 32px 72px; align-items: center; }
.newsletter h2 { font-size: clamp(40px, 4.6vw, 62px); line-height: 1; text-wrap: balance; }

/* Buttons and forms */
.button { display: inline-block; border: 0; border-radius: 26px; padding: 0 24px; background: var(--ink); color: #fff; font-weight: 600; line-height: 52px; text-decoration: none; cursor: pointer; }
.button:hover { color: #fff; }
.box { border-radius: 24px; padding: 24px; background: #EAF1F4; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.box > * { margin-block: 0; }
.box h2 { font-size: 24px; }
.form { display: flex; flex-direction: column; gap: 22px; max-width: 620px; margin-inline: auto; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label, .form-field legend { font-weight: 600; }
.form-field small { font-size: 15px; color: var(--muted); }
.form-field :is(input, select, textarea) { box-sizing: border-box; width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid #74869A; border-radius: 16px; background: #fff; font: inherit; color: var(--ink); }
.form-check { display: flex; gap: 12px; align-items: flex-start; }
.form-check input { width: 22px; height: 22px; flex: 0 0 auto; margin: 2px 0 0; }
.form-notice { border-radius: 20px; padding: 18px 22px; background: var(--wp--preset--color--coral); }
.form-notice--done { background: var(--wp--preset--color--mint); font: 700 26px/1.2 var(--display); letter-spacing: -0.02em; }

/* Pages */
.page-main { padding: 64px var(--gutter) 96px; }
.page-main:not(:has(*)) { display: none; }
.page-main--wide { padding-inline: var(--gutter); }
.page-main--wide > * { max-width: 1200px; margin-inline: auto; }
.page-main :where(.wp-block-post-content, .wp-block-query) :where(ul, ol) { padding-left: 1.2em; }

/* A long page of words */
.privacy { display: flex; flex-direction: column; gap: 16px; font-size: 18px; }
.privacy > * { margin-block: 0; }
.privacy h2 { font-size: 30px; padding-top: 24px; }

/* Main site */
.places { padding-block: 72px 96px; }
.places ul { list-style: none; padding: 0; font: 700 clamp(34px, 5vw, 64px)/1.2 var(--display); letter-spacing: -0.03em; }
.places a { color: inherit; }
.places span { color: var(--muted); }
.place-home:has(.places) .cols { display: none; }

/* Footer */
.panel--footer a { color: #fff; text-decoration-color: var(--ground); }
.footer-heading { font: 400 19px/1.5 var(--wp--preset--font-family--body); letter-spacing: 0; color: #BFD3E2; }
.panel--footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; }
.footer-places { gap: 0 clamp(20px, 3vw, 36px); padding-block: 10px 48px !important; font: 700 clamp(28px, 3vw, 36px)/1.3 var(--display); letter-spacing: -0.02em; }
.footer-places a { text-decoration-thickness: 3px; text-underline-offset: 6px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 64px; }
.footer-places + .footer-base { border-top: 1px solid #35506B; padding-top: 28px; }
.footer-base p { max-width: 34em; color: #DCE7EF; text-wrap: pretty; }
.footer-base ul { gap: 0 24px; }
.footer-base li a { line-height: 44px; }

@media (max-width: 1080px) {
	.hero { min-height: 0; }
	.hero-text { max-width: 620px; }
	.hero-creature { position: static; display: block; width: min(300px, 78%); margin-left: auto; }
	.cols { grid-template-columns: minmax(0, 1fr); }
	.cols-side { grid-column: auto; padding-top: 0; }
	.column { display: none; }
}
@media (max-width: 560px) {
	.place-switch { font-size: 20px; }
	.row { align-items: flex-start; }
	.row:has(.row-action) { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 0 20px; }
	.row:has(.row-action) .row-icon { grid-row: span 2; }
	.page-header--creature img { width: 78%; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before { transition: none !important; }
}
