/* ==========================================================
   MRGRT Editorial
   Warm ivory, ink and oxblood. Big serif type, lots of air.
   ========================================================== */

:root {
	--mrgrt-line: color-mix(in srgb, var(--wp--preset--color--ink) 14%, transparent);
	--mrgrt-ease: cubic-bezier(.2, .7, .2, 1);
	--mrgrt-header-h: 76px;
}

html { background-color: var(--wp--preset--color--cream); scroll-behavior: smooth; }
body { overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > main, .wp-site-blocks > .wp-block-group:not(header):not(footer) { flex: 1 0 auto; }
.wp-site-blocks > footer { margin-top: auto !important; }

::selection { background: var(--wp--preset--color--blush); color: var(--wp--preset--color--ink); }
:where(a, button):focus-visible { outline: 2px solid var(--wp--preset--color--raspberry); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, .wp-block-post-title {  text-wrap: balance; }
h1 em, h2 em, h3 em, .is-style-accent { font-style: italic; color: var(--wp--preset--color--raspberry); }
p { text-wrap: pretty; }

/* ---------- small type helpers ---------- */

.is-style-eyebrow {
	margin-bottom: .9rem !important;
	font-family: var(--wp--preset--font-family--sans) !important;
	font-size: .78rem !important;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-soft);
}

.has-paper-color .is-style-eyebrow, .mrgrt-journal .is-style-eyebrow { color: color-mix(in srgb, var(--wp--preset--color--paper) 70%, transparent); }

.is-style-lede {
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.25rem, 2vw, 1.6rem) !important;
	line-height: 1.38;
	color: var(--wp--preset--color--ink);
}

.mrgrt-more a {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	font-size: .95rem;
	font-weight: 500;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid currentColor;
	padding-bottom: 3px;
	transition: gap .3s var(--mrgrt-ease), color .2s ease;
}

.mrgrt-more a::after { content: "→"; }
.mrgrt-more a:hover { gap: .9em; color: var(--wp--preset--color--raspberry); }
.has-paper-color .mrgrt-more a:hover { color: var(--wp--preset--color--blush); }

/* ---------- buttons ---------- */

.wp-block-button .wp-block-button__link { transition: background .25s ease, color .25s ease, transform .25s var(--mrgrt-ease); }
.wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); }

.wp-block-button.is-style-outline-pill .wp-block-button__link,
.wp-block-button.is-style-sticker .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--ink);
	box-shadow: none;
}

.wp-block-button.is-style-outline-pill .wp-block-button__link:hover,
.wp-block-button.is-style-sticker .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

/* ---------- header ---------- */

.mrgrt-header {
	position: sticky;
	top: 0;
	z-index: 50;
	padding-top: 1rem !important;
	padding-bottom: 1rem !important;
	transition: background .35s ease, box-shadow .35s ease, transform .45s var(--mrgrt-ease), padding .35s ease;
}

.admin-bar .mrgrt-header { top: var(--wp-admin--admin-bar--height, 32px); }

.mrgrt-header.is-scrolled {
	background: color-mix(in srgb, var(--wp--preset--color--cream) 82%, transparent);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	box-shadow: 0 1px 0 var(--mrgrt-line);
	padding-top: .65rem !important;
	padding-bottom: .65rem !important;
}

.mrgrt-header.is-hidden { transform: translateY(-110%); }

.mrgrt-header .wp-block-site-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.mrgrt-header .wp-block-site-title a::after { content: "."; color: var(--wp--preset--color--raspberry); }

.mrgrt-header .wp-block-navigation a { text-decoration: none; position: relative; }
.mrgrt-header .wp-block-navigation-item:not(.has-child) > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .35s var(--mrgrt-ease);
}
.mrgrt-header .wp-block-navigation a:hover::after,
.mrgrt-header .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }

.mrgrt-header__cta .wp-block-button__link { padding: .55em 1.2em !important; font-size: .88rem !important; }

.mrgrt-header .wp-block-navigation__responsive-container.is-menu-open { padding: 2rem; background: var(--wp--preset--color--cream) !important; }
.mrgrt-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a { font-family: var(--wp--preset--font-family--serif); font-size: 2.2rem; }

