/*
Theme Name: PALMS CONVENE
Theme URI: https://palms-convene.com
Author: wildpalms
Author URI: https://wild-palms.com
Description: A lean editorial child theme of Twenty Twenty-Five for PALMS CONVENE — an independent space for gatherings in central Düsseldorf. Self-hosted fonts, no page builder, no tracking.
Template: twentytwentyfive
Version: 0.1.0
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: palms-convene
*/

/* =========================================================
   PALMS CONVENE
   1. Tokens
   2. Base / typography
   3. Layout primitives
   4. Header & footer
   5. Hero
   6. Sections
   7. Image sequence
   8. Facts & lists
   9. Enquiry form
   10. Responsive
   ========================================================= */

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

:root,
body {
	--pc-bg: #f4f3ef;
	--pc-bg-deep: #edebe5;
	--pc-ink: #14140f;
	--pc-ink-soft: #63615a;
	--pc-ink-faint: #8d8a81;
	--pc-rule: rgba(20, 20, 15, 0.14);
	--pc-rule-soft: rgba(20, 20, 15, 0.08);

	--pc-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	--pc-serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;

	/* Fluid scale */
	--pc-step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
	--pc-step-0: clamp(1rem, 0.97rem + 0.16vw, 1.09rem);
	--pc-step-1: clamp(1.18rem, 1.1rem + 0.4vw, 1.4rem);
	--pc-step-2: clamp(1.5rem, 1.28rem + 1.1vw, 2.2rem);
	--pc-step-3: clamp(1.9rem, 1.45rem + 2.2vw, 3.2rem);
	--pc-step-4: clamp(2.4rem, 1.5rem + 4.4vw, 5rem);

	/* Rhythm */
	--pc-gap: clamp(1.25rem, 0.9rem + 1.6vw, 2.5rem);
	--pc-section: clamp(4.5rem, 3rem + 4vw, 7.5rem);
	--pc-gutter: clamp(1.25rem, 0.6rem + 3vw, 4.5rem);

	--pc-measure: 40rem;
	--pc-wide: 82rem;
}

/* ---------- 2. Base / typography ---------- */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-latin.woff2") format("woff2");
	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;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
		U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
		U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Instrument Serif";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/instrument-serif-latin.woff2") format("woff2");
	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;
}

@font-face {
	font-family: "Instrument Serif";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/instrument-serif-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
		U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
		U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Instrument Serif";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/instrument-serif-latin-italic.woff2") format("woff2");
}

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

body {
	margin: 0;
	background: var(--pc-bg);
	color: var(--pc-ink);
	font-family: var(--pc-sans);
	font-size: var(--pc-step-0);
	line-height: 1.65;
	letter-spacing: -0.006em;
	font-synthesis-weight: none;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.pc-serif,
.pc-display,
.pc-lead,
.pc-h {
	font-family: var(--pc-serif);
	font-weight: 400;
	letter-spacing: -0.012em;
	line-height: 1.08;
	text-wrap: balance;
}

/* Micro label — the only "interface" typography on the page */
.pc-label {
	font-family: var(--pc-sans);
	font-size: var(--pc-step--1);
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--pc-ink-faint);
	line-height: 1.4;
	margin: 0 0 1.6em;
}

.pc-measure {
	max-width: var(--pc-measure);
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
	text-decoration-color: var(--pc-rule);
	transition: text-decoration-color 0.25s ease, opacity 0.25s ease;
}

a:hover {
	text-decoration-color: currentColor;
}

::selection {
	background: var(--pc-ink);
	color: var(--pc-bg);
}

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

.pc-page :where(.wp-block-group.is-layout-constrained) > * {
	margin-block-start: 0;
}

.pc-shell {
	width: 100%;
	max-width: var(--pc-wide);
	margin-inline: auto;
	padding-inline: var(--pc-gutter);
}

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

.pc-section--tight {
	padding-block: calc(var(--pc-section) * 0.55);
}

.pc-rule-top {
	border-top: 1px solid var(--pc-rule);
}

/* Two-column editorial split: label left, content right */
.pc-split {
	display: grid;
	grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr);
	gap: var(--pc-gap) clamp(3rem, 6vw, 6.5rem);
	align-items: start;
}

.pc-split > .pc-label {
	margin-bottom: 0;
	padding-top: 0.55em;
}

/* ---------- 4. Header & footer ---------- */

.pc-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: color-mix(in srgb, var(--pc-bg) 88%, transparent);
	backdrop-filter: saturate(140%) blur(14px);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s ease;
}

.pc-header__inner {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: clamp(0.9rem, 1.4vw, 1.35rem);
}

.pc-wordmark {
	font-size: var(--pc-step--1);
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

.pc-nav {
	display: flex;
	align-items: baseline;
	gap: clamp(1rem, 2.4vw, 2.25rem);
	font-size: var(--pc-step--1);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 500;
	color: var(--pc-ink-soft);
}

.pc-nav a {
	text-decoration: none;
}

.pc-nav a:hover {
	color: var(--pc-ink);
}

.pc-lang {
	color: var(--pc-ink-faint);
}

.pc-lang [aria-current="true"] {
	color: var(--pc-ink);
}

.pc-footer {
	border-top: 1px solid var(--pc-rule);
	padding-block: clamp(2.5rem, 4vw, 4rem);
	font-size: var(--pc-step--1);
	letter-spacing: 0.04em;
	color: var(--pc-ink-soft);
}

.pc-footer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2rem;
	justify-content: space-between;
	align-items: baseline;
}

