/* ═══════════════════════════════════════════════════════════════
   Agentic Labs — blog theme, on design system v1
   Three type families, one accent, one radius, one border weight,
   one shadow. Change the look here, in the tokens, not per page.
   ═══════════════════════════════════════════════════════════════ */

:root {
	/* Colour */
	--paper: #F7F5F0;
	--paper-2: #EFEBE3;
	--line: #E0DBD1;
	--line-2: #C9C3B6;
	--ink: #1A1917;
	--ink-2: #55524B;
	--ink-3: #8A867C;
	--ink-body: #3C3A34;
	--accent: #1C4635;
	--accent-hover: #122E21;
	--dark: #131210;
	--dark-panel: #1B1A16;
	--dark-line: #2A2924;
	--dark-line-2: #3A3931;
	--accent-dark: #8FC9AC;
	--accent-dark-hover: #A9D8C0;
	--dark-ink: #F2F0EA;
	--dark-ink-2: #A8A49A;
	--field-border: #D7D1C5;
	--error: #8C3A2E;
	--flag: #A3392A;

	/* Type */
	--serif: 'Source Serif 4', Georgia, serif;
	--sans: 'IBM Plex Sans', system-ui, sans-serif;
	--mono: 'Roboto Mono', ui-monospace, monospace;

	/* Geometry */
	--radius: 2px;
	--shadow: 0 1px 2px rgba(26, 25, 23, 0.05);
	--container: 1180px;
	--measure: 680px;
	--pad-x: clamp(20px, 5vw, 72px);
	--pad-y: clamp(64px, 8vw, 112px);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-wrap: pretty;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

::selection { background: var(--accent); color: var(--paper); }

input, textarea, select, button { font-family: inherit; font-size: 16px; }

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

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

.al-skip {
	position: absolute;
	left: 12px; top: -48px;
	z-index: 100;
	padding: 10px 14px;
	background: var(--ink);
	color: var(--paper);
	border-radius: var(--radius);
}
.al-skip:focus { top: 12px; color: var(--paper); }

.al-shell {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--pad-x));
	margin-inline: auto;
	padding-inline: var(--pad-x);
}

/* ── Type primitives ──────────────────────────────────────────── */
.al-eyebrow {
	display: block;
	margin: 0 0 22px;
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-3);
}
.al-eyebrow--link:hover { color: var(--accent); }
.al-eyebrow--dark { color: var(--accent-dark); }

.al-display {
	margin: 0;
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(34px, 5vw, 62px);
	line-height: 1.06;
	letter-spacing: -0.025em;
	max-width: 18em;
	animation: al-rise .5s .06s both var(--ease);
}

.al-lede {
	margin: 0;
	font-size: clamp(19px, 1.6vw, 21px);
	line-height: 1.55;
	color: var(--ink-2);
	max-width: 34em;
}

.al-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.al-arrow {
	display: inline-block;
	font-family: var(--mono);
	transition: transform .28s var(--ease);
}

/* ── Buttons and links ────────────────────────────────────────── */
.al-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 15px 26px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-family: var(--sans);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, border-color .2s, transform .2s, color .2s;
}
.al-btn:hover .al-arrow { transform: translateX(4px); }
.al-btn--small { padding: 12px 18px; font-size: 15px; }

.al-btn--primary.al-btn--on-light { background: var(--accent); color: var(--paper); }
.al-btn--primary.al-btn--on-light:hover { background: var(--accent-hover); color: var(--paper); transform: translateY(-1px); }

.al-btn--secondary.al-btn--on-light { border-color: var(--line-2); color: var(--ink); background: transparent; }
.al-btn--secondary.al-btn--on-light:hover { border-color: var(--ink); background: var(--paper-2); color: var(--ink); }

.al-btn--primary.al-btn--on-dark { background: var(--accent-dark); color: var(--dark); }
.al-btn--primary.al-btn--on-dark:hover { background: var(--accent-dark-hover); color: var(--dark); transform: translateY(-1px); }

.al-btn--secondary.al-btn--on-dark { border-color: var(--dark-line-2); color: var(--dark-ink); background: transparent; }
.al-btn--secondary.al-btn--on-dark:hover { border-color: var(--ink-3); background: var(--dark-panel); color: var(--dark-ink); }

