/*
Theme Name: Jayne Coppins
Theme URI: https://www.jaynecoppins.com
Author: Ben & Claude
Description: A darkroom portfolio theme for Jayne Coppins Photography — near-black gallery walls that carry black-and-white prints, contact-sheet indexing and the editor's red china marker. Galleries are powered by FooGallery.
Version: 1.3.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: jayne-coppins
*/

/* ---------- Fonts ---------- */

@font-face {
	font-family: "Archivo";
	src: url("assets/fonts/archivo-latin-300-normal.woff2") format("woff2");
	font-weight: 300;
	font-display: swap;
}
@font-face {
	font-family: "Archivo";
	src: url("assets/fonts/archivo-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Archivo";
	src: url("assets/fonts/archivo-latin-500-normal.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("assets/fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("assets/fonts/source-serif-4-latin-400-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("assets/fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
	font-weight: 600;
	font-display: swap;
}
/* Her name's font on the live site (clintdesign set #pageHeader h1 in it), carried over
   verbatim from her own webfont files. NOTE: Agency FB is a commercial Font Bureau face —
   not OFL like the rest; it rides on the licence of her existing site. */
@font-face {
	font-family: "Agency FB";
	src: url("assets/fonts/agency-fb.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "IBM Plex Mono";
	src: url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
	/* Darkroom palette: the walls go dark so the black-and-white prints carry the room.
	   --paper is the surface, --ink the light it's lit by, --well the deepest black
	   behind loading images. Marker red is nudged brighter to clear AA on the dark ground. */
	--paper: #141311;
	--ink: #efece6;
	--grey: #9c948b;
	--hairline: #302c28;
	--well: #0c0b0a;
	--marker: #e14a30;
	--display: "Archivo", "Helvetica Neue", Arial, sans-serif;
	/* The brand voice: her name and the big display headings, matching the live site. */
	--brand: "Agency FB", "Archivo", "Helvetica Neue", Arial, sans-serif;
	--serif: "Source Serif 4", Georgia, serif;
	--mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
	--pad-x: clamp(1.25rem, 5vw, 4rem);
	/* The editor's mark: a china-marker stroke, drawn under whatever is "selected". */
	--marker-stroke: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 9" preserveAspectRatio="none"><path d="M3 6.5C25 3.5 45 8 68 5.2S105 6.8 117 4" fill="none" stroke="%23e14a30" stroke-width="3.4" stroke-linecap="round" opacity="0.9"/></svg>');
}

/* Staging-only alternate ground: the cooler blue-charcoal of Jayne's current live site,
   for side-by-side review via ?tone=slate. Same red accent so the comparison is of the
   ground alone. Once a tone is chosen, delete this block and the jc_tone switch in functions.php. */
:root[data-tone="slate"] {
	--paper: #1f2433;
	--ink: #eef1f6;
	--grey: #96a0b8;
	--hairline: #343b4d;
	--well: #12151d;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--serif);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
	text-decoration: none;
}

:focus-visible {
	outline: 2px solid var(--marker);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.skip-link:focus-visible {
	position: fixed !important;
	top: 1rem;
	left: 1rem;
	width: auto;
	height: auto;
	clip-path: none;
	z-index: 100;
	background: var(--paper);
	padding: 0.6rem 1rem;
	font-family: var(--mono);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
}

/* The editor's mark — draws in on hover, or sits fixed with --on. */
.marker-underline {
	background-image: var(--marker-stroke);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0% 0.42em;
	transition: background-size 0.4s ease;
	padding-bottom: 0.22em;
}
.marker-underline--on,
a:hover > .marker-underline,
a:focus-visible > .marker-underline,
a:hover > * > .marker-underline,
.collection-card:hover .marker-underline,
.collection-card:focus-visible .marker-underline {
	background-size: 100% 0.42em;
}

/* ---------- Header ---------- */

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding: 1.4rem var(--pad-x);
	border-bottom: 1px solid var(--hairline);
}

.site-header--overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10;
	border-bottom: 0;
	color: #fff;
}

/* On the front page the hero carries the name — don't say it twice. */
.site-header--overlay .wordmark {
	visibility: hidden;
}

.wordmark {
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

/* Jayne's script "JC" mark, traced from the live site's logo.png; inherits text colour. */
.wordmark__logo svg {
	display: block;
	height: 2.1rem;
	width: auto;
}

.wordmark__text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.wordmark__eyebrow {
	font-family: var(--mono);
	font-size: 0.6rem;
	text-transform: uppercase;
	letter-spacing: 0.3em;
	color: var(--grey);
}
.site-header--overlay .wordmark__eyebrow {
	color: rgba(255, 255, 255, 0.75);
}

.wordmark__name {
	font-family: var(--brand);
	font-weight: 400;
	font-size: 1.15rem;
	text-transform: uppercase;
	letter-spacing: 0.38em;
	white-space: nowrap;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.site-nav__menu {
	display: flex;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__menu a {
	font-family: var(--display);
	font-weight: 400;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	padding-bottom: 0.3em;
	background-image: var(--marker-stroke);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0% 0.5em;
	transition: background-size 0.4s ease;
}

.site-nav__menu a:hover,
.site-nav__menu a:focus-visible,
.site-nav__menu .current-menu-item > a,
.site-nav__menu .current-menu-ancestor > a,
.site-nav__menu .current_page_parent > a {
	background-size: 100% 0.5em;
}

.site-nav__social {
	display: inline-flex;
	opacity: 0.85;
}
.site-nav__social:hover {
	opacity: 1;
	color: var(--marker);
}
.site-header--overlay .site-nav__social:hover {
	color: #fff;
}

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	color: inherit;
	font-family: var(--mono);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	cursor: pointer;
	padding: 0.4rem 0;
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
	background: var(--well);
}

.hero__slides,
.hero__scrim {
	position: absolute;
	inset: 0;
}

.hero__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.6s ease;
}
.hero__slide.is-active {
	opacity: 1;
}

.hero__scrim {
	background: linear-gradient(180deg, rgba(12, 10, 9, 0.45) 0%, rgba(12, 10, 9, 0) 28%, rgba(12, 10, 9, 0) 55%, rgba(12, 10, 9, 0.6) 100%);
}

.hero__title {
	position: absolute;
	left: var(--pad-x);
	right: var(--pad-x);
	bottom: clamp(2.5rem, 8vh, 5.5rem);
	color: #fff;
}

.hero__eyebrow {
	font-family: var(--mono);
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.34em;
	color: rgba(255, 255, 255, 0.8);
}

.hero__name {
	display: flex;
	align-items: center;
	gap: 0.3em;
	margin: 0.4rem 0 0.8rem;
	font-family: var(--brand);
	font-weight: 400;
	font-size: clamp(2.4rem, 6.5vw, 5.2rem);
	line-height: 1.05;
	text-transform: uppercase;
	letter-spacing: 0.2em;
}

/* Sized to the caps of the name beside it (cap height ~0.72em, plus the script's flourish). */
.hero__logo svg {
	display: block;
	height: 0.82em;
	width: auto;
}

.hero__strap {
	margin: 0;
	font-family: var(--mono);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.26em;
	color: rgba(255, 255, 255, 0.75);
}

.hero__scroll-cue {
	position: absolute;
	right: var(--pad-x);
	bottom: clamp(2.5rem, 8vh, 5.5rem);
	color: rgba(255, 255, 255, 0.7);
	font-family: var(--mono);
	font-size: 0.62rem;
	text-transform: uppercase;
	letter-spacing: 0.3em;
	writing-mode: vertical-rl;
	padding-top: 3rem;
}
.hero__scroll-cue::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 1px;
	height: 2.4rem;
	background: rgba(255, 255, 255, 0.6);
	animation: cue-drop 2.4s ease-in-out infinite;
	transform-origin: top;
}
@keyframes cue-drop {
	0% { transform: scaleY(0); }
	45% { transform: scaleY(1); }
	100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Section scaffolding ---------- */

main {
	display: block;
}

.page-main {
	padding: clamp(3rem, 7vh, 5rem) var(--pad-x) clamp(4rem, 9vh, 7rem);
	min-height: 55vh;
}

.section-head {
	margin-bottom: clamp(2.5rem, 5vh, 4rem);
}

.section-head__eyebrow {
	display: block;
	font-family: var(--mono);
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.3em;
	color: var(--grey);
	margin-bottom: 0.9rem;
}

.section-head__title {
	margin: 0;
	font-family: var(--brand);
	font-weight: 400;
	font-size: clamp(1.9rem, 4vw, 3rem);
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: 0.16em;
}

.section-head__intro {
	max-width: 56ch;
	margin: 1.2rem 0 0;
	color: var(--grey);
}

.section-head__frames {
	display: block;
	margin-top: 1rem;
	font-family: var(--mono);
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.24em;
	color: var(--grey);
}

.crumb {
	font-family: var(--mono);
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.24em;
	color: var(--grey);
	margin-bottom: 1.4rem;
	display: flex;
	gap: 0.8rem;
}
.crumb a:hover,
.crumb a:focus-visible {
	color: var(--marker);
}

/* ---------- Collections ---------- */

.home-collections {
	padding: clamp(4rem, 10vh, 7rem) var(--pad-x);
}

.collection-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(2rem, 4vw, 3.5rem);
}

.collection-card {
	display: block;
}

.collection-card__figure {
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--well);
}

.collection-card__figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s ease;
}
.collection-card:hover .collection-card__figure img {
	transform: scale(1.025);
}

.collection-card__meta {
	border-top: 1px solid var(--ink);
	margin-top: 1rem;
	padding-top: 0.9rem;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 0.35rem 1.1rem;
	align-items: baseline;
}

.collection-card__index {
	font-family: var(--mono);
	font-size: 0.72rem;
	color: var(--grey);
}

.collection-card__title {
	margin: 0;
	font-family: var(--display);
	font-weight: 400;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
}

.collection-card__frames {
	font-family: var(--mono);
	font-size: 0.66rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--grey);
}

