/*
 * Life Casting Berlin – theme styles (front end and editor).
 *
 * Cream, stone and charcoal, one lime accent. Instrument Serif for display
 * type, Libre Franklin for text, spaced capitals for labels. The fonts are
 * declared in theme.json.
 *
 * Pages are built from core blocks; class names on the blocks carry the
 * design (section, wrap, grid, span-N, rows, steps, …). The default block
 * library CSS is not loaded on the front end, so everything a block needs
 * is defined here.
 */

/* ----------------------------------------------------------------- Tokens */

:root {
	--plaster: #f2eee7;
	--stone: #e6dfd4;
	--greige: #cdc1b3;
	--ink: #262422;
	--ink-2: #4a4641;
	--muted: #7a7268;
	--line: rgba(29, 27, 24, 0.14);
	--line-light: rgba(242, 238, 231, 0.2);
	--paper-80: rgba(242, 238, 231, 0.8);
	--paper-55: rgba(242, 238, 231, 0.55);
	--signal: #d4e02f;
	--signal-deep: #b9c41c;
	--dark: #151310;

	--serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
	--sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

	--max: 1320px;
	--gutter: clamp(1.25rem, 4.5vw, 3.5rem);
	--section: clamp(5rem, 11vw, 10rem);
	--gap: clamp(1.25rem, 3vw, 2.5rem);
	--header: 80px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ------------------------------------------------------------------- Base */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--plaster);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	font-weight: 300;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
address { font-style: normal; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--ink-2); }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
::selection { background: var(--greige); color: var(--ink); }

p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
strong { font-weight: 600; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--plaster); padding: 0.75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--section) 0; }
.section--stone { background: var(--stone); }
.section--ink { background: var(--ink); color: var(--plaster); }
.section--ink a:hover { color: var(--greige); }
.section--signal { background: var(--signal); color: var(--ink); }

/* ------------------------------------------------------------- Typography */

.label {
	display: inline-block;
	margin: 0;
	font-family: var(--sans);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.24em;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--muted);
}
.section--ink .label { color: var(--paper-55); }

.display {
	font-family: var(--serif);
	font-size: clamp(3rem, 8.2vw, 7.5rem);
	line-height: 0.95;
	letter-spacing: -0.02em;
}
.display--band { font-size: clamp(3rem, 7vw, 6rem); }
.h2 {
	font-family: var(--serif);
	font-size: clamp(2.25rem, 4.8vw, 4rem);
	line-height: 1.02;
	letter-spacing: -0.012em;
}
.h3 {
	font-family: var(--serif);
	font-size: clamp(1.6rem, 2.4vw, 2.1rem);
	line-height: 1.1;
}
.lead {
	font-family: var(--serif);
	font-size: clamp(1.5rem, 2.6vw, 2.25rem);
	line-height: 1.25;
	letter-spacing: -0.005em;
}
.lead--s { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.lead--xs { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
/* Italics only where the text itself needs them, never as decoration. */
.display em, .h2 em, .h3 em, .lead em { font-style: normal; }
.small { font-size: 0.875rem; color: var(--muted); }
.measure { max-width: 38rem; }
.measure-13 { max-width: 13ch; }

/* Lime highlighter behind a word ("Highlight" format in the editor) */
.mark { background: linear-gradient(transparent 58%, var(--signal) 58%, var(--signal) 90%, transparent 90%); padding: 0 0.08em; }
.section--ink .mark { color: var(--plaster); background: linear-gradient(transparent 58%, rgba(212, 224, 47, 0.55) 58%, rgba(212, 224, 47, 0.55) 90%, transparent 90%); }

/* ---------------------------------------------------------------- Buttons */

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.wp-block-button { margin: 0; }

.btn,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.75em;
	padding: 1.05em 1.7em;
	background: var(--signal);
	color: var(--ink);
	border: 1px solid var(--signal);
	border-radius: 0;
	font-family: var(--sans);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
	cursor: pointer;
}
.btn:hover,
.wp-block-button__link:hover { background: var(--ink); color: var(--signal); border-color: var(--ink); }
.btn:active,
.wp-block-button__link:active { transform: scale(0.98); }

/* On dark ground the hover state is an outline. */
.section--ink .wp-block-button__link:hover,
.hero .wp-block-button__link:hover,
.site-footer .btn:hover { background: transparent; color: var(--signal); border-color: var(--signal); }

/* Charcoal button, for use on lime */
.is-style-ink .wp-block-button__link,
.section--signal .wp-block-button__link { background: var(--ink); color: var(--signal); border-color: var(--ink); }
.is-style-ink .wp-block-button__link:hover,
.section--signal .wp-block-button__link:hover { background: transparent; color: var(--ink); border-color: var(--ink); }

/* Text link with an arrow: a paragraph with class "link-arrow" */
a.link-arrow,
.link-arrow > a {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 2px solid var(--signal);
	padding-bottom: 0.35em;
}
p.link-arrow { margin: 0; }
a.link-arrow::after,
.link-arrow > a::after { content: "→"; letter-spacing: 0; transition: transform 0.3s var(--ease); }
a.link-arrow:hover::after,
.link-arrow > a:hover::after { transform: translateX(4px); }

.actions,
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }

