/* =========================================================================
   Anka Personal — theme styles
   Palette: white #FFFFFF, black #000000, mint #DDFFF7
   ========================================================================= */

:root {
	--color-bg: #ffffff;
	--color-ink: #000000;
	--color-mint: #ddfff7;
	--color-muted: #6b6b6b;
	--color-rule: #e7e7e7;

	--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

	--gutter: clamp(20px, 4vw, 56px);
	--rail: 64px;
}

/* -------------------------------------------------------------------------
   Reset-ish
   ------------------------------------------------------------------------- */

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-weight: 400;
	color: var(--color-ink);
	background: var(--color-bg);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

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

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

p {
	margin: 0 0 1em;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
}

.skip-link:focus {
	background: #000;
	color: #fff;
	left: 8px;
	top: 8px;
	padding: 8px 12px;
	z-index: 9999;
}

/* -------------------------------------------------------------------------
   Header (top bar)
   ------------------------------------------------------------------------- */

.site-header {
	position: relative;
	z-index: 5;
	padding: clamp(20px, 3vw, 40px) var(--gutter) clamp(20px, 3vw, 40px) calc(var(--gutter) + var(--rail));
}

.site-header__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
}

.site-logo {
	display: flex;
	flex-direction: column;
	gap: 8px;
	line-height: 1;
}

.site-logo__name {
	font-weight: 800;
	font-size: 18px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.site-logo__subtitle {
	font-weight: 500;
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-muted);
}

.site-logo img {
	max-height: 44px;
	width: auto;
}

/* Primary nav: a vertical rail pinned to the left edge.
   Each item is its own block with rotated (bottom-to-top) text. */
.site-nav {
	position: fixed;
	top: 50%;
	left: 16px;
	transform: translateY(-50%);
	z-index: 6;
}

.site-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.site-nav__list li {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-size: 11px;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	font-weight: 500;
	color: var(--color-muted);
}

.site-nav__list a {
	display: inline-block;
	padding: 8px 2px;
	transition: color 0.2s ease, font-weight 0.2s ease;
}

.site-nav__list a:hover {
	color: var(--color-ink);
}

/* Active menu item — set by WordPress on the LI of the current page. */
.site-nav__list li.current-menu-item > a,
.site-nav__list li.current_page_item > a,
.site-nav__list li.current-menu-ancestor > a,
.site-nav__list li.current_page_ancestor > a,
.site-nav__list li.anka-current > a {
	font-weight: 800;
	color: var(--color-ink);
}

/* Contact pill — dashed circle, top right */
.site-contact {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 67px;
	height: 67px;
	border-radius: 50%;
	border: 1px dashed var(--color-ink);
	font-size: 9px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-weight: 500;
	transition: background 0.2s ease, color 0.2s ease, transform 0.3s ease;
}

.site-contact:hover {
	background: var(--color-ink);
	color: #fff;
	transform: rotate(8deg);
}

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

.hero {
	position: relative;
	padding: 0 var(--gutter) clamp(40px, 6vw, 80px) calc(var(--gutter) + var(--rail));
	min-height: calc(100vh - 140px);
	min-height: calc(100svh - 140px);
	display: flex;
	align-items: center;
}

/* The stage holds the circle, photo, and copy side-by-side. */
.hero__stage {
	position: relative;
	width: 100%;
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(24px, 4vw, 64px);
	align-items: center;
}

.hero__visual {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	max-width: 620px;
	justify-self: start;
}

.hero__circle {
	position: absolute;
	inset: 0;
	background: var(--color-mint);
	border-radius: 50%;
	z-index: 1;
}

.hero__photo {
	position: absolute;
	inset: 6%;
	border-radius: 50%;
	overflow: hidden;
	z-index: 2;
	filter: grayscale(15%);
	transition: filter 0.5s ease;
}

.hero__photo:hover {
	filter: grayscale(0%);
}

.hero__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 35% center;
}

.hero__copy {
	position: relative;
	z-index: 3;
	max-width: 100%;
}

.hero__subhead {
	margin: 0 0 clamp(20px, 2.4vw, 32px);
	font-size: clamp(22px, 3vw, 40px);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.hero__headline {
	margin: 0 0 clamp(20px, 2.4vw, 32px);
	font-size: clamp(48px, 8vw, 132px);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.04em;
	text-transform: uppercase;
}

.hero__greeting {
	margin: 0 0 clamp(20px, 2.4vw, 32px);
	font-size: 11px;
	letter-spacing: 0.35em;
	text-transform: uppercase;
	color: var(--color-ink);
	font-weight: 500;
}

.hero__play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--color-ink);
	background: transparent;
	transition: background 0.2s ease, color 0.2s ease, transform 0.3s ease;
}

