/* ============================================================
   The Lookout - main stylesheet
   Order: fonts > design tokens > reset > base typography >
   layout > buttons and links > section heading > scroll reveals >
   utilities > reduced motion
   ============================================================ */

/* Component CSS lives in components/ - one file per component, enqueued
   individually AFTER this file with filemtime versions (inc/enqueue.php).
   Do NOT @import them here: imported URLs carry no cache-busting version,
   and loading components after main.css lets component overrides win.

   Source of every value: Emma's approved prototype
   (documents/the-lookout-demo-site/assets/css/site.css), rewritten
   mobile-first. Its max-width breakpoints 1280 / 1180 / 960 / 760 / 480
   become min-width 1281 / 1181 / 961 / 761 / 481 here. */

/* ============================================================
   Fonts (self-hosted)
   ============================================================ */

/* Kate's heading font (Great Studio), with the prototype's settings. */
@font-face {
	font-family: "Boston Angel";
	src: url("../fonts/BostonAngel.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* Montserrat 300-800: Google's variable font, Latin subset (OFL). 800 is
   only for the arrow links' labels. */
@font-face {
	font-family: "Montserrat";
	src: url("../fonts/montserrat-latin-variable.woff2") format("woff2");
	font-weight: 300 800;
	font-style: normal;
	font-display: swap;
	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;
}

/* Playfair Display, one glyph only: the large opening quote mark of the
   reviews (the prototype's own subset, OFL). */
@font-face {
	font-family: "Playfair Display";
	src: url("../fonts/playfair-display-quote.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+201C;
}

/* ============================================================
   Design tokens
   Raw palette = Kate's brand colours (Emma's build notes; the colour
   change of 2026-11-26: the light sections #f4ebdd became #e8d5b4, and
   the accents #ca9f6a became #8b9780, except on the navy panels, where
   they stay gold: Emma 2026-11-27). Components use the SEMANTIC tokens,
   never the raw palette or a raw colour value.
   ============================================================ */

:root {
	/* Palette */
	--color-paper: #fdfdfd;      /* page background, text on navy */
	--color-navy: #3f4955;       /* text, buttons, navy panels, footer dome */
	--color-sage: #8b9780;       /* icons, pins, price badge, accents, hovers, image placeholders (accents were #ca9f6a, placeholders #8c9880) */
	--color-gold: #ca9f6a;       /* the same on the navy panels (.on-navy below) */
	--color-sand: #e9d6b5;       /* lines and borders */
	--color-sand-soft: #e8d5b4;  /* header, page heroes, light sections (was #f4ebdd until 2026-11-26) */

	/* Semantic aliases */
	--color-text: var(--color-navy);
	--color-bg: var(--color-paper);
	--color-surface-light: var(--color-sand-soft);
	--color-surface-dark: var(--color-navy);
	--color-on-dark: var(--color-paper);
	--color-accent: var(--color-sage);
	--color-line: var(--color-sand);
	--color-placeholder: var(--color-sage);
	--color-focus: var(--color-sage);
	--color-hover: var(--color-sage);      /* every button's hover / focus fill, and the arrows' hover */
	--color-on-hover: var(--color-navy);   /* words on that fill */
	--color-mask-show: var(--color-paper);  /* SVG masks: light = drawn */

	/* Tints (paper, navy, sand and sage at an opacity) */
	--color-on-dark-strong: rgb(253 253 253 / 0.86);  /* body copy on navy */
	--color-on-dark-soft: rgb(253 253 253 / 0.8);     /* icon labels on navy */
	--color-on-dark-muted: rgb(253 253 253 / 0.75);   /* footer address */
	--color-on-dark-faint: rgb(253 253 253 / 0.6);    /* footer legal row */
	--color-on-dark-rule: rgb(253 253 253 / 0.2);     /* rules on navy */
	--color-dot-idle: rgb(63 73 85 / 0.16);           /* inactive slider dots */
	--color-header-scrolled: rgb(232 213 180 / 0.96); /* the header once the page scrolls (sand-soft) */
	--color-field-border: rgb(63 73 85 / 0.35);       /* form fields at rest */
	--color-focus-ring: rgb(139 151 128 / 0.25);      /* the glow round a focused field (sage) */
	--color-overlay: rgb(63 73 85 / 0.94);            /* the photo viewer */
	--shadow-box: 0 18px 60px rgb(63 73 85 / 0.13), 0 2px 8px rgb(63 73 85 / 0.05); /* the enquiry box */

	/* Typography */
	--font-display: "Boston Angel", "Allura", cursive;
	--font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-quote: "Playfair Display", Georgia, "Times New Roman", serif;
	--size-h1: clamp(46px, 5vw, 72px);
	--size-h2: clamp(40px, 5vw, 60px);  /* every section heading below the hero */
	--size-label: 11px;

	/* Layout */
	--wrap: 1320px;
	--gutter-l: max(20px, env(safe-area-inset-left, 0px));
	--gutter-r: max(20px, env(safe-area-inset-right, 0px));
	/* From the screen edge to the start of the content column (.wrap and its
	   gutter): for full-width sections whose text must still line up with
	   everything else on wide screens. */
	--content-edge-l: calc(max(0px, (100vw - var(--wrap)) / 2) + var(--gutter-l));
	--content-edge-r: calc(max(0px, (100vw - var(--wrap)) / 2) + var(--gutter-r));

	/* Section rhythm (Miles 2026-11-24: "nice, consistent and elegant").
	   Every edge where the background changes has this much space on both
	   sides; two neighbouring sections on the same background share one
	   gap. 80px on phones, 100px from 761px, 120px from 1181px (set below).
	   The prototype mixed 64 / 70 / 76 / 90 / 96 / 110 / 120 / 130px. */
	--space-section: 80px;

	/* The header's full height, reserved at the top of the page, and its
	   height once the page scrolls (components/header.css; main.js shrinks it
	   only once the reserved space has scrolled under the small header, so no
	   gap ever opens below it). 122 / 76px phones, 148 / 82px from 481,
	   176 / 90px from 1181: the logo plus 12px above and below, so keep them
	   in step with the logo heights in header.css. */
	--header-h: 122px;
	--header-h-scrolled: 76px;

	/* Motion */
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);

	/* The dotted rule that appears under a menu item or an arrow link on
	   hover (Miles 2026-11-24). Whole dots at both ends (repeat: space),
	   never stretched: a soft mask edge travels left to right, so the dots
	   come in one after another, fast at first, then settle; and go out in
	   reverse. Rest = the edge just before the first dot. */
	--dots: radial-gradient(circle, currentColor 1px, transparent 1.3px) 0 0 / 6px 3px space no-repeat;
	--dots-mask: linear-gradient(90deg, currentColor 44%, transparent 52%) 0 0 / 250% 100% no-repeat;
	--dots-hidden: 87% 0;
	--dots-shown: 0 0;
	--dots-transition: -webkit-mask-position 0.6s var(--ease), mask-position 0.6s var(--ease);
	/* A dotted rule at rest (under a column title, above a place card, under
	   a link in text): one painted dot per tile, in the text colour. Use as
	   `background: var(--dots-line) <position> / 8px 3px space no-repeat`,
	   so the dots are whole at both ends. */
	--dots-line: radial-gradient(circle, currentColor 1px, transparent 1.3px);

	color-scheme: light;
}

@media (min-width: 481px) {
	:root {
		--header-h: 148px;
		--header-h-scrolled: 82px;
	}
}

@media (min-width: 761px) {
	:root {
		--space-section: 100px;
	}
}

@media (min-width: 1181px) {
	:root {
		--space-section: 120px;
		--header-h: 176px;
		--header-h-scrolled: 90px;
	}
}

/* ============================================================
   Reset
   ============================================================ */

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a {
	color: inherit;
}

button {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--color-focus);
	outline-offset: 4px;
}

/* ============================================================
   Base typography
   Boston Angel: keep the font's own decorative joins (the looped s in
   "si" and "st", "ra", "ti") and never let the browser fake a bold.
   ============================================================ */

h1,
h2,
h3 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 400;
	font-synthesis: none;
	font-variant-ligatures: common-ligatures;
	font-kerning: normal;
	letter-spacing: normal;
	text-wrap: balance;
}