@media (max-width: 600px) { .mrgrt-header__cta { display: none !important; } }

/* ---------- homepage: hero ---------- */

.mrgrt-hero { padding-top: clamp(3rem, 10vh, 7rem) !important; padding-bottom: clamp(2rem, 5vh, 3.5rem) !important; }

.mrgrt-hero__title {
	margin: 0 0 clamp(2rem, 5vw, 3.5rem) !important;
	font-size: clamp(3.2rem, 9.4vw, 9rem) !important;
	font-weight: 300 !important;
	line-height: .98 !important;
	letter-spacing: -0.02em !important;
	max-width: 14ch;
}

.mrgrt-hero__foot { margin: 0 !important; }
.mrgrt-hero__foot .is-style-lede { margin: 0; max-width: 34rem; }

/* the opening image that widens as you scroll */
.mrgrt-expand { --p: 1; margin-top: 0 !important; padding: 0 !important; }

.mrgrt-expand .wp-block-image {
	margin: 0;
	overflow: hidden;
	clip-path: inset(0 calc((1 - var(--p)) * 9%) round calc((1 - var(--p)) * 28px + 4px));
	will-change: clip-path;
}

.mrgrt-expand .wp-block-image img {
	display: block;
	width: 100%;
	height: clamp(22rem, 72vh, 52rem);
	object-fit: cover;
	transform: scale(calc(1.14 - var(--p) * .14));
	will-change: transform;
}

/* ---------- homepage: statement ---------- */

.mrgrt-statement { padding: clamp(5rem, 14vw, 11rem) 0 clamp(3rem, 8vw, 6rem) !important; }

.mrgrt-scrub {
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.8rem, 4.1vw, 3.5rem) !important;
	font-weight: 340;
	line-height: 1.18;
	letter-spacing: -0.015em;
	margin: 0;
}

.mrgrt-motion .mrgrt-scrub .sw { color: color-mix(in srgb, var(--wp--preset--color--ink) 16%, transparent); transition: color .35s ease; }
.mrgrt-motion .mrgrt-scrub .sw.lit { color: var(--wp--preset--color--ink); }

/* ---------- homepage: numbers ---------- */

.mrgrt-numbers { border-top: 1px solid var(--mrgrt-line); border-bottom: 1px solid var(--mrgrt-line); margin-bottom: clamp(4rem, 10vw, 8rem) !important; }

.mrgrt-stat { padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.75rem); border-left: 1px solid var(--mrgrt-line); }
.mrgrt-stat:first-child { border-left: 0; padding-left: 0; }

.mrgrt-count {
	margin: 0 0 .5rem !important;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(3rem, 6vw, 5.2rem) !important;
	font-weight: 300;
	line-height: 1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums lining-nums;
}

.mrgrt-stat p:not(.mrgrt-count) { margin: 0; max-width: 16rem; font-size: .95rem; color: var(--wp--preset--color--ink-soft); }

@media (max-width: 781px) {
	.mrgrt-stat { border-left: 0; border-top: 1px solid var(--mrgrt-line); padding-left: 0; }
	.mrgrt-stat:first-child { border-top: 0; }
}

/* ---------- section heads ---------- */

.mrgrt-section { margin-bottom: clamp(4rem, 10vw, 8rem) !important; }
.mrgrt-section__head { margin-bottom: clamp(2rem, 5vw, 3.5rem) !important; }
.mrgrt-section__head h2 { margin: 0 !important; }
.mrgrt-section__note { margin: 0 !important; font-family: var(--wp--preset--font-family--serif); font-style: italic; color: var(--wp--preset--color--ink-soft); }

/* ---------- homepage: featured ---------- */

.mrgrt-parallax { overflow: hidden; border-radius: 6px; margin: 0; }
.mrgrt-parallax img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transform: scale(1.12); will-change: transform; }

