/*
Theme Name: Rabie Haddar
Theme URI: https://rabiehaddar.com/
Author: Rabie Haddar
Description: Personal portfolio and blog theme for Rabie Haddar — fixed sidebar, sticky profile column, portfolio, blog, bookmarks, photos, about and contact pages.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rabie
*/

/* =========================================================
   Tokens
   ========================================================= */
:root {
	--bg: #040720;
	--panel: #060a2d;
	--field: #080d33;
	--white: #fff;
	--muted: #a8b2c2;
	--dim: rgba(255, 255, 255, .5);
	--soft: rgba(255, 255, 255, .05);
	--line: rgba(255, 255, 255, .07);
	--blue: #2e7eff;
	--blue-hover: #5b9bff;
	--side: 350px;
	--radius: 8px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--white);
	font-family: var(--font);
	font-optical-sizing: auto;
	font-size: 15px;
	line-height: 1.6;
	letter-spacing: -0.1px;
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.3; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 1000; top: 10px; left: 10px; background: #fff; color: #000; padding: 10px 16px; border-radius: 6px; }

.icon { flex: none; display: block; }
.blue { color: var(--blue); }
.muted { color: var(--muted); }

/* thin dark scrollbars for the inner scrolling columns */
.scroll-col { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent; }
.scroll-col::-webkit-scrollbar { width: 6px; }
.scroll-col::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 6px; }

/* =========================================================
   Sidebar
   ========================================================= */
.sidebar {
	position: fixed; inset: 0 auto 0 0; z-index: 30;
	width: var(--side);
	padding: 60px;
	display: flex; flex-direction: column; justify-content: space-between;
	background: var(--bg);
	overflow: hidden;
}
/* blue glow along the right edge + bottom, like the original */
.sidebar::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(60% 45% at 80% 100%, rgba(32, 84, 255, .45), transparent 70%),
		radial-gradient(35% 70% at 100% 55%, rgba(32, 84, 255, .28), transparent 75%),
		linear-gradient(90deg, transparent 55%, rgba(28, 70, 230, .12));
}
/* small stars */
.sidebar::after {
	content: ""; position: absolute; top: 0; left: 0; width: 1px; height: 1px; border-radius: 50%;
	pointer-events: none; opacity: .55;
	box-shadow:
		40px 130px #8fb0ff, 190px 70px #5f7fd6, 300px 160px #8fb0ff, 250px 240px #5f7fd6,
		90px 460px #5f7fd6, 320px 420px #8fb0ff, 210px 520px #8fb0ff, 30px 640px #5f7fd6,
		280px 610px #5f7fd6, 150px 700px #8fb0ff, 330px 760px #8fb0ff, 230px 820px #5f7fd6,
		70px 880px #8fb0ff, 300px 930px #5f7fd6, 120px 330px #5f7fd6, 260px 380px #8fb0ff,
		20px 260px #8fb0ff, 340px 300px #5f7fd6, 180px 600px #5f7fd6, 310px 690px #8fb0ff;
}
.sidebar > * { position: relative; z-index: 1; }

.brand { display: flex; align-items: center; gap: 15px; }
.brand__avatar {
	width: 48px; height: 48px; flex: none; border-radius: 50%; overflow: hidden;
	box-shadow: 0 0 0 2px #fff; background: var(--panel);
	display: grid; place-items: center; font-weight: 600; font-size: 15px;
}
.brand__avatar img { width: 100%; height: 100%; object-fit: cover; }
.brand__name { display: block; font-size: 15px; font-weight: 500; line-height: 24px; }
.brand__role { display: block; font-size: 12px; line-height: 19px; color: var(--dim); min-height: 19px; transition: opacity .3s; }
.brand__role.is-fading { opacity: 0; }