.al-textlink {
	display: inline-block;
	padding-bottom: 2px;
	border-bottom: 1px solid var(--line-2);
	font-size: 15px;
	font-weight: 500;
	color: var(--accent);
	transition: border-color .2s;
}
.al-textlink:hover { border-color: var(--accent); }
.al-textlink:hover .al-arrow { transform: translateX(4px); }

/* ── Header ───────────────────────────────────────────────────── */
.al-nav {
	position: sticky;
	top: 0;
	z-index: 40;
	border-bottom: 1px solid var(--line);
	background: rgba(247, 245, 240, 0.92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transition: box-shadow .2s;
}
.admin-bar .al-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .al-nav { top: 46px; } }
/* Under 601px WordPress lets its admin bar scroll away, so the header sticks to the very top. */
@media (max-width: 600px) { .admin-bar .al-nav { top: 0; } }
.al-nav.is-shrunk { box-shadow: 0 1px 2px rgba(26, 25, 23, 0.06); }

.al-nav__bar {
	display: flex;
	align-items: center;
	gap: 32px;
	padding-block: 14px;
	transition: padding .25s var(--ease);
}
.al-nav.is-shrunk .al-nav__bar { padding-block: 9px; }

.al-nav__brand {
	font-family: var(--serif);
	font-size: 21px;
	letter-spacing: -0.01em;
	white-space: nowrap;
	color: var(--ink);
}
.al-nav__brand:hover { color: var(--ink); }

.al-nav__links {
	display: flex;
	gap: 26px;
	margin: 0 0 0 8px;
	padding: 0;
	list-style: none;
	font-size: 15px;
}
.al-nav__links a {
	position: relative;
	color: var(--ink-2);
	transition: color .2s;
}
.al-nav__links a::after {
	content: "";
	position: absolute;
	left: 0; bottom: -5px;
	width: 100%; height: 1px;
	background: var(--ink);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .28s var(--ease);
}
.al-nav__links a:hover { color: var(--ink); }
.al-nav__links a:hover::after,
.al-nav__links .current-menu-item > a::after,
.al-nav__links .current_page_parent > a::after { transform: scaleX(1); }
.al-nav__links .current-menu-item > a,
.al-nav__links .current_page_parent > a { color: var(--ink); }

.al-nav__cta {
	margin-left: auto;
	padding: 11px 18px;
	border-radius: var(--radius);
	background: var(--accent);
	color: var(--paper);
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
	transition: background .2s, transform .2s;
}
.al-nav__cta:hover { background: var(--accent-hover); color: var(--paper); transform: translateY(-1px); }
.al-nav__cta-short { display: none; }

.al-nav__toggle {
	display: none;
	margin-right: -8px;
	padding: 8px;
	border: 0;
	background: none;
	color: var(--ink-2);
	cursor: pointer;
}
.al-nav__toggle:hover { color: var(--ink); }
.al-nav__icon-close { display: none; }
.al-nav__toggle[aria-expanded="true"] .al-nav__icon-open { display: none; }
.al-nav__toggle[aria-expanded="true"] .al-nav__icon-close { display: inline; }

@media (max-width: 1119px) {
	.al-nav__bar { flex-wrap: wrap; }
	.al-nav__toggle { display: block; }
	.al-nav__menu {
		display: none;
		order: 10;
		width: 100%;
		margin: 2px calc(-1 * var(--pad-x)) -14px;
		padding: 8px var(--pad-x) 16px;
		border-top: 1px solid var(--line);
		background: var(--paper-2);
		width: calc(100% + 2 * var(--pad-x));
	}
	.al-nav.is-open .al-nav__menu { display: block; }
	.al-nav__links { flex-direction: column; gap: 0; margin: 0; font-size: 17px; }
	.al-nav__links li { border-bottom: 1px solid var(--line); }
	.al-nav__links li:last-child { border-bottom: 0; }
	.al-nav__links a { display: block; padding: 12px 0; }
	.al-nav__links a::after { display: none; }
}
@media (max-width: 639px) {
	.al-nav__cta-long { display: none; }
	.al-nav__cta-short { display: inline; }
}