.mrgrt-featured__title { margin: .2rem 0 1rem !important; font-size: clamp(2rem, 3.6vw, 3.2rem) !important; font-weight: 340 !important; line-height: 1.05 !important; }
.mrgrt-featured__text p:not(.is-style-eyebrow):not(.mrgrt-more) { font-size: 1.05rem; color: var(--wp--preset--color--ink-soft); max-width: 30rem; }

/* ---------- homepage: project index ---------- */

.mrgrt-index { margin-bottom: clamp(5rem, 12vw, 9rem) !important; }
.mrgrt-index__list { border-top: 1px solid var(--wp--preset--color--ink); margin-bottom: 2rem !important; }

.mrgrt-index__row {
	position: relative;
	gap: clamp(1rem, 3vw, 2.5rem) !important;
	padding: clamp(1.1rem, 2.4vw, 1.75rem) 0;
	border-bottom: 1px solid var(--mrgrt-line);
	transition: padding .4s var(--mrgrt-ease);
}

.mrgrt-index__row > * { margin: 0 !important; }
.mrgrt-index__num { flex: 0 0 2.5rem; font-size: .85rem; color: var(--wp--preset--color--ink-soft); font-variant-numeric: tabular-nums; }

.mrgrt-index__title { flex: 1 1 auto; font-size: clamp(1.6rem, 3.4vw, 3rem) !important; font-weight: 320 !important; letter-spacing: -0.02em; line-height: 1.05 !important; }
.mrgrt-index__title a { color: inherit; text-decoration: none; transition: color .3s ease; }
.mrgrt-index__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.mrgrt-index__meta { flex: 0 0 auto; width: clamp(9rem, 20vw, 16rem); font-size: .92rem; color: var(--wp--preset--color--ink-soft); }
.mrgrt-index__year { flex: 0 0 4.5rem; text-align: right; font-size: .92rem; color: var(--wp--preset--color--ink-soft); font-variant-numeric: tabular-nums; }

.mrgrt-index__img { flex: 0 0 auto; width: 4.5rem; margin: 0 !important; border-radius: 4px; overflow: hidden; }
.mrgrt-index__img img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.mrgrt-index__row:hover { padding-left: .75rem; }
.mrgrt-index__row:hover .mrgrt-index__title a { color: var(--wp--preset--color--raspberry); }

/* on desktop with a mouse, the thumbnail becomes a floating preview instead */
.mrgrt-has-preview .mrgrt-index__img { display: none; }

.mrgrt-preview {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 40;
	width: clamp(200px, 18vw, 280px);
	pointer-events: none;
	border-radius: 6px;
	overflow: hidden;
	opacity: 0;
	scale: .92;
	transition: opacity .3s ease, scale .4s var(--mrgrt-ease);
	box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--wp--preset--color--ink) 50%, transparent);
}

.mrgrt-preview img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.mrgrt-preview.on { opacity: 1; scale: 1; }

@media (max-width: 781px) {
	.mrgrt-index__meta, .mrgrt-index__num { display: none; }
	.mrgrt-index__year { flex-basis: auto; }
	.mrgrt-index__img { width: 3.5rem; }
}

/* ---------- homepage: how I work (sticky) ---------- */

.mrgrt-approach { padding-bottom: clamp(4rem, 10vw, 8rem) !important; }
.mrgrt-sticky { position: sticky; top: calc(var(--mrgrt-header-h) + 2rem); }
.mrgrt-approach__side { align-self: stretch !important; }

.mrgrt-approach__item { padding: clamp(2rem, 5vw, 3.5rem) 0; border-top: 1px solid var(--mrgrt-line); }
.mrgrt-approach__item:first-child { border-top: 0; padding-top: 0; }
.mrgrt-approach__num { margin: 0 0 .75rem !important; font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: 1.1rem; color: var(--wp--preset--color--raspberry); }
.mrgrt-approach__item h3 { margin: 0 0 .75rem !important; font-size: clamp(1.8rem, 3.2vw, 2.7rem) !important; font-weight: 330 !important; }
.mrgrt-approach__item p:not(.mrgrt-approach__num) { margin: 0; font-size: 1.08rem; color: var(--wp--preset--color--ink-soft); max-width: 34rem; }