/* ----------------------------------------------------------------- Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(242, 238, 231, 0.9);
	-webkit-backdrop-filter: blur(12px) saturate(1.3);
	backdrop-filter: blur(12px) saturate(1.3);
	border-bottom: 1px solid var(--line);
	transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
/* Below 600px the admin bar scrolls away with the page. */
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header .wrap { display: flex; align-items: center; gap: 2rem; height: var(--header); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 50px; width: 50px; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(1rem, 2.2vw, 2.25rem); list-style: none; margin: 0; padding: 0; }
.nav a {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 0.35em 0.15em;
}
/* Current page and hover: a lime bar under the word, the same on the
   cream header and over the dark hero (the text never overlaps it). */
.nav a:hover,
.nav a[aria-current="page"],
.nav .current-menu-ancestor > a,
.nav .current-page-ancestor > a { background: linear-gradient(var(--signal), var(--signal)) left bottom / 100% 0.3em no-repeat; color: inherit; }

.lang { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; color: var(--muted); }
.lang a { text-decoration: none; }
.lang [aria-current="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 0.35em; }
.site-header .lang, .header-cta { white-space: nowrap; }
.header-cta { padding: 0.85em 1.2em; }

/* Home: the header floats over the hero until the visitor scrolls. */
.is-home .site-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; color: var(--plaster); -webkit-backdrop-filter: none; backdrop-filter: none; }
.is-home .site-header .lang, .is-home .site-header .lang [aria-current="true"] { color: var(--plaster); }
.is-home.scrolled .site-header { background: rgba(242, 238, 231, 0.92); border-color: var(--line); color: var(--ink); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3); }
.is-home.scrolled .site-header .lang { color: var(--muted); }
.is-home.scrolled .site-header .lang [aria-current="true"] { color: var(--ink); }

.menu-toggle { display: none; margin-left: auto; background: none; border: 0; color: inherit; font: 600 0.75rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; padding: 0.75rem 0; cursor: pointer; }

@media (min-width: 961px) { .nav .nav-extra { display: none; } }

/* Six menu items: tighten on mid-size screens. */
@media (min-width: 961px) and (max-width: 1240px) {
	.nav ul { gap: 0.9rem; }
	.nav a { letter-spacing: 0.12em; font-size: 0.7rem; }
	.header-cta { padding: 0.8em 1em; }
}
@media (min-width: 961px) and (max-width: 1100px) {
	.site-header .wrap { gap: 1.25rem; }
	.nav ul { gap: 0.75rem; }
	.nav a { letter-spacing: 0.08em; font-size: 0.66rem; }
	.header-cta { font-size: 0.66rem; letter-spacing: 0.1em; padding: 0.8em 0.9em; }
}