.hero__play:hover {
	background: var(--color-ink);
	color: #fff;
	transform: scale(1.05);
}

/* -------------------------------------------------------------------------
   Page / single content
   ------------------------------------------------------------------------- */

.page-content {
	padding: clamp(8px, 1.2vw, 20px) var(--gutter) clamp(60px, 8vw, 120px) calc(var(--gutter) + var(--rail));
}

.page-content__inner {
	max-width: 860px;
	margin: 0 auto;
}

/* Floated images escape the 860px inner column so they hug the page-content
   padding-box edges (matching the banner's left/right alignment). The min()
   clamps to 0 on viewports too narrow for the inner to be centered. */
.page-content__body .wp-block-image.alignright,
.page-content__body figure.alignright {
	margin-right: min(0px, calc((100vw - 2 * var(--gutter) - var(--rail) - 860px) / -2));
}

.page-content__body .wp-block-image.alignleft,
.page-content__body figure.alignleft {
	margin-left: min(0px, calc((100vw - 2 * var(--gutter) - var(--rail) - 860px) / -2));
}

/* Banner sits at the top, spanning the full width of the page-content padding
   box — its left/right edges match the header logo and contact button. */
.page-banner {
	margin: 0 0 clamp(32px, 4vw, 56px);
	border-radius: 6px;
	overflow: hidden;
	height: clamp(140px, 14vw, 220px);
	position: relative;
}

.page-banner__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.page-banner__placeholder {
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 20% 30%, rgba(255,255,255,0.5) 0%, transparent 45%),
		radial-gradient(circle at 80% 70%, rgba(0,0,0,0.05) 0%, transparent 45%),
		var(--color-mint);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px dashed rgba(0, 0, 0, 0.12);
}

.page-banner__hint {
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(0, 0, 0, 0.5);
	padding: 8px 16px;
	border: 1px dashed rgba(0, 0, 0, 0.25);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.4);
}

.page-content__header {
	margin-bottom: 48px;
	position: relative;
	padding-left: 28px;
}

.page-content__header::before {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	bottom: 10px;
	width: 10px;
	border-radius: 5px;
	background: var(--color-mint);
}

.page-content__meta {
	margin: 0 0 12px;
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--color-muted);
}

.page-content__title {
	margin: 0;
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.1;
}

.page-content__body {
	font-size: 18px;
	line-height: 1.7;
}

.page-content__body h2 {
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 700;
	margin: 2em 0 0.6em;
	letter-spacing: -0.01em;
	display: inline-block;
	background-image: linear-gradient(var(--color-mint), var(--color-mint));
	background-repeat: no-repeat;
	background-size: 100% 12px;
	background-position: 0 88%;
	padding: 0 6px;
}

.page-content__body h3 {
	font-size: 22px;
	font-weight: 600;
	margin: 1.8em 0 0.4em;
	position: relative;
	padding-left: 18px;
}

.page-content__body h3::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--color-mint);
}

/* Link highlighter — mint bar under inline text links across content areas.
   Hover expands the bar to cover the whole word height. */
.page-content__body a,
.post-list__excerpt a,
.site-footer__nav a,
.archive a {
	text-decoration: none;
	background-image: linear-gradient(var(--color-mint), var(--color-mint));
	background-repeat: no-repeat;
	background-size: 100% 0.35em;
	background-position: 0 92%;
	padding: 0 2px;
	transition: background-size 0.2s ease;
}

.page-content__body a:hover,
.post-list__excerpt a:hover,
.site-footer__nav a:hover,
.archive a:hover {
	background-size: 100% 100%;
}

.page-content__body img {
	border-radius: 4px;
	margin: 1.5em 0;
}

.page-content__body blockquote {
	border-left: 3px solid var(--color-mint);
	padding-left: 24px;
	margin: 2em 0;
	color: var(--color-muted);
	font-style: italic;
}

/* -------------------------------------------------------------------------
   Archive / post list
   ------------------------------------------------------------------------- */

.archive {
	padding: clamp(60px, 8vw, 120px) var(--gutter);
}

.archive__inner {
	max-width: 880px;
	margin: 0 auto;
}

.archive__header {
	margin-bottom: 64px;
}