p {
	margin: 0;
}

.eyebrow {
	font-size: var(--size-label);
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

/* ============================================================
   Layout
   ============================================================ */

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding-left: var(--gutter-l);
	padding-right: var(--gutter-r);
}

/* Inner-page sections: the section rhythm above and below, and a section
   on the same background as the one before it shares that gap (one gap,
   not two). The tone names the background. */
.section {
	padding-block: var(--space-section);
}

.tone-paper {
	background: var(--color-bg);
}

.tone-sand {
	background: var(--color-surface-light);
}

.tone-navy {
	background: var(--color-surface-dark);
	color: var(--color-on-dark);
}

/* On navy the accents, hovers and focus rings stay gold (Emma 2026-11-27:
   "on just the teal background ... change the green back to #CA9F6A"):
   the panels (Amenities, Life at the park, Getting here), the footer, the
   "Rather chat?" box and the photo viewer. Everything inside picks it up
   through the tokens. */
.tone-navy,
.split,
.site-footer__dome,
.enquiry__side,
.lightbox {
	--color-accent: var(--color-gold);
	--color-hover: var(--color-gold);
	--color-focus: var(--color-gold);
}

.tone-paper + .tone-paper,
.tone-sand + .tone-sand,
.tone-navy + .tone-navy,
.tone-paper + .stay .stay__inner {
	padding-top: 0;
}