/* ── Page heads and listings ──────────────────────────────────── */
.al-head { padding-block: clamp(56px, 8vw, 112px) clamp(32px, 4vw, 56px); }
.al-head--tall { padding-bottom: var(--pad-y); }
.al-head__intro { margin-top: 24px; }
.al-head__search { margin-top: 32px; max-width: 520px; }
.al-head .al-btn { margin-top: 8px; }

.al-listing { padding-bottom: var(--pad-y); }
.al-empty { color: var(--ink-2); }

.al-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px clamp(16px, 3vw, 40px);
	padding: clamp(22px, 2.4vw, 32px) 4px;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	transition: background .22s, padding-left .22s;
}
.al-listing .al-row:first-of-type,
.al-feature + .al-row { border-top: 1px solid var(--line); }
.al-row:hover { background: var(--paper-2); padding-left: 16px; color: var(--ink); }
.al-row:hover .al-row__arrow { transform: translateX(8px); }
.al-row__date {
	flex: none;
	width: 100%;
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-3);
}
.al-row__main { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.al-row__title { font-family: var(--serif); font-size: clamp(21px, 2vw, 26px); line-height: 1.25; letter-spacing: -0.01em; }
.al-row__excerpt { font-size: 16px; color: var(--ink-2); max-width: 40em; }
.al-row__arrow { flex: none; margin-left: auto; font-size: 18px; color: var(--ink-3); }
@media (min-width: 720px) {
	.al-row__date { width: 120px; }
}

.al-feature {
	display: grid;
	gap: clamp(24px, 4vw, 56px);
	margin-bottom: clamp(32px, 4vw, 56px);
	color: var(--ink);
}
.al-feature.has-image { grid-template-columns: 1fr; }
@media (min-width: 900px) { .al-feature.has-image { grid-template-columns: 1.15fr 1fr; align-items: center; } }
.al-feature:hover { color: var(--ink); }
.al-feature__media { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.al-feature__media img { display: block; width: 100%; height: auto; transition: transform .5s var(--ease); }
.al-feature:hover .al-feature__media img { transform: scale(1.02); }
.al-feature__body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.al-feature__body .al-eyebrow { margin: 0; }
.al-feature__title { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.02em; }
.al-feature__excerpt { font-size: 18px; color: var(--ink-2); max-width: 32em; }
.al-feature:hover .al-textlink { border-color: var(--accent); }
.al-feature:hover .al-textlink .al-arrow { transform: translateX(4px); }

.al-pagination { margin-top: 40px; }
.al-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.al-pagination .page-numbers {
	display: inline-flex;
	min-width: 42px;
	justify-content: center;
	padding: 9px 12px;
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	font-family: var(--mono);
	font-size: 13px;
	color: var(--ink-2);
}
.al-pagination a.page-numbers:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }
.al-pagination .current { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ── Search field ─────────────────────────────────────────────── */
.al-search { display: flex; gap: 8px; }
.al-field,
.al-comments input[type="text"],
.al-comments input[type="email"],
.al-comments input[type="url"],
.al-comments textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--field-border);
	border-radius: var(--radius);
	background: #fff;
	color: var(--ink);
}
.al-field::placeholder { color: #A5A096; }
.al-field:focus, .al-comments input:focus, .al-comments textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 1px var(--accent); }

/* ── Article ──────────────────────────────────────────────────── */
.al-article__head { padding-block: clamp(40px, 6vw, 88px) clamp(32px, 4vw, 48px); }
.al-crumb { margin: 0 0 clamp(28px, 4vw, 48px); font-size: 15px; }
.al-crumb a { color: var(--ink-2); }
.al-crumb a:hover { color: var(--ink); }
.al-article__title { max-width: 20em; }
.al-article__lede { margin-top: 24px; }
.al-article__byline { display: flex; align-items: center; gap: 14px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); max-width: var(--measure); }
.al-article__author { margin: 0 0 2px; font-size: 15px; font-weight: 500; }
.al-avatar { border-radius: 50%; display: block; }

.al-article__hero { margin: 0 auto clamp(40px, 5vw, 64px); }
.al-article__hero img { display: block; width: 100%; border: 1px solid var(--line); border-radius: var(--radius); }
.al-article__hero figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); }