@media (max-width: 781px) { .mrgrt-sticky { position: static; } }

/* ---------- homepage: journal rail (dark) ---------- */

.mrgrt-journal { padding-top: clamp(4rem, 10vw, 8rem) !important; padding-bottom: clamp(4rem, 10vw, 8rem) !important; }
.mrgrt-journal h2 em { color: var(--wp--preset--color--blush); }

.mrgrt-rail-wrap { margin-right: calc(var(--wp--style--root--padding-right) * -1); }

.mrgrt-rail {
	display: flex !important;
	gap: clamp(1rem, 2vw, 1.5rem);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 0 var(--wp--style--root--padding-right) 1.25rem 0 !important;
	margin: 0 !important;
	list-style: none;
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--wp--preset--color--paper) 35%, transparent) transparent;
}

.mrgrt-rail > li { flex: 0 0 clamp(17rem, 30vw, 24rem); scroll-snap-align: start; margin: 0 !important; }

.mrgrt-rail__card {
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: .75rem;
	padding: clamp(1.5rem, 2.5vw, 2rem);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--paper) 22%, transparent);
	border-radius: 6px;
	transition: background .35s ease, border-color .35s ease, transform .45s var(--mrgrt-ease);
}

.mrgrt-rail__card:hover { background: color-mix(in srgb, var(--wp--preset--color--paper) 6%, transparent); border-color: color-mix(in srgb, var(--wp--preset--color--paper) 50%, transparent); transform: translateY(-4px); }
.mrgrt-rail__card > * { margin: 0 !important; }
.mrgrt-rail__card .wp-block-post-terms a { color: var(--wp--preset--color--blush); text-decoration: none; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.mrgrt-rail__card .wp-block-post-title { font-size: clamp(1.35rem, 2vw, 1.65rem) !important; font-weight: 350 !important; }
.mrgrt-rail__card .wp-block-post-title a { color: var(--wp--preset--color--paper) !important; }
.mrgrt-rail__card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.mrgrt-rail__card .wp-block-post-excerpt { flex: 1; font-size: .95rem; color: color-mix(in srgb, var(--wp--preset--color--paper) 72%, transparent); }
.mrgrt-rail__card .wp-block-post-excerpt__more-link { display: none; }
.mrgrt-rail__card .wp-block-post-date { color: color-mix(in srgb, var(--wp--preset--color--paper) 55%, transparent); }

/* ---------- homepage: contact ---------- */

.mrgrt-cta { padding: clamp(5rem, 13vw, 10rem) 0 !important; }
.mrgrt-cta__title { margin: 0 0 1.5rem !important; font-size: clamp(2.8rem, 7.5vw, 7rem) !important; font-weight: 300 !important; line-height: 1 !important; letter-spacing: -0.02em !important; max-width: 16ch; }
.mrgrt-cta__text { font-size: 1.1rem; color: var(--wp--preset--color--ink-soft); max-width: 32rem; }

.mrgrt-email {
	display: inline-block;
	margin: 1rem 0 2rem;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.6rem, 3.5vw, 2.8rem);
	font-style: italic;
	color: var(--wp--preset--color--raspberry) !important;
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size .5s var(--mrgrt-ease);
}

.mrgrt-email:hover { background-size: 100% 1px; }

/* ---------- links as pills ---------- */

.mrgrt-elsewhere { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }

.mrgrt-elsewhere a {
	display: inline-block;
	padding: .45em 1em;
	border: 1px solid var(--mrgrt-line);
	border-radius: 999px;
	color: inherit;
	font-size: .88rem;
	text-decoration: none;
	transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.mrgrt-elsewhere a:hover { background: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); color: var(--wp--preset--color--paper); }

/* ---------- footer ---------- */

.mrgrt-footer { padding-top: clamp(3rem, 6vw, 5rem) !important; padding-bottom: 1.5rem !important; border-top: 1px solid var(--mrgrt-line); overflow: hidden; }
.mrgrt-footer__top { gap: 1.5rem !important; }
.mrgrt-footer__line { margin: 0 !important; font-family: var(--wp--preset--font-family--serif); font-size: 1.2rem; line-height: 1.45; }

