/*
 * Travel2Serbia — main stylesheet (t2s 0.2.0)
 * Design system: V3.1 layout and motion (spec §2, §9, §10) with the V3.2 identity and Palette A.
 *
 *  1. Tokens
 *  2. Reset and base
 *  3. Layout: container, grid, sections
 *  4. Typography
 *  5. Buttons, chips, segmented control
 *  6. Cards
 *  7. Forms
 *  8. Logo slot
 *  9. Header and search
 * 10. Mobile menu
 * 11. Footer
 * 12. Page header, articles, listings, content
 * 13. Motion and reveal
 * 14. Utilities
 */

/* 1. Tokens ------------------------------------------------------------ */

:root {
	/* Colour — warm direction (approved 25 Sep 2026; neutral refinement 29 Sep 2026, 0.3.4):
	   ivory ground and limestone bands without the peach cast; the logo's red-orange
	   for actions, the logo's blue for wayfinding, meadow green for nature, charcoal for type. */
	--c-white: #FFFFFF;
	--c-canvas: #FCFAF5;          /* ivory page ground */
	--c-sand: #F4F0EA;            /* limestone: one section band per page, footer */
	--c-stone-deep: #EAE6DD;      /* hover/pressed on limestone, table heads, photo placeholders */
	--c-apricot: #FFEBD0;         /* sunlight: Signature pill and small accents only, never a band */
	--c-sky: #E9F7FE;             /* clear sky: home-region pill, For Partners band (one sky surface per page) */
	--c-mint: #EBF9E5;            /* May meadow tint: nature notes, success messages, Hosted pill */
	--c-line: #E6E2DB;
	--c-line-mid: #D4CFC5;        /* outline buttons, chips */
	--c-line-strong: #94877A;     /* input borders: 3.5:1 on white */
	--c-muted: #63605C;           /* meta text: 5.5:1 on sand */
	--c-ink-soft: #3B4346;
	--c-ink: #1F2A2E;             /* charcoal type */
	--c-primary: #D23D0C;         /* Sunrise — primary actions only; white text 4.8:1 */
	--c-primary-700: #B8360A;     /* hover, links, small orange text (≥5:1 on all light grounds) */
	--c-primary-50: #FFEBD0;
	--c-error: #B42318;
	--c-brand-orange: #F59121;    /* Love2Travel orange — decoration only, never text */
	--c-brand-blue: #2AA8E0;      /* Love2Travel blue — maps, icon fills */
	--c-blue-text: #126C9B;       /* sky text — overlines, secondary buttons (≥4.5:1 on all light grounds) */
	--c-green: #4A9339;           /* May meadow — ticks, level meters, nature marks (3:1 on white) */
	--c-green-text: #33732D;      /* green as text (≥4.6:1 on white, ivory and the meadow tint) */
	--c-whatsapp: #1F8A4C;        /* WhatsApp button: white text 4.6:1 */
	--c-brand-red: #EB2228;       /* Love2Travel red — the logo only */
	--c-espresso: #2A1E18;        /* kept for the transparent homepage header only */
	--c-espresso-800: #3A2A22;
	--c-espresso-text: #D9CFC6;
	--c-on-dark-accent: #FDD7B3;  /* overlines on photos */
	--c-focus-dark: #F59121;      /* focus ring on photos: 6.9:1 */

	/* Type families */
	--f-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
	--f-ui: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Fluid type: mobile value at 390 px → desktop value at 1440 px */
	--t-display: clamp(3.75rem, 2.45rem + 5.333vw, 7.25rem);
	--t-h1: clamp(2.5rem, 1.943rem + 2.286vw, 4rem);
	--t-h2: clamp(2rem, 1.536rem + 1.905vw, 3.25rem);
	--t-h3: clamp(1.25rem, 1.157rem + 0.381vw, 1.5rem);
	--t-price: clamp(1.375rem, 1.305rem + 0.286vw, 1.5625rem);
	--t-body-l: clamp(1rem, 0.954rem + 0.19vw, 1.125rem);
	--t-body: clamp(0.9375rem, 0.914rem + 0.095vw, 1rem);
	--t-ui: clamp(0.875rem, 0.852rem + 0.095vw, 0.9375rem);
	--t-meta: clamp(0.75rem, 0.727rem + 0.095vw, 0.8125rem);

	/* Space (4-pt scale) */
	--s-1: 4px;
	--s-2: 8px;
	--s-3: 12px;
	--s-4: 16px;
	--s-5: 20px;
	--s-6: 24px;
	--s-7: 32px;
	--s-8: 48px;
	--s-9: 64px;
	--s-10: 88px;
	--s-11: 112px;
	--s-12: 120px;
	--section-y: clamp(3.25rem, 1.764rem + 6.095vw, 7.25rem);
	--section-y-tight: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);

	/* Layout */
	--container: 1312px;
	--side: 20px;
	--gutter: 20px;
	--text-width: 720px;

	/* Radius */
	--r-input: 10px;
	--r-sm: 16px;
	--r-card: 22px;
	--r-panel: 28px;
	--r-pill: 999px;

	/* Elevation */
	--shadow-float: 0 18px 48px rgba(31, 42, 46, 0.10);
	--shadow-lift: 0 28px 60px rgba(31, 42, 46, 0.12);

	/* Motion */
	--m-fast: 180ms;
	--m-base: 350ms;
	--m-slow: 900ms;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);

	/* Header geometry */
	--header-top: 12px;
	--header-inset: 12px;
	--header-h: 60px;
	--header-space: calc(var(--header-top) + var(--header-h) + 16px);
	--admin-bar: 0px;
}