/* The body sits in the page shell, left-aligned with the title, one measure wide. */
.al-prose {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--pad-x));
	margin-inline: auto;
	padding: 0 var(--pad-x) clamp(48px, 6vw, 80px);
	color: var(--ink-body);
	font-size: 18px;
	line-height: 1.72;
}
.al-prose > * { max-width: var(--measure); margin-left: 0; margin-right: auto; }
.al-prose > .alignwide { max-width: none; }
.al-prose > .alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }
/* A lone [al_button] or [al_link] on its own line arrives without a <p>. */
.al-prose > a.al-btn { display: flex; width: fit-content; margin-bottom: 1.25em; }
.al-prose > a.al-textlink { display: table; margin-bottom: 1.25em; }
.al-prose p:has(> .al-btn) { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.al-prose p { margin-top: 0; margin-bottom: 1.25em; }
.al-prose h2, .al-prose h3, .al-prose h4 { color: var(--ink); font-family: var(--serif); font-weight: 400; }
.al-prose h2 { margin: 2em auto .6em 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.02em; }
.al-prose h3 { margin: 1.8em auto .5em 0; font-size: clamp(21px, 2.2vw, 25px); line-height: 1.25; letter-spacing: -0.01em; }
.al-prose h4 { margin: 1.6em auto .4em 0; font-family: var(--sans); font-size: 18px; font-weight: 600; }
.al-prose a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color .2s; }
.al-prose a:hover { text-decoration-color: var(--accent); }
.al-prose a.al-btn, .al-prose a.al-textlink { text-decoration: none; }
.al-prose strong { color: var(--ink); font-weight: 600; }
.al-prose ul, .al-prose ol { padding-left: 1.2em; margin-bottom: 1.25em; }
.al-prose li { margin-bottom: .4em; }
.al-prose li::marker { color: var(--ink-3); }
.al-prose hr, .al-divider { border: 0; border-top: 1px solid var(--line); margin: 3em auto 3em 0; }
.al-prose blockquote:not(.al-quote blockquote) {
	margin: 2em auto 2em 0;
	padding-left: 24px;
	border-left: 0;
	position: relative;
	font-family: var(--serif);
	font-size: 22px;
	line-height: 1.45;
	color: var(--ink);
}
.al-prose blockquote:not(.al-quote blockquote)::before {
	content: "";
	position: absolute;
	left: 0; top: 4px; bottom: 4px;
	width: 2px;
	background: var(--accent);
}
.al-prose code { font-family: var(--mono); font-size: .86em; padding: 2px 5px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.al-prose pre {
	overflow-x: auto;
	padding: 20px 22px;
	background: var(--dark);
	color: var(--dark-ink);
	border-radius: var(--radius);
	font-size: 14px;
	line-height: 1.6;
}
.al-prose pre code { padding: 0; background: none; border: 0; color: inherit; font-size: inherit; }
.al-prose figure { margin-top: 2em; margin-bottom: 2em; }
.al-prose img { border-radius: var(--radius); }
.al-prose figcaption, .al-prose .wp-element-caption { margin-top: 10px; font-size: 14px; color: var(--ink-3); text-align: left; }
.al-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.al-prose th, .al-prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.al-prose th { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }

/* Gutenberg buttons follow the same rules as [al_button]. */
.wp-block-button__link {
	padding: 15px 26px;
	border-radius: var(--radius) !important;
	background: var(--accent);
	color: var(--paper) !important;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none !important;
	transition: background .2s, transform .2s;
}
.wp-block-button__link:hover { background: var(--accent-hover); transform: translateY(-1px); }
.is-style-outline .wp-block-button__link { background: transparent; border: 1px solid var(--line-2); color: var(--ink) !important; }
.is-style-outline .wp-block-button__link:hover { background: var(--paper-2); border-color: var(--ink); }
.wp-block-separator { border: 0 !important; border-top: 1px solid var(--line) !important; }
.wp-block-pullquote { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2em 0; font-family: var(--serif); color: var(--ink); }

.al-tags { max-width: var(--measure); display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin-bottom: clamp(40px, 5vw, 64px); }
.al-tags a {
	display: inline-block;
	padding: 6px 10px;
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ink-2);
}
.al-tags a:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }

.al-after-post > * { max-width: var(--measure); }
.al-after-post { margin-bottom: clamp(40px, 5vw, 64px); }

.al-related { padding-block: clamp(40px, 5vw, 72px) var(--pad-y); border-top: 1px solid var(--line); }
.al-related .al-row:first-of-type { border-top: 1px solid var(--line); }

