/*
Theme Name: Fig Folio
Theme URI: https://sahar-kheirandish.eu
Author: Built with Claude for Sahar Kheirandish
Description: A calm, professional portfolio and essay theme in the colours of a fig: leaf green and cream, with honey and fig-flesh accents and a little fig-skin purple. Light and dark modes, a reading list, no comments.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: fig-folio
*/

/* ----- Fonts (self-hosted, no external requests) ----- */
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("assets/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("assets/fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("assets/fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

/* ----- Tokens: the colours of a fig ----- */
:root {
	--bg: #f6f1e6;          /* inner skin, cream */
	--surface: #fbf8f0;
	--surface-2: #eee6d3;
	--ink: #1f2a22;
	--muted: #5d695f;
	--leaf: #38563a;        /* fig leaf, the main colour */
	--leaf-deep: #243b29;
	--sage: #7d9a69;
	--honey: #c8963a;       /* seeds and honey */
	--honey-ink: #876014;
	--flesh: #b4505f;       /* ripe fig flesh */
	--plum: #5b3a5e;        /* fig skin: used sparingly */
	--plum-soft: #e8dde8;
	--wine: #8c2f47;
	--pink: #e8a3b0;
	--pink-soft: #f6dfe3;
	--honey-soft: #f4e6c8;
	--on-leaf: #f6f1e6;
	--line: rgba(31, 42, 34, .14);
	--shadow: 0 1px 2px rgba(31, 42, 34, .05), 0 12px 32px -12px rgba(31, 42, 34, .18);
	--radius: 18px;
	--serif: "Fraunces", "Iowan Old Style", Georgia, serif;
	--read: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color-scheme: light;
}
:root[data-theme="dark"] {
	--bg: #111a14;
	--surface: #18231b;
	--surface-2: #1f2d23;
	--ink: #f0eadb;
	--muted: #a7b3a3;
	--leaf: #8fb37c;
	--leaf-deep: #0d1510;
	--sage: #8fb37c;
	--honey: #e0b24f;
	--honey-ink: #e0b24f;
	--flesh: #e08a99;
	--wine: #e89aa8;
	--pink: #c9707f;
	--pink-soft: #3a2229;
	--honey-soft: #33291a;
	--plum: #cfa9d3;
	--plum-soft: #2f2334;
	--on-leaf: #101a13;
	--line: rgba(240, 234, 219, .14);
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .55);
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #111a14;
		--surface: #18231b;
		--surface-2: #1f2d23;
		--ink: #f0eadb;
		--muted: #a7b3a3;
		--leaf: #8fb37c;
		--leaf-deep: #0d1510;
		--sage: #8fb37c;
		--honey: #e0b24f;
		--honey-ink: #e0b24f;
		--flesh: #e08a99;
		--wine: #e89aa8;
		--pink: #c9707f;
		--pink-soft: #3a2229;
		--honey-soft: #33291a;
		--plum: #cfa9d3;
		--plum-soft: #2f2334;
		--on-leaf: #101a13;
		--line: rgba(240, 234, 219, .14);
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .55);
		color-scheme: dark;
	}
}

/* ----- Base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.05rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--leaf); text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: color-mix(in srgb, var(--leaf) 45%, transparent); transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--wine); text-decoration-color: currentColor; }
::selection { background: color-mix(in srgb, var(--pink) 55%, transparent); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.012em; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--leaf); color: var(--on-leaf); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { width: min(1120px, 100% - 3rem); margin-inline: auto; }
.wrap-narrow { width: min(680px, 100% - 3rem); margin-inline: auto; }
.wrap-read { width: min(680px, 100% - 3rem); margin-inline: auto; }

/* ----- Header ----- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 2rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; color: var(--leaf); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; letter-spacing: -.01em; }
.main-nav { margin-left: auto; }
.nav-list { display: flex; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: .45rem .8rem; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-list a:hover { color: var(--ink); background: var(--surface-2); }
.nav-list a[aria-current="page"], .nav-list .current-menu-item > a { color: var(--leaf); background: color-mix(in srgb, var(--leaf) 12%, transparent); }
.header-tools { display: flex; gap: .3rem; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 50%; cursor: pointer; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .i-sun { display: block; }
	:root:not([data-theme="light"]) .i-moon { display: none; }
}
.nav-toggle { display: none; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--sage), var(--honey), var(--flesh), var(--plum)); transform-origin: left; transform: scaleX(0); }

/* ----- Buttons and chips ----- */
.btn {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .8rem 1.45rem; border-radius: 999px; border: 1px solid var(--leaf);
	background: var(--leaf); color: var(--on-leaf);
	font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer;
	transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--leaf-deep); border-color: var(--leaf-deep); color: var(--on-leaf); }