@media (min-width: 768px) {
	:root {
		--side: 32px;
		--gutter: 20px;
		--header-top: 16px;
		--header-inset: 20px;
		--header-h: 64px;
	}
}

@media (min-width: 992px) {
	:root {
		--side: 40px;
		--gutter: 24px;
	}
}

@media (min-width: 1200px) {
	:root {
		--side: 64px;
		--header-top: 20px;
		--header-inset: 32px;
		--header-h: 68px;
	}
}

.admin-bar { --admin-bar: 32px; }

@media (max-width: 782px) {
	.admin-bar { --admin-bar: 46px; }
}

/* 2. Reset and base ---------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-space) + var(--admin-bar));
}

body {
	margin: 0;
	background: var(--c-canvas);
	color: var(--c-ink);
	font-family: var(--f-ui);
	font-size: var(--t-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

body.is-locked {
	overflow: hidden;
}

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

svg.icon {
	flex: none;
	height: auto;
}

a {
	color: var(--c-primary-700);
	text-decoration: none;
	transition: color var(--m-fast) var(--ease);
}

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

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

h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol {
	margin: 0;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-display);
	font-weight: 700;
	font-optical-sizing: auto;
	text-wrap: balance;
}

em,
i,
cite {
	font-style: normal; /* no italics in the design system */
}

:focus-visible {
	outline: 2px solid var(--c-primary);
	outline-offset: 3px;
}

.on-dark :focus-visible,
.dc-hero :focus-visible,
.dc-dark :focus-visible,
.site-header.is-transparent :focus-visible {
	outline-color: var(--c-focus-dark);
}

.site-main:focus {
	outline: none;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 1000;
	padding: 12px 20px;
	border-radius: var(--r-pill);
	background: var(--c-ink);
	color: var(--c-white);
	font-weight: 600;
}

.skip-link:focus {
	top: calc(12px + var(--admin-bar));
	color: var(--c-white);
}

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

/* 3. Layout ------------------------------------------------------------- */

.site-main {
	display: block;
	padding-top: calc(var(--header-space));
	min-height: 60vh;
}

.has-hero .site-main {
	padding-top: 0;
}

.container {
	width: min(100% - 2 * var(--side), var(--container));
	margin-inline: auto;
}

