/* ==========================================================================
   Grafico — base.css. Loaded on EVERY front-end view, before any
   template stylesheet (inc/base-assets.php). The single home of: tokens,
   element reset, typography foundation, container, focus, skip link,
   primary CTA, secondary/inline links, global header + dropdowns + mobile
   menu, global footer. Spec: docs/rebuild/03-WEB-DESIGN-SYSTEM.md
   (+ 91-DEV-AUDIT-ADDENDUM.md §3).

   Layer order is declared once, here. Template stylesheets
   (front-page.css, services.css, estimator.css, archive-interim.css)
   put their section styles in `@layer sections`, so they still win over
   components, but nothing in a template file may carry a global element
   reset again: the old `body.home a{color:inherit}` (0,1,2) beat every
   one-class component (0,1,0). Resets live in `@layer reset`, where
   even a bare `.class` selector overrides them.
   ========================================================================== */
@layer reset, tokens, base, layout, components, sections, utilities;

/* ==========================================================================
   RESET — element-level only, lowest layer
   ========================================================================== */
@layer reset {
	*,
	*::before,
	*::after { box-sizing: border-box; }
	html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
	body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol, fieldset { margin: 0; }
	ul, ol { padding: 0; list-style: none; }
	fieldset { padding: 0; border: 0; min-width: 0; }
	legend { padding: 0; }
	img, svg, video, canvas { display: block; max-width: 100%; }
	img, video { height: auto; }
	a { color: inherit; text-decoration: none; }
	button, input, select, textarea { font: inherit; color: inherit; }
	button { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
	[hidden] { display: none !important; }
}

/* ==========================================================================
   TOKENS
   Existing token names are kept (they are used across the template
   sheets); pack names are added next to them.
   ========================================================================== */
@layer tokens {
	:root {
		/* palette (03 §3.1). --deep is retained only for legacy section styles. */
		--night: #0D0D0C;
		--coal: #151513;
		--ivory: #F2EFE6;
		--crimson: #B3202C;
		--deep: #7A1F22;
		--ash: #55534B;
		--smoke: #8A867B;

		--font-core: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
		--font-human: 'Newsreader', Georgia, serif;

		/* grid: gutter + one container for header, sections, footer (03 §1-2) */
		--gutter: 20px;
		--container: min(1488px, calc(100vw - 2 * var(--gutter)));
		--edge: clamp(1.25rem, 4vw, 4rem); /* legacy section padding, unchanged */
		--header-h: 64px;

		/* spacing (03 §4) */
		--sp-4: 4px; --sp-8: 8px; --sp-12: 12px; --sp-16: 16px; --sp-20: 20px;
		--sp-24: 24px; --sp-32: 32px; --sp-40: 40px; --sp-48: 48px; --sp-56: 56px;
		--sp-64: 64px; --sp-80: 80px; --sp-96: 96px; --sp-128: 128px; --sp-160: 160px;
		--space-heading-lead: 16px;

		/* type (03 §5.2). Only the roles base.css itself uses; display sizes stay with the section sheets. */
		--fs-h1: clamp(36px, 4.2vw, 64px);
		--fs-h2: clamp(30px, 3.4vw, 52px);
		--fs-h3: clamp(22px, 1.9vw, 30px);
		--fs-lead: clamp(18px, 1.35vw, 21px);
		--fs-body: 16px;
		--fs-small: 15px;
		--fs-meta: 14px;
		--fs-nav-1: 17px;
		--fs-nav-2: 14px;

		/* motion (03 §13) + legacy names used by section sheets */
		--dur-fast: 120ms;
		--dur-base: 200ms;
		--dur-slow: 360ms;
		--ease: cubic-bezier(.2, 0, 0, 1);
		--ease-lock: cubic-bezier(.16, .8, .24, 1);
		--ease-impulse: cubic-bezier(.2, .9, .1, 1);
		--dur-snap: 160ms;
		--dur-impulse: 280ms;
		--dur-shift: 420ms;

		--cut: 12px;
	}
	@media (min-width: 768px) {
		:root { --gutter: 32px; --space-heading-lead: 20px; --fs-body: 17px; }
	}
	@media (min-width: 1100px) {
		:root { --gutter: 48px; --header-h: 72px; }
	}
	@media (min-width: 1440px) {
		:root { --gutter: 56px; }
	}

	/* Scenes (03 §3.2). Scene context is carried by variables only; the
	   default (no data-scene anywhere) is ivory. [data-surface] is the
	   homepage's existing attribute, mapped to the same four scenes. */
	:root,
	[data-scene="ivory"], [data-surface="ivory"] {
		--scene-bg: var(--ivory);
		--scene-fg: var(--night);
		--scene-fg-2: var(--ash);
		--scene-line: rgba(13, 13, 12, .14);
		--scene-focus: var(--night);
		--scene-row-hover: rgba(13, 13, 12, .06);
		/* primary CTA on ivory: ivory fill + 2px crimson outline, crimson text */
		--btn-fill: var(--ivory);
		--btn-edge: var(--crimson);
		--btn-edge-w: 2px;
		--btn-text: var(--crimson);
		--btn-fill-hover: var(--crimson);
		--btn-text-hover: var(--ivory);
	}
	[data-scene="night"], [data-surface="night"],
	[data-scene="coal"], [data-surface="coal"] {
		--scene-bg: var(--night);
		--scene-fg: var(--ivory);
		--scene-fg-2: var(--smoke);
		--scene-line: rgba(242, 239, 230, .16);
		--scene-focus: var(--ivory);
		--scene-row-hover: var(--coal);
		--btn-fill: var(--ivory);
		--btn-edge: var(--ivory);
		--btn-edge-w: 0px;
		--btn-text: var(--crimson);
		--btn-fill-hover: var(--crimson);
		--btn-text-hover: var(--ivory);
	}
	[data-scene="coal"], [data-surface="coal"] {
		--scene-bg: var(--coal);
		--scene-row-hover: var(--night);
	}
	[data-scene="crimson"], [data-surface="crimson"] {
		--scene-bg: var(--crimson);
		--scene-fg: var(--ivory);
		--scene-fg-2: rgba(242, 239, 230, .9);
		--scene-line: rgba(242, 239, 230, .32);
		--scene-focus: var(--ivory);
		--scene-row-hover: rgba(13, 13, 12, .12);
		--btn-fill: var(--ivory);
		--btn-edge: var(--ivory);
		--btn-edge-w: 0px;
		--btn-text: var(--crimson);
		--btn-fill-hover: var(--night);
		--btn-text-hover: var(--ivory);
	}
}

/* ==========================================================================
   BASE — document, typography foundation, focus
   ========================================================================== */
@layer base {
	body {
		background: var(--scene-bg);
		color: var(--scene-fg);
		font-family: var(--font-core);
		font-size: 1rem;
		line-height: 1.5;
		-webkit-font-smoothing: antialiased;
		overflow-x: clip; /* clip, not hidden: must not create a scroll container (sticky header) */
	}
	body.nav-locked { overflow: hidden; }

	:focus-visible { outline: 2px solid var(--scene-focus); outline-offset: 4px; }

	section[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

	h1, h2, h3, h4 { font-weight: 700; }
	::selection { background: var(--crimson); color: var(--ivory); }

	@media (prefers-reduced-motion: reduce) {
		*, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
	}
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
@layer layout {
	.container { width: var(--container); margin-inline: auto; }

	/* Default content pages (/o-nas/, /kontakt/, /blog/, posts, 404) — a readable
	   foundation only. Final Studio / Contact layouts are separate tasks. */
	.page-main {
		width: var(--container);
		margin-inline: auto;
		padding-block: clamp(48px, 7vw, 112px);
	}
	.page-title { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -.028em; font-weight: 700; margin-bottom: var(--sp-40); }
	.page-main .entry-header { margin-bottom: var(--sp-40); }
	.page-main .entry-header .entry-title { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -.028em; }

	.entry-list { display: grid; gap: var(--sp-48) var(--sp-32); }
	@media (min-width: 768px) { .entry-list { grid-template-columns: repeat(2, 1fr); } }
	@media (min-width: 1100px) { .entry-list { grid-template-columns: repeat(3, 1fr); } }
	.entry { display: flex; flex-direction: column; }
	.entry-thumbnail { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #e8e4d8; }
	.entry-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
	.entry-title { font-size: 1.375rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
	.entry-title a:hover, .entry-title a:focus-visible { text-decoration: underline; text-underline-offset: .2em; }
	.entry-meta, .entry-excerpt { font-size: var(--fs-small); color: var(--scene-fg-2); }
	.entry-excerpt { margin-top: var(--sp-8); max-width: 42ch; }

	/* long-form content: body measure 66ch (03 §2) */
	.entry-content { max-width: 66ch; font-size: var(--fs-body); line-height: 1.6; }
	.entry-content > * + * { margin-top: 1.25em; }
	.entry-content h2, .entry-content h3 { margin-top: 2em; margin-bottom: 0; letter-spacing: -.015em; line-height: 1.15; }
	.entry-content h2 { font-size: var(--fs-h3); }
	.entry-content h3 { font-size: 20px; }
	.entry-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
	.entry-content a:hover { text-decoration-thickness: 2px; }
	.entry-content ul, .entry-content ol { padding-left: 1.25em; }
	.entry-content ul { list-style: disc; }
	.entry-content ol { list-style: decimal; }
	.entry-content li + li { margin-top: .4em; }
	.entry-content img { height: auto; }
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */
@layer components {

	/* ---------- skip link (z 300) ---------- */
	.skip-link {
		position: absolute; left: 12px; top: -100px; z-index: 300;
		padding: 12px 16px; background: var(--ivory); color: var(--night);
		font-weight: 700; font-size: var(--fs-small);
	}
	.skip-link:focus { top: 12px; outline: 2px solid var(--night); outline-offset: 2px; }
	.sr-only {
		position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
		overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
	}

	/* ---------- primary CTA: ONE component (03 §6.1) ----------
	   The element itself has no clip-path (so the focus outline stays
	   visible); the parallelogram is drawn by ::before (edge) and ::after
	   (fill, inset by the edge width). All colours come from the scene
	   variables, so the default state is always legible without hover. */
	.btn-primary {
		position: relative; isolation: isolate;
		display: inline-flex; align-items: center; justify-content: center;
		min-height: 56px; padding: 0 40px 0 28px; margin: 0;
		border: 0; background: none;
		color: var(--btn-text);
		font: 700 16px/1 var(--font-core); letter-spacing: 0; text-align: center; text-decoration: none;
		cursor: pointer;
		transition: color var(--dur-snap) var(--ease);
	}
	.btn-primary::before,
	.btn-primary::after {
		content: ""; position: absolute; z-index: -1;
		transition: background-color var(--dur-snap) var(--ease), opacity var(--dur-snap) var(--ease);
	}
	.btn-primary::before {
		inset: 0; background: var(--btn-edge);
		clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
	}
	.btn-primary::after {
		inset: var(--btn-edge-w); background: var(--btn-fill);
		clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut) + 1px) 100%, 0 100%);
	}
	.btn-primary:is(:hover, :focus-visible, :active):not(:disabled):not([aria-disabled="true"]) { color: var(--btn-text-hover); }
	.btn-primary:is(:hover, :focus-visible, :active):not(:disabled):not([aria-disabled="true"])::before,
	.btn-primary:is(:hover, :focus-visible, :active):not(:disabled):not([aria-disabled="true"])::after { background: var(--btn-fill-hover); }
	.btn-primary:focus-visible { outline: 2px solid var(--scene-focus); outline-offset: 4px; }
	.btn-primary:disabled, .btn-primary[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
	.btn-primary--compact { --cut: 9px; min-height: 40px; padding: 0 29px 0 20px; font-size: 14px; }
	.btn-primary--block { width: 100%; }

	/* ---------- secondary + inline links (03 §6.2, §7) ---------- */
	.link-secondary {
		display: inline-flex; align-items: center; min-height: 44px; padding-block: 12px;
		color: var(--scene-fg); font: 700 16px/1.2 var(--font-core);
		text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
	}
	.link-secondary:hover, .link-secondary:focus-visible { text-decoration-thickness: 2px; }
	.link-secondary--compact { font-size: 14px; }
	.link-inline {
		color: var(--scene-fg);
		text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
	}
	.link-inline:hover, .link-inline:focus-visible { text-decoration-thickness: 2px; }

	/* ======================================================================
	   GLOBAL HEADER (03 §9). Sticky, exactly --header-h tall, always a full
	   scene-coloured surface. The scene follows the section under the header
	   (assets/js/site.js); an open dropdown lends its own scene to the header
	   so header + panel read as one surface. No blur, no glass.
	   ====================================================================== */
	.site-header {
		position: sticky; top: 0; z-index: 100;
		height: var(--header-h);
		background: var(--scene-bg); color: var(--scene-fg);
		transition: background-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
	}
	body.admin-bar .site-header { top: 32px; }
	@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

	.header-row {
		width: var(--container); height: 100%; margin-inline: auto; padding-block: 0;
		display: flex; align-items: center; justify-content: space-between; gap: var(--sp-16);
	}
	.site-logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: inherit; }
	.site-logo svg { width: 23px; height: 24px; flex: none; }
	.site-logo .wordmark { font-weight: 700; font-size: 1.05rem; letter-spacing: 0; }

	.site-nav { display: none; }
	.header-actions { display: flex; align-items: center; gap: var(--sp-16); }
	.header-actions .btn-primary { display: none; }

	.menu-toggle {
		display: inline-flex; align-items: center; gap: 10px;
		min-width: 44px; min-height: 44px; padding: 0 4px;
		font-weight: 700; font-size: var(--fs-small); color: inherit;
	}
	.menu-toggle__icon { display: block; width: 16px; height: 8px; position: relative; flex: none; }
	.menu-toggle__icon::before, .menu-toggle__icon::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; }
	.menu-toggle__icon::before { top: 0; }
	.menu-toggle__icon::after { bottom: 0; }
	.menu-toggle__icon.is-close { height: 16px; width: 16px; }
	.menu-toggle__icon.is-close::before { top: 7px; transform: rotate(45deg); }
	.menu-toggle__icon.is-close::after { bottom: auto; top: 7px; transform: rotate(-45deg); }

	@media (min-width: 768px) {
		.header-actions .btn-primary { display: inline-flex; }
	}

	/* desktop (lg/xl): full nav in the container, 3 + separator + 3 */
	@media (min-width: 1100px) {
		.header-row { display: grid; grid-template-columns: 1fr auto 1fr; }
		.header-actions { justify-self: end; }
		.menu-toggle { display: none; }
		.site-nav { display: flex; align-items: center; gap: 36px; }
		.nav-link {
			position: relative; display: inline-flex; align-items: center; min-height: 44px;
			color: inherit; font-size: var(--fs-nav-1); line-height: 1; letter-spacing: 0; font-weight: 400;
		}
		.nav-link::after {
			content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px;
			background: currentColor; transform: scaleX(0); transform-origin: left;
			transition: transform var(--dur-base) var(--ease);
		}
		.nav-link:hover::after, .nav-link:focus-visible::after, .nav-link[aria-expanded="true"]::after { transform: scaleX(1); }
		.nav-link[aria-current="page"]::after { transform: scaleX(1); height: 2px; }
	}

	/* ---------- dropdown panels (03 §10): full-bleed under the header ---------- */
	.nav-panel {
		position: absolute; top: 100%; left: 0; right: 0; z-index: 90;
		background: var(--scene-bg); color: var(--scene-fg);
		animation: nav-panel-in var(--dur-base) var(--ease);
	}
	.nav-panel__inner {
		width: var(--container); margin-inline: auto; padding: 32px 0 40px;
		display: grid; gap: 24px;
	}
	.nav-panel__inner--groups { grid-template-columns: 1fr; gap: 32px; }
	@media (min-width: 1100px) { .nav-panel__inner--groups { grid-template-columns: repeat(3, 1fr); column-gap: 48px; align-items: start; } }
	.nav-group__title { display: flex; align-items: center; gap: 12px; font-size: 17px; line-height: 1.3; font-weight: 700; letter-spacing: 0; margin: 0 0 4px; }
	.nav-group__swatch { width: 12px; height: 12px; flex: none; }
	.nav-group__swatch--night { background: var(--night); box-shadow: inset 0 0 0 1px var(--smoke); }
	.nav-group__swatch--crimson { background: var(--crimson); }
	.nav-group__swatch--ivory { background: var(--ivory); }
	.nav-panel__list { display: flex; flex-direction: column; row-gap: 0; }
	/* one box for every item, linked or "na zapytanie": the audit's raised last item came
	   from a bare <li> sitting next to <a min-height:44px; align-items:center> */
	.nav-panel__item {
		display: inline-flex; align-items: baseline; gap: .35em;
		padding-block: 11px; margin: 0;
		font: 700 17px/1.3 var(--font-core); color: inherit;
	}
	.nav-panel__item:hover .nav-panel__label, .nav-panel__item:focus-visible .nav-panel__label { text-decoration: underline; text-underline-offset: .2em; }
	.nav-panel__item--request { color: var(--scene-fg-2); }
	.nav-panel__note { font-size: var(--fs-meta); font-weight: 400; }
	.nav-panel__person { font-size: var(--fs-meta); line-height: 1.45; color: var(--scene-fg-2); margin: 8px 0 0; }
	@keyframes nav-panel-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
	@media (prefers-reduced-motion: reduce) { .nav-panel { animation-name: nav-panel-fade; } }
	@keyframes nav-panel-fade { from { opacity: 0; } to { opacity: 1; } }

	/* ---------- mobile menu (03 §11): full-screen night overlay, no blur ---------- */
	.mobile-menu {
		position: fixed; inset: 0; z-index: 200;
		display: none; flex-direction: column;
		background: var(--night); color: var(--ivory);
		overflow-y: auto; overscroll-behavior: contain;
	}
	body.admin-bar .mobile-menu { top: 32px; }
	@media (max-width: 782px) { body.admin-bar .mobile-menu { top: 46px; } }
	.mobile-menu.is-open { display: flex; animation: mobile-menu-in var(--dur-snap) linear; }
	@keyframes mobile-menu-in { from { opacity: 0; } to { opacity: 1; } }
	.mobile-menu__bar {
		flex: none; height: var(--header-h);
		display: flex; align-items: center; justify-content: space-between;
		padding-inline: var(--gutter);
	}
	.mobile-menu__body { padding: 8px 0 40px; display: flex; flex-direction: column; }
	.mobile-acc { border-bottom: 1px solid rgba(242, 239, 230, .16); }
	.mobile-acc:first-child { border-top: 1px solid rgba(242, 239, 230, .16); }
	.mobile-acc__toggle {
		width: 100%; min-height: 72px; padding-inline: var(--gutter);
		display: flex; align-items: center; justify-content: space-between; gap: 16px;
		font-size: var(--fs-h2); font-weight: 700; line-height: 1.06; letter-spacing: -.025em; color: var(--ivory);
	}
	.mobile-acc__sign { position: relative; width: 14px; height: 14px; flex: none; }
	.mobile-acc__sign::before, .mobile-acc__sign::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: currentColor; }
	.mobile-acc__sign::after { transform: rotate(90deg); }
	.mobile-acc__toggle[aria-expanded="true"] .mobile-acc__sign::after { display: none; }
	.mobile-acc__panel { background: var(--scene-bg); color: var(--scene-fg); padding: 8px var(--gutter) 24px; }
	.mobile-acc__panel .nav-panel__inner { width: auto; padding: 0; gap: 28px; }
	.mobile-acc__panel .nav-panel__item { display: flex; padding-block: 10px; font-size: 20px; }
	.mobile-acc__panel .nav-panel__note { font-size: var(--fs-meta); }
	.mobile-menu__home { border-top: 1px solid rgba(242, 239, 230, .16); border-bottom: 1px solid rgba(242, 239, 230, .16); }
	.mobile-menu__home a {
		display: flex; align-items: center; min-height: 72px; padding-inline: var(--gutter);
		font-size: var(--fs-h2); font-weight: 700; line-height: 1.06; letter-spacing: -.025em; color: var(--ivory);
	}
	.mobile-menu__home a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
	.mobile-menu__links { padding: 32px var(--gutter) 0; display: flex; flex-direction: column; gap: 0; }
	.mobile-menu__links a { display: flex; align-items: center; min-height: 44px; margin-bottom: 8px; font-size: 24px; font-weight: 700; letter-spacing: -.01em; color: var(--ivory); }
	.mobile-menu__cta { padding: 32px var(--gutter) 0; }
	.mobile-menu__mail { padding: 16px var(--gutter) 0; font-size: var(--fs-small); }
	.mobile-menu__mail a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ivory); text-decoration: underline; text-underline-offset: 3px; }
	@media (min-width: 1100px) { .mobile-menu { display: none !important; } }

	/* ======================================================================
	   GLOBAL FOOTER (03 §12, KEEP). COAL scene, global container.
	   ====================================================================== */
	.site-footer { position: relative; z-index: 1; background: var(--scene-bg); color: var(--scene-fg); }
	.site-footer-inner { width: var(--container); margin-inline: auto; padding: clamp(4rem, 8vw, 7rem) 0 2.5rem; }
	.site-footer-top { display: flex; flex-direction: column; gap: 24px; padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--scene-line); }
	.site-footer-statement { font-weight: 700; font-size: clamp(1.75rem, 3vw, 2.75rem); letter-spacing: -.02em; line-height: 1.05; max-width: 20ch; }
	.site-footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
	.site-footer-email { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.75rem); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
	.site-footer-email:hover, .site-footer-email:focus-visible { text-decoration-thickness: 2px; }
	.site-footer-nav { margin-top: clamp(3rem, 6vw, 5rem); display: grid; gap: 40px; }
	.site-footer-group-label { font-size: 1.125rem; font-weight: 700; }
	.site-footer-group-person { margin-top: 4px; font-size: var(--fs-meta); color: var(--scene-fg-2); }
	.site-footer-group ul { margin-top: 12px; display: flex; flex-direction: column; }
	.site-footer-group a { display: flex; align-items: center; min-height: 44px; font-weight: 400; font-size: 1rem; }
	.site-footer-group a:hover, .site-footer-group a:focus-visible { text-decoration: underline; text-underline-offset: .2em; }
	.site-footer-where { margin-top: clamp(2rem, 4vw, 3rem); max-width: 64ch; font-size: var(--fs-meta); line-height: 1.5; color: var(--scene-fg-2); }
	.site-footer-bottom { margin-top: clamp(3rem, 6vw, 5rem); padding-top: 32px; border-top: 1px solid var(--scene-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
	.site-footer-mark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
	.site-footer-mark svg { width: 23px; height: 24px; }
	.site-footer-mark .wordmark { font-weight: 700; font-size: 1.1rem; }
	.site-footer-bottom small { color: var(--scene-fg-2); font-size: var(--fs-meta); }
	.site-footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
	.site-footer-legal a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-meta); text-decoration: underline; text-underline-offset: .2em; }
	.site-footer-legal a:hover, .site-footer-legal a:focus-visible { text-decoration-thickness: 2px; }
	@media (min-width: 768px) {
		.site-footer-top { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; }
		.site-footer-contact { align-items: flex-end; }
		.site-footer-nav { grid-template-columns: repeat(4, 1fr); }
	}
}