.archive__title {
	margin: 0;
	font-size: clamp(40px, 6vw, 88px);
	font-weight: 800;
	letter-spacing: -0.03em;
	text-transform: uppercase;
}

.post-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.post-list__item {
	border-top: 1px solid var(--color-rule);
}

.post-list__item:last-child {
	border-bottom: 1px solid var(--color-rule);
}

.post-list__link {
	display: block;
	padding: 32px 0;
	transition: padding 0.25s ease, background 0.25s ease;
}

.post-list__link:hover {
	padding-left: 16px;
	background: var(--color-mint);
}

.post-list__date {
	display: block;
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--color-muted);
	margin-bottom: 8px;
}

.post-list__title {
	margin: 0;
	font-size: clamp(24px, 3vw, 36px);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.15;
}

.post-list__excerpt {
	margin: 12px 0 0;
	color: var(--color-muted);
	max-width: 600px;
}

.pagination {
	margin-top: 48px;
	font-size: 14px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.pagination .nav-links {
	display: flex;
	gap: 16px;
	justify-content: space-between;
}

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

.site-footer {
	padding: 48px var(--gutter);
	border-top: 1px solid var(--color-rule);
	margin-top: 80px;
}

.site-footer__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 13px;
	color: var(--color-muted);
}

.site-footer__credit {
	margin: 0;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.site-footer__nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 24px;
}

.site-footer__nav a {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 12px;
	transition: color 0.2s ease;
}

.site-footer__nav a:hover {
	color: var(--color-ink);
}

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

/* ---------- Hamburger button (mobile only) ----------------------------- */
/* Fixed-position so it stays visible (and tappable) above the mobile menu
   overlay and any page scroll. Solid white background + subtle shadow so
   the bars never visually merge with text content scrolling underneath. */