.container--text {
	width: min(100% - 2 * var(--side), var(--text-width));
}

.grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--gutter);
}

@media (min-width: 768px) {
	.grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
	.grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

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

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

.section--sand {
	background: var(--c-sand);
}

.section--dark {
	background: var(--c-espresso);
	color: var(--c-white);
}

/* 4. Typography --------------------------------------------------------- */

.display,
.t-display {
	font-family: var(--f-display);
	font-size: var(--t-display);
	font-weight: 700;
	line-height: 0.92;
	letter-spacing: -0.045em;
}

h1,
.t-h1 {
	font-size: var(--t-h1);
	line-height: 1;
	letter-spacing: -0.035em;
}

h2,
.t-h2 {
	font-size: var(--t-h2);
	line-height: 1;
	letter-spacing: -0.035em;
}

h3,
.t-h3 {
	font-size: var(--t-h3);
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.t-h1, .t-h2, .t-h3 {
	font-family: var(--f-display);
	font-weight: 700;
}

.t-price,
.price {
	font-family: var(--f-display);
	font-size: var(--t-price);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.lead,
.t-body-l {
	font-size: var(--t-body-l);
	line-height: 1.6;
}

.t-body {
	font-size: var(--t-body);
}

.t-ui {
	font-size: var(--t-ui);
	font-weight: 500;
}

.meta,
.t-meta {
	font-size: var(--t-meta);
	color: var(--c-muted);
	line-height: 1.5;
}

.meta--on-dark {
	color: rgba(255, 255, 255, 0.72);
}

.overline {
	font-size: 14px;
	font-weight: 600;
	color: var(--c-primary-700);
	line-height: 1.4;
}

.overline--on-dark {
	color: var(--c-on-dark-accent);
}

code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.85em;
}

/* 5. Buttons, chips, segmented control ---------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: var(--r-pill);
	background: transparent;
	font-family: var(--f-ui);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition:
		background-color var(--m-fast) var(--ease),
		color var(--m-fast) var(--ease),
		border-color var(--m-fast) var(--ease),
		transform var(--m-fast) var(--ease);
}

.btn:active {
	transform: translateY(1px);
}

.btn[disabled],
.btn[aria-disabled="true"] {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
}

.btn--primary {
	background: var(--c-primary);
	color: var(--c-white);
}

.btn--primary:hover {
	background: var(--c-primary-700);
	color: var(--c-white);
}

.btn--dark {
	background: var(--c-ink);
	color: var(--c-white);
}

.btn--dark:hover {
	background: var(--c-espresso);
	color: var(--c-white);
}

.btn--line {
	background: var(--c-white);
	color: var(--c-ink);
	border-color: var(--c-line-mid);
}

.btn--line:hover:not([disabled]) {
	border-color: var(--c-ink);
	color: var(--c-ink);
}

.btn--secondary {
	background: var(--c-white);
	color: var(--c-blue-text);
	border: 1.5px solid var(--c-blue-text);
}

.btn--secondary:hover {
	background: var(--c-sky);
	color: var(--c-blue-text);
}

.btn--whatsapp {
	background: var(--c-whatsapp);
	color: var(--c-white);
}

.btn--whatsapp:hover {
	background: #18703D;
	color: var(--c-white);
}

.btn--lg {
	min-height: 56px;
	padding: 0 28px;
	font-size: 17px;
	font-weight: 700;
}

.btn--sm {
	min-height: 44px;
	padding: 0 18px;
	font-size: 14px;
}

.btn--primary {
	font-weight: 700;
}

.btn--glass {
	background: rgba(255, 255, 255, 0.14);
	color: var(--c-white);
	border-color: rgba(255, 255, 255, 0.4);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.btn--glass:hover {
	background: rgba(255, 255, 255, 0.24);
	color: var(--c-white);
}

.btn--on-dark {
	background: rgba(255, 255, 255, 0.1);
	color: var(--c-white);
}

.btn--on-dark:hover {
	background: rgba(255, 255, 255, 0.2);
	color: var(--c-white);
}

.btn--icon {
	width: 48px;
	min-height: 48px;
	height: 48px;
	padding: 0;
}

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

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--c-line-mid);
	border-radius: var(--r-pill);
	background: var(--c-white);
	color: var(--c-ink);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition:
		background-color var(--m-fast) var(--ease),
		color var(--m-fast) var(--ease),
		border-color var(--m-fast) var(--ease);
}

.chip .icon {
	display: none;
}

.chip:hover {
	border-color: var(--c-ink);
}

.chip.is-on,
.chip[aria-pressed="true"] {
	background: var(--c-espresso);
	border-color: var(--c-espresso);
	color: var(--c-white);
}

.chip.is-on .icon,
.chip[aria-pressed="true"] .icon {
	display: block;
}

.seg {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 4px;
	border-radius: var(--r-pill);
	background: var(--c-sand);
	margin-top: 24px;
}

.seg__opt {
	min-height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--r-pill);
	background: transparent;
	color: var(--c-ink-soft);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition:
		background-color var(--m-base) var(--ease),
		color var(--m-base) var(--ease),
		box-shadow var(--m-base) var(--ease);
}

.seg__opt[aria-checked="true"],
.seg__opt.is-on {
	background: var(--c-white);
	color: var(--c-ink);
	box-shadow: 0 2px 8px rgba(26, 26, 23, 0.1);
}

/* 6. Cards -------------------------------------------------------------- */

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: var(--r-sm);
	background: var(--c-white);
	border: 1px solid var(--c-line);
	transition:
		transform var(--m-base) var(--ease),
		box-shadow var(--m-base) var(--ease);
}

@media (hover: hover) {
	.card:hover {
		transform: translateY(-6px);
		box-shadow: var(--shadow-lift);
	}
}

.card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--c-sand);
}