/* ============================================================
   Buttons and links
   One global system - never a one-off button style in a section. The
   button never moves: only its colours change, on hover (devices that
   hover) and keyboard focus. One hover for everything (Miles 2026-11-24):
   every button fills gold with navy words, whatever it looks like at rest;
   on arrow links and arrow buttons only the arrow turns gold.
   ============================================================ */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 50px;
	padding: 0 30px;
	border: 1px solid var(--color-surface-dark);
	background-color: var(--color-surface-dark);
	color: var(--color-on-dark);
	font-family: var(--font-body);
	font-size: var(--size-label);
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}

/* Outline on light backgrounds ("WhatsApp us"). */
.btn--ghost {
	background-color: transparent;
	color: var(--color-text);
}

/* Paper on navy ("Rather chat?" panel). */
.btn--light {
	border-color: var(--color-on-dark);
	background-color: var(--color-on-dark);
	color: var(--color-text);
}

/* The one hover (and keyboard focus) for every button. Not while a button
   is disabled (the enquiry form while it sends). */
.btn:focus-visible {
	border-color: var(--color-hover);
	background-color: var(--color-hover);
	color: var(--color-on-hover);
}

@media (hover: hover) {
	.btn:not(:disabled):hover {
		border-color: var(--color-hover);
		background-color: var(--color-hover);
		color: var(--color-on-hover);
	}
}

/* Arrow link: an uppercase label and an arrow ("Enquire to stay ->").
   No rule at rest; on hover and keyboard focus the dotted rule comes in
   under the words exactly like the menu's (the --dots tokens) and the arrow
   slides on and turns gold (the words stay as they are). A touch larger and heavier than the other labels (12px / 800,
   Miles 2026-11-24) so it holds its own without the rule. The 6px under it
   is where the dots appear, kept so nothing shifts. */
.arrow-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 6px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
}

.arrow-link__label {
	position: relative;
}

/* From the first letter to the last (right: the trailing letter-spacing),
   at the foot of the link. */
.arrow-link__label::after {
	content: "";
	position: absolute;
	right: 0.2em;
	bottom: -6px;
	left: 0;
	height: 3px;
	background: var(--dots);
	-webkit-mask: var(--dots-mask);
	mask: var(--dots-mask);
	-webkit-mask-position: var(--dots-hidden);
	mask-position: var(--dots-hidden);
	transition: var(--dots-transition);
}

.arrow-link .icon {
	flex: none;
	transition: transform 0.45s var(--ease), color 0.4s var(--ease);
}

.arrow-link:focus-visible .arrow-link__label::after {
	-webkit-mask-position: var(--dots-shown);
	mask-position: var(--dots-shown);
}

.arrow-link:focus-visible .icon {
	color: var(--color-hover);
	transform: translateX(6px);
}

@media (hover: hover) {
	.arrow-link:hover .arrow-link__label::after {
		-webkit-mask-position: var(--dots-shown);
		mask-position: var(--dots-shown);
	}

	.arrow-link:hover .icon {
		color: var(--color-hover);
		transform: translateX(6px);
	}
}

/* Text links: in a sentence (the page introductions, FAQ answers, the
   legal pages, the forms' consent and privacy lines, Welcome back's texts
   and its "Register above" link) or a details list ("Rather chat?" email
   and Instagram). No dots, at rest or on hover (Miles 2026-11-24):
   in a sentence the words are a little bolder, and on hover and keyboard
   focus they turn gold, the site's one hover colour. */
.page-hero__lead a,
.faq__answer-inner a,
.legal__inner a,
.check a,
.register__text a,
.register__note a,
.offer__text a,
.voucher__lock,
.enquiry__details a {
	font-weight: 600;
	text-decoration: none;
	transition: color 0.3s var(--ease);
}

.page-hero__lead a:focus-visible,
.faq__answer-inner a:focus-visible,
.legal__inner a:focus-visible,
.check a:focus-visible,
.register__text a:focus-visible,
.register__note a:focus-visible,
.offer__text a:focus-visible,
.voucher__lock:focus-visible,
.enquiry__details a:focus-visible {
	color: var(--color-hover);
}