/* ── Shortcode blocks ─────────────────────────────────────────── */
.al-prose .al-lede { margin-bottom: 1.4em; color: var(--ink); }

.al-callout {
	margin: 2em auto 2em 0;
	padding: 22px 24px;
	border: 1px solid var(--line);
	border-left: 2px solid var(--accent);
	border-radius: var(--radius);
	background: var(--paper-2);
}
.al-callout--warning { border-left-color: var(--flag); }
.al-callout--key { background: var(--accent); border-color: var(--accent); color: #D6E6DC; }
.al-callout__title { margin: 0 0 8px !important; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.al-callout--key .al-callout__title { color: var(--accent-dark); }
.al-callout--warning .al-callout__title { color: var(--flag); }
.al-callout__body { font-size: 17px; }
.al-callout__body > :last-child { margin-bottom: 0; }
.al-callout--key strong, .al-callout--key a { color: var(--dark-ink); }

.al-quote { margin: 2.5em auto 2.5em 0; }
.al-quote blockquote { margin: 0; padding: 0; border: 0; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.38; letter-spacing: -0.01em; color: var(--ink); }
.al-quote blockquote p { margin: 0 0 .6em; }
.al-quote blockquote::before { content: "“"; display: block; height: .5em; font-size: 2.4em; line-height: 1; color: var(--accent); }
.al-quote figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; }
.al-quote__name { font-weight: 500; color: var(--ink); }
.al-quote__role { color: var(--ink-3); }

.al-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0;
	margin: 2.2em auto 2.2em 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.al-stat { padding: 22px 20px 22px 0; }
.al-stat + .al-stat { padding-left: 20px; border-left: 1px solid var(--line); }
.al-stat__value { margin: 0 0 4px !important; font-family: var(--serif); font-size: clamp(32px, 3.4vw, 44px); line-height: 1; letter-spacing: -0.02em; color: var(--accent); }
.al-stat__label { margin: 0 !important; font-size: 15px; line-height: 1.45; color: var(--ink-2); }

.al-prose ol.al-steps,
.al-steps { counter-reset: al-step; list-style: none; padding-left: 0; margin: 2em auto 2em 0; }
.al-step { counter-increment: al-step; position: relative; padding: 18px 0 18px 56px; border-top: 1px solid var(--line); margin: 0; }
.al-step:last-child { border-bottom: 1px solid var(--line); }
.al-step::before { content: counter(al-step, decimal-leading-zero); position: absolute; left: 0; top: 20px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--accent); }
.al-step__title { margin: 0 0 4px !important; font-size: 18px; font-weight: 500; color: var(--ink); }
.al-step__body { font-size: 16px; color: var(--ink-2); }
.al-step__body > :last-child { margin-bottom: 0; }

.al-faq { margin: 2em auto 2em 0; }
.al-faq__item { border-top: 1px solid var(--line); }
.al-faq__item:last-child { border-bottom: 1px solid var(--line); }
.al-faq__item summary { display: flex; gap: 20px; align-items: baseline; justify-content: space-between; padding: 18px 0; font-size: 18px; font-weight: 500; color: var(--ink); list-style: none; cursor: pointer; transition: color .2s; }
.al-faq__item summary::-webkit-details-marker { display: none; }
.al-faq__item summary:hover { color: var(--accent); }
.al-faq__plus { flex: none; font-family: var(--mono); font-size: 18px; color: var(--ink-3); transition: transform .25s; }
.al-faq__item[open] .al-faq__plus { transform: rotate(45deg); }
.al-faq__answer { padding-bottom: 20px; font-size: 16px; color: var(--ink-body); }
.al-faq__answer > :last-child { margin-bottom: 0; }

.al-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 40px; margin: 2em auto 2em 0; }
.al-col > :last-child { margin-bottom: 0; }

/* ── Booking band ─────────────────────────────────────────────── */
.al-band { background: var(--dark); color: var(--dark-ink); padding-block: clamp(64px, 8vw, 112px); }
.al-band__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.02em; color: var(--paper); max-width: 18em; }
.al-band__text { margin: 24px 0 0 !important; font-size: 19px; line-height: 1.6; color: var(--dark-ink-2); max-width: 32em; }
.al-band__action { margin: 32px 0 0 !important; }
.al-band__points {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px 32px;
	margin: 40px 0 0;
	padding: 24px 0 0;
	border-top: 1px solid var(--dark-line);
	list-style: none;
}
.al-band__points li { display: flex; gap: 12px; font-size: 16px; color: var(--dark-ink-2); }
.al-band__points span { color: var(--accent-dark); }