.mrgrt-footer__mark {
	margin: clamp(2rem, 6vw, 4rem) 0 0 !important;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(6rem, 27vw, 26rem) !important;
	font-weight: 300;
	line-height: .78;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--ink);
	white-space: nowrap;
}

.mrgrt-footer__mark::after { content: "."; color: var(--wp--preset--color--raspberry); }

.mrgrt-footer__bottom { margin-top: 1.5rem !important; padding-top: 1rem; border-top: 1px solid var(--mrgrt-line); font-size: .85rem; color: var(--wp--preset--color--ink-soft); }
.mrgrt-footer__bottom p { margin: 0; }
.mrgrt-footer__bottom a { color: inherit; text-decoration: none; }
.mrgrt-footer__bottom a:hover { color: var(--wp--preset--color--raspberry); }

/* ==========================================================
   Inner pages: cards, panels, frames, case studies
   ========================================================== */

.is-style-card,
.is-style-polaroid {
	position: relative;
	background: transparent !important;
	padding: 0 !important;
}

.is-style-card .wp-block-image, .is-style-polaroid .wp-block-image { margin: 0 0 1rem; overflow: hidden; border-radius: 6px; }
.is-style-card .wp-block-image img, .is-style-polaroid .wp-block-image img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s var(--mrgrt-ease); }
.is-style-card:hover .wp-block-image img, .is-style-polaroid:hover .wp-block-image img { transform: scale(1.04); }
.is-style-card h3, .is-style-polaroid h3 { margin: 0 0 .35rem !important; font-size: 1.45rem !important; }
.is-style-card h3 a, .is-style-polaroid h3 a { color: inherit; text-decoration: none; }
.is-style-card h3 a::after, .is-style-polaroid h3 a::after { content: ""; position: absolute; inset: 0; }
.is-style-card p, .is-style-polaroid p { margin: 0; font-size: .95rem; color: var(--wp--preset--color--ink-soft); }

.mrgrt-tag { margin: 0 0 .4rem !important; font-size: .74rem !important; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--raspberry) !important; }

.is-style-panel,
.is-style-sticky-note,
.is-style-index-card,
.is-style-torn-paper {
	background: var(--wp--preset--color--paper);
	padding: clamp(1.5rem, 3vw, 2.25rem) !important;
	border: 1px solid var(--mrgrt-line);
	border-radius: 8px;
	transform: none !important;
	clip-path: none !important;
	box-shadow: none !important;
}

.is-style-panel.has-background, .is-style-sticky-note.has-background { border-color: transparent; }

.wp-block-image.is-style-framed img,
.wp-block-image.is-style-taped img { border-radius: 6px; }
.wp-block-image.is-style-taped { transform: none; padding: 0; background: none; box-shadow: none; }

.is-style-handwritten { font-family: var(--wp--preset--font-family--serif) !important; font-style: italic; font-weight: 400 !important; }
.is-style-highlight { font-style: italic; color: var(--wp--preset--color--raspberry); background: none; }

.mrgrt-case-facts { border-top: 1px solid var(--mrgrt-line); border-bottom: 1px solid var(--mrgrt-line); }
.mrgrt-case-facts p { margin: 0; }
.mrgrt-fact-label { font-size: .74rem !important; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--raspberry); margin-bottom: .35rem !important; }

.mrgrt-page-head { padding-top: clamp(3rem, 9vh, 6rem) !important; padding-bottom: clamp(2rem, 5vw, 3rem) !important; }
.mrgrt-page-head h1 { margin: 0 0 1.25rem !important; font-size: clamp(2.8rem, 7vw, 6rem) !important; font-weight: 300 !important; line-height: 1 !important; letter-spacing: -0.02em !important; max-width: 16ch; }

.mrgrt-signature { font-family: var(--wp--preset--font-family--caveat) !important; font-size: 2.4rem !important; font-weight: 600; line-height: 1; margin: .5rem 0 1rem !important; }

/* ---------- posts ---------- */