.card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(135deg, rgba(20, 26, 28, 0.05), rgba(20, 26, 28, 0)),
		var(--c-sand);
}

.card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px 22px;
}

.card__title {
	font-size: var(--t-h3);
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.card__link {
	color: var(--c-ink);
}

.card__link:hover {
	color: var(--c-ink);
}

/* whole card clickable, one link for assistive tech */
.card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

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

.card:has(.card__link:focus-visible) {
	outline: 2px solid var(--c-primary);
	outline-offset: 3px;
}

.card--journey {
	border-radius: var(--r-card);
}

.card--journey .card__media {
	aspect-ratio: 4 / 5;
}

.card--host .card__media {
	aspect-ratio: 4 / 5;
}

.card--tile {
	border: 0;
	border-radius: var(--r-panel);
	min-height: 240px;
}

.card--tile .card__media {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
}

.card--tile .card__body {
	margin-top: auto;
	position: relative;
	background: linear-gradient(0deg, rgba(20, 26, 28, 0.6), rgba(20, 26, 28, 0));
}

.card--tile .card__link {
	color: var(--c-white);
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: var(--gutter);
	padding: 0;
	list-style: none;
}

.brief {
	position: absolute;
	left: 12px;
	top: 12px;
	display: inline-flex;
	gap: 6px;
	align-items: center;
	padding: 6px 10px;
	border-radius: var(--r-pill);
	background: rgba(255, 255, 255, 0.92);
	color: var(--c-ink);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.zoom {
	overflow: hidden;
}

.zoom img,
.zoom .card__placeholder {
	transition: transform var(--m-slow) var(--ease);
}

@media (hover: hover) {
	.card:hover .zoom img,
	.card:hover .zoom .card__placeholder {
		transform: scale(1.05);
	}
}

/* 7. Forms -------------------------------------------------------------- */

.field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.field__label {
	font-size: 14px;
	font-weight: 600;
	color: var(--c-ink);
	padding: 0;
}

.field__help {
	font-size: var(--t-meta);
	color: var(--c-muted);
}

.field__error {
	font-size: var(--t-meta);
	font-weight: 600;
	color: var(--c-error);
}

.input {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--c-line-strong);
	border-radius: var(--r-input);
	background: var(--c-white);
	color: var(--c-ink);
	font-size: 16px; /* 16 px stops iOS zooming into fields */
	line-height: 1.4;
	transition: border-color var(--m-fast) var(--ease), box-shadow var(--m-fast) var(--ease);
}

.input::placeholder {
	color: #8C877E;
}

.input:hover {
	border-color: var(--c-muted);
}

.input:focus {
	outline: none;
	border-color: var(--c-primary);
	box-shadow: 0 0 0 3px var(--c-primary-50);
}

.field--error .input,
.input[aria-invalid="true"] {
	border-color: var(--c-error);
	box-shadow: 0 0 0 1px var(--c-error);
}

select.input {
	appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231A1A17' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

textarea.input {
	min-height: 120px;
	resize: vertical;
}

.check {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	margin-right: 20px;
	font-size: var(--t-body);
	cursor: pointer;
}

.check input {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--c-espresso);
}

/* Search form */
.search-form {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 6px 6px 16px;
	border: 1px solid var(--c-line-strong);
	border-radius: var(--r-pill);
	background: var(--c-white);
}

.search-form:focus-within {
	border-color: var(--c-primary);
	box-shadow: 0 0 0 3px var(--c-primary-50);
}

.search-form__icon {
	display: flex;
	color: var(--c-muted);
}

.search-form__field {
	flex: 1;
	min-width: 0;
	height: 44px;
	border: 0;
	background: transparent;
	font-size: 16px;
}

.search-form__field:focus {
	outline: none;
}

.search-form__field::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.search-form__submit {
	min-height: 44px;
	padding: 0 20px;
}

/* 8. Logo (Travel2Serbia by Love2Travel, approved 24 Sep 2026) ---------- */

/*
 * One inline SVG per size (desktop S / mobile M). The heart-and-wings symbol and the
 * love2travel wordmark keep their original colours in every state; only the typeset
 * "Travel2Serbia" and "by" change colour, through --logo-ink and --logo-by.
 */
.logo {
	--logo-ink: var(--c-ink);
	--logo-by: #5A5A5C;
	display: inline-flex;
	align-items: center;
	flex: none;
	line-height: 0;
	text-decoration: none;
}

.logo__svg {
	display: block;
	width: auto;
	height: var(--logo-h, 46px);
	overflow: visible;
}

.logo__svg .logo-ink {
	fill: var(--logo-ink);
	transition: fill 200ms var(--ease);
}

.logo__svg .logo-by {
	fill: var(--logo-by);
	transition: fill 200ms var(--ease);
}

.logo__svg--mobile { --logo-h: 38px; }
.logo__svg--desktop { display: none; }

@media (min-width: 768px) {
	.logo__svg--mobile { display: none; }
	.logo__svg--desktop { display: block; }
}

.logo--dark,
.site-header.is-transparent .logo {
	--logo-ink: #FFFFFF;
	--logo-by: rgba(255, 255, 255, 0.82);
}

.logo--footer .logo__svg {
	--logo-h: 52px;
	display: block;
}

/* 9. Header and search -------------------------------------------------- */

/*
 * Hybrid header (approved 24 Sep 2026):
 * - pages with a checked hero photo (homepage): transparent over the photo, knock-out logo,
 *   soft dark fade behind it; turns into the white header after 80 px of scroll;
 * - every other page: white header from the start, full-colour logo.
 */
.site-header {
	position: fixed;
	z-index: 100;
	top: calc(var(--header-top) + var(--admin-bar));
	left: var(--header-inset);
	right: var(--header-inset);
	transition: transform var(--m-base) var(--ease);
}

/* Readability fade for the transparent state (sits behind the bar, above the photo). */
.site-header::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: calc(-1 * (var(--header-top) + var(--admin-bar)));
	left: calc(-1 * var(--header-inset));
	right: calc(-1 * var(--header-inset));
	height: 220px;
	background: linear-gradient(180deg, rgba(20, 26, 28, 0.5), rgba(20, 26, 28, 0));
	opacity: 0;
	pointer-events: none;
	transition: opacity 200ms var(--ease);
}