.collection-card__excerpt {
	grid-column: 2 / 4;
	margin: 0.2rem 0 0;
	font-size: 0.92rem;
	color: var(--grey);
}

/* ---------- Home: quote + journal ---------- */

.home-quote {
	padding: clamp(3rem, 8vh, 6rem) var(--pad-x);
	border-top: 1px solid var(--hairline);
}

.home-quote blockquote {
	max-width: 52ch;
	margin: 0 auto;
	text-align: center;
}

.home-quote p {
	margin: 0 0 1.6rem;
	font-style: italic;
	font-size: clamp(1.3rem, 2.6vw, 1.85rem);
	line-height: 1.55;
}

.home-quote cite {
	font-style: normal;
	font-family: var(--mono);
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.24em;
	color: var(--grey);
}
.home-quote cite a {
	color: var(--ink);
}
.home-quote cite a:hover,
.home-quote cite a:focus-visible {
	color: var(--marker);
}

/* ---------- Collection page / FooGallery ---------- */

.collection-frames {
	margin-top: 1rem;
}

/* Let the plugin lay the frames out; keep its captions in the house style. */
.collection-frames .fg-caption-title {
	font-family: var(--mono) !important;
	font-size: 0.68rem !important;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--grey) !important;
}

/* On the dark wall the prints hang unframed: drop the plugin's border, outline and
   caption plate so nothing sits between the photograph and the room. */