.wp-block-post-terms a { text-decoration: none; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--raspberry); }
.wp-block-post-terms__separator { color: var(--wp--preset--color--ink-soft); }

.single .wp-block-post-content > p:first-of-type { font-family: var(--wp--preset--font-family--serif); font-size: 1.4rem; line-height: 1.5; }
.single .wp-block-post-content { font-size: 1.1rem; line-height: 1.8; }
.single .wp-block-post-featured-image img { border-radius: 8px; }

.mrgrt-posts { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--wp--preset--color--ink); }
.mrgrt-post-row { position: relative; gap: clamp(1rem, 3vw, 2.5rem) !important; padding: clamp(1.25rem, 2.5vw, 1.75rem) 0; border-bottom: 1px solid var(--mrgrt-line); transition: padding .4s var(--mrgrt-ease); }
.mrgrt-post-row > * { margin: 0 !important; }
.mrgrt-post-row .wp-block-post-date { flex: 0 0 8rem; }
.mrgrt-post-row .mrgrt-post-row__main { flex: 1 1 auto; }
.mrgrt-post-row .wp-block-post-title { font-size: clamp(1.4rem, 2.6vw, 2.2rem) !important; font-weight: 330 !important; margin: 0 0 .4rem !important; }
.mrgrt-post-row .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.mrgrt-post-row .wp-block-post-excerpt { margin: 0; color: var(--wp--preset--color--ink-soft); max-width: 40rem; }
.mrgrt-post-row .wp-block-post-excerpt__more-link { display: none; }
.mrgrt-post-row:hover { padding-left: .75rem; }
.mrgrt-post-row:hover .wp-block-post-title a { color: var(--wp--preset--color--raspberry); }

@media (max-width: 781px) { .mrgrt-post-row { flex-wrap: wrap !important; } .mrgrt-post-row .wp-block-post-date { flex-basis: 100%; } }

.wp-block-query-pagination a { text-decoration: none; }

/* ==========================================================
   Motion (only on the live site, only if the visitor allows it)
   ========================================================== */

.mrgrt-motion .rv {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 1s var(--mrgrt-ease) var(--d, 0ms), transform 1.1s var(--mrgrt-ease) var(--d, 0ms);
}

.mrgrt-motion .rv.in { opacity: 1; transform: none; }

.mrgrt-motion .mrgrt-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .2em; margin-bottom: -.2em; }
.mrgrt-motion .mrgrt-split .w > span { display: inline-block; transform: translateY(110%); }
.mrgrt-motion .mrgrt-split.in .w > span { transform: none; transition: transform 1.1s var(--mrgrt-ease); transition-delay: calc(var(--i) * 55ms + 80ms); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 781px) {
	.mrgrt-hero__foot .wp-block-buttons { justify-content: flex-start !important; }
	.mrgrt-hero__title { max-width: none; }
}

/* ---------- colour bands ---------- */

.mrgrt-band { padding-top: clamp(1rem, 2vw, 1.5rem) !important; padding-bottom: clamp(1rem, 2vw, 1.5rem) !important; margin-bottom: clamp(4rem, 10vw, 8rem) !important; }
.mrgrt-band .mrgrt-numbers { border: 0; margin-bottom: 0 !important; }
.mrgrt-band .mrgrt-stat { border-color: color-mix(in srgb, var(--wp--preset--color--paper) 28%, transparent); }
.mrgrt-band .mrgrt-stat p:not(.mrgrt-count) { color: color-mix(in srgb, var(--wp--preset--color--paper) 82%, transparent); }
.mrgrt-band .mrgrt-count { color: var(--wp--preset--color--paper); }

.mrgrt-cta.has-background { padding-top: clamp(5rem, 13vw, 10rem) !important; padding-bottom: clamp(5rem, 13vw, 10rem) !important; }
.mrgrt-cta .mrgrt-elsewhere a { border-color: color-mix(in srgb, var(--wp--preset--color--ink) 25%, transparent); }