.al-band--inline {
	margin: 2.5em auto 2.5em 0;
	padding: clamp(28px, 4vw, 44px);
	border-radius: var(--radius);
}
.al-band--inline .al-band__title { font-size: clamp(24px, 2.6vw, 32px); }
/* Inside a post the article h2 rules would win: restate the band's own. */
.al-prose .al-band__title { margin: 0; color: var(--paper); font-family: var(--serif); line-height: 1.12; }
.al-band--inline .al-band__text { font-size: 17px; }
.al-band--inline .al-band__action { margin-top: 24px !important; }
.al-band a.al-btn { text-decoration: none; }

/* ── Galleries, single images, video ──────────────────────────── */
.al-gallery, .al-image, .al-video { margin: 2.2em auto 2.2em 0; }
.al-gallery__grid { display: grid; gap: 8px; grid-template-columns: repeat(var(--al-cols, 3), minmax(0, 1fr)); }
.al-gallery--cols-1 { --al-cols: 1; }
.al-gallery--cols-2 { --al-cols: 2; }
.al-gallery--cols-3 { --al-cols: 3; }
.al-gallery--cols-4 { --al-cols: 4; }
@media (max-width: 639px) { .al-gallery--cols-3, .al-gallery--cols-4 { --al-cols: 2; } }

.al-gallery__item,
.al-image > a {
	position: relative;
	display: block;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper-2);
	cursor: zoom-in;
	text-decoration: none !important;
}
.al-gallery__item { aspect-ratio: var(--al-ratio, 4/3); }
.al-gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .5s var(--ease); }
.al-image img { display: block; width: 100%; height: auto; border-radius: 0; transition: transform .5s var(--ease); }
.al-gallery__item:hover img, .al-image > a:hover img { transform: scale(1.03); }
.al-gallery__zoom {
	position: absolute;
	right: 10px; bottom: 10px;
	display: grid;
	place-items: center;
	width: 30px; height: 30px;
	border-radius: var(--radius);
	background: rgba(19, 18, 16, .72);
	color: var(--dark-ink);
	font-family: var(--mono);
	font-size: 16px;
	line-height: 1;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity .2s, transform .2s var(--ease);
}
.al-gallery__item:hover .al-gallery__zoom, .al-gallery__item:focus-visible .al-gallery__zoom,
.al-image > a:hover .al-gallery__zoom, .al-image > a:focus-visible .al-gallery__zoom { opacity: 1; transform: none; }
.al-gallery__caption, .al-image figcaption, .al-video figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); }

/* Gutenberg gallery/image blocks linked to the file open in the viewer too. */
.al-prose .wp-block-gallery a[data-al-viewer], .al-prose .wp-block-image a[data-al-viewer] { cursor: zoom-in; }
.al-prose .wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: var(--radius); }

.al-video__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--dark);
}
.al-video__iframe, .al-video__file { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--dark); }
.al-video__file { object-fit: contain; }
.al-video__poster {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: var(--dark);
	color: var(--dark-ink);
	cursor: pointer;
}
.al-video__poster--file { display: none; background: transparent; }
.al-js .al-video__poster--file:not([hidden]) { display: block; }
.al-video__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; opacity: .86; transition: opacity .3s, transform .6s var(--ease); }
.al-video__poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,18,16,0) 45%, rgba(19,18,16,.72) 100%); pointer-events: none; }
.al-video__play {
	position: absolute;
	left: 50%; top: 50%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 68px; height: 68px;
	margin: -34px 0 0 -34px;
	border-radius: 50%;
	background: var(--accent-dark);
	color: var(--dark);
	box-shadow: 0 6px 24px rgba(19,18,16,.35);
	transition: transform .25s var(--ease), background .2s;
}
.al-video__play svg { margin-left: 3px; }
.al-video__poster:hover .al-video__play, .al-video__poster:focus-visible .al-video__play { transform: scale(1.08); background: var(--accent-dark-hover); }
.al-video__poster:hover img { opacity: 1; transform: scale(1.02); }
.al-video__title {
	position: absolute;
	left: 20px; right: 20px; bottom: 16px;
	z-index: 1;
	text-align: left;
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--dark-ink);
}
.al-video__poster:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: -4px; }

