/*
Theme Name: Train With Riii
Theme URI: https://trainwithriii.com
Author: Train With Riii
Description: Lightweight custom theme for Train With Riii. Programmes, transformations, testimonials, FAQs, steps and all page text are editable from the dashboard. No plugins required.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twr
*/

/* ---------- Tokens ---------- */
:root {
	--cream: #f7eee4;
	--blush: #edc4cc;
	--pink: #e8b8c3;
	--burg: #4a101b;
	--dark: #350d14;
	--brown: #35191d;
	--paper: #fffaf6;
	--line: rgba(74, 16, 27, .14);
	--sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--script: "Playfair Display", Georgia, serif;
	--wrap: 1180px;
	--gutter: clamp(20px, 5vw, 56px);
	--radius: 24px;
	--step--1: .8125rem;
	--step-0: 1rem;
	--step-1: 1.1875rem;
	--step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
	--step-3: clamp(2.5rem, 1.6rem + 4vw, 4.75rem);
	--step-4: clamp(3.25rem, 1.5rem + 7.5vw, 7.25rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	margin: 0;
	background: var(--cream);
	color: var(--brown);
	font-family: var(--sans);
	font-size: var(--step-0);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; }
p { margin: 0 0 1em; }
h1, h2, h3 { color: var(--burg); margin: 0 0 .5em; text-wrap: balance; }
h1, h2 {
	font-weight: 900;
	text-transform: uppercase;
	line-height: .9;
	letter-spacing: -.045em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.1; letter-spacing: -.02em; font-weight: 900; }
.script {
	font-family: var(--script);
	font-style: italic;
	font-weight: 600;
	text-transform: none;
	letter-spacing: -.02em;
	display: inline-block;
}
.script-only { font-family: var(--script); font-style: italic; font-weight: 600; text-transform: none; letter-spacing: -.02em; line-height: 1; }
.kicker { font-size: var(--step--1); font-weight: 700; letter-spacing: .02em; margin-bottom: 1.25rem; }
.lead { font-size: var(--step-1); max-width: 52ch; }
.small { font-size: var(--step--1); opacity: .8; }
.visually-hidden, .skip-link:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--burg); color: #fff; padding: 10px 16px; border-radius: 999px; }
:focus-visible { outline: 3px solid var(--burg); outline-offset: 3px; border-radius: 6px; }
.band :focus-visible, .site-footer :focus-visible, .programme-featured :focus-visible { outline-color: var(--pink); }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Buttons & links ---------- */
.pill {
	display: inline-flex; align-items: center; gap: .5em;
	background: var(--burg); color: #fff;
	padding: 14px 24px; border-radius: 999px; border: 2px solid var(--burg);
	text-decoration: none; font-size: .78rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase;
	cursor: pointer; transition: background-color .2s, color .2s;
}
.pill:hover { background: var(--dark); border-color: var(--dark); }
.pill-ghost { background: transparent; color: var(--burg); }
.pill-ghost:hover { background: var(--burg); color: #fff; }
.pill-light { background: var(--pink); border-color: var(--pink); color: var(--burg); }
.pill-light:hover { background: var(--paper); border-color: var(--paper); }
.pill-small { padding: 10px 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.text-link {
	display: inline-flex; align-items: center; gap: .45em;
	font-weight: 700; color: var(--burg);
	text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em;
}
.text-link:hover { text-decoration-color: var(--pink); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(247, 238, 228, .92);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}
.nav { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: auto; padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-weight: 900; color: var(--burg); font-size: 1.25rem; letter-spacing: -.04em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.logo img { max-height: 44px; width: auto; }
.logo-light { color: var(--pink); }
.site-menu { display: flex; align-items: center; gap: 28px; }
.site-menu ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-menu ul a { text-decoration: none; font-size: .8rem; font-weight: 700; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-menu ul a:hover, .site-menu .current-menu-item > a, .site-menu .current_page_item > a { border-bottom-color: var(--burg); }
.menu-toggle { display: none; }

@media (max-width: 960px) {
	.menu-toggle {
		display: inline-flex; align-items: center; gap: 10px;
		background: none; border: 0; padding: 8px 0; font: inherit; font-weight: 700; font-size: .85rem; color: var(--burg); cursor: pointer;
	}
	.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { display: block; width: 22px; height: 2px; background: var(--burg); border-radius: 2px; transition: transform .25s, opacity .25s; }
	.menu-toggle-bars { position: relative; }
	.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
	.menu-toggle-bars::before { top: -7px; }
	.menu-toggle-bars::after { top: 7px; }
	.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
	.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
	.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }
	.site-menu {
		position: fixed; inset: 65px 0 auto 0; z-index: 49;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--cream); border-bottom: 1px solid var(--line);
		padding: 8px var(--gutter) 28px;
		max-height: calc(100dvh - 65px); overflow-y: auto;
	}
	.js .site-menu:not(.is-open) { display: none; }
	.site-menu ul { flex-direction: column; gap: 0; }
	.site-menu ul a { display: block; padding: 16px 0; font-size: 1.5rem; font-weight: 900; letter-spacing: -.03em; text-transform: uppercase; color: var(--burg); border-bottom: 1px solid var(--line); }
	.site-menu ul a:hover, .site-menu .current-menu-item > a, .site-menu .current_page_item > a { border-bottom-color: var(--line); color: var(--dark); }
	.site-menu .pill { margin-top: 24px; justify-content: center; padding: 16px; }
	body.menu-open { overflow: hidden; }
}

/* ---------- Layout ---------- */
.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: auto; padding: clamp(64px, 9vw, 120px) var(--gutter); }
.wrap + .wrap { padding-top: 0; }
.section-title { font-size: clamp(2.25rem, 1.5rem + 3.2vw, 4rem); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 40px; }
.section-head .section-title { margin: 0; }
.section-head .lead { margin: 16px 0 0; }
.grid-3 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

/* ---------- Hero ---------- */
.hero {
	background: var(--blush);
	border-radius: 0 0 48px 48px;
	padding: clamp(56px, 8vw, 110px) var(--gutter) clamp(64px, 9vw, 120px);
}
.hero > * { max-width: var(--wrap); }
.hero-copy { margin: 0 auto; max-width: var(--wrap); }
.hero h1 { margin-bottom: .3em; }
.hero h1 .script { color: var(--dark); }
.hero-text { font-size: var(--step-1); max-width: 54ch; }
.hero-split {
	display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: end;
	max-width: none;
}
.hero-split .hero-copy { margin: 0; justify-self: end; max-width: 680px; width: 100%; }
.hero-split .frame { justify-self: start; width: 100%; max-width: 440px; }
.hero-plain { padding-bottom: clamp(48px, 6vw, 80px); }
.hero-plain h1 { font-size: var(--step-3); }

@media (max-width: 850px) {
	.hero { border-radius: 0 0 32px 32px; }
	.hero-split { grid-template-columns: 1fr; }
	.hero-split .hero-copy, .hero-split .frame { justify-self: stretch; max-width: none; }
	.hero-split .frame { max-width: 320px; }
}

/* ---------- Photo frames (arched: the signature shape) ---------- */
.frame { margin: 0; position: relative; overflow: hidden; background: var(--pink); border-radius: 24px; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-arch { aspect-ratio: 4 / 5; border-radius: 999px 999px 28px 28px; }
.frame-tall { aspect-ratio: 4 / 5; border-radius: 999px 999px 24px 24px; }
.frame-square { aspect-ratio: 1; border-radius: 18px; }
.frame-empty { display: grid; place-items: center; text-align: center; color: var(--burg); background: var(--pink); min-height: 220px; }
.frame-empty .frame-mark { font-family: var(--script); font-style: italic; font-size: clamp(5rem, 12vw, 9rem); line-height: 1; opacity: .35; }
.frame-empty figcaption { position: absolute; bottom: 18px; left: 0; right: 0; font-size: var(--step--1); font-weight: 700; opacity: .7; }
.frame-square.frame-empty { min-height: 0; }
.frame-square.frame-empty .frame-mark { font-size: 4rem; }
.frame-square.frame-empty figcaption { display: none; }

/* ---------- Split (photo + text) ---------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-reverse { grid-template-columns: 7fr 5fr; }
.split-reverse .frame { order: 2; }
.split h2 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem); }
.split-copy p { max-width: 58ch; }
@media (max-width: 850px) {
	.split, .split-reverse { grid-template-columns: 1fr; }
	.split .frame { max-width: 320px; }
	.frame-empty { min-height: 0; }
	.split-reverse .frame { order: 0; }
}

/* ---------- Programmes ---------- */
.programme-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.programme-link { text-decoration: none; display: block; height: 100%; border-radius: var(--radius); }
.programme {
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 28px; height: 100%; display: flex; flex-direction: column;
}
.programme-name { font-size: 1.6rem; text-transform: uppercase; letter-spacing: -.035em; margin-bottom: .2em; }
.programme-for { font-size: var(--step--1); font-weight: 700; margin-bottom: 1rem; }
.price { font-size: 2rem; font-weight: 900; color: var(--burg); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 1rem; }
.price span { font-size: var(--step--1); font-weight: 500; letter-spacing: 0; color: var(--brown); }
.programme-compact { padding: 24px; transition: border-color .2s, transform .2s; }
.programme-compact .price { margin: auto 0 0; padding-top: 1rem; font-size: 1.6rem; }
.programme-compact .price span { display: block; }
.programme-link:hover .programme { border-color: var(--burg); }
.programme-featured { background: var(--burg); border-color: var(--burg); color: #fff; }
.programme-featured .programme-name, .programme-featured .price, .programme-featured .price span { color: var(--pink); }
.programme-featured .programme-for { color: #fff; }
.badge { align-self: flex-start; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; background: var(--pink); color: var(--burg); padding: 5px 12px; border-radius: 999px; margin-bottom: 1rem; }
.programme-summary { margin-bottom: 1.25rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.6em; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: .8em; height: .45em; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); color: var(--burg); }
.programme-featured .ticks li::before { color: var(--pink); }
.programme .pill { margin-top: auto; align-self: flex-start; }
.programme-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.programme-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.programme-grid > :last-child:nth-child(odd) .programme { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.programme-grid > :last-child:nth-child(odd) .programme > :not(.ticks):not(.pill) { grid-column: 1; }
.programme-grid > :last-child:nth-child(odd) .ticks { grid-column: 2; grid-row: 1 / span 5; align-self: start; }
.programme-grid > :last-child:nth-child(odd) .pill { grid-column: 1; justify-self: start; }
.programme-anchor { scroll-margin-top: 96px; }
.programme-anchor:target .programme { box-shadow: 0 0 0 3px var(--burg); }
@media (max-width: 1100px) { .programme-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 850px) {
	.programme-list { grid-template-columns: repeat(2, 1fr); }
	.programme-grid { grid-template-columns: 1fr; }
	.programme-grid > :last-child:nth-child(odd) .programme { display: flex; }
}
@media (max-width: 480px) { .programme-list { grid-template-columns: 1fr; } }

/* Comparison table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); margin-bottom: 1rem; }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .92rem; }
.compare th, .compare td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { color: var(--burg); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; font-size: .95rem; vertical-align: bottom; }
.compare tbody th { text-align: left; font-weight: 500; }
.compare .yes { color: var(--burg); font-weight: 900; font-size: 1.15rem; }
.compare .no { opacity: .35; }

/* ---------- Dark band ---------- */
.band { background: var(--burg); color: #fff; }
.band-inner { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: auto; padding: clamp(64px, 9vw, 120px) var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: center; }
.band h2 { color: var(--pink); margin: 0; }
.band .script-only { font-size: clamp(3.5rem, 2rem + 6vw, 7rem); }
.band p { font-size: var(--step-1); max-width: 46ch; }
.band .small { font-size: var(--step--1); margin-top: 1rem; }
@media (max-width: 850px) { .band-inner { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.quote { margin: 0; padding: 32px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 1.5rem; font-family: var(--script); font-style: italic; font-size: 1.3rem; line-height: 1.5; color: var(--burg); }
.quote blockquote p::before { content: "“"; }
.quote blockquote p::after { content: "”"; }
.quote figcaption { margin-top: auto; font-size: var(--step--1); }
.quote figcaption span { display: block; opacity: .75; }
.quote.is-sample { border-style: dashed; border-color: var(--burg); }
.sample-flag { font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; color: var(--burg); background: var(--blush); align-self: flex-start; padding: 4px 10px; border-radius: 999px; }

/* ---------- Transformations ---------- */
.transformation { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 24px; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.ba > div { position: relative; }
.ba-label { position: absolute; left: 10px; bottom: 10px; background: var(--paper); color: var(--burg); font-size: .72rem; font-weight: 900; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.transformation h3, .transformation p, .transformation blockquote { padding: 0 8px; }
.transformation h3 { font-size: 1.35rem; text-transform: uppercase; margin-bottom: .2em; }
.transformation .result { font-weight: 700; margin-bottom: .25em; }
.transformation .meta { font-size: var(--step--1); opacity: .75; }
.transformation blockquote { margin: 0; font-family: var(--script); font-style: italic; color: var(--burg); }

/* ---------- About values ---------- */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0; margin: 0; border-top: 2px solid var(--burg); }
.values > div { padding: 28px 24px 8px 0; }
.values dt { font-weight: 900; color: var(--burg); font-size: 1.15rem; line-height: 1.25; margin-bottom: .5rem; }
.values dd { margin: 0; }
.band-promise .script { color: var(--paper); }

/* ---------- Steps (a real sequence, so numbered) ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; max-width: 860px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 88px 1fr; column-gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); grid-row: 1 / span 2; font-family: var(--script); font-style: italic; font-size: 3.5rem; line-height: .9; color: var(--burg); }
.steps h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); line-height: 1.05; margin-bottom: .35em; letter-spacing: -.035em; }
.steps p { max-width: 60ch; margin: 0; }
.note { margin: 40px 0 0; padding: 20px 24px; background: var(--blush); border-radius: 18px; max-width: 860px; font-weight: 500; }
@media (max-width: 560px) { .steps li { grid-template-columns: 56px 1fr; column-gap: 12px; } .steps li::before { font-size: 2.6rem; } }

/* ---------- FAQ ---------- */
.faq { max-width: calc(860px + 2 * var(--gutter)); }
.faq-group { margin-bottom: 56px; }
.faq-group h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); letter-spacing: -.035em; margin-bottom: 12px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 48px 20px 0; position: relative; font-weight: 700; font-size: var(--step-1); line-height: 1.4; color: var(--burg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.8rem; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 48px 20px 0; max-width: 64ch; }
.faq-more { background: var(--blush); border-radius: var(--radius); padding: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.faq-more p { margin: 0; font-weight: 900; font-size: var(--step-2); color: var(--burg); letter-spacing: -.03em; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.contact-main { background: var(--burg); color: #fff; border-radius: var(--radius); padding: 40px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; min-height: 280px; }
.contact-main .icon { width: 48px; height: 48px; color: var(--pink); margin-bottom: auto; }
.contact-main .contact-value { font-size: var(--step-3); font-weight: 900; text-transform: uppercase; letter-spacing: -.045em; line-height: .95; color: var(--pink); }
.contact-main:hover .contact-value { text-decoration: underline; text-decoration-thickness: 3px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-list a, .contact-list li > div { display: grid; grid-template-columns: 28px 1fr; column-gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.contact-list .icon { grid-row: 1 / span 2; width: 24px; height: 24px; color: var(--burg); margin-top: 2px; }
.contact-label { font-size: var(--step--1); font-weight: 700; }
.contact-value { font-size: var(--step-1); font-weight: 700; color: var(--burg); overflow-wrap: anywhere; }
.contact-list a:hover .contact-value { text-decoration: underline; }
@media (max-width: 850px) { .contact { grid-template-columns: 1fr; } .contact-main { min-height: 220px; } }

/* ---------- Instagram ---------- */
.insta-follow { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.insta-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.insta-tiles span { aspect-ratio: 1; border-radius: 14px; background: var(--blush); }
.insta-tiles span:nth-child(2n) { background: var(--pink); }
.insta-tiles span:nth-child(3) { background: var(--burg); }
.insta-cta { font-weight: 900; font-size: var(--step-2); line-height: 1.15; color: var(--burg); letter-spacing: -.03em; padding: 16px; }
.insta-follow:hover .insta-cta { text-decoration: underline; text-decoration-thickness: 3px; }
@media (max-width: 700px) { .insta-follow { grid-template-columns: 1fr; } }

/* ---------- Empty states & prose ---------- */
.empty { background: var(--paper); border: 1px dashed var(--burg); border-radius: var(--radius); padding: 40px; text-align: center; }
.empty p { font-size: var(--step-1); max-width: 46ch; margin: 0 auto 1.5rem; }
.prose { max-width: calc(760px + 2 * var(--gutter)); }
.prose h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); letter-spacing: -.03em; margin-top: 2em; line-height: 1.1; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose a { color: var(--burg); font-weight: 700; }
.prose img, .prose figure { margin: 2rem 0; border-radius: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #fff; }
.footer-inner { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: auto; padding: 64px var(--gutter) 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .logo { font-size: 1.6rem; }
.footer-brand p { margin-top: 12px; max-width: 38ch; opacity: .8; font-size: .92rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: var(--pink); text-decoration: underline; }
.social a { display: inline-flex; align-items: center; gap: 10px; }
.social .icon { color: var(--pink); }
.copyright { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: auto; padding: 20px var(--gutter) 32px; font-size: var(--step--1); opacity: .65; border-top: 1px solid rgba(255,255,255,.12); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

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