/* the hero gets a soft wash of colour behind it */
.mrgrt-hero { position: relative; }
.mrgrt-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: calc(var(--mrgrt-header-h) * -1.5);
	bottom: -40vh;
	left: 50%;
	width: 100vw;
	transform: translateX(-50%);
	background: radial-gradient(ellipse 60% 55% at 85% 20%, var(--wp--preset--color--blush), transparent 70%), radial-gradient(ellipse 45% 40% at 10% 85%, var(--wp--preset--color--butter), transparent 70%);
	opacity: .9;
	pointer-events: none;
}
.wp-site-blocks > main { isolation: isolate; }

/* ---------- chartreuse & maroon colour blocking ---------- */

.mrgrt-hero__title em {
	color: var(--wp--preset--color--raspberry);
	background: linear-gradient(transparent 58%, var(--wp--preset--color--lime) 58%, var(--wp--preset--color--lime) 92%, transparent 92%);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	padding: 0 .06em;
}

.mrgrt-hero::before {
	background:
		radial-gradient(ellipse 55% 50% at 88% 18%, color-mix(in srgb, var(--wp--preset--color--lime) 45%, transparent), transparent 70%),
		radial-gradient(ellipse 40% 35% at 8% 90%, color-mix(in srgb, var(--wp--preset--color--blush) 80%, transparent), transparent 70%);
}

.has-leaf-background-color h1 em,
.has-leaf-background-color h2 em,
.has-leaf-background-color h3 em { color: var(--wp--preset--color--lime); }
.has-leaf-background-color .is-style-eyebrow { color: color-mix(in srgb, var(--wp--preset--color--paper) 70%, transparent); }
.mrgrt-band .mrgrt-count { color: var(--wp--preset--color--lime); }

.mrgrt-cta.has-leaf-background-color .mrgrt-cta__text { color: color-mix(in srgb, var(--wp--preset--color--paper) 80%, transparent); }
.mrgrt-cta.has-leaf-background-color .mrgrt-email { color: var(--wp--preset--color--lime) !important; }
.mrgrt-cta.has-leaf-background-color .mrgrt-elsewhere a { border-color: color-mix(in srgb, var(--wp--preset--color--paper) 35%, transparent); }
.mrgrt-cta.has-leaf-background-color .mrgrt-elsewhere a:hover { background: var(--wp--preset--color--lime); border-color: var(--wp--preset--color--lime); color: var(--wp--preset--color--ink); }
.has-leaf-background-color .wp-block-button__link { background: var(--wp--preset--color--lime); color: var(--wp--preset--color--ink); }

/* journal on chartreuse */
.mrgrt-journal.has-lime-background-color h2 em { color: var(--wp--preset--color--raspberry); }
.has-lime-background-color .mrgrt-rail__card { border-color: color-mix(in srgb, var(--wp--preset--color--ink) 22%, transparent); }
.has-lime-background-color .mrgrt-rail__card:hover { background: color-mix(in srgb, var(--wp--preset--color--paper) 45%, transparent); border-color: var(--wp--preset--color--ink); }
.has-lime-background-color .mrgrt-rail__card .wp-block-post-title a { color: var(--wp--preset--color--ink) !important; }
.has-lime-background-color .mrgrt-rail__card .wp-block-post-terms a { color: var(--wp--preset--color--raspberry); }
.has-lime-background-color .mrgrt-rail__card .wp-block-post-excerpt { color: color-mix(in srgb, var(--wp--preset--color--ink) 75%, transparent); }
.has-lime-background-color .mrgrt-rail__card .wp-block-post-date { color: color-mix(in srgb, var(--wp--preset--color--ink) 60%, transparent); }
.has-lime-background-color .mrgrt-rail { scrollbar-color: color-mix(in srgb, var(--wp--preset--color--ink) 35%, transparent) transparent; }
.has-lime-background-color .mrgrt-more a:hover { color: var(--wp--preset--color--raspberry); }

/* chartreuse accents in the light sections */
.mrgrt-index__row:hover { background: color-mix(in srgb, var(--wp--preset--color--lime) 35%, transparent); }
.mrgrt-approach__num { color: var(--wp--preset--color--raspberry); }
.mrgrt-header .wp-block-site-title a::after, .mrgrt-footer__mark::after { color: var(--wp--preset--color--raspberry); }
::selection { background: var(--wp--preset--color--lime); color: var(--wp--preset--color--ink); }