/* ── Image viewer ─────────────────────────────────────────────── */
html.al-viewer-open { overflow: hidden; }
.al-viewer {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	grid-template-rows: auto 1fr auto;
	background: rgba(19, 18, 16, .96);
	color: var(--dark-ink);
	animation: al-fade .2s var(--ease);
}
.al-viewer[hidden] { display: none; }
.al-viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(14px, 3vw, 28px); }
.al-viewer__count { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--dark-ink-2); }
.al-viewer__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 clamp(8px, 6vw, 88px); }
.al-viewer__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,.4); transition: opacity .2s; }
.al-viewer.is-loading .al-viewer__img { opacity: .35; }
.al-viewer__btn {
	border: 1px solid var(--dark-line-2);
	border-radius: var(--radius);
	background: transparent;
	color: var(--dark-ink);
	font-family: var(--mono);
	font-size: 13px;
	letter-spacing: .08em;
	cursor: pointer;
	transition: background .2s, border-color .2s;
}
.al-viewer__btn:hover { background: var(--dark-panel); border-color: var(--ink-3); }
.al-viewer__btn:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
.al-viewer__close { padding: 8px 12px; text-transform: uppercase; }
.al-viewer__close span { font-size: 16px; margin-left: 4px; }
.al-viewer__nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; font-size: 18px; background: rgba(19,18,16,.6); }
.al-viewer__prev { left: clamp(8px, 2vw, 24px); }
.al-viewer__next { right: clamp(8px, 2vw, 24px); }
.al-viewer__nav[hidden] { display: none; }
.al-viewer__caption { margin: 0 auto; padding: 14px clamp(14px, 3vw, 28px) 20px; max-width: 760px; text-align: center; font-size: 15px; color: var(--dark-ink-2); }
.al-viewer__caption[hidden] { display: none; }
@media (max-width: 639px) {
	.al-viewer__stage { padding: 0; }
	.al-viewer__img { border-radius: 0; }
	.al-viewer__nav { width: 40px; height: 40px; margin-top: -20px; background: rgba(19,18,16,.75); }
}
@keyframes al-fade { from { opacity: 0; } to { opacity: 1; } }

/* ── Comments ─────────────────────────────────────────────────── */
.al-comments { padding-bottom: clamp(48px, 6vw, 80px); }
.al-comments > * { max-width: var(--measure); }
.al-comments__list { list-style: none; padding: 0; margin: 0 0 40px; }
.al-comments__list .comment-body { padding: 18px 0; border-top: 1px solid var(--line); font-size: 16px; }
.al-comments__list .children { list-style: none; padding-left: 24px; }
.al-comments .comment-meta { font-size: 14px; color: var(--ink-3); }
.al-comments .comment-meta a { color: var(--ink-3); }
.al-comments .comment-author { color: var(--ink); font-weight: 500; }
.al-comments .avatar { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.al-comments .comment-form p { margin: 0 0 16px; }
.al-comments label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--ink-2); }
.al-comments .comment-form-cookies-consent label { display: inline; }

/* ── Footer ───────────────────────────────────────────────────── */
.al-footer { background: var(--dark); color: var(--ink-3); border-top: 1px solid var(--dark-line); }
.al-band + .al-footer { border-top-color: var(--dark-line); }
.al-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 40px 48px;
	padding-block: clamp(36px, 5vw, 64px);
}
.al-footer__brand { margin: 0; font-family: var(--serif); font-size: 20px; color: var(--dark-ink); }
.al-footer__blurb { margin: 12px 0 0; font-size: 15px; color: var(--dark-ink-2); max-width: 26em; }
.al-footer__links { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.al-footer__links a { color: var(--dark-ink-2); transition: color .2s; }
.al-footer__links a:hover { color: var(--dark-ink); }
.al-footer__end { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.al-footer__legal { margin: 0; font-size: 14px; color: var(--ink-3); }

/* ── Motion ───────────────────────────────────────────────────── */
@keyframes al-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

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