:root[data-theme="dark"] .btn:hover { background: var(--sage); border-color: var(--sage); }
.btn--ghost { background: transparent; color: var(--leaf); }
.btn--ghost:hover { background: color-mix(in srgb, var(--leaf) 12%, transparent); color: var(--leaf); border-color: var(--leaf); }
.btn--honey { background: var(--honey); border-color: var(--honey); color: #2a2008; }
.btn--honey:hover { background: #dba94a; border-color: #dba94a; color: #2a2008; }
.chip { display: inline-block; padding: .2rem .7rem; border-radius: 999px; background: var(--plum-soft); color: var(--plum); font-size: .78rem; font-weight: 600; letter-spacing: .03em; text-decoration: none; }
.card:nth-child(3n+2) .chip, .row:nth-child(3n+2) .chip { background: var(--pink-soft); color: var(--wine); }
.card:nth-child(3n) .chip, .row:nth-child(3n) .chip { background: var(--honey-soft); color: var(--honey-ink); }
.chip:hover { color: var(--plum); filter: brightness(.96); }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--wine); }
.eyebrow::before { content: ""; width: 18px; height: 18px; background: var(--flesh); -webkit-mask: url("assets/img/leaf-mark.svg") center / contain no-repeat; mask: url("assets/img/leaf-mark.svg") center / contain no-repeat; }
.more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .95rem; text-decoration: none; }
.more .arrow { transition: transform .25s; }
a:hover > .more .arrow, .more:hover .arrow, .card:hover .more .arrow { transform: translateX(4px); }

/* ----- Hero ----- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero::before { content: ""; position: absolute; inset: 0 0 12% 0; -webkit-mask: linear-gradient(#000 70%, transparent); mask: linear-gradient(#000 70%, transparent); pointer-events: none; background: radial-gradient(520px 380px at 88% 22%, color-mix(in srgb, var(--pink) 34%, transparent), transparent 70%), radial-gradient(420px 300px at 0% 70%, color-mix(in srgb, var(--plum) 12%, transparent), transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero-title { font-size: clamp(2.7rem, 6.4vw, 4.8rem); line-height: 1.02; letter-spacing: -.025em; margin-bottom: .45em; }
.hero-lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: color-mix(in srgb, var(--ink) 82%, transparent); max-width: 34rem; margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.portrait { position: relative; margin: 0; justify-self: center; width: min(360px, 100%); }
.portrait::before {
	content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1.5px solid var(--flesh);
	border-radius: 999px 999px 26px 26px; opacity: .75;
}
.portrait img {
	position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
	border-radius: 999px 999px 26px 26px; box-shadow: var(--shadow); background: var(--surface-2);
}

/* ----- Interests ----- */
.interests { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); padding: 1rem 0 clamp(2.5rem, 6vw, 4rem); }
.interest { padding-top: 1.1rem; border-top: 1px solid var(--line); position: relative; }
.interest::before { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 2px; background: var(--honey); }
.interest:nth-child(2)::before { background: var(--flesh); }
.interest:nth-child(3)::before { background: var(--plum); }
.interest h2 { font-size: 1.35rem; margin-bottom: .35rem; }
.interest p { color: var(--muted); margin: 0; font-size: 1rem; }

/* ----- Blocks ----- */
.block { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.block--tight { padding-top: 1rem; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.block-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }

/* ----- Cards ----- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--flesh) 45%, var(--line)); }
.card-cover { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); position: relative; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card-cover img { transform: scale(1.04); }
.cover-leaf { position: absolute; inset: 0; background: linear-gradient(145deg, color-mix(in srgb, var(--leaf) 16%, var(--surface-2)), var(--surface-2)); }
.cover-leaf::after { content: ""; position: absolute; right: 8%; bottom: -18%; width: 62%; aspect-ratio: 1; background: var(--leaf); opacity: .22; -webkit-mask: url("assets/img/leaf-mark.svg") center / contain no-repeat; mask: url("assets/img/leaf-mark.svg") center / contain no-repeat; transform: rotate(-12deg); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.4rem 1.2rem; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .7rem; font-size: .82rem; color: var(--muted); }
.card-title { font-size: 1.4rem; margin-bottom: .5rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--leaf); }
.card-excerpt { color: var(--muted); font-size: .98rem; margin-bottom: 1.1rem; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--muted); }
.card-foot .more { color: var(--leaf); }

/* ----- Reading list rows ----- */
.rows { border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 5rem 1fr auto; gap: 1.2rem; align-items: start; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.row-year { font-family: var(--serif); color: var(--muted); font-size: 1.05rem; padding-top: .15rem; }
.row-title { font-size: 1.3rem; margin-bottom: .2rem; }
.row-title a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--flesh), var(--flesh)) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.row-title a:hover { background-size: 100% 1px; color: var(--ink); }
.row-src { margin: 0 0 .35rem; color: var(--flesh); font-size: .9rem; font-weight: 500; }
.row-note { margin: 0; color: var(--muted); font-size: .98rem; max-width: 46rem; }
.row-go { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--leaf); border: 1px solid var(--line); text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.row-go:hover { background: var(--leaf); color: var(--on-leaf); transform: translate(2px, -2px); }