/* Instrument Serif sizing tweaks */
.mrgrt-hero__title { font-size: clamp(3.4rem, 10vw, 9.8rem) !important; line-height: .95 !important; max-width: 13ch; }
.mrgrt-scrub { font-size: clamp(2rem, 4.4vw, 3.9rem) !important; line-height: 1.12; }
.mrgrt-index__title { font-size: clamp(1.8rem, 3.8vw, 3.4rem) !important; }
.is-style-lede { font-size: clamp(1.35rem, 2.1vw, 1.75rem) !important; }

.mrgrt-cta.alignfull, .mrgrt-band.alignfull, .mrgrt-journal.alignfull {
	padding-left: var(--wp--style--root--padding-left, clamp(1.25rem, 4vw, 3rem)) !important;
	padding-right: var(--wp--style--root--padding-right, clamp(1.25rem, 4vw, 3rem)) !important;
}
.mrgrt-journal.alignfull .mrgrt-rail-wrap { margin-right: calc(var(--wp--style--root--padding-right, 1.25rem) * -1); }

.mrgrt-section__head h2 a, .mrgrt-journal h2 a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--mrgrt-ease); }
.mrgrt-section__head h2 a:hover, .mrgrt-journal h2 a:hover { background-size: 100% 2px; }

/* ---------- project index: real photos get a colour tint ---------- */

.mrgrt-index__row:nth-child(6n+1) { --tint: var(--wp--preset--color--lime); }
.mrgrt-index__row:nth-child(6n+2) { --tint: var(--wp--preset--color--blush); }
.mrgrt-index__row:nth-child(6n+3) { --tint: var(--wp--preset--color--leaf); }
.mrgrt-index__row:nth-child(6n+4) { --tint: var(--wp--preset--color--sage); }
.mrgrt-index__row:nth-child(6n+5) { --tint: var(--wp--preset--color--peach); }
.mrgrt-index__row:nth-child(6n+6) { --tint: var(--wp--preset--color--lavender); }

.mrgrt-preview { position: fixed; }
.mrgrt-preview::after,
.mrgrt-index__row.has-photo .mrgrt-index__img::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--tint, var(--wp--preset--color--lime));
	mix-blend-mode: color;
	opacity: 0;
	pointer-events: none;
}
.mrgrt-preview.is-photo::after,
.mrgrt-index__row.has-photo .mrgrt-index__img::after { opacity: .9; }
.mrgrt-preview.is-photo img,
.mrgrt-index__row.has-photo .mrgrt-index__img img { filter: grayscale(1) contrast(1.05); }
.mrgrt-index__row.has-photo .mrgrt-index__img { position: relative; }

.mrgrt-index__auto > .mrgrt-index__row { display: flex; flex-wrap: nowrap; align-items: center; }
.mrgrt-index__auto > .mrgrt-index__row > p, .mrgrt-index__auto > .mrgrt-index__row > h3, .mrgrt-index__auto > .mrgrt-index__row > figure { margin: 0; }
.mrgrt-index__empty { padding: 1.5rem 0; color: var(--wp--preset--color--ink-soft); font-style: italic; }

/* Featured project (chosen in Appearance → MRGRT) */
.mrgrt-featured-wrap .mrgrt-featured { display: flex; align-items: center; }
.mrgrt-featured-wrap .mrgrt-parallax { margin: 0; }
.mrgrt-featured-wrap .mrgrt-parallax a, .mrgrt-featured-wrap .mrgrt-parallax img { display: block; width: 100%; height: auto; }
.mrgrt-featured-wrap .mrgrt-featured__title a { color: inherit; text-decoration: none; }
@media (max-width: 781px) { .mrgrt-featured-wrap .mrgrt-featured { flex-direction: column; align-items: stretch; } .mrgrt-featured-wrap .wp-block-column { flex-basis: 100% !important; } }