.collection-frames .fg-item-inner {
	border-width: 0 !important;
	box-shadow: none !important;
}

.collection-frames .fg-caption {
	background: none !important;
	/* Symmetric padding centres the title in the plate the galleries render below each print. */
	padding: 0.85rem 1rem !important;
	/* Title left, cart icon right, one line. */
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.collection-frames .fg-caption-inner {
	flex: 1;
	min-width: 0;
	text-align: left !important;
}

/* ---------- Blog ---------- */

.post-list {
	border-top: 1px solid var(--hairline);
}

.post-row {
	display: grid;
	grid-template-columns: 1fr 260px;
	gap: 2.5rem;
	align-items: center;
	padding: 2.4rem 0;
	border-bottom: 1px solid var(--hairline);
}

.post-row__date {
	font-family: var(--mono);
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.24em;
	color: var(--grey);
}

.post-row__title {
	margin: 0.5rem 0 0.7rem;
	font-family: var(--serif);
	font-weight: 600;
	font-size: clamp(1.3rem, 2.4vw, 1.65rem);
	line-height: 1.3;
}

.post-row__excerpt {
	color: var(--grey);
	font-size: 0.98rem;
	max-width: 62ch;
}
.post-row__excerpt p {
	margin: 0;
}

.post-row__thumb {
	aspect-ratio: 4 / 3;
	overflow: hidden;
}
.post-row__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pagination {
	margin-top: 2.5rem;
	font-family: var(--mono);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
}
.pagination a:hover {
	color: var(--marker);
}

/* ---------- Single post ---------- */

.post,
.post__comments {
	max-width: 70ch;
	margin-left: auto;
	margin-right: auto;
}

.post__head {
	margin-bottom: 2rem;
}

.post__date {
	font-family: var(--mono);
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.24em;
	color: var(--grey);
}

.post__title {
	margin: 0.7rem 0 0;
	font-family: var(--serif);
	font-weight: 600;
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	line-height: 1.2;
}

.post__featured {
	margin: 0 0 2.5rem;
}

/* ---------- Prose ---------- */

.prose {
	max-width: 70ch;
}

.prose p {
	margin: 0 0 1.3em;
}

.prose a {
	text-decoration: underline;
	text-decoration-color: var(--marker);
	text-underline-offset: 3px;
}

.prose blockquote {
	margin: 2.2rem 0;
	padding: 0;
	font-style: italic;
	font-size: 1.25em;
	line-height: 1.5;
}
.prose blockquote::after {
	content: "";
	display: block;
	width: 110px;
	height: 9px;
	margin-top: 0.9rem;
	background: var(--marker-stroke) no-repeat 0 50% / 100% 100%;
}
.prose blockquote p {
	margin-bottom: 0;
}

/* ---------- About ---------- */

.about {
	display: grid;
	grid-template-columns: minmax(280px, 420px) 1fr;
	gap: clamp(2.5rem, 5vw, 5rem);
	align-items: start;
}

.about__portrait {
	margin: 0;
}
.about__portrait figcaption {
	margin-top: 0.7rem;
	font-family: var(--mono);
	font-size: 0.64rem;
	text-transform: uppercase;
	letter-spacing: 0.24em;
	color: var(--grey);
}

.about__cta {
	display: inline-block;
	margin-top: 1.5rem;
	font-family: var(--display);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
}

/* ---------- Contact ---------- */

.contact {
	max-width: 640px;
}

.contact__channel {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-top: 2.5rem;
}

.contact__channel-label {
	font-family: var(--mono);
	font-size: 0.66rem;
	text-transform: uppercase;
	letter-spacing: 0.26em;
	color: var(--grey);
}

.contact__channel .marker-underline {
	align-self: flex-start;
	font-family: var(--display);
	font-weight: 300;
	font-size: clamp(1.5rem, 4vw, 2.3rem);
	letter-spacing: 0.06em;
}

/* Contact form (Contact Form 7) */

.contact .wpcf7 {
	margin-top: 2.5rem;
}
.contact .wpcf7-form label {
	display: block;
	font-family: var(--mono);
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--grey);
	margin-bottom: 1.2rem;
}
.contact .wpcf7-form input[type="text"],
.contact .wpcf7-form input[type="email"],
.contact .wpcf7-form textarea {
	display: block;
	width: 100%;
	border: 1px solid var(--hairline);
	background: var(--well);
	padding: 0.7rem 0.9rem;
	font: inherit;
	color: inherit;
	margin-top: 0.4rem;
}
.contact .wpcf7-form input:focus-visible,
.contact .wpcf7-form textarea:focus-visible {
	outline: 2px solid var(--marker);
	outline-offset: 0;
	border-color: transparent;
}
.contact .wpcf7-form .wpcf7-submit {
	background: var(--ink);
	color: var(--paper);
	border: 0;
	padding: 0.85rem 1.8rem;
	font-family: var(--display);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	cursor: pointer;
}
.contact .wpcf7-form .wpcf7-submit:hover {
	background: var(--marker);
}
.contact .wpcf7-form .wpcf7-not-valid-tip {
	display: block;
	font-family: var(--mono);
	font-size: 0.66rem;
	letter-spacing: 0.12em;
	color: var(--marker);
	margin-top: 0.4rem;
}
.contact .wpcf7 .wpcf7-response-output {
	margin: 1.6rem 0 0;
	padding: 0.8rem 1rem;
	border: 1px solid var(--hairline);
	font-family: var(--mono);
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--grey);
}
.contact .wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--hairline);
}
.contact .wpcf7 form.invalid .wpcf7-response-output,
.contact .wpcf7 form.failed .wpcf7-response-output {
	border-color: var(--marker);
	color: var(--marker);
}