@media (max-width: 960px) {
	.menu-toggle { display: block; }
	.nav, .header-cta, .site-header .lang { display: none; }
	.nav-open .site-header,
	.is-home.nav-open .site-header { background: var(--plaster); color: var(--ink); border-color: var(--line); }
	/* A plain background while the menu is open (no blur behind the panel). */
	.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; }
	/* No fades on small screens: header and menu panel change together. */
	.site-header { transition: none; }
	/* The panel hangs directly under the header (its containing block), so
	   it fits whether or not the admin bar is shown and at every width. */
	.nav-open .nav {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		height: calc(100dvh - var(--header));
		overflow-y: auto;
		background: var(--plaster);
		color: var(--ink);
		padding: 2rem var(--gutter);
	}
	.nav-open { overflow: hidden; }
	.nav-open .nav ul { flex-direction: column; gap: 0; }
	.nav-open .nav li { border-bottom: 1px solid var(--line); }
	.nav-open .nav a { display: block; font-family: var(--serif); font-size: 2rem; letter-spacing: 0; text-transform: none; font-weight: 400; padding: 0.6rem 0; background: none; }
	.nav-open .nav .nav-extra { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; border: 0; }
	.nav-open .nav .nav-extra .lang { display: block; font-size: 0.75rem; color: var(--muted); }
	.nav-open .nav .nav-extra .lang a { display: inline; font: 600 0.75rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; padding: 0; }
	.nav-open .nav .nav-extra .lang [aria-current="true"] { color: var(--ink); }
	.nav-open .nav .nav-extra .btn { display: inline-flex; font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; padding: 1.05em 1.6em; background: var(--signal); color: var(--ink); }
}

/* ------------------------------------------------------------------- Hero */

/* Home hero: a group with the photo (image block "hero-img") and the text. */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--plaster); overflow: hidden; background: var(--dark); }
.hero > .hero-img { position: absolute; inset: 0; }
.hero > .hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(20, 18, 16, 0.25) 0%, rgba(20, 18, 16, 0) 30%, rgba(20, 18, 16, 0.2) 55%, rgba(20, 18, 16, 0.7) 100%); }
.hero > .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(3rem, 8vh, 6rem); }

/* The label: small white capitals directly on the photo. */
.hero .label {
	margin-bottom: 1.5rem;
	color: #fff;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-shadow: 0 1px 2px rgba(20, 18, 16, 0.55), 0 0 14px rgba(20, 18, 16, 0.45);
}
.hero .wrap > p:not(.label) { max-width: 34rem; font-size: 1.125rem; font-weight: 300; margin: 1.75rem 0 2.25rem; color: rgba(242, 238, 231, 0.92); }
.hero .link-arrow > a { color: var(--plaster); border-bottom-color: rgba(242, 238, 231, 0.7); }

/* Wide screens: the headline sits on the dark area, never on the white coat. */
@media (min-width: 1100px) {
	.hero > .hero-img { left: 44%; }
	.hero > .hero-img img { object-position: 50% 40%; }
	.hero::after { background: linear-gradient(90deg, #1c1a18 42%, rgba(28, 26, 24, 0.85) 47%, rgba(28, 26, 24, 0) 62%), linear-gradient(180deg, rgba(20, 18, 16, 0.35) 0%, rgba(20, 18, 16, 0) 22%); }
	.hero .wrap > * { max-width: 34rem; }
}
/* In between, the text is on the photo: darken the left side. */
@media (min-width: 961px) and (max-width: 1099px) {
	.hero::after { background: linear-gradient(90deg, rgba(20, 18, 16, 0.72) 0%, rgba(20, 18, 16, 0.45) 42%, rgba(20, 18, 16, 0) 68%), linear-gradient(180deg, rgba(20, 18, 16, 0.3) 0%, rgba(20, 18, 16, 0) 25%, rgba(20, 18, 16, 0.55) 100%); }
}
/* Phones: Brooke's face above the text. */
@media (max-width: 960px) {
	.hero > .hero-img { bottom: auto; height: 68%; }
	.hero > .hero-img img { object-position: 42% 8%; }
	.hero::after { background: linear-gradient(180deg, rgba(20, 18, 16, 0.35) 0%, rgba(20, 18, 16, 0) 18%, rgba(20, 18, 16, 0) 30%, rgba(20, 18, 16, 0.6) 46%, var(--dark) 66%); }
}
@media (max-width: 480px) {
	.hero .label { font-size: 0.625rem; letter-spacing: 0.14em; }
}

/* Inner page hero: text + image */
.page-hero { padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem); }
.page-hero .grid { align-items: center; }
.page-hero .display { font-size: clamp(3rem, 7vw, 6.25rem); }

/* ------------------------------------------------------------------- Grid */

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
/* span-N sets the width, start-N the first column; they combine. */
.span-4 { grid-column-end: span 4; } .span-5 { grid-column-end: span 5; } .span-6 { grid-column-end: span 6; }
.span-7 { grid-column-end: span 7; } .span-8 { grid-column-end: span 8; } .span-12 { grid-column: 1 / -1; }
.start-3 { grid-column-start: 3; } .start-6 { grid-column-start: 6; } .start-7 { grid-column-start: 7; }
.start-8 { grid-column-start: 8; } .start-9 { grid-column-start: 9; }
.row-span-3 { grid-row: 1 / span 3; }
@media (max-width: 860px) {
	.grid > [class*="span-"] { grid-column: 1 / -1; }
	.row-span-3 { grid-row: auto; }
}

/* Section heading row: label left, title right */
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin-bottom: clamp(2.5rem, 6vw, 5rem); align-items: baseline; }
.section-head .label { grid-column: span 3; }
.section-head > :not(.label) { grid-column: 4 / -1; }
@media (max-width: 860px) { .section-head > * { grid-column: 1 / -1 !important; } .section-head .label { margin-bottom: 0.75rem; } }