/* ---------- 5. Hero ---------- */

.pc-hero {
	position: relative;
	min-height: min(92svh, 60rem);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: clip;
	background: var(--pc-bg-deep);
}

.pc-hero__media,
.pc-hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
}

.pc-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(12, 12, 8, 0.62) 0%,
		rgba(12, 12, 8, 0.28) 38%,
		rgba(12, 12, 8, 0) 72%
	);
}

.pc-hero__inner {
	position: relative;
	z-index: 2;
	color: #fbfaf7;
	padding-block: clamp(3rem, 7vw, 6.5rem);
}

.pc-hero h1 {
	font-family: var(--pc-sans);
	font-size: var(--pc-step-3);
	font-weight: 500;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	line-height: 1.05;
	margin: 0;
}

.pc-hero__place {
	font-family: var(--pc-serif);
	font-size: var(--pc-step-2);
	font-style: italic;
	line-height: 1.1;
	margin: 0.35em 0 0;
	opacity: 0.92;
}

.pc-hero__lead {
	font-family: var(--pc-serif);
	font-size: var(--pc-step-2);
	line-height: 1.18;
	max-width: 24ch;
	margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
	text-wrap: balance;
}

.pc-hero__by {
	font-size: var(--pc-step--1);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin: clamp(1.75rem, 3vw, 2.75rem) 0 0;
	opacity: 0.8;
}

/* ---------- 6. Sections ---------- */

.pc-intro p {
	font-family: var(--pc-serif);
	font-size: var(--pc-step-2);
	line-height: 1.28;
	letter-spacing: -0.01em;
	max-width: 30ch;
	margin: 0;
	text-wrap: pretty;
}

.pc-h {
	font-size: var(--pc-step-3);
	margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
}

.pc-h--sm {
	font-size: var(--pc-step-2);
}

.pc-body p {
	max-width: var(--pc-measure);
	margin: 0 0 1.15em;
	color: var(--pc-ink);
}

.pc-body p:last-child {
	margin-bottom: 0;
}

.pc-body--soft p {
	color: var(--pc-ink-soft);
}

/* ---------- 7. Image sequence ---------- */

.pc-figure {
	margin: 0;
}

.pc-figure img {
	display: block;
	width: 100%;
	height: auto;
	background: var(--pc-bg-deep);
}

.pc-figure figcaption {
	font-size: var(--pc-step--1);
	letter-spacing: 0.02em;
	color: var(--pc-ink-faint);
	margin-top: 0.9rem;
	max-width: 32rem;
}

.pc-bleed {
	width: 100%;
}

.pc-sequence > * + * {
	margin-top: clamp(3rem, 7vw, 8rem);
}

/* Offset pair — deliberately unequal, never a thumbnail grid */
.pc-pair {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: clamp(1.5rem, 4vw, 4rem) clamp(1.5rem, 4vw, 4rem);
	align-items: end;
}

.pc-pair > *:first-child {
	grid-column: 1 / span 7;
}

.pc-pair > *:last-child {
	grid-column: 9 / span 4;
	padding-bottom: clamp(2rem, 6vw, 7rem);
}

.pc-pair--flip > *:first-child {
	grid-column: 6 / span 7;
	order: 2;
}

.pc-pair--flip > *:last-child {
	grid-column: 1 / span 4;
	order: 1;
	padding-bottom: 0;
	padding-top: clamp(2rem, 6vw, 7rem);
}

.pc-inset {
	max-width: 58rem;
	margin-inline: auto;
}

/* Aspect placeholders so the layout holds before photos are in */
.pc-ph {
	position: relative;
	background: var(--pc-bg-deep);
	border: 1px solid var(--pc-rule-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--pc-ink-faint);
	font-size: var(--pc-step--1);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-align: center;
	padding: 1.5rem;
}

.pc-ph--wide { aspect-ratio: 16 / 9; }
.pc-ph--land { aspect-ratio: 4 / 3; }
.pc-ph--port { aspect-ratio: 3 / 4; }
.pc-ph--sq { aspect-ratio: 1 / 1; }

/* ---------- 8. Facts & lists ---------- */

.pc-facts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(1.5rem, 3vw, 3rem);
	border-top: 1px solid var(--pc-rule);
}

@media (min-width: 700px) {
	.pc-facts {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.pc-facts li {
	border-bottom: 1px solid var(--pc-rule);
	padding: clamp(1rem, 1.6vw, 1.4rem) 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding-right: 2rem;
}

.pc-facts dt,
.pc-facts .pc-facts__k {
	font-size: var(--pc-step--1);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pc-ink-faint);
}

.pc-facts .pc-facts__v {
	font-family: var(--pc-serif);
	font-size: var(--pc-step-1);
	line-height: 1.25;
}

/* Gatherings — a list, set like an index rather than a card grid */
.pc-index {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--pc-rule);
}