/* ---------- Comments (light touch) ---------- */

.post__comments {
	margin-top: 4rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--hairline);
}
.post__comments .comment-list {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}
.post__comments .comment {
	padding: 1.4rem 0;
	border-bottom: 1px solid var(--hairline);
}
.post__comments .comment-meta,
.post__comments .comment-metadata,
.post__comments .reply {
	font-family: var(--mono);
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--grey);
}
.post__comments .comment-form label {
	display: block;
	font-family: var(--mono);
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--grey);
	margin-bottom: 0.4rem;
}
.post__comments .comment-form input[type="text"],
.post__comments .comment-form input[type="email"],
.post__comments .comment-form input[type="url"],
.post__comments .comment-form textarea {
	width: 100%;
	border: 1px solid var(--hairline);
	background: var(--well);
	padding: 0.7rem 0.9rem;
	font: inherit;
	color: inherit;
	margin-bottom: 1.2rem;
}
.post__comments .comment-form input:focus-visible,
.post__comments .comment-form textarea:focus-visible {
	outline: 2px solid var(--marker);
	outline-offset: 0;
	border-color: transparent;
}
.post__comments .submit {
	background: var(--ink);
	color: var(--paper);
	border: 0;
	padding: 0.85rem 1.8rem;
	font-family: var(--display);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	cursor: pointer;
}
.post__comments .submit:hover {
	background: var(--marker);
}

