/*
Theme Name: Delphine Albers
Theme URI: https://delphine.test/
Author: Laurent Meszaros
Description: Portfolio Albers réécrit, accueil et catégories restitués d’après les archives de mai 2026.
Version: 1.1.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: delphine-albers
*/

:root {
	--albers-ink: #111111;
	--albers-muted: #707070;
	--albers-paper: #ffffff;
	--albers-soft: #eeeeec;
	--albers-line: #d8d8d4;
	--albers-accent: #0b7474;
	--albers-sidebar: 18rem;
	--albers-gap: clamp(1.5rem, 4vw, 4rem);
	--albers-width: 90rem;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--albers-paper);
	color: var(--albers-ink);
	font-family: Helvetica, Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.5;
	text-rendering: optimizeLegibility;
}

body.single-post,
body.archive,
body.search {
	background: var(--albers-soft);
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
	color: var(--albers-accent);
}

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

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

.screen-reader-text:focus {
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--albers-paper);
}

.site-frame {
	width: min(100% - 2rem, var(--albers-width));
	margin-inline: auto;
}

.site-grid {
	display: grid;
	grid-template-columns: var(--albers-sidebar) minmax(0, 1fr);
	gap: var(--albers-gap);
}

.site-header {
	padding-block: clamp(1.25rem, 3vw, 2.5rem);
}

.site-branding {
	align-self: start;
}

.site-title {
	display: inline-block;
	font-size: clamp(1.1rem, 2vw, 1.45rem);
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
}

.site-description {
	max-width: 18rem;
	margin: 0.75rem 0 0;
	color: var(--albers-muted);
	font-size: 0.75rem;
}

.primary-navigation {
	align-self: start;
}

.primary-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-navigation a {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-decoration: none;
}

.primary-navigation .current-menu-item > a,
.primary-navigation .current-cat > a,
.primary-navigation .current_page_item > a {
	color: var(--albers-accent);
}

.site-main {
	min-height: 70vh;
	padding-block: 1rem 4rem;
}

.page-heading {
	display: grid;
	grid-template-columns: var(--albers-sidebar) minmax(0, 1fr);
	gap: var(--albers-gap);
	align-items: start;
	margin-bottom: clamp(2rem, 5vw, 4.5rem);
}

.page-heading__eyebrow,
.project-meta {
	margin: 0;
	color: var(--albers-muted);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.page-heading h1 {
	max-width: 48rem;
	margin: 0;
	font-size: clamp(2rem, 5vw, 4.75rem);
	font-weight: 700;
	letter-spacing: -0.045em;
	line-height: 0.96;
}

.project-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(2rem, 5vw, 5rem) clamp(1rem, 2.5vw, 2.5rem);
	margin-left: calc(var(--albers-sidebar) + var(--albers-gap));
}

.project-card {
	min-width: 0;
}

.project-card__link {
	display: block;
	text-decoration: none;
}

.project-card__image {
	position: relative;
	overflow: hidden;
	margin-bottom: 0.9rem;
	background: var(--albers-line);
	aspect-ratio: 4 / 3;
}

.project-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease;
}

.project-card__link:hover .project-card__image img,
.project-card__link:focus-visible .project-card__image img {
	transform: scale(1.018);
}

.project-card__title {
	margin: 0;
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.2;
}

.project-card__category {
	margin: 0.35rem 0 0;
	color: var(--albers-muted);
	font-size: 0.68rem;
}

.project-layout {
	display: grid;
	grid-template-columns: var(--albers-sidebar) minmax(0, 1fr);
	gap: var(--albers-gap);
	align-items: start;
}

.project-panel {
	position: sticky;
	top: 1.5rem;
}

.project-title {
	margin: 0 0 1.25rem;
	font-size: clamp(1.6rem, 3vw, 2.8rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.02;
}

.project-excerpt {
	color: var(--albers-muted);
	font-size: 0.78rem;
	line-height: 1.45;
}

.project-excerpt > :first-child,
.entry-content > :first-child {
	margin-top: 0;
}

.project-taxonomy {
	margin-top: 1.5rem;
	font-size: 0.7rem;
}

.project-taxonomy a {
	font-weight: 700;
	text-decoration: none;
}

.project-navigation {
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	margin-top: 2.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--albers-line);
	font-size: 1.1rem;
}