.site-header.is-transparent::before {
	opacity: 1;
}

.site-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: var(--header-h);
	padding: 0 8px 0 14px;
	border: 1px solid transparent;
	border-radius: var(--r-pill);
	transition:
		background-color 200ms var(--ease),
		border-color 200ms var(--ease),
		color 200ms var(--ease),
		box-shadow 200ms var(--ease);
}

@media (min-width: 1200px) {
	.site-header__bar {
		height: 72px;
		padding: 0 12px 0 20px;
	}
}

.site-header.is-transparent .site-header__bar {
	background: transparent;
	color: var(--c-white);
}

.site-header.is-solid .site-header__bar {
	background: rgba(255, 255, 255, 0.96);
	border-color: var(--c-line);
	color: var(--c-ink);
	box-shadow: 0 10px 30px rgba(42, 30, 24, 0.1);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.site-header.is-hidden {
	transform: translateY(calc(-100% - var(--header-top) - var(--admin-bar) - 8px));
}

.site-nav {
	display: none;
	gap: 2px;
}

.nav-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 14px;
	border-radius: var(--r-pill);
	color: inherit;
	font-size: var(--t-ui);
	font-weight: 500;
	transition: background-color var(--m-fast) var(--ease);
}

.nav-link:hover {
	color: inherit;
	background: rgba(42, 30, 24, 0.06);
}