/* ---------- Footer ---------- */

.site-footer {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
	padding: 2rem var(--pad-x) 2.4rem;
	border-top: 1px solid var(--hairline);
	font-family: var(--mono);
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--grey);
}

.site-footer__copy {
	margin: 0;
}

.site-footer__social:hover,
.site-footer__social:focus-visible {
	color: var(--marker);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.collection-grid {
		grid-template-columns: 1fr;
	}
	.about {
		grid-template-columns: 1fr;
	}
	.about__portrait {
		max-width: 420px;
	}
}

@media (max-width: 760px) {
	.nav-toggle {
		display: block;
		position: relative;
		z-index: 30;
	}
	.site-nav {
		display: none;
	}
	body.nav-open .site-nav {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 2rem;
		position: fixed;
		inset: 0;
		z-index: 20;
		background: var(--paper);
		color: var(--ink);
		padding: 7rem var(--pad-x) 3rem;
	}
	body.nav-open .site-header--overlay .nav-toggle {
		color: var(--ink);
	}
	.site-nav__menu {
		flex-direction: column;
		gap: 1.6rem;
	}
	.site-nav__menu a {
		font-size: 1rem;
	}
	.post-row {
		grid-template-columns: 1fr;
		gap: 1.4rem;
	}
	.post-row__thumb {
		order: -1;
		max-width: 420px;
	}
	.hero__scroll-cue {
		display: none;
	}
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation: none !important;
	}
}

/* ---------- Photo purchasing ---------- */

/* Icon-only cart button: cart-with-plus, becoming cart-with-check once added. The
   icon is a CSS mask filled with currentColor, so it takes the local text colour on
   the white plate, the lightbox panel and both tones. */
.jc-cart-add {
	--cart-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><circle cx="9" cy="21" r="1.6"/><circle cx="19" cy="21" r="1.6"/><path d="M1 2h3.5L7 15.5h13L23 6H5.3"/><path d="M13 7.5v5M10.5 10h5"/></svg>');
	flex: none;
	width: 1.45rem;
	height: 1.45rem;
	border: 0;
	padding: 0;
	background: none;
	color: inherit;
	opacity: 0.75;
	cursor: pointer;
}
.jc-cart-add::before {
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	background: currentColor;
	-webkit-mask: var(--cart-icon) no-repeat center / contain;
	mask: var(--cart-icon) no-repeat center / contain;
}
.jc-cart-add.is-added {
	--cart-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><circle cx="9" cy="21" r="1.6"/><circle cx="19" cy="21" r="1.6"/><path d="M1 2h3.5L7 15.5h13L23 6H5.3"/><path d="M10 10.5l2.2 2.2L16.5 8"/></svg>');
	opacity: 0.55;
	cursor: default;
}
.jc-cart-add:hover:not(:disabled),
.jc-cart-add:focus-visible {
	opacity: 1;
	color: var(--marker) !important;
}
.jc-cart-add.is-error {
	opacity: 0.3;
	cursor: default;
}