.side-nav ul { display: grid; gap: 2px; }
.side-nav a {
	display: flex; align-items: center; gap: 16px;
	width: 230px; height: 40px; padding: 8px 15px; border-radius: 6px;
	color: var(--dim); font-size: 15px; line-height: 24px;
	box-shadow: inset 0 0 0 1px transparent;
	transition: color .2s, background-color .2s, box-shadow .2s;
}
.side-nav a:hover { color: #fff; }
.side-nav .current-menu-item > a,
.side-nav .current_page_item > a,
.side-nav .current-menu-ancestor > a,
.side-nav .current_page_parent > a,
.side-nav a[aria-current="page"] {
	color: #fff; background: var(--soft); box-shadow: inset 0 0 0 1px var(--soft);
}

.side-foot { display: flex; align-items: center; gap: 15px; font-size: 13px; line-height: 20.8px; color: rgba(255,255,255,.7); }
.side-foot__logo {
	width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center;
	box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 14px; letter-spacing: -0.04em; color: #fff; overflow: hidden;
}
.side-foot__logo img { width: 80%; height: auto; }
.side-foot strong { color: #fff; font-weight: 400; }

.menu-toggle, .menu-close { display: none; }

/* =========================================================
   Main area + column layouts
   ========================================================= */
.site-main { margin-left: var(--side); min-height: 100vh; }

.split { display: flex; align-items: flex-start; min-height: 100vh; }
.col-sticky {
	position: sticky; top: 0; height: 100vh; flex: none;
	border-right: 1px solid var(--line);
	display: flex; flex-direction: column;
}
.col-sticky__inner { flex: 1; overflow-y: auto; }
.col-main { flex: 1; min-width: 0; }

/* social icon bar at the bottom of a sticky column */
.social-bar { display: flex; flex: none; height: 56px; border-top: 1px solid var(--line); background: var(--soft); }
.social-bar li { flex: 1; }
.social-bar li + li { border-left: 1px solid var(--line); }
.social-bar a { display: grid; place-items: center; height: 100%; color: var(--blue); transition: color .2s, background-color .2s; }
.social-bar a:hover { color: #fff; background: var(--soft); }

/* =========================================================
   Home
   ========================================================= */
.profile-col { width: 350px; }
.profile-col .col-sticky__inner { padding: 50px 0 30px 50px; overflow-x: hidden; }
.portrait { width: 300px; max-width: 100%; aspect-ratio: 304 / 418; border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.hello { margin: 15px 0 0; font-size: 13px; font-weight: 500; line-height: 20.8px; color: var(--muted); }
.hero-title { font-size: 24px; line-height: 31.2px; letter-spacing: -0.6px; min-height: 31px; }
.typewriter { color: var(--blue); }
.typewriter::after {
	content: ""; display: inline-block; width: 2px; height: .95em; margin-left: 2px;
	background: var(--blue); vertical-align: -0.1em; animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.intro { margin-top: 16px; font-size: 15px; line-height: 24px; color: var(--muted); max-width: 230px; }

.home-section { padding: 50px 100px 50px 60px; border-bottom: 1px solid var(--line); }
.home-section:last-child { border-bottom: 0; }
.section-title { font-size: 24px; line-height: 31.2px; letter-spacing: -0.6px; }
.section-intro { margin: 6px 0 52px; color: var(--muted); font-size: 15px; line-height: 24px; max-width: 580px; }

/* =========================================================
   Cards
   ========================================================= */
.grid { display: grid; gap: 30px 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 40px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }

.card { display: block; }
.card__media {
	position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
	background: linear-gradient(140deg, #12205e, #0a1040 60%, #070b2e);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__media img { transform: scale(1.05); }
.card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; text-align: center; overflow-wrap: anywhere; color: rgba(255,255,255,.35); font-weight: 700; font-size: 15px; letter-spacing: -0.02em; line-height: 1.3; }
.card__arrow { position: absolute; top: 8px; right: 8px; color: #fff; opacity: .9; transition: transform .3s; }
.card:hover .card__arrow { transform: translate(2px, -2px); }
.card__title { display: block; margin-top: 14px; color: var(--blue); font-size: 15px; font-weight: 500; line-height: 24px; transition: color .2s; }
.card:hover .card__title { color: var(--blue-hover); }
.card__meta { display: block; color: var(--muted); font-size: 13px; line-height: 20.8px; }
.card[hidden] { display: none; }

.badge {
	display: inline-block; padding: 1px 6px; border-radius: 3px;
	background: var(--panel); color: #fff; font-size: 13px; font-weight: 500; line-height: 20.8px; white-space: nowrap;
}
.badge--on-image { position: absolute; top: 10px; left: 10px; }

/* =========================================================
   Bookmarks
   ========================================================= */
.bookmark-list li + li { margin-top: 0; }
.bookmark { display: flex; align-items: flex-start; gap: 20px; padding: 15px 0; }
.bookmark__icon {
	width: 30px; height: 30px; flex: none; display: grid; place-items: center; margin-top: 2px;
	border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); color: var(--blue);
}
.bookmark__text { flex: 1; min-width: 0; }
.bookmark__title { display: block; font-size: 15px; font-weight: 500; line-height: 24px; transition: color .2s; }
.bookmark:hover .bookmark__title { color: var(--blue); }
.bookmark__desc { display: block; font-size: 13px; line-height: 20.8px; color: var(--muted); }
.bookmark .badge { margin-top: 2px; }

/* =========================================================
   Inner pages
   ========================================================= */
.page-pad { padding: 50px 60px 80px; }
.page-title { font-size: 28px; line-height: 36.4px; }
.page-intro { margin: 4px 0 30px; color: var(--muted); font-size: 15px; line-height: 24px; }

/* project + generic article column */
.narrow { max-width: 750px; margin: 0 auto; padding: 60px 30px 100px; }
.meta-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 34px 0 36px; font-size: 13px; line-height: 20.8px; color: var(--muted); }
.meta-row__left { display: flex; align-items: center; gap: 15px; }
.meta-row__thumb { width: 53px; height: 40px; border-radius: 4px; overflow: hidden; flex: none; background: var(--panel); }
.meta-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.meta-row__right { text-align: right; }
.meta-row a { color: var(--blue); font-weight: 500; }
.meta-row a:hover { color: var(--blue-hover); }
.hero-image { border-radius: var(--radius); overflow: hidden; margin-bottom: 34px; }
.hero-image img { width: 100%; }

/* long-form text (projects, about, posts) */
.prose { font-size: 21px; line-height: 33.6px; letter-spacing: -0.2px; color: #fff; }
.prose > * + * { margin-top: 20px; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3 { font-size: 21px; line-height: 33.6px; font-weight: 600; letter-spacing: -0.3px; margin-top: 32px; }
.prose a { color: var(--blue); }
.prose a:hover { color: var(--blue-hover); }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.2em; list-style: revert; }
.prose li + li { margin-top: 6px; }
.prose blockquote { margin: 28px 0; padding-left: 20px; border-left: 2px solid var(--blue); color: var(--muted); }
.prose figure { margin: 30px 0; }
.prose img { border-radius: var(--radius); }
.prose figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.prose .wp-block-gallery { gap: 12px; }
.prose .wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius); }
.prose code { font-size: .85em; background: var(--soft); padding: 2px 6px; border-radius: 4px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose--md { font-size: 19px; line-height: 31px; }
.prose--md h2, .prose--md h3 { font-size: 19px; line-height: 31px; }

.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 40px; font-size: 13px; color: var(--muted); }
.tags .badge { background: var(--soft); }
.related { margin-top: 70px; }
.related h2 { font-size: 21px; margin-bottom: 24px; }

/* Blog: post on the left, list on the right */
.post-col { width: 490px; }
.post-col .col-sticky__inner { padding: 50px 60px 60px; }
.post-cover { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: linear-gradient(140deg, #12205e, #070b2e); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover__credit { margin: 8px 0 0; font-size: 12px; line-height: 18px; color: var(--muted); }
.post-cover__credit a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.post-cover__credit a:hover { color: #fff; }
.prose figure img { width: 100%; height: auto; }
.prose figcaption { line-height: 20px; }
.prose figcaption a { color: var(--muted); text-decoration: underline; }
.post-title { margin-top: 22px; font-size: 26px; line-height: 33px; letter-spacing: -0.7px; }
.post-title a { color: var(--blue); }
.post-title a:hover { color: var(--blue-hover); }
.post-lede { margin: 10px 0 0; font-size: 19px; line-height: 31px; color: var(--muted); }
.author { display: flex; align-items: center; gap: 12px; margin: 22px 0 28px; }
.author__img { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--panel); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.author__img img { width: 100%; height: 100%; object-fit: cover; }
.author__name { display: block; font-size: 13px; font-weight: 600; line-height: 18px; }
.author__role { display: block; font-size: 12px; line-height: 18px; color: var(--muted); }
.post-date { font-size: 13px; color: var(--muted); }

.list-col { padding: 50px 60px; }
.post-row { display: grid; grid-template-columns: 175px 1fr; gap: 24px; align-items: center; }
.post-row + .post-row { margin-top: 28px; }
.post-row__thumb { position: relative; aspect-ratio: 175 / 100; border-radius: 6px; overflow: hidden; background: linear-gradient(140deg, #12205e, #070b2e); }
.post-row__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-row:hover .post-row__thumb img { transform: scale(1.05); }
.post-row__thumb .badge { position: absolute; top: 6px; left: 6px; font-size: 12px; line-height: 18px; }
.post-row__date { display: block; font-size: 13px; line-height: 20.8px; color: var(--muted); }
.post-row__title { display: block; margin-top: 4px; font-size: 15px; font-weight: 500; line-height: 24px; color: var(--blue); }
.post-row:hover .post-row__title { color: var(--blue-hover); }
.post-row.is-current .post-row__title { color: #fff; }
/* when the list column is narrow (smaller laptops), shrink then stack the thumbnails */
.list-col { container-type: inline-size; }
@container (max-width: 460px) {
	.post-row { grid-template-columns: 120px 1fr; gap: 16px; }
}
@container (max-width: 300px) {
	.post-row { grid-template-columns: 1fr; gap: 10px; }
}

/* About */
.about-col { width: 450px; }
.about-col .col-sticky__inner { padding: 50px 50px 30px; }
.about-portrait { aspect-ratio: 350 / 620; border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-label { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.about-name { font-size: 28px; line-height: 36.4px; }
.about-intro { margin-top: 6px; font-size: 13px; line-height: 20.8px; color: var(--muted); text-align: justify; }
.about-text { padding: 50px 60px 90px; max-width: 760px; }

/* Contact */
.contact-col { width: 500px; }
.contact-col .col-sticky__inner { padding: 60px; }
.contact-form { display: grid; gap: 20px; margin-top: 50px; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; line-height: 20px; }
.field input, .field textarea {
	width: 100%; font: inherit; font-size: 13px; color: #fff;
	background: var(--field); border: 0; box-shadow: inset 0 0 0 1px var(--soft);
	border-radius: 6px; padding: 10px 12px; height: 40px;
}
.field textarea { height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.45); }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--blue); }
.btn-submit {
	width: 100%; height: 40px; border: 0; border-radius: 6px; cursor: pointer;
	background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; transition: background-color .2s;
}
.btn-submit:hover { background: var(--blue-hover); }
.hp-field { position: absolute; left: -9999px; }
.notice { padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-top: 24px; }
.notice--ok { background: rgba(46, 200, 120, .12); box-shadow: inset 0 0 0 1px rgba(46, 200, 120, .4); }
.notice--err { background: rgba(255, 90, 90, .12); box-shadow: inset 0 0 0 1px rgba(255, 90, 90, .4); }
.contact-alt { margin-top: 60px; font-size: 13px; color: var(--muted); }
.contact-alt a { color: var(--blue); }
.contact-media { flex: 1; position: sticky; top: 0; height: 100vh; overflow: hidden; background: linear-gradient(160deg, #0d1a5c, #040720); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-btn {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
	display: grid; place-items: center; color: #fff; background: rgba(4, 7, 32, .45); backdrop-filter: blur(6px);
}
.slider-btn:hover { background: rgba(4, 7, 32, .7); }
.slider-btn--prev { left: 20px; }
.slider-btn--next { right: 20px; }

/* Photos */
.photo-wall { columns: 4; column-gap: 0; }
.photo-wall img { width: 100%; break-inside: avoid; display: block; }
.photo-wall a { display: block; overflow: hidden; }
.photo-wall a img { transition: transform .6s; }
.photo-wall a:hover img { transform: scale(1.03); }

/* Pagination + misc */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 6px 12px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: 13px; }
.pagination .current, .pagination a:hover { color: #fff; background: var(--soft); }
.btn-link { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; }
.btn-link:hover { background: var(--blue-hover); }
.empty-note { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   Tablet: narrower sidebar
   ========================================================= */
@media (max-width: 1279px) and (min-width: 1100px) {
	:root { --side: 290px; }
	.sidebar { padding: 50px 40px; }
	.side-nav a { width: 210px; }
	.profile-col { width: 310px; }
	.home-section { padding: 50px 50px 50px 50px; }
	.grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.post-col { width: 430px; }
	.post-col .col-sticky__inner { padding: 50px 44px 60px; }
	.list-col { padding: 50px 36px; }
	.about-col { width: 400px; }
	.contact-col { width: 440px; }
	.photo-wall { columns: 3; }
}

/* =========================================================
   Mobile & small tablets: top bar + stacked columns
   ========================================================= */
@media (max-width: 1099px) {
	.sidebar {
		position: relative; inset: auto; width: 100%; padding: 28px 24px;
		flex-direction: row; align-items: center; justify-content: space-between;
		border-bottom: 1px solid var(--line);
	}
	.sidebar::before {
		background:
			radial-gradient(50% 120% at 55% 120%, rgba(32, 84, 255, .45), transparent 70%),
			radial-gradient(25% 80% at 90% 40%, rgba(60, 120, 255, .2), transparent 70%);
	}
	.brand__avatar { width: 64px; height: 64px; box-shadow: 0 0 0 3px #fff; }
	.brand__name { font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -0.4px; }
	.brand__role { font-size: 15px; }
	.side-foot { display: none; }

	.menu-toggle {
		display: inline-flex; flex-direction: column; gap: 7px; padding: 10px;
		background: none; border: 0; cursor: pointer; color: #fff;
	}
	.menu-toggle span { display: block; width: 32px; height: 2px; background: currentColor; border-radius: 2px; }
	.side-nav {
		position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
		background: rgba(4, 7, 32, .97); backdrop-filter: blur(8px);
		opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
	}
	.menu-open .side-nav { opacity: 1; visibility: visible; }
	.menu-open { overflow: hidden; }
	.side-nav a { width: 240px; height: 48px; font-size: 18px; }
	.menu-close {
		display: block; position: absolute; top: 22px; right: 22px; background: none; border: 0;
		color: #fff; font-size: 34px; line-height: 1; padding: 6px 12px; cursor: pointer;
	}

	.site-main { margin-left: 0; }
	.split { display: block; min-height: 0; }
	.col-sticky { position: static; height: auto; width: auto !important; border-right: 0; border-bottom: 1px solid var(--line); }
	.col-sticky__inner { overflow: visible; }
	.profile-col .col-sticky__inner { padding: 40px 24px 30px; }
	.profile-col .portrait { display: none; }
	.hello { margin-top: 0; font-size: 18px; }
	.hero-title { font-size: 34px; line-height: 1.2; min-height: 41px; }
	.intro { max-width: 600px; font-size: 17px; line-height: 1.6; }
	.social-bar { max-width: none; }
	.home-section { padding: 40px 24px; }
	.grid, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
	.page-pad { padding: 40px 24px 60px; }
	.narrow { padding: 40px 24px 70px; }
	.prose { font-size: 18px; line-height: 1.7; }
	.prose h2, .prose h3 { font-size: 19px; }
	.post-col .col-sticky__inner, .about-col .col-sticky__inner, .contact-col .col-sticky__inner { padding: 40px 24px; }
	.list-col, .about-text { padding: 40px 24px; }
	.about-portrait { max-width: 360px; }
	.contact-media { position: relative; height: 60vh; }
	.photo-wall { columns: 2; }
}

@media (max-width: 560px) {
	.brand__avatar { width: 52px; height: 52px; }
	.brand__name { font-size: 18px; }
	.brand__role { font-size: 13px; }
	.grid, .grid--4, .grid--2 { grid-template-columns: 1fr; }
	.post-row { grid-template-columns: 120px 1fr; gap: 16px; }
	.meta-row { flex-direction: column; align-items: flex-start; }
	.meta-row__right { text-align: left; }
	.bookmark { gap: 14px; flex-wrap: wrap; }
	.bookmark .badge { margin-left: 44px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.reveal { opacity: 1; transform: none; }
}