.is-transparent .nav-link:hover {
	background: rgba(255, 255, 255, 0.16);
}

.nav-link[aria-current="page"] {
	background: var(--c-sand);
}

.is-transparent .nav-link[aria-current="page"] {
	background: rgba(255, 255, 255, 0.16);
}

.nav-link--trade {
	display: none;
	font-size: 14px;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.btn--header {
	width: 44px;
	height: 44px;
	min-height: 44px;
	border-radius: 50%;
	color: inherit;
	background: var(--c-sand);
}

.btn--header:hover {
	color: inherit;
	background: var(--c-apricot);
}

.is-transparent .btn--header {
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.45);
}

.is-transparent .btn--header:hover {
	background: rgba(255, 255, 255, 0.26);
}

.btn--header-cta {
	display: none;
	min-height: 48px;
	padding: 0 22px;
}

@media (min-width: 768px) {
	.btn--header-cta { display: inline-flex; }
}

@media (min-width: 1280px) {
	.site-nav { display: flex; }
	.nav-link--trade { display: inline-flex; }
	.btn--menu { display: none; }
	.btn--header {
		width: 48px;
		height: 48px;
	}
}

.site-search {
	margin-top: 8px;
	padding: 8px;
	border-radius: var(--r-panel);
	background: var(--c-white);
	box-shadow: var(--shadow-float);
}

.site-search[hidden] {
	display: none;
}

@media (min-width: 992px) {
	.site-search {
		width: min(640px, 100%);
		margin-left: auto;
	}
}

/* 10. Mobile menu ------------------------------------------------------- */

.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 200;
	top: var(--admin-bar);
	background: var(--c-canvas);
	color: var(--c-ink);
	overflow-y: auto;
	overscroll-behavior: contain;
	animation: menu-in var(--m-base) var(--ease);
}

.mobile-menu[hidden] {
	display: none;
}

@keyframes menu-in {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: none; }
}

.mobile-menu__inner {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-height: 100%;
	padding: 12px 12px max(20px, env(safe-area-inset-bottom));
}

.mobile-menu__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 60px;
	padding: 0 6px 0 14px;
}

.mobile-nav {
	display: flex;
	flex-direction: column;
	padding: 0 8px;
}

.mobile-nav__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 60px;
	border-bottom: 1px solid var(--c-line);
	color: var(--c-ink);
	font-family: var(--f-display);
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.mobile-nav__link .icon {
	color: var(--c-primary-700);
}