.site-hamburger {
	display: none;
	background: var(--color-bg);
	border: 0;
	padding: 0;
	width: 44px;
	height: 44px;
	cursor: pointer;
	position: fixed;
	top: clamp(16px, 3vw, 32px);
	right: var(--gutter);
	z-index: 12;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 6px;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.site-hamburger__bar {
	display: block;
	width: 26px;
	height: 2px;
	background: var(--color-ink);
	border-radius: 1px;
	transition: transform 0.25s ease, opacity 0.2s ease;
}

/* When the menu is open the dedicated X close button takes over visually. */
.site-hamburger[aria-expanded="true"] {
	visibility: hidden;
}

/* ---------- Mobile menu overlay ---------------------------------------- */
.mobile-menu {
	position: fixed;
	inset: 0;
	background: var(--color-bg);
	z-index: 11;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 80px var(--gutter) 60px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.mobile-menu[data-open="true"] {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.mobile-menu__close {
	position: absolute;
	top: clamp(16px, 3vw, 32px);
	right: var(--gutter);
	width: 44px;
	height: 44px;
	background: var(--color-bg);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	color: var(--color-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
	transition: transform 0.2s ease;
}

.mobile-menu__close:hover {
	transform: rotate(90deg);
}

.mobile-menu__nav {
	width: 100%;
	max-width: 360px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
}

.mobile-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 24px;
	text-align: center;
}

.mobile-menu__list a {
	display: inline-block;
	padding: 8px 4px;
	font-size: 22px;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--color-ink);
	transition: opacity 0.2s ease;
}

.mobile-menu__list li.current-menu-item > a,
.mobile-menu__list li.current_page_item > a,
.mobile-menu__list li.current-menu-ancestor > a,
.mobile-menu__list li.current_page_ancestor > a,
.mobile-menu__list li.anka-current > a {
	font-weight: 800;
	background-image: linear-gradient(var(--color-mint), var(--color-mint));
	background-repeat: no-repeat;
	background-size: 100% 0.35em;
	background-position: 0 92%;
	padding-left: 8px;
	padding-right: 8px;
}

.mobile-menu__list a:hover {
	opacity: 0.7;
}

.mobile-menu__contact {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 16px;
	padding: 16px 32px;
	border: 1px solid var(--color-ink);
	border-radius: 999px;
	font-size: 12px;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	font-weight: 500;
	color: var(--color-ink);
	transition: background 0.2s ease, color 0.2s ease;
}

.mobile-menu__contact:hover {
	background: var(--color-ink);
	color: var(--color-bg);
}

body.anka-menu-open {
	overflow: hidden;
}

/* ---------- Mobile (≤900px) -------------------------------------------- */
@media (max-width: 900px) {
	.site-nav {
		display: none;
	}

	.site-contact {
		display: none;
	}

	.site-hamburger {
		display: flex;
	}

	.site-logo__subtitle {
		display: none;
	}

	.site-header {
		padding-left: var(--gutter);
	}

	.hero {
		padding-left: var(--gutter);
		min-height: calc(100vh - 100px);
		min-height: calc(100svh - 100px);
	}

	.page-content {
		padding-left: var(--gutter);
	}

	.hero__stage {
		grid-template-columns: 1fr;
		gap: 24px;
		padding-top: 0;
	}

	.hero__visual {
		max-width: min(62vw, 360px);
		margin: 0 auto;
		justify-self: center;
	}

	.hero__copy {
		text-align: center;
	}

	.hero__subhead {
		margin-bottom: 12px;
	}

	.hero__headline {
		font-size: clamp(56px, 18vw, 96px);
		margin-bottom: 16px;
	}

	.hero__greeting {
		margin-bottom: 16px;
	}

	.hero__play {
		display: inline-flex;
	}

	/* Circles inside body copy go full-width centered on mobile, and the
	   alignment-margin overrides + shape-margin from the desktop float rules
	   are reset so they don't push the image off-center. */
	figure.is-style-circle.alignleft,
	figure.is-style-circle.alignright,
	.wp-block-image.is-style-circle.alignleft,
	.wp-block-image.is-style-circle.alignright {
		float: none !important;
		margin-left: auto !important;
		margin-right: auto !important;
		margin-top: 1.5em !important;
		margin-bottom: 1.5em !important;
		width: min(85%, 380px) !important;
		max-width: 380px !important;
		shape-outside: none;
		shape-margin: 0;
	}

	/* Caption: when stacked centered on mobile, the SVG can sit just below */
	figure.is-style-circle.has-curved-caption,
	.wp-block-image.is-style-circle.has-curved-caption {
		margin-bottom: clamp(36px, 6vw, 56px) !important;
	}
}

@media (max-width: 600px) {
	.hero__visual {
		max-width: min(72vw, 320px);
	}

	.hero__headline {
		font-size: clamp(52px, 16vw, 80px);
	}

	.hero__subhead {
		font-size: clamp(18px, 5vw, 24px);
	}
}

/* -------------------------------------------------------------------------
   WordPress core blocks — make sure standard wp-block content looks right
   ------------------------------------------------------------------------- */

.alignwide {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}

.alignfull {
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.wp-block-image figcaption {
	font-size: 13px;
	color: var(--color-muted);
	text-align: center;
	margin-top: 8px;
}

.wp-block-quote {
	border-left: 3px solid var(--color-mint);
	padding-left: 24px;
	margin: 2em 0;
	color: var(--color-muted);
	font-style: italic;
}

/* --- Circle image style (custom block style) ----------------------------
   Adds circular cropping when "Circle" is selected in the block editor.
   Combine with Align Left / Align Right to wrap text around the circle. */

figure.is-style-circle img,
.wp-block-image.is-style-circle img {
	border-radius: 50%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center;
	width: 100%;
	height: auto;
	border: 8px solid var(--color-mint);
	box-sizing: border-box;
}

/* Default constraint applies to inline/centered circles (no float). Selectors
   are unscoped so they work on the homepage, inner pages, and any wrapper. */
figure.is-style-circle,
.wp-block-image.is-style-circle {
	max-width: clamp(200px, 28vw, 320px);
	margin: 0.5em auto 1.5em;
}

/* Floated circles get larger — matches the visual weight you see in the
   block editor — and use a negative side-margin so they hug the page-content
   padding-box edge (i.e. align with the banner/contact-button edges) rather
   than the narrower 860px text column. */
figure.is-style-circle.alignleft,
.wp-block-image.is-style-circle.alignleft,
.alignleft:has(figure.is-style-circle),
.alignleft:has(img.is-style-circle) {
	float: left;
	margin-top: 0.4em;
	margin-right: 2em;
	margin-bottom: 1em;
	margin-left: clamp(40px, 5vw, 96px) !important;
	/* Shape-margin extends the circle outward, ensuring text wraps around an
	   area that includes the caption SVG below the image (prevents overlap). */
	shape-outside: border-box circle();
	shape-margin: 40px;
	width: 45%;
	max-width: 400px;
	min-width: 220px;
}

figure.is-style-circle.alignright,
.wp-block-image.is-style-circle.alignright,
.alignright:has(figure.is-style-circle),
.alignright:has(img.is-style-circle) {
	float: right;
	margin-top: 0.4em;
	margin-right: clamp(40px, 5vw, 96px) !important;
	margin-bottom: 1em;
	margin-left: 2em;
	shape-outside: border-box circle();
	shape-margin: 40px;
	width: 45%;
	max-width: 400px;
	min-width: 220px;
}

/* Shrink the wrapper to the actual image width so a centered caption lines
   up under the image. !important wins against the size-large class and any
   page-builder rules that try to set a fixed width on the wrapper. */
.wp-block-image.is-style-circle.alignright,
.wp-block-image.is-style-circle.alignleft {
	width: -moz-fit-content !important;
	width: fit-content !important;
	max-width: min(45%, 400px) !important;
	min-width: 0 !important;
}

/* Inner figure must not have its own float or fixed width — let it adapt to
   the image so wrapper / figure / image all share the same bounds. */
.wp-block-image.is-style-circle > figure {
	float: none !important;
	margin: 0 !important;
	width: auto !important;
	max-width: 100% !important;
}

.wp-block-image.is-style-circle > figure > img {
	display: block !important;
	margin: 0 !important;
	max-width: 100% !important;
}

/* Default (non-curved) figcaption styling — still shown if the JS hasn't
   run, or when the circle figure has no caption it's a no-op. */
figure.is-style-circle figcaption,
.wp-block-image.is-style-circle figcaption {
	text-align: center;
	font-size: 12px;
	color: var(--color-muted);
	margin-top: 10px;
}

/* Curved-caption styling.
   Strategy: wrapper stays SQUARE (so shape-outside: circle() perfectly hugs
   the image with text wrap), and the SVG caption is absolutely positioned
   just below it. A margin-bottom on the wrapper reserves the vertical space
   so text after the float doesn't crash into the caption. */
figure.is-style-circle.has-curved-caption,
.wp-block-image.is-style-circle.has-curved-caption {
	position: relative !important;
	margin-bottom: clamp(24px, 3vw, 40px) !important;
}

/* Hide the original figcaption text completely — only the curved SVG should
   be visible. display:none is the nuclear option that no other CSS can
   override visually. */
figure.is-style-circle.has-curved-caption figcaption,
.wp-block-image.is-style-circle.has-curved-caption figcaption,
figure.is-style-circle.has-curved-caption .wp-element-caption,
.wp-block-image.is-style-circle.has-curved-caption .wp-element-caption {
	display: none !important;
}

figure.is-style-circle .circle-caption-svg,
.wp-block-image.is-style-circle .circle-caption-svg {
	position: absolute !important;
	/* top / left / width / height are set by JS based on the actual image
	   size. These are fallbacks for browsers without JS — no !important so
	   the JS-set inline styles can override them. */
	top: calc(100% - 92px);
	left: 0;
	right: 0;
	width: 100%;
	height: auto;
	aspect-ratio: 600 / 100;
	margin: 0 !important;
	pointer-events: none !important;
	color: var(--color-muted) !important;
	font-family: var(--font-sans) !important;
	font-weight: 500 !important;
	overflow: visible !important;
	/* z-index above the image so the curved caption stays visible when it
	   overlaps the bottom of the photo. */
	z-index: 5 !important;
}

figure.is-style-circle img,
.wp-block-image.is-style-circle img {
	position: relative;
	z-index: 1;
}

@media (max-width: 700px) {
	.page-content__body .wp-block-image.is-style-circle.alignleft,
	.page-content__body .wp-block-image.is-style-circle.alignright {
		float: none;
		margin: 1.5em auto;
	}
}

/* ---------- Mobile overrides for circle images ------------------------- */
/* Must come AFTER the desktop rules above so the cascade favors these
   with equal specificity + !important. */
@media (max-width: 900px) {
	figure.is-style-circle.alignleft,
	figure.is-style-circle.alignright,
	.wp-block-image.is-style-circle.alignleft,
	.wp-block-image.is-style-circle.alignright {
		float: none !important;
		display: block !important;
		margin-left: auto !important;
		margin-right: auto !important;
		margin-top: 1.5em !important;
		margin-bottom: clamp(40px, 7vw, 64px) !important;
		width: min(85%, 380px) !important;
		max-width: 380px !important;
		min-width: 0 !important;
		shape-outside: none !important;
		shape-margin: 0 !important;
	}
}