@media (hover: hover) {
	.page-hero__lead a:hover,
	.faq__answer-inner a:hover,
	.legal__inner a:hover,
	.check a:hover,
	.register__text a:hover,
	.register__note a:hover,
	.offer__text a:hover,
	.voucher__lock:hover,
	.enquiry__details a:hover {
		color: var(--color-hover);
	}
}

/* The long arrows of the sliders (rooms, reviews). */
.arrow-buttons {
	display: flex;
	gap: 8px;
}

.arrow-btn {
	width: 56px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--color-text);
	cursor: pointer;
	transition: transform 0.4s var(--ease), color 0.4s var(--ease), opacity 0.3s;
}

.arrow-btn .icon {
	display: block;
	margin: 0 auto;
}

.arrow-btn:disabled {
	opacity: 0.3;
	cursor: default;
}

.arrow-btn:focus-visible {
	color: var(--color-hover);
}

@media (hover: hover) {
	.arrow-btn:not(:disabled):hover {
		color: var(--color-hover);
	}

	.arrow-btn--prev:not(:disabled):hover {
		transform: translateX(-5px);
	}

	.arrow-btn--next:not(:disabled):hover {
		transform: translateX(5px);
	}
}

@media (min-width: 481px) {
	.arrow-buttons {
		gap: 22px;
	}
}

/* ============================================================
   Section heading (heading left, arrow link right) and lead text
   ============================================================ */

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 32px;
}

.section-head__title {
	font-size: var(--size-h2);
	line-height: 1.08;
}

.section-lead {
	max-width: 880px;
	margin: -14px 0 32px;
	font-size: 15px;
	line-height: 1.7;
}

@media (min-width: 761px) {
	.section-head {
		margin-bottom: 44px;
	}

	.section-lead {
		margin: -24px 0 44px;
	}
}

/* ============================================================
   Scroll reveals
   Content is visible at rest. assets/js/main.js arms only elements that
   start below the fold (.is-below), then releases them once as they
   scroll into view. Never under reduced motion (see the end).
   ============================================================ */

/* Snappy, not lazy (Miles 2026-11-24): the prototype's 1.1s / 46px rise
   and 1.4s unclip are now 0.7s / 28px and 0.8s. */
.reveal-rise {
	transition: transform 0.7s var(--ease);
}

.has-js .reveal-rise.is-below {
	transform: translateY(28px);
}

/* The resting clip is inset(0), not none: a clip-path cannot animate to or
   from none, so the prototype's photos jumped instead of easing open
   (Miles 2026-11-24, "flips ... clunky"). Round photos (.reveal-clip--round)
   use a circle that grows, so they stay round throughout; a square inset
   cut them into a rectangle. A small, quick opening (Miles 2026-11-24:
   "too small to the right size ... not snappy enough"): 3% in and 0.5s,
   was 8% and 0.8s. */
.reveal-clip {
	clip-path: inset(0);
	transition: clip-path 0.5s var(--ease);
}

.has-js .reveal-clip.is-below {
	clip-path: inset(3%);
}

.reveal-clip--round {
	clip-path: circle(50% at 50% 50%);
}

.has-js .reveal-clip--round.is-below {
	clip-path: circle(45% at 50% 50%);
}

/* ============================================================
   Utilities
   ============================================================ */

.skip-link {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 100;
	padding: 12px 20px;
	background: var(--color-surface-dark);
	color: var(--color-on-dark);
	transform: translateY(-200%);
}

.skip-link:focus-visible {
	transform: none;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Headings that take focus after an in-page jump show no ring. */
h1:focus {
	outline: none;
}

/* hidden always hides, even where a component sets display. */
[hidden] {
	display: none !important;
}

/* Wording still to confirm (Emma's <mark class="tbc">): a gold dashed
   underline on local and staging only (body.is-preview); elsewhere plain
   text, never the browser's yellow highlight. */
mark {
	background: none;
	color: inherit;
}

.is-preview mark.tbc {
	padding: 0;
	border-bottom: 1.5px dashed var(--color-accent);
}

/* ============================================================
   Reduced motion: every animation and transition off
   ============================================================ */

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

	.has-js .reveal-rise.is-below {
		transform: none;
	}

	.has-js .reveal-clip.is-below {
		clip-path: inset(0);
	}

	.has-js .reveal-clip--round.is-below {
		clip-path: circle(50% at 50% 50%);
	}
}