.mobile-nav__link:hover,
.mobile-nav__link[aria-current="page"] {
	color: var(--c-primary-700);
}

.mobile-menu__bottom {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: auto;
	padding: 12px 8px 0;
}

.mobile-menu__trade {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 4px;
	color: var(--c-ink-soft);
	font-size: 14px;
}

.mobile-menu__trade:hover {
	color: var(--c-primary-700);
}

@media (min-width: 1280px) {
	.mobile-menu { display: none !important; }
}

/* 11. Footer (light sand, approved 25 Sep 2026) ------------------------ */

.site-footer {
	margin-top: 0;
	padding: 64px 0 32px;
	background: var(--c-sand);
	border-top: 1px solid var(--c-line);
	color: var(--c-ink-soft);
	font-size: 15px;
}

@media (min-width: 992px) {
	.site-footer { padding: 80px 0 40px; }
}

.site-footer__top {
	display: grid;
	gap: 40px;
}

@media (min-width: 992px) {
	.site-footer__top {
		grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
		column-gap: calc(var(--gutter) * 2 + 8.33%);
	}
}

.site-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-width: 420px;
}

.site-footer__brand p {
	line-height: 1.6;
}

.site-footer__cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px var(--gutter);
}

@media (min-width: 768px) {
	.site-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.footer-col__title {
	margin-bottom: 12px;
	color: var(--c-ink);
	font-size: 14px;
	font-weight: 600;
}

.footer-col ul {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 0;
	list-style: none;
}

.footer-link {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	color: var(--c-ink-soft);
}

.footer-link:hover {
	color: var(--c-primary-700);
}

.trade-band {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: flex-start;
	margin-top: 48px;
	padding: 22px 24px;
	border: 1px solid var(--c-line);
	border-radius: 24px;
	background: var(--c-white);
}

@media (min-width: 768px) {
	.trade-band {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.trade-band__title {
	color: var(--c-ink);
	font-family: var(--f-display);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.trade-band__text {
	font-size: 14px;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	justify-content: space-between;
	align-items: center;
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--c-line-mid);
	font-size: 13px;
	color: var(--c-muted);
}

.site-footer__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	padding: 0;
	list-style: none;
}

.site-footer__contact li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--c-ink-soft);
}

.site-footer__legal {
	margin-top: 12px;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--c-muted);
}

.site-footer__legal .footer-link {
	display: inline;
	min-height: 0;
	font-size: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.legal-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0 18px;
}

.legal-nav .footer-link {
	font-size: 13px;
}

/* Photo credits page (0.3.7) */
.credits-list {
	display: grid;
	gap: 14px;
	width: min(100% - 2 * var(--side), var(--text-width));
	margin: 0 auto;
	padding: 0 0 var(--section-y-tight);
	list-style: none;
}

@media (min-width: 768px) {
	.credits-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.credits-item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.credits-item__img {
	flex: none;
	width: 72px;
	height: 72px;
	border-radius: 10px;
	object-fit: cover;
}

.credits-item__title {
	color: var(--c-ink);
	font-weight: 600;
	font-size: 14.5px;
}

.credits-item__credit {
	font-size: 13.5px;
	color: var(--c-ink-soft);
	overflow-wrap: anywhere;
}

/* 12. Page header, articles, listings, content -------------------------- */

.page-header {
	padding-top: clamp(2rem, 1rem + 4vw, 4.5rem);
}

.page-header .container {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.page-header__title {
	max-width: 16ch;
	font-size: var(--t-h1);
}

.page-header__intro {
	max-width: 60ch;
	font-size: var(--t-body-l);
	color: var(--c-ink-soft);
}

.placeholder-home .container {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.placeholder-home .lead {
	max-width: 56ch;
	color: var(--c-ink-soft);
}

.article__header {
	padding-top: clamp(2rem, 1rem + 4vw, 4.5rem);
}

.article__header .container {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.article__title {
	font-size: var(--t-h1);
}

.article__media {
	margin-top: 40px;
}

.article__media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--r-panel);
}

.article__footer {
	padding-bottom: var(--section-y-tight);
}

.empty-state {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 40px 24px;
	border: 1px dashed var(--c-line-mid);
	border-radius: var(--r-panel);
	background: var(--c-white);
	text-align: center;
	color: var(--c-muted);
}

.empty-state__title {
	color: var(--c-ink);
	font-family: var(--f-display);
	font-size: var(--t-h3);
	font-weight: 700;
}

.search-again {
	max-width: 640px;
	margin-bottom: 32px;
}

.pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin-top: 40px;
	padding: 0;
	list-style: none;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--c-line-mid);
	border-radius: var(--r-pill);
	background: var(--c-white);
	color: var(--c-ink);
	font-weight: 600;
}