/* Statement: label, lead sentence, body text */
.statement { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.statement > .label { grid-column: span 3; padding-top: 0.9rem; }
.statement > .lead { grid-column: 4 / span 8; margin: 0; }
.statement > .body { grid-column: 4 / span 6; margin-top: 2rem; color: var(--ink-2); }
.section--ink .statement > .body { color: var(--paper-80); }
@media (max-width: 860px) { .statement > * { grid-column: 1 / -1 !important; } }

.hello-band .lead { font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.15; }

/* The lc monogram as a large lime graphic */
.has-graphic { position: relative; overflow: hidden; }
.has-graphic > .wrap { position: relative; z-index: 1; }
.has-graphic::after {
	content: "";
	position: absolute;
	right: -2rem;
	bottom: -3rem;
	width: clamp(160px, 22vw, 300px);
	aspect-ratio: 196 / 252;
	background: var(--signal);
	opacity: 0.9;
	-webkit-mask: url(../logo/lcb-monogram-ink.png) center / contain no-repeat;
	mask: url(../logo/lcb-monogram-ink.png) center / contain no-repeat;
	pointer-events: none;
}

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.tags li { padding: 0.55em 1.1em; border-radius: 999px; border: 1px solid var(--ink); font-size: 0.85rem; font-weight: 400; line-height: 1.4; }
.tags li:nth-child(odd) { background: var(--signal); border-color: var(--signal); }

/* ------------------------------------------------------------- Images */

.ratio-4-5 img, .ratio-3-4 img { width: 100%; object-fit: cover; }
.ratio-4-5 img { aspect-ratio: 4 / 5; }
.ratio-3-4 img { aspect-ratio: 3 / 4; }
.pos-60 img { object-position: 60% 50%; }
.pos-35 img { object-position: 35% 50%; }

/* Full-width image as a natural page break */
.image-break { position: relative; height: clamp(320px, 68vh, 760px); overflow: hidden; background: var(--dark); }
.image-break--short { height: clamp(280px, 52vh, 560px); }
.image-break img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
/* Its caption is a round sticker. */
.image-break figcaption {
	position: absolute;
	right: clamp(1.5rem, 8vw, 8rem);
	bottom: clamp(1.5rem, 6vw, 4rem);
	display: grid;
	place-items: center;
	/* Large enough for the longest word, the German "WASSERBASIERT". */
	width: clamp(144px, 12vw, 156px);
	aspect-ratio: 1;
	margin: 0;
	padding: 0.9rem;
	border-radius: 50%;
	background: var(--ink);
	color: var(--signal);
	font: 600 0.72rem/1.25 var(--sans);
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
	transform: rotate(9deg);
}

/* ------------------------------------------------------------ Offer cards */

.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.offer { position: relative; display: flex; flex-direction: column; gap: 1.25rem; }
.offer > .wp-block-image { overflow: hidden; aspect-ratio: 4 / 5; background: var(--stone); }
.offer > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.offer:hover > .wp-block-image img { transform: scale(1.04); }
.offer .h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.offer .h3::after { content: "→"; font-family: var(--sans); font-size: 1rem; transition: transform 0.3s var(--ease); }
.offer:hover .h3::after { transform: translateX(4px); }
.offer p { color: var(--ink-2); margin: 0; font-size: 0.975rem; }
/* The whole card is clickable through the link in its heading. */
.offer .h3 a { text-decoration: none; }
.offer .h3 a::before { content: ""; position: absolute; inset: 0; }
@media (max-width: 860px) { .offers { grid-template-columns: 1fr; } .offer > .wp-block-image { aspect-ratio: 4 / 3; } }

/* --------------------------------------------------- Occasions (list rows) */

.rows { border-top: 1px solid var(--line); }
.row {
	position: relative;
	display: grid;
	grid-template-columns: 3rem minmax(0, 1.2fr) minmax(0, 1fr) auto;
	gap: 1.5rem;
	align-items: baseline;
	padding: 1.75rem 0;
	border-bottom: 1px solid var(--line);
}
.row .num { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; color: var(--muted); }
.row .h3 { transition: transform 0.5s var(--ease); }
.row p { margin: 0; color: var(--ink-2); font-size: 0.975rem; }
.row .h3 a { text-decoration: none; }
.row .h3 a::before { content: ""; position: absolute; inset: 0; }
.row:has(.h3 a)::after { content: "→"; font-size: 1.1rem; }
.row:has(.h3 a):hover .h3 { transform: translateX(0.5rem); }
@media (max-width: 860px) {
	.row { grid-template-columns: 2.25rem 1fr; }
	.row > p:not(.num) { grid-column: 2; }
	.row::after { display: none; }
}

/* ------------------------------------------------------------ Works wall */

.works { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(0.75rem, 1.6vw, 1.5rem); }
.work img { width: 100%; object-fit: cover; }
.work.tall img { aspect-ratio: 3 / 4; }
.work.wide img { aspect-ratio: 4 / 3; }
.work figcaption { margin-top: 0.85rem; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.work figcaption strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--ink); }
.section--ink .work figcaption { color: rgba(242, 238, 231, 0.72); }
.section--ink .work figcaption strong { color: var(--plaster); }
.w-3 { grid-column: span 3; } .w-4 { grid-column: span 4; } .w-5 { grid-column: span 5; }
.w-6 { grid-column: span 6; } .w-7 { grid-column: span 7; } .w-8 { grid-column: span 8; }
.work.start-3 { grid-column: 3 / span 8; }
.offset-down { margin-top: clamp(3rem, 10vw, 9rem); }
@media (max-width: 860px) { .works > * { grid-column: 1 / -1 !important; margin-top: 0 !important; } }