.pc-index li {
	border-bottom: 1px solid var(--pc-rule);
	padding: clamp(0.9rem, 1.6vw, 1.5rem) 0;
	font-family: var(--pc-serif);
	font-size: var(--pc-step-2);
	line-height: 1.2;
	display: flex;
	align-items: baseline;
	gap: 1.5rem;
}

.pc-index li::before {
	content: counter(pc-i, decimal-leading-zero);
	counter-increment: pc-i;
	font-family: var(--pc-sans);
	font-size: var(--pc-step--1);
	letter-spacing: 0.1em;
	color: var(--pc-ink-faint);
	flex: none;
	transform: translateY(-0.15em);
}

.pc-index {
	counter-reset: pc-i;
}

/* ---------- 9. Enquiry form ---------- */

.pc-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 2.75rem) clamp(1.5rem, 4vw, 3.5rem);
	max-width: 46rem;
}

.pc-field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.pc-field--full {
	grid-column: 1 / -1;
}

.pc-field label {
	font-size: var(--pc-step--1);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pc-ink-faint);
}

.pc-field input,
.pc-field select,
.pc-field textarea {
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--pc-rule);
	border-radius: 0;
	padding: 0.5rem 0;
	font: inherit;
	font-size: var(--pc-step-0);
	color: var(--pc-ink);
	width: 100%;
	transition: border-color 0.25s ease;
}

.pc-field textarea {
	min-height: 7rem;
	resize: vertical;
	line-height: 1.6;
}

.pc-field input:focus,
.pc-field select:focus,
.pc-field textarea:focus {
	outline: none;
	border-bottom-color: var(--pc-ink);
}

.pc-field input::placeholder,
.pc-field textarea::placeholder {
	color: var(--pc-ink-faint);
	opacity: 0.7;
}

.pc-field select {
	background-image: linear-gradient(45deg, transparent 50%, var(--pc-ink-soft) 50%),
		linear-gradient(135deg, var(--pc-ink-soft) 50%, transparent 50%);
	background-position: calc(100% - 10px) calc(50% + 1px), calc(100% - 5px) calc(50% + 1px);
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-right: 1.75rem;
}

/* Honeypot */
.pc-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.pc-submit {
	grid-column: 1 / -1;
	justify-self: start;
	margin-top: clamp(0.5rem, 1.5vw, 1.25rem);
}

.pc-btn {
	display: inline-block;
	background: var(--pc-ink);
	color: var(--pc-bg);
	border: 1px solid var(--pc-ink);
	border-radius: 0;
	font: inherit;
	font-size: var(--pc-step--1);
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 1.05em 2.4em;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.25s ease, color 0.25s ease;
}

.pc-btn:hover,
.pc-btn:focus-visible {
	background: transparent;
	color: var(--pc-ink);
}

.pc-note {
	grid-column: 1 / -1;
	font-size: var(--pc-step--1);
	color: var(--pc-ink-faint);
	max-width: 40rem;
	line-height: 1.6;
}

.pc-msg {
	border-left: 2px solid var(--pc-ink);
	padding: 0.85rem 0 0.85rem 1.15rem;
	margin: 0 0 2rem;
	max-width: 46rem;
	font-size: var(--pc-step-0);
}

.pc-msg--err {
	border-color: #9a2b1e;
	color: #9a2b1e;
}

/* Contact block beside the form */
.pc-contact {
	font-size: var(--pc-step-0);
	line-height: 1.75;
	color: var(--pc-ink-soft);
}

.pc-contact strong {
	display: block;
	font-weight: 500;
	color: var(--pc-ink);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-size: var(--pc-step--1);
	margin-bottom: 0.6rem;
}

/* ---------- 10. Responsive ---------- */

@media (max-width: 860px) {
	.pc-split {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.pc-split > .pc-label {
		padding-top: 0;
	}

	.pc-pair > *:first-child,
	.pc-pair > *:last-child,
	.pc-pair--flip > *:first-child,
	.pc-pair--flip > *:last-child {
		grid-column: 1 / -1;
		padding: 0;
		order: initial;
	}

	.pc-pair > *:last-child {
		max-width: 68%;
	}

	.pc-form {
		grid-template-columns: 1fr;
	}

	.pc-hero {
		min-height: min(88svh, 44rem);
	}
}

@media (max-width: 560px) {
	.pc-nav {
		gap: 0.85rem;
		font-size: 0.72rem;
		letter-spacing: 0.1em;
	}

	.pc-nav__hide-sm {
		display: none;
	}

	.pc-wordmark {
		font-size: 0.72rem;
		letter-spacing: 0.12em;
	}

	.pc-header__inner {
		gap: 0.85rem;
	}

	.pc-index li {
		gap: 1rem;
	}
}

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

/* Print — a venue page does get printed and forwarded internally */
@media print {
	.pc-header,
	.pc-form,
	.pc-hero__media::after {
		display: none;
	}

	body {
		background: #fff;
	}
}