.pagination .page-numbers.current {
	background: var(--c-ink);
	border-color: var(--c-ink);
	color: var(--c-white);
}

.pagination .page-numbers.dots {
	border: 0;
	background: none;
}

/* Block editor content (pages and guides) */
.entry-content {
	--flow: 1.25em;
	width: min(100% - 2 * var(--side), var(--text-width));
	margin-inline: auto;
	padding-block: 40px var(--section-y-tight);
	font-size: var(--t-body-l);
	color: var(--c-ink);
}

.entry-content > * + * {
	margin-top: var(--flow);
}

.entry-content > .alignwide {
	width: min(100vw - 2 * var(--side), var(--container));
	margin-inline: calc(50% - min(100vw - 2 * var(--side), var(--container)) / 2);
}

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

.entry-content h2 {
	margin-top: 1.8em;
	font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
	line-height: 1.05;
}

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

.entry-content a:not(.wp-element-button) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.3em;
}

.entry-content li + li {
	margin-top: 0.4em;
}

.entry-content blockquote {
	padding-left: 20px;
	border-left: 3px solid var(--c-primary);
	font-family: var(--f-display);
	font-size: 1.3em;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

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

.entry-content figcaption {
	margin-top: 8px;
	font-size: var(--t-meta);
	color: var(--c-muted);
}

.entry-content hr {
	border: 0;
	border-top: 1px solid var(--c-line);
}

.entry-content .wp-element-button,
.entry-content .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 0 24px;
	border-radius: var(--r-pill);
	background: var(--c-primary);
	color: var(--c-white);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.entry-content .wp-block-button__link:hover {
	background: var(--c-primary-700);
	color: var(--c-white);
}

.entry-content .is-style-outline .wp-block-button__link {
	background: var(--c-white);
	color: var(--c-ink);
	border: 1px solid var(--c-line-mid);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--t-body);
}

.entry-content th,
.entry-content td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--c-line);
	text-align: left;
}

/* 13. Motion and reveal ------------------------------------------------- */

.reveal-ready [data-reveal]:not(.is-revealed) {
	opacity: 0;
	transform: translateY(16px);
}

[data-reveal] {
	transition:
		opacity 500ms var(--ease),
		transform 500ms var(--ease);
	transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-revealed {
	opacity: 1;
	transform: none;
}

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

	.reveal-ready [data-reveal]:not(.is-revealed) {
		opacity: 1;
		transform: none;
	}

	.site-header.is-hidden {
		transform: none;
	}
}

/* 14. Utilities --------------------------------------------------------- */

.glass {
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.4);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.scrim-bottom {
	background: linear-gradient(0deg, rgba(20, 26, 28, 0.6), rgba(20, 26, 28, 0));
}

.alignleft {
	float: left;
	margin: 0 24px 16px 0;
}

.alignright {
	float: right;
	margin: 0 0 16px 24px;
}

.aligncenter {
	margin-inline: auto;
}

.wp-caption-text,
.gallery-caption {
	font-size: var(--t-meta);
	color: var(--c-muted);
}