/* ----- Contact band ----- */
.band { position: relative; overflow: hidden; background: linear-gradient(115deg, var(--leaf-deep) 35%, #3b2542); color: #f6f1e6; margin-top: clamp(1.5rem, 4vw, 3rem); }
.band-leaf { position: absolute; right: 4%; top: 50%; width: 360px; aspect-ratio: 1; background: var(--pink); opacity: .16; transform: translateY(-50%) rotate(-10deg); pointer-events: none; -webkit-mask: url("assets/img/leaf-mark.svg") center / contain no-repeat; mask: url("assets/img/leaf-mark.svg") center / contain no-repeat; }
.band-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.band h2 { color: #f6f1e6; font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: .3rem; }
.band p { margin: 0; color: rgba(246, 241, 230, .78); max-width: 32rem; }
.band-cta { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.band-link { color: #f6f1e6; font-weight: 500; text-decoration-color: rgba(246, 241, 230, .4); }
.band-link:hover { color: var(--honey); }

/* ----- Page heads ----- */
.page-head { padding: clamp(2.5rem, 7vw, 5rem) 0 1.2rem; }
.page-title { font-size: clamp(2.3rem, 5.4vw, 3.8rem); letter-spacing: -.02em; margin-bottom: .4em; }
.page-intro { max-width: 40rem; color: var(--muted); font-size: 1.15rem; }
.page-intro > :last-child { margin-bottom: 0; }

/* ----- About and contact ----- */
.about-grid { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-grid--solo { grid-template-columns: 1fr; max-width: 720px; }
.about-photo { margin: 0; position: sticky; top: 96px; }
.about-photo img { width: 100%; border-radius: 999px 999px 22px 22px; box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface-2); }
.about-photo::before { content: ""; position: absolute; inset: 12px -12px -12px 12px; border: 1.5px solid var(--flesh); border-radius: 999px 999px 26px 26px; opacity: .7; pointer-events: none; }
.contact-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(2rem, 6vw, 4rem); align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.contact-card h2 { font-size: 1.25rem; }
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.contact-card .contact-list { margin-top: 1rem; }
.contact-list li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); font-size: .98rem; }
.contact-list span { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; padding-top: .12rem; }
.contact-list a { word-break: break-word; }

/* ----- Essay ----- */
.essay-head { padding-top: clamp(2rem, 6vw, 4rem); }
.back-link { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.6rem; color: var(--muted); font-size: .9rem; font-weight: 500; text-decoration: none; }
.back-link:hover { color: var(--leaf); }
.arrow--back { transform: rotate(180deg); }
.essay-head .chip { display: table; margin-bottom: 1rem; }
.essay-title { font-size: clamp(2.1rem, 4.8vw, 3.4rem); letter-spacing: -.02em; }
.essay-meta { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--muted); font-size: .92rem; margin: 0 0 1.2rem; }
.essay-cover { margin-top: 1.8rem; margin-bottom: 0; }
.essay-cover img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.cover { margin-top: 1rem; margin-bottom: 0; }
.cover img { border-radius: var(--radius); }

.entry { font-family: var(--read); font-size: 1.22rem; line-height: 1.78; }
.entry--page { font-family: var(--sans); font-size: 1.08rem; line-height: 1.75; }
.essay-content { padding: clamp(1.8rem, 4vw, 2.6rem) 0 1rem; }
.entry > * { margin-block: 0 1.3em; }
.entry h2 { font-size: 1.75rem; margin-top: 2em; }
.entry h3 { font-size: 1.35rem; margin-top: 1.7em; }
.entry-page h2, .entry--page h2 { margin-top: 1.8em; }
.entry--page > h2:first-child { margin-top: 0; }
.entry a { text-decoration-color: var(--honey); text-decoration-thickness: 1.5px; }
.entry blockquote { margin-inline: 0; padding: .2em 0 .2em 1.4rem; border-left: 3px solid var(--flesh); font-style: italic; color: color-mix(in srgb, var(--ink) 88%, transparent); }
.entry blockquote p { margin-bottom: .6em; }
.entry ul, .entry ol { padding-left: 1.4rem; }
.entry li { margin-bottom: .5em; }
.entry li::marker { color: var(--flesh); }
.entry img { border-radius: 12px; }
.entry figure { margin-inline: 0; }
.entry figcaption { margin-top: .6rem; font: .9rem var(--sans); color: var(--muted); text-align: center; }
.entry hr { border: 0; height: 1px; background: var(--line); margin-block: 2.4em; }
.entry pre, .entry code { font-size: .92em; background: var(--surface-2); border-radius: 6px; }
.entry code { padding: .1em .35em; }
.entry pre { padding: 1rem 1.2rem; overflow-x: auto; }
.entry sup a { text-decoration: none; }
.entry table { width: 100%; border-collapse: collapse; font: .95rem var(--sans); }
.entry th, .entry td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); }
/* Lists on the Research / CV page read as clean entries */
.entry--page ul { list-style: none; padding: 0; }
.entry--page ul li { padding: .9rem 0; border-top: 1px solid var(--line); margin: 0; }
.entry--page ul li:last-child { border-bottom: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; padding-bottom: 1.5rem; }
.tags a { padding: .2rem .7rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--muted); text-decoration: none; }
.tags a:hover { color: var(--leaf); border-color: var(--leaf); }

.adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.5rem 0 clamp(2.5rem, 6vw, 4rem); }
.adj { display: flex; flex-direction: column; gap: .2rem; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; transition: border-color .2s, transform .2s; }
.adj:hover { border-color: var(--leaf); transform: translateY(-2px); }
.adj span { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.adj strong { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; color: var(--ink); }
.adj--next { grid-column: 2; text-align: right; }

/* ----- Pagination, search, empty, 404 ----- */
.pagination ul { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 2.5rem 0 0; margin: 0; justify-content: center; }
.pagination a, .pagination span { display: inline-block; min-width: 40px; text-align: center; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .92rem; }
.pagination a:hover { color: var(--leaf); border-color: var(--leaf); }
.pagination .current { background: var(--leaf); border-color: var(--leaf); color: var(--on-leaf); }
.search-form { display: flex; gap: .6rem; max-width: 30rem; margin-top: 1.2rem; }
.search-form input { flex: 1; padding: .8rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.empty { padding: 3rem 0; color: var(--muted); }
.notfound { text-align: center; padding-bottom: 5rem; }
.nf-mark { width: 84px; height: 84px; margin: 0 auto 1.5rem; color: var(--leaf); }
.notfound .page-intro { margin-inline: auto; }

/* ----- Footer ----- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--leaf), var(--sage), var(--honey), var(--flesh), var(--plum)); opacity: .85; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 2rem 0; font-size: .92rem; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: .7rem; }
.footer-mark { width: 24px; height: 24px; color: var(--leaf); }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--leaf); }
.band + .site-footer { border-top: 0; }

/* ----- Reveal ----- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
}

/* ----- Responsive ----- */
@media (max-width: 960px) {
	.grid { grid-template-columns: repeat(2, 1fr); }
	.hero-grid { grid-template-columns: 1fr; }
	.portrait { width: min(280px, 72%); justify-self: start; margin: .5rem 0 0 .5rem; }
	.about-grid, .contact-grid { grid-template-columns: 1fr; }
	.about-photo { position: static; width: min(300px, 80%); }
}
@media (max-width: 760px) {
	.nav-toggle { display: grid; }
	.main-nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; padding: .6rem 1.5rem 1.2rem; }
	.main-nav.is-open { display: block; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list a { padding: .8rem .2rem; border-radius: 0; border-bottom: 1px solid var(--line); background: none !important; }
	.header-tools { margin-left: auto; }
	.header-inner { gap: 1rem; }
	.grid, .interests { grid-template-columns: 1fr; }
	.row { grid-template-columns: 3.4rem 1fr; }
	.row-go { display: none; }
	.band-inner { flex-direction: column; align-items: flex-start; }
	.adjacent { grid-template-columns: 1fr; }
	.adj--next { grid-column: auto; text-align: left; }
	.contact-list li { grid-template-columns: 6rem 1fr; }
}
@media print {
	.site-header, .site-footer, .band, .progress { display: none; }
	body { background: #fff; color: #000; }
}