.project-navigation a {
	text-decoration: none;
}

.entry-content {
	min-width: 0;
	max-width: 66rem;
}

.entry-content > * {
	max-width: 46rem;
}

.entry-content > img,
.entry-content > figure,
.entry-content > .wp-block-image,
.entry-content > .wp-block-gallery,
.entry-content > .alignwide,
.entry-content > .alignfull,
.entry-content > p:has(> img:only-child),
.entry-content > p:has(> a:only-child > img:only-child) {
	max-width: 100%;
}

.entry-content p {
	margin-block: 0 1.25rem;
}

.entry-content img {
	margin-block: 0 1rem;
}

.entry-content figure {
	margin-inline: 0;
}

.entry-content .wp-caption {
	max-width: 100%;
}

.entry-content .wp-caption-text,
.entry-content figcaption {
	margin-top: -0.5rem;
	color: var(--albers-muted);
	font-size: 0.68rem;
}

.page-layout .entry-content {
	grid-column: 2;
}

.empty-state {
	grid-column: 2;
	max-width: 35rem;
}

.pagination {
	margin: 4rem 0 0 calc(var(--albers-sidebar) + var(--albers-gap));
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.pagination a,
.pagination span {
	display: inline-grid;
	min-width: 2rem;
	min-height: 2rem;
	place-items: center;
	border: 1px solid var(--albers-line);
	font-size: 0.75rem;
	text-decoration: none;
}

.pagination .current {
	background: var(--albers-ink);
	color: var(--albers-paper);
}

.site-footer {
	padding-block: 2rem;
	border-top: 1px solid var(--albers-line);
	color: var(--albers-muted);
	font-size: 0.68rem;
}

.site-footer__inner {
	display: flex;
	gap: 1rem;
	justify-content: space-between;
}

.site-footer p {
	margin: 0;
}

@media (max-width: 64rem) {
	:root {
		--albers-sidebar: 13rem;
	}

	.project-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 46rem) {
	.site-frame {
		width: min(100% - 1.5rem, var(--albers-width));
	}

	.site-grid,
	.page-heading,
	.project-layout {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.site-header {
		padding-bottom: 1rem;
	}

	.primary-navigation ul {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.5rem 1rem;
	}

	.primary-navigation li,
	.primary-navigation a {
		min-width: 0;
	}

	.project-grid {
		grid-template-columns: 1fr;
		margin-left: 0;
	}

	.project-panel {
		position: static;
		padding-bottom: 1.5rem;
		border-bottom: 1px solid var(--albers-line);
	}

	.page-layout .entry-content,
	.empty-state {
		grid-column: 1;
	}

	.pagination {
		margin-left: 0;
	}

	.site-footer__inner {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.project-card__image img {
		transition: none;
	}
}



/* Faithful home/category composition, checked against the May 2026 archive. */
.site-frame {
 width: calc(100% - 28px);
 margin-inline: 14px;
}
.site-header {
 height: 149px;
 padding: 20px 0 0;
 font-size: 11px;
 line-height: 15px;
}
.site-header .site-grid {
 grid-template-columns: 300px 300px 300px;
 gap: 20px;
}
.site-title {
 font-size: 14px;
 line-height: 15px;
 letter-spacing: 0;
}
.site-description {
 margin: 0;
 color: #000;
 font-size: 11px;
 line-height: 15px;
}
.primary-navigation ul {
 display: block;
}
.primary-navigation a {
 color: #000;
 font-size: 11px;
 line-height: 16px;
 letter-spacing: 0;
}
.primary-navigation .current-menu-item > a,
.primary-navigation .current-cat > a {
 color: #333;
}
.site-header a:hover,
.site-header a:focus-visible {
 color: #000;
}
.about-navigation a {
 color: #000;
 text-decoration: none;
}
.about-navigation a[aria-current="page"] {
 font-weight: 700;
}
.about-navigation a:hover {
 text-decoration: underline;
}
body.home {
 min-height: 100vh;
 background: #e7e7dd url('../../uploads/2014/01/gris-pieuvre2.jpg') no-repeat 0 0 / 2200px auto;
 font-size: 11px;
 line-height: 15px;
}
.home .site-main {
 position: absolute;
 top: 64px;
 left: 654px;
 width: 300px;
 min-height: 0;
 margin: 0;
 padding: 0;
}
.home-presentation p {
 margin: 0 0 15px;
}
.home-presentation a {
 color: #000;
 text-decoration: none;
}
.home-presentation a:hover {
 text-decoration: underline;
}
.home .site-footer,
.archive .site-footer {
 display: none;
}
body.archive {
 background: #eee;
}
.archive .site-main {
 padding: 0 0 20px;
}
.project-grid {
 grid-template-columns: repeat(auto-fill, 184px);
 gap: 15px 20px;
 margin-left: 0;
}
.project-card {
 margin: 0;
}
.project-card__link {
 color: #000;
}
.project-card__link:hover {
 color: #000;
 text-decoration: none;
}
.project-card__link > img {
 width: 184px;
 height: auto;
 margin: 0;
 transform: none;
 transition: none;
}
.project-card__fallback {
 display: flex;
 align-items: end;
 min-height: 239px;
 padding: 12px;
 background: #d8d8d4;
 font-size: 12px;
}
.archive .pagination {
 margin: 30px 0 0;
}
@media (max-width: 980px) and (min-width: 701px) {
 .site-header .site-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
 }
 .home .site-main {
  left: calc(66.666% + 7px);
  width: calc(33.333% - 21px);
 }
}
@media (max-width: 700px) {
 .site-header {
  height: auto;
  padding: 20px 0 0;
  margin-bottom: 36px;
 }
 .site-header .site-grid {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px 20px;
 }
 .site-branding {
  grid-column: 1 / -1;
 }
 .primary-navigation ul {
  display: block;
 }
 body.home {
  background-size: 1400px auto;
  background-position: 0 120px;
 }
 .home .site-main {
  position: static;
  width: min(300px, calc(100% - 28px));
  margin: 270px 14px 30px;
 }
 .project-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px 20px;
 }
 .project-card__link > img {
  width: 100%;
 }
}

/* Project sheets use the small type and 300 / 20 / 620 grid of the archive. */
body.single-post {
 background: #eee;
 font-size: 12px;
 line-height: 15px;
}
.single-post .site-main {
 padding: 0 0 20px;
}
.single-post .project-layout {
 max-width: 940px;
 grid-template-columns: 300px minmax(0, 620px);
 gap: 20px;
}
.single-post .project-panel {
 top: 20px;
}
.single-post .project-title {
 max-width: 180px;
 margin: 0 0 6px;
 font-size: 13px;
 line-height: 14px;
 letter-spacing: 0;
}
.single-post .project-excerpt {
 color: #999;
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
 line-height: 13px;
 letter-spacing: -0.3px;
}
.single-post .project-excerpt p {
 margin: 0 0 15px;
}
.single-post .project-excerpt a {
 color: #000;
 font-family: Helvetica, Arial, sans-serif;
 font-size: 11px;
 letter-spacing: 0;
}
.single-post .entry-content {
 max-width: 620px;
 font-size: 12px;
 line-height: 15px;
}
.single-post .entry-content p,
.single-post .entry-content img {
 margin-bottom: 15px;
}
.single-post .entry-content figcaption,
.single-post .entry-content .wp-caption-text {
 font-size: 11px;
 line-height: 15px;
}
.single-post .project-navigation {
 position: fixed;
 left: 14px;
 bottom: 10px;
 width: 300px;
 margin: 0;
 padding: 0;
 border: 0;
 font-size: 16px;
}
.single-post .site-footer {
 display: none;
}
@media (max-width: 700px) {
 .single-post .project-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
 }
 .single-post .project-panel {
  padding: 0;
  border: 0;
 }
 .single-post .project-navigation {
  position: static;
  width: min(300px, 100%);
  margin-top: 20px;
 }
}
.single-post .project-excerpt img {
 width: auto;
 height: auto;
 max-width: 250px;
 max-height: 250px;
 margin-top: 20px;
}