/* ----------------------------------------------------------- Principles */

.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.principle { padding: 2rem 2rem 0 0; }
.principle + .principle { border-left: 1px solid var(--line); padding-left: 2rem; }
.principle h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; margin-bottom: 0.75rem; }
.principle p { font-size: 0.95rem; color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr 1fr; } .principle:nth-child(3) { border-left: 0; padding-left: 0; } .principle { padding-bottom: 2rem; } }
@media (max-width: 520px) { .principles { grid-template-columns: 1fr; } .principle + .principle { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

/* ---------------------------------------------------------------- Steps */

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.steps--auto { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.steps--stack { grid-template-columns: 1fr; }
.step { counter-increment: step; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.step::before {
	content: counter(step, decimal-leading-zero);
	display: grid;
	place-items: center;
	width: 2.6rem;
	height: 2.6rem;
	margin-bottom: 1.75rem;
	border-radius: 50%;
	background: var(--signal);
	color: var(--ink);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
}
.step h3 { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; margin-bottom: 0.6rem; }
.step p { font-size: 0.95rem; color: var(--ink-2); margin: 0; }
.step .meta { margin-top: 1rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) { .steps:not(.steps--stack) { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps:not(.steps--stack) { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------- Price table */

.prices { border-top: 1px solid var(--ink); }
.price { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr) auto; gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.price h3 { font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; }
.price p { margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.price .amount { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; color: var(--ink); }
@media (max-width: 720px) { .price { grid-template-columns: 1fr auto; } .price p:not(.amount) { grid-column: 1 / -1; order: 3; } }

/* -------------------------------------------------------------- Lists */

.list-plain { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list-plain li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; }
.list-plain li small { color: var(--muted); font-size: 0.875rem; }
.section--ink .list-plain, .section--ink .list-plain li { border-color: var(--line-light); }
.section--ink .list-plain li small { color: var(--paper-55); }
/* Credits: role left, name right */
.credits li strong { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: inherit; }
.credits li { align-items: baseline; }

.material-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.5rem; }
.material-list li { border-top: 1px solid var(--line); padding-top: 0.6rem; font-size: 0.95rem; }
.material-list li strong { display: block; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.material-feature { padding-top: clamp(4rem, 8vw, 7rem); }

/* ------------------------------------------------------------------- FAQ */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 2rem; align-items: baseline; padding: 1.5rem 0; cursor: pointer; font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 600; font-size: 1.5rem; color: var(--signal-deep); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > :not(summary) { max-width: 44rem; color: var(--ink-2); }
.faq details > :last-child { padding-bottom: 1.75rem; margin-bottom: 0; }

/* ------------------------------------------------------------- Reviews */

.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.review { background: var(--plaster); padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: 1rem; }
.review > * { margin: 0; }
.review-topic { align-self: flex-start; background: var(--signal); color: var(--ink); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.45em 0.8em; }
.review .stars { font-size: 1rem; letter-spacing: 0.2em; color: var(--ink); }
.review blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.3; flex: 1; }
.review blockquote p { margin: 0; }
.review .translation { font-size: 0.875rem; color: var(--ink-2); }
.review .review-meta { font-size: 0.8125rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 0.9rem; }
.review .review-meta strong { color: var(--ink); }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

/* ------------------------------------------------------- Facts & tables */

/* "At a glance" facts: a two-column table AI assistants can quote */
.facts table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 0.95rem 0; border-bottom: 1px solid var(--line); font-weight: 300; }
.facts th { width: 33%; padding-right: 1.5rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.section--ink .facts table, .section--ink .facts th, .section--ink .facts td { border-color: var(--line-light); }
.section--ink .facts th { color: var(--paper-55); }
@media (max-width: 640px) {
	.facts th, .facts td { display: block; width: auto; }
	.facts th { border-bottom: 0; padding-bottom: 0; }
}

/* Comparison table in the guide */
.compare { overflow-x: auto; }
.compare table { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { text-align: left; padding: 0.9rem 1rem 0.9rem 0; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 300; }
.compare thead th { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.compare tbody th { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }

/* Glossary: term and explanation */
.glossary table { width: 100%; border-collapse: collapse; }
.glossary th, .glossary td { display: block; text-align: left; padding: 0; font-weight: 300; }
.glossary th { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; margin-top: 1.5rem; }
.glossary td { margin: 0.25rem 0 0; color: var(--ink-2); max-width: 44rem; }
.glossary tr { display: block; }

/* --------------------------------------------------------------- CTA band */

.cta-band .grid { align-items: end; }
.cta-band .h2 { max-width: 14ch; }
.cta-band p { max-width: 30rem; }
.section--signal.cta-band p, .section--signal .small { color: var(--ink-2); }

/* Booking card on lime */
.card-signal { background: var(--signal); padding: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.card-signal h2 { margin: 0.75rem 0 1rem; }
.card-signal p { max-width: 32rem; }

/* Commissions: the hero image reaches into the dark section */
.bg-split { background: linear-gradient(var(--plaster) 0 18%, var(--ink) 18%); }

/* ------------------------------------------------------------ Split media */

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: center; }
.split > figure { grid-column: span 6; }
.split > .text { grid-column: 8 / span 5; }
.split > figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split .text > * + * { margin-top: 1.25rem; }
@media (max-width: 860px) { .split > * { grid-column: 1 / -1 !important; order: initial !important; } }

/* ---------------------------------------------------------------- Forms */

.form .wpcf7-form { display: grid; gap: 2rem; }
.field { margin: 0; }
.field label, .field legend { display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.field .note { text-transform: none; letter-spacing: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
	width: 100%;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--ink);
	border-radius: 0;
	padding: 0.7rem 0;
	font: 300 1.125rem/1.5 var(--sans);
	color: var(--ink);
}
.field textarea { height: 9rem; min-height: 7rem; resize: vertical; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }

/* Checkboxes and radio buttons as chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chips .wpcf7-list-item { margin: 0; }
.chips label { display: inline-block; margin: 0; font-size: inherit; font-weight: inherit; letter-spacing: 0; text-transform: none; color: inherit; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips .wpcf7-list-item-label { display: inline-block; padding: 0.6em 1.1em; border: 1px solid var(--line); font-size: 0.9rem; color: var(--ink); cursor: pointer; transition: all 0.2s var(--ease); }
.chips input:checked + .wpcf7-list-item-label { background: var(--ink); color: var(--plaster); border-color: var(--ink); }
.chips input:focus-visible + .wpcf7-list-item-label { outline: 2px solid var(--signal); outline-offset: 2px; }

.form-submit { margin: 0; display: flex; align-items: center; gap: 1rem; }
.form-note { font-size: 0.8125rem; color: var(--muted); margin: 0; }
.wpcf7-not-valid-tip { font-size: 0.8125rem; color: #9b2c1f; margin-top: 0.4rem; }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: 1rem 1.25rem; border: 0; background: var(--stone); font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; }
.wpcf7 form.sent .wpcf7-response-output { background: var(--signal); }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { background: #f3d9d2; }

/* ---------------------------------------------------------- Utilities */

.mt-1 { margin-top: 1rem; } .mt-125 { margin-top: 1.25rem; } .mt-15 { margin-top: 1.5rem; }
.mt-175 { margin-top: 1.75rem; } .mt-2 { margin-top: 2rem; } .mt-225 { margin-top: 2.25rem; }
.mt-25 { margin-top: 2.5rem; } .mt-3 { margin-top: 3rem; } .mt-5 { margin-top: 5rem; }
.mt-section { margin-top: clamp(4rem, 8vw, 7rem); }
.m-0 { margin: 0; } .my-2 { margin: 2rem 0; } .mb-2 { margin: 0 0 2rem; } .mb-15 { margin: 0 0 1.5rem; }
.pt-0 { padding-top: 0; }
.self-end { align-self: end; }
.items-start { align-items: start; } .items-center { align-items: center; }
.c-ink { color: var(--ink); } .c-ink-2 { color: var(--ink-2); } .c-paper { color: var(--paper-80); }

/* --------------------------------------------------------------- Footer */

.site-footer { background: var(--ink); color: rgba(242, 238, 231, 0.75); padding: clamp(4rem, 8vw, 7rem) 0 2rem; font-size: 0.9375rem; }
.site-footer a { color: var(--plaster); text-decoration: none; }
.site-footer a:hover { color: var(--signal); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 4rem; border-bottom: 1px solid rgba(242, 238, 231, 0.14); }
.footer-top img { width: 132px; opacity: 0.9; }
.footer-top h2 { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(242, 238, 231, 0.5); margin-bottom: 1.1rem; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; font-size: 0.8125rem; color: rgba(242, 238, 231, 0.5); }
.footer-bottom nav { display: flex; gap: 1.5rem; }
.site-footer .lang { color: rgba(242, 238, 231, 0.5); }
.site-footer .lang [aria-current="true"] { color: var(--plaster); }
.ig-icon { vertical-align: -3px; margin-right: 0.4em; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }

/* -------------------------------------------------------- Legal pages */

.legal { max-width: 44rem; color: var(--ink-2); }
.legal h2 { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; color: var(--ink); margin: 4rem 0 1.5rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); margin: 2.5rem 0 0.75rem; }
.legal ul { margin: 0 0 1.1em; padding-left: 1.2em; }
.legal li { margin-bottom: 0.3em; }
.legal a { color: var(--ink); }
.legal strong { color: var(--ink); }

/* ------------------------------------------------ Consent banner (Complianz) */

/* Complianz reads these variables; set on body they win over its :root. */
body {
	--cmplz_banner_width: 460px;
	--cmplz_banner_background_color: var(--plaster);
	--cmplz_banner_border_color: var(--line);
	--cmplz_banner_border_width: 1px;
	--cmplz_banner_border_radius: 0;
	--cmplz_banner_margin: 0.6rem;
	--cmplz_title_font_size: 1.75rem;
	--cmplz_text_color: var(--ink-2);
	--cmplz_text_font_size: 0.875rem;
	--cmplz_text_line_height: 1.6;
	--cmplz_hyperlink_color: var(--ink);
	--cmplz_link_font_size: 0.75rem;
	--cmplz_category_body_font_size: 0.8125rem;
	--cmplz_category_header_title_font_size: 1rem;
	--cmplz_category_header_active_font_size: 0.6875rem;
	--cmplz_category_header_always_active_color: var(--muted);
	/* Accept and deny are equally prominent: both solid, same size. */
	--cmplz_button_accept_background_color: var(--signal);
	--cmplz_button_accept_border_color: var(--signal);
	--cmplz_button_accept_text_color: var(--ink);
	--cmplz_button_deny_background_color: var(--ink);
	--cmplz_button_deny_border_color: var(--ink);
	--cmplz_button_deny_text_color: var(--plaster);
	--cmplz_button_settings_background_color: transparent;
	--cmplz_button_settings_border_color: var(--ink);
	--cmplz_button_settings_text_color: var(--ink);
	--cmplz_button_border_radius: 0;
	--cmplz_button_font_size: 0.6875rem;
	--cmplz_slider_active_color: var(--ink);
	--cmplz_slider_inactive_color: var(--greige);
	--cmplz_slider_bullet_color: var(--plaster);
}

#cmplz-cookiebanner-container .cmplz-cookiebanner {
	padding: 1.75rem;
	grid-gap: 1rem;
	font-family: var(--sans);
	font-weight: 300;
	box-shadow: 0 24px 60px rgba(20, 18, 16, 0.22);
}
#cmplz-cookiebanner-container .cmplz-cookiebanner.cmplz-show:hover { box-shadow: 0 24px 60px rgba(20, 18, 16, 0.22); }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-header { grid-template-columns: 1fr auto; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-logo { display: none; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-title {
	grid-column-start: 1;
	justify-self: start;
	font-family: var(--serif);
	font-weight: 400;
	line-height: 1.05;
	color: var(--ink);
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-close { grid-column-start: 2; color: var(--ink); }
/* Complianz focuses the cross when the banner opens; no frame around it. */
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-close:focus,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-close:focus-visible { outline: none; }
/* The row for legal document links is empty (no documents assigned in
   Complianz) but would still add a grid row and gap below the buttons. */
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-documents { display: none; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-divider { display: none; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-message { margin: 0; }

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
	min-height: 44px;
	font-family: var(--sans);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept:hover { background: var(--ink); border-color: var(--ink); color: var(--signal); }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-deny:hover { background: transparent; color: var(--ink); }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences:hover,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-save-preferences:hover { background: var(--ink); color: var(--plaster); }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-categories .cmplz-category { background: var(--stone); }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-category-header .cmplz-category-title { font-family: var(--serif); font-weight: 400; color: var(--ink); }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-always-active { font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-links .cmplz-link { text-underline-offset: 0.22em; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-body::-webkit-scrollbar-thumb { background-color: var(--greige); }

/* The small "manage consent" tab after a choice has been made */
#cmplz-manage-consent .cmplz-manage-consent {
	font-family: var(--sans);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ink);
	box-shadow: 0 10px 30px rgba(20, 18, 16, 0.15);
}

@media (max-width: 768px) {
	#cmplz-cookiebanner-container .cmplz-cookiebanner { padding: 1.25rem var(--gutter) 1.25rem; border-width: 1px 0 0; }
}

/* --------------------------------------------------------------- Motion */

.lcb-js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.lcb-js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.lcb-js .reveal { opacity: 1; transform: none; transition: none; }
	*, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------- Phones */

@media (max-width: 720px) {
	body { font-size: 1rem; line-height: 1.65; }
	.hero .wrap > p:not(.label) { font-size: 1rem; }
	.lead { font-size: 1.3rem; }
	.hello-band .lead { font-size: 1.45rem; }
	.step p, .principle p, .offer p, .row p, .price p { font-size: 0.925rem; }
	.faq details > :not(summary) { font-size: 0.95rem; }
	.image-break figcaption { width: 116px; font-size: 0.6rem; padding: 0.6rem; }
	.material-list { grid-template-columns: 1fr; }
}