/* FooGallery's caption cascade paints text white — repin on the white plate. */
.collection-frames .jc-cart-add {
	color: var(--grey) !important;
}

/* Lightbox: title on the photo's left edge, cart icon on its right edge —
   cart.js sizes the caption strip to the rendered image width. */
.fg-panel .fg-media-caption {
	display: flex !important;
	flex-direction: row !important;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.fg-panel .fg-media-caption-title {
	text-align: left !important;
}
.jc-cart-add--panel {
	width: 1.3rem;
	height: 1.3rem;
}

.site-nav__cart {
	font-family: var(--display);
	font-weight: 400;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
}
.site-nav__cart-count {
	font-family: var(--mono);
	color: var(--marker);
}

/* Cart / checkout in the house style: hairline tables, well inputs, ink buttons.
   Deliberately shallow — just enough for Woo's markup to sit on the dark wall. */
.prose:has(.woocommerce) {
	max-width: 900px;
}

.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--hairline);
	margin: 0 0 2rem;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border: 1px solid var(--hairline);
	padding: 0.8rem 1rem;
	text-align: left;
	vertical-align: middle;
}
.woocommerce table.shop_table th {
	font-family: var(--mono);
	font-size: 0.66rem;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--grey);
}
.woocommerce table.shop_table img {
	width: 72px;
	height: auto;
}
.woocommerce .variation,
.woocommerce dl.variation dt,
.woocommerce dl.variation dd {
	display: inline;
	margin: 0;
	font-family: var(--mono);
	font-size: 0.72rem;
	color: var(--grey);
}

.woocommerce a.remove {
	display: inline-block;
	font-size: 1.3rem;
	line-height: 1;
	text-decoration: none;
	color: var(--grey) !important;
}
.woocommerce a.remove:hover {
	color: var(--marker) !important;
}

.woocommerce .button,
.woocommerce a.button,
.woocommerce .wp-element-button,
.woocommerce button[type="submit"],
.woocommerce #place_order {
	display: inline-block;
	border: 0;
	padding: 0.85rem 1.8rem;
	background: var(--ink) !important;
	color: var(--paper) !important;
	font-family: var(--display);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	cursor: pointer;
	text-decoration: none;
}
.woocommerce .button:hover,
.woocommerce button[type="submit"]:hover,
.woocommerce #place_order:hover {
	background: var(--marker);
	color: #fff;
}
.woocommerce .button:disabled {
	opacity: 0.5;
	cursor: default;
}

.woocommerce input.input-text,
.woocommerce form .form-row .input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce textarea.input-text,
.woocommerce select {
	width: 100%;
	border: 1px solid var(--hairline);
	background: var(--well);
	color: inherit;
	padding: 0.7rem 0.9rem;
	font: inherit;
}

/* Woo's stylesheet paints checkout panels grey and banners blue — repin to the room. */
.woocommerce-checkout #payment,
.woocommerce-checkout #payment ul.payment_methods,
.woocommerce-checkout #payment ul.payment_methods li,
.woocommerce table.woocommerce-checkout-review-order-table th,
.woocommerce table.woocommerce-checkout-review-order-table td {
	background: var(--well) !important;
	border-color: var(--hairline);
}
.woocommerce-checkout #payment div.payment_box {
	background: var(--paper) !important;
	color: var(--grey) !important;
}
.woocommerce-checkout #payment div.payment_box::before {
	border-bottom-color: var(--paper) !important;
}
.woocommerce form .form-row {
	margin: 0 0 1rem;
}
.woocommerce form .form-row label {
	display: block;
	margin-bottom: 0.3rem;
	font-family: var(--mono);
	font-size: 0.66rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--grey);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0.9rem 1.2rem;
	border: 0 !important;
	border-left: 3px solid var(--marker) !important;
	background: var(--well) !important;
	color: inherit !important;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	display: none !important;
}
.woocommerce-error li {
	margin: 0;
}

#payment .payment_methods {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}
#payment .payment_box {
	font-size: 0.9em;
	color: var(--grey);
}
