/*
Theme Name: Pantlin
Theme URI: https://michaelpantlin.nl
Author: Matiyin
Description: Lightweight bilingual (EN/NL) classic theme for the author Michael Pantlin and his books.
Version: 1.0.32
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: pantlin
*/

:root {
	--ground: var(--wp--preset--color--ground, #F9F8F6);
	--ink: var(--wp--preset--color--ink, #2B4254);
	--coral: var(--wp--preset--color--coral, #F25132);
	--blue: var(--wp--preset--color--blue, #2D72A9);
	--blue-dark: var(--wp--preset--color--blue-dark, #1C4F78);
	--muted: var(--wp--preset--color--muted, #4A5E6E);
	--teal: var(--wp--preset--color--teal, #E6F0F0);
	--grey: var(--wp--preset--color--grey, #EEF2F4);
	--line: var(--wp--preset--color--line, #DCE1E5);
	--white: #fff;
	--sans: var(--wp--preset--font-family--montserrat, system-ui, sans-serif);
	--serif: var(--wp--preset--font-family--alegreya, Georgia, serif);
	--content: var(--wp--style--global--content-size, 720px);
	--wide: var(--wp--style--global--wide-size, 1120px);
	--gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
main { display: block; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.site-header,
	.site-header__bar,
	.site-logo::after,
	.site-logo img,
	.site-nav .menu a,
	.lang-switch { transition: none; }
}

/* Soft fade-and-rise as sections enter view. Hidden only after html.js, so content stays visible if scripting is off.
   Kept as separate selectors: :is() would inherit the strongest one and override the 3D exception. */
@media (prefers-reduced-motion: no-preference) {
	html.js .hero__logo,
	html.js .hero__text > .rule,
	html.js .hero__text > .display,
	html.js .hero__text > .label,
	html.js .featured__cover,
	html.js .featured__text,
	html.js .section,
	html.js .about-hero__portrait,
	html.js .about-hero > div:not(.about-hero__portrait),
	html.js .wrap--narrow:not(.page-head) > .entry,
	html.js .wrap--narrow > section,
	html.js .page-head,
	html.js .book-head__cover,
	html.js .book-head__text {
		opacity: 0;
		transform: translate3d(0, 22px, 0);
	}

	/* A transformed parent flattens the 3D book, so those covers fade only. */
	html.js .featured__cover--3d,
	html.js .book-head__cover:has(pantlin-book) {
		transform: none;
	}

	html.js .hero__logo.is-in,
	html.js .hero__text > .rule.is-in,
	html.js .hero__text > .display.is-in,
	html.js .hero__text > .label.is-in,
	html.js .featured__cover.is-in,
	html.js .featured__text.is-in,
	html.js .section.is-in,
	html.js .about-hero__portrait.is-in,
	html.js .about-hero > div:not(.about-hero__portrait).is-in,
	html.js .wrap--narrow:not(.page-head) > .entry.is-in,
	html.js .wrap--narrow > section.is-in,
	html.js .page-head.is-in,
	html.js .book-head__cover.is-in,
	html.js .book-head__text.is-in {
		opacity: 1;
		transform: none;
		transition:
			opacity .7s cubic-bezier(.22, 1, .36, 1),
			transform .7s cubic-bezier(.22, 1, .36, 1);
		transition-delay: var(--reveal-delay, 0ms);
	}

	html.js .hero__later { opacity: 0; }
	html.js .hero__later.is-in {
		opacity: 1;
		transition: opacity .7s cubic-bezier(.22, 1, .36, 1);
	}
}

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 20px; font-family: var(--sans); }
.skip-link:focus { left: 8px; color: #fff; }

/* Layout */
.wrap { max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--content) + 2 * var(--gutter)); }
.section { padding-block: 104px 112px; }
.band--teal { background: var(--teal); }
.band--grey { background: var(--grey); }
.band--ground { background: var(--ground); }
.featured__title a { color: inherit; }
.featured .subtitle:has(+ .featured__pill) { margin-bottom: 8px; }
.featured__pill { display: inline-block; margin: 0 0 16px; }
.band .section { padding-block: 88px 96px; }
.rule { width: 56px; height: 2px; background: var(--coral); margin-bottom: 20px; }
.rule--blue { background: var(--blue); }

/* Type helpers */
.display, .page-title, .featured__title, .section-title { font-family: var(--sans); font-weight: 400; margin: 0; }
.display { font-size: clamp(42px, 9vw, 64px); line-height: 1.05; color: var(--coral); }
.page-title { font-size: clamp(40px, 8vw, 54px); line-height: 1.1; color: var(--ink); }
.page-title--coral { color: var(--coral); }
.section-title { font-size: clamp(28px, 5vw, 34px); color: var(--blue); }
.label { font-family: var(--sans); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 14px 0 24px; }
.subtitle { font-style: italic; font-size: 24px; margin: 10px 0 24px; }
.lead { font-size: 23px; line-height: 1.55; margin: 20px 0 0; max-width: 32em; }
.link-sans { font-family: var(--sans); font-size: 15px; font-weight: 500; }
.link-sans--small { font-size: 14px; }
.section-title::before { content: none; }
.section__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-bottom: 48px; }
.section__intro { margin: -24px 0 40px; color: var(--muted); }

/* Buttons */
.btn, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px;
	border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff;
	font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none !important; cursor: pointer;
	transition: background-color .15s, color .15s;
}
.btn:hover, .wp-block-button__link:hover { background: #1D2F3D; border-color: #1D2F3D; color: #fff; }
.btn--ghost, .is-style-outline > .wp-block-button__link { background: transparent; color: var(--ink); }
.btn--ghost:hover, .is-style-outline > .wp-block-button__link:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.buttons { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 40;
	background: transparent;
	transition: transform .28s ease, opacity .7s cubic-bezier(.22, 1, .36, 1);
}
@media (prefers-reduced-motion: no-preference) {
	html.js .site-header--home { opacity: 0; }
	html.js .site-header--home.is-settled { opacity: 1; }
}
html.js .site-header--home:not(.is-settled) { pointer-events: none; }
.site-header.is-hidden { transform: translateY(-100%); pointer-events: none; }
.site-header.is-hidden .site-header__bar,
.site-header.is-hidden .site-logo::after,
.site-header.is-hidden .site-logo img,
.site-header.is-hidden .site-nav .menu a,
.site-header.is-hidden .lang-switch { transition: none; }
.site-header.is-raised { background: var(--white); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
.site-header__bar {
	display: flex; align-items: center; justify-content: space-between; gap: 16px 32px;
	padding-block: 28px; font-family: var(--sans);
	transition: padding .2s ease;
}
.site-header.is-raised .site-header__bar { padding-block: 10px; }
.site-logo { position: relative; display: inline-flex; }
.site-header--home:not(.is-raised) .site-logo { display: none; }
.site-logo img { width: auto; height: 64px; transition: height .2s ease; }
.site-logo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--blue);
	-webkit-mask: url("assets/img/tree-mark-blue.svg") center / contain no-repeat;
	mask: url("assets/img/tree-mark-blue.svg") center / contain no-repeat;
	opacity: 0;
	transition: opacity .15s ease;
	pointer-events: none;
}
.site-logo:hover::after,
.site-logo:focus-visible::after { opacity: 1; }
.site-header.is-raised .site-logo img { height: 40px; }
.site-nav { display: flex; align-items: center; gap: 8px 36px; margin-left: auto; font-size: 16px; line-height: 1; }
.site-nav .menu { display: flex; align-items: center; gap: 8px 36px; margin: 0; padding: 0; list-style: none; }
.site-nav .menu a { color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; transition: min-height .2s ease; }
.site-header.is-raised .site-nav .menu a { min-height: 36px; }
.site-nav .menu a:hover { color: var(--blue); text-decoration: none; }
.site-nav .current-menu-item > a,
.site-nav .current-menu-parent > a { color: var(--blue); font-weight: 600; }
.lang-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; letter-spacing: .08em; line-height: 1; transition: min-height .2s ease; }
.site-header.is-raised .lang-switch { min-height: 36px; }
.lang-switch a { color: var(--muted); }
.lang-switch [aria-hidden] { color: #A3B1BB; }
.lang-switch .is-current { position: relative; font-weight: 600; }
.lang-switch .is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--coral); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; padding-block: 56px 96px; }
.hero__logo { display: block; flex: 0 0 280px; width: 280px; height: 280px; overflow: visible; }
html.js .hero__logo:not(.is-in) :is(.stl-book, .stl-half-l, .stl-half-r, .stl-trunk, .stl-leaf, .stl-berry) { animation: none; }
.hero__text { flex: 1 1 440px; min-width: 0; }
.hero .label { margin-bottom: 28px; }
.hero__intro { margin: 0; max-width: 32em; font-size: 23px; line-height: 1.55; }
.hero__text > p:last-child { margin: 22px 0 0; }

/* Featured book */
.featured { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 88px; padding-block: 96px; }
.featured__cover { flex: 0 0 300px; width: 300px; }
.featured__text { flex: 1 1 420px; min-width: 0; }
.featured__title { font-size: clamp(34px, 6vw, 46px); line-height: 1.1; }
.featured__tagline { margin: 0 0 32px; max-width: 30em; }
.featured__meta { margin: 22px 0 0; font-size: 18px; color: var(--muted); }

/* Covers */
.cover { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; background: #3E5468; }
.cover--empty { display: flex; align-items: flex-end; padding: 14px; color: #fff; font-family: var(--sans); font-size: 13px; line-height: 1.2; }

/* Books */
.book-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px 64px; }
a.book {
	display: flex; min-width: 0; text-decoration: none; color: inherit;
	padding: 14px 18px; margin: -14px -18px; border-radius: 6px;
	transition: background-color .15s ease;
}
a.book:hover { background: rgba(255, 255, 255, .5); text-decoration: none; }
a.book--card { gap: 28px; align-items: flex-start; }
a.book--row, a.book--mini { gap: 20px; align-items: center; }
a.book .book__body { display: flex; flex-direction: column; min-width: 0; }
a.book--card .book__body { gap: 0; }
a.book--row .book__body, a.book--mini .book__body { gap: 4px; }
a.book .book__title { display: block; font-family: var(--sans); font-weight: 500; font-size: 22px; line-height: 1.25; color: var(--ink); }
a.book--row .book__title, a.book--mini .book__title { font-size: 20px; }
a.book .book__sub { display: block; font-style: italic; color: var(--muted); margin: 4px 0 0; }
a.book--card .book__sub { margin-bottom: 12px; }
a.book--card .book__sub:has(+ .book__pill) { margin-bottom: 6px; }
a.book--row .book__sub { margin: 0; }
a.book .book__excerpt { display: block; margin: 0 0 14px; }
a.book .book__pill { display: inline-block; align-self: start; width: max-content; margin: 0 0 12px; }
a.book .book__cta { display: inline-block; margin: 0; color: var(--blue); }
a.book .book__trans { display: block; margin: 0; font-size: 18px; color: var(--muted); }
.book__cover { flex-shrink: 0; }
a.book--card .book__cover { flex: 0 0 140px; width: 140px; }
.book--card .book__cover,
.featured__cover:not(.featured__cover--3d) {
	position: relative; display: block; border-radius: 6px;
	box-shadow: 0 2px 5px rgba(43, 66, 84, .11), 0 6px 14px rgba(43, 66, 84, .09);
}
.book--card .book__cover .cover,
.featured__cover:not(.featured__cover--3d) .cover { border-radius: 6px; box-shadow: none; }
.book--card .book__cover::after,
.featured__cover:not(.featured__cover--3d)::after {
	content: ""; position: absolute; top: 0; bottom: 0; border-radius: inherit;
	pointer-events: none; z-index: 1;
	background: linear-gradient(90deg,
		rgba(255, 255, 255, .09) 0%,
		rgba(255, 255, 255, .02) 26%,
		rgba(43, 66, 84, .07) 48%,
		rgba(20, 30, 40, .1) 58%,
		rgba(43, 66, 84, .03) 78%,
		transparent 100%);
}
.book--card .book__cover::after { left: 4px; width: 5px; }
.featured__cover:not(.featured__cover--3d)::after { left: 8px; width: 7px; }
.pill-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border: 1px solid var(--muted); border-radius: 4px; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); vertical-align: middle; }
.featured__pill { margin-left: 0; }
.row-list { display: grid; gap: 28px; margin-bottom: 72px; }
.book--row .book__cover, .book--mini .book__cover {
	position: relative; flex: 0 0 64px; width: 64px; border-radius: 4px;
	box-shadow: 0 1px 3px rgba(43, 66, 84, .1), 0 4px 8px rgba(43, 66, 84, .08);
}
.book--row .book__cover .cover, .book--mini .book__cover .cover { border-radius: 4px; box-shadow: none; }
.book--row .book__cover::after, .book--mini .book__cover::after {
	content: ""; position: absolute; top: 0; bottom: 0; left: 2px; width: 4px; border-radius: inherit;
	pointer-events: none; z-index: 1;
	background: linear-gradient(90deg,
		rgba(255, 255, 255, .09) 0%,
		rgba(255, 255, 255, .02) 26%,
		rgba(43, 66, 84, .07) 48%,
		rgba(20, 30, 40, .1) 58%,
		rgba(43, 66, 84, .03) 78%,
		transparent 100%);
}
.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px 48px; margin-top: 32px; }

/* Book page */
.book-head { display: flex; flex-wrap: wrap; gap: 32px 36px; align-items: flex-start; padding-block: 56px 52px; margin-bottom: 48px; background: var(--white); }
.book-head.wrap {
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
	padding-inline: calc(var(--gutter) + max(0px, (100vw - var(--wide) - 2 * var(--gutter)) / 2));
	box-sizing: border-box;
}
.book-head__cover { flex: 0 1 420px; width: min(420px, 100%); max-width: 420px; }
.book-head--flat { gap: 40px 72px; }
.book-head--flat .book-head__cover { flex: 0 0 340px; width: min(340px, 60vw); max-width: 340px; }
.book-head__cover .cover { box-shadow: 0 6px 12px rgba(43, 66, 84, .13); }
.book-head__text { flex: 1 1 420px; min-width: 0; }
.book-head__text > p { max-width: 32em; }
.book-head__more { font-size: 18px; color: var(--muted); margin: 18px 0 0; }
.book-body section { margin-bottom: 72px; }
.book-body .section-title { margin-bottom: 24px; }
.panel, .is-style-panel { background: var(--white); padding: 40px; border-radius: 4px; }
.opening { font-style: italic; }
.opening > :first-child { margin-top: 0; } .opening > :last-child { margin-bottom: 0; }
.review { margin: 0 0 40px; }
.review blockquote { margin: 0; padding-left: 20px; border-left: 2px solid var(--coral); font-style: italic; }
.review blockquote p { margin: 0; }
.review figcaption { margin: 10px 0 0 22px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.media-intro { margin: 0 0 20px; }
.media-embed { max-width: 100%; }
.media-embed iframe { display: block; width: 100%; max-width: 100%; border: 0; border-radius: 4px; }

/* About */
.about-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 72px; padding-block: 40px 72px; }
.about-hero > div:last-child { flex: 1 1 420px; min-width: 0; }
.about-hero__portrait { flex: 0 0 300px; width: 300px; height: 300px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 30% 22%, #FCF5DA 0%, #E3F0EB 52%, #BFDFE2 100%); }
.about-hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.page-head { padding-block: 40px 64px; }
.page-head .page-title { margin-bottom: 32px; }

/* Center logo/portrait + rule only when heroes stack; copy stays left-aligned. */
@media (max-width: 900px) {
	.hero__logo,
	.about-hero__portrait { margin-inline: auto; }
	.hero__text,
	.about-hero > div:last-child { flex-basis: 100%; }
	.hero__text .rule,
	.about-hero .rule { margin-inline: auto; }
	.hero__text .display,
	.about-hero .page-title { text-align: center; }
	.hero__text .label,
	.hero__intro,
	.hero__text > p:last-child { text-align: center; }
	.hero__intro,
	.about-hero .lead { margin-inline: auto; }
	.about-hero .lead { text-align: center; }
	.book-head__cover { margin-inline: auto; }
	.book-head__cover,
	.book-head__text { flex-basis: 100%; }
	.book-head__text .rule { margin-inline: auto; }
}

/* Stacked book head: center all copy on tablet; phone keeps title/meta centered only. */
@media (min-width: 701px) and (max-width: 900px) {
	.book-head__text { text-align: center; }
	.book-head__text > p,
	.book-head__more { margin-inline: auto; }
	.book-head__text .buttons { justify-content: center; }
}

/* Substack list */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li + li { border-top: 1px solid var(--line); }
.post-item {
	display: flex; align-items: flex-start; gap: 24px;
	padding: 28px 18px; margin-inline: -18px; border-radius: 6px;
	color: inherit; text-decoration: none;
	transition: background-color .15s ease;
}
.post-item:hover { background: rgba(255, 255, 255, .5); text-decoration: none; }
.post-item__media {
	flex: 0 0 96px; width: 96px; height: 96px;
	border-radius: 50%; overflow: hidden; background: var(--white);
}
.post-item__media img,
.post-item__avatar { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-item__media img { transform: scale(1.28); }
.post-item__body { display: flex; flex-direction: column; min-width: 0; gap: 6px; }
.post-item__date { font-family: var(--sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.post-item__title { font-family: var(--sans); font-weight: 500; font-size: 21px; line-height: 1.3; color: var(--ink); }
.post-item__excerpt { font-size: 18px; font-style: italic; color: var(--muted); }
.substack-btn,
.books-btn { display: none; margin: 32px 0 0; }

/* Footer */
.site-footer { position: relative; overflow: hidden; background: var(--ink); color: #fff; font-family: var(--sans); }
.site-footer__tree { position: absolute; left: 50%; top: -80px; bottom: auto; width: 1200px; max-width: none; height: auto; transform: translateX(-50%); opacity: .48; pointer-events: none; }
.site-footer__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 48px; padding-block: 34px; }
.site-footer p { margin: 0; }
.site-footer__brand { display: flex; align-items: center; gap: 16px; }
.site-footer a.site-footer__logo {
	display: inline-flex;
	flex-shrink: 0;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	text-decoration: none !important;
}
.site-footer a.site-footer__logo:hover { background: transparent; color: inherit; }
.site-footer__logo img { display: block; width: auto; height: 52px; filter: brightness(0) invert(1); }
.site-footer__name { font-size: 17px; font-weight: 500; }
.site-footer__copy { margin-top: 2px !important; font-size: 13px; color: #B8C6D0; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; font-size: 14px; }
.site-footer .menu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #fff; display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; background: transparent; text-decoration: none !important; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.site-footer .menu-item:not(.menu-item-type-custom) a { font-weight: 500; }
.site-footer .menu-item:not(.menu-item-type-custom) a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.site-footer .current-menu-item:not(.menu-item-type-custom):not(.menu-item--home) > a,
.site-footer .current-menu-parent:not(.menu-item-type-custom):not(.menu-item--home) > a,
.site-footer .menu-item:not(.menu-item-type-custom):not(.menu-item--home) > a[aria-current="page"] { background: #fff; border-color: #fff; color: var(--ink); font-weight: 500; }
.site-footer .menu-item--home.current-menu-item > a,
.site-footer .menu-item--home > a[aria-current="page"] { background: transparent; border-color: transparent; color: #fff; }
.site-footer .menu-item-type-custom:not(.menu-item--home) a,
.site-footer .pill a { border: 1px solid #6C8293; }
.site-footer .menu-item-type-custom:not(.menu-item--home) a:hover,
.site-footer .pill a:hover { background: #355064; border-color: #fff; color: #fff; }
.site-footer .menu-item--home a { padding: 0 10px; }
.site-footer .menu-item__home-icon { display: block; width: 22px; height: 22px; }

/* Block content (front end + editor) */
.entry > *, .book-body .entry > * { max-width: var(--content); margin-inline: auto; }
.entry > .alignwide { max-width: var(--wide); }
.entry > .alignfull { max-width: none; width: 100vw; margin-inline: calc(50% - 50vw); }
body { overflow-x: clip; }
.entry > * + * { margin-top: 1.2em; }
.entry h2, .entry h3, .entry h4, .editor-styles-wrapper h2 { margin-top: 1.8em; }
.entry > :first-child { margin-top: 0; }
.entry h2 { font-size: 28px; }

.wp-block-quote { margin-inline: 0; padding-left: 20px; border-left: 2px solid var(--coral); font-style: italic; }
.wp-block-quote cite { display: block; margin-top: 8px; font-family: var(--sans); font-size: 14px; font-style: normal; color: var(--muted); }
.wp-block-pullquote { border: solid var(--ink); border-width: 1px 0; padding: 32px 0; text-align: center; font-style: italic; font-size: 28px; }
.wp-block-pullquote blockquote { border: 0; padding: 0; margin: 0; }
.wp-block-pullquote cite { font-family: var(--sans); font-size: 14px; font-style: normal; color: var(--muted); }

.wp-block-separator { border: 0; border-top: 1px solid var(--line); background: none; opacity: 1; }
.wp-block-separator.is-style-short-rule { width: 56px; border-top: 2px solid var(--coral); margin-inline: 0; }

.is-style-band { background: var(--teal); padding: 72px var(--gutter); }
.is-style-band > * { max-width: var(--content); margin-inline: auto; }
.wp-block-group.is-style-panel { padding: 40px; }

.wp-block-image img, .wp-block-gallery img { border-radius: 0; }
.wp-element-caption, figcaption.wp-element-caption { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.wp-block-media-text { gap: 32px; }
@media (max-width: 700px) { .wp-block-media-text.is-stacked-on-mobile { grid-template-columns: 100% !important; } }

.wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-family: var(--sans); font-size: 16px; }
.wp-block-file .wp-block-file__button { display: none; }
.wp-block-file a:first-child::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .5em; vertical-align: -.12em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m0 0l-5-5m5 5l5-5M4 21h16'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m0 0l-5-5m5 5l5-5M4 21h16'/%3E%3C/svg%3E") center / contain no-repeat; }

.wp-block-audio, .wp-block-video, .wp-block-embed { width: 100%; }
.wp-block-audio audio, .wp-block-video video { width: 100%; }
.wp-block-embed.is-type-video iframe, .wp-block-embed-youtube iframe, .wp-block-embed-vimeo iframe { aspect-ratio: 16 / 9; width: 100%; height: auto; }

.wp-block-details { border-bottom: 1px solid var(--line); padding-block: 12px; }
.wp-block-details summary { font-family: var(--sans); font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; color: var(--blue); }
.wp-block-details[open] summary::after { content: "−"; }

/* Phone */
@media (max-width: 700px) {
	:root { --gutter: 22px; }
	.section { padding-block: 72px 80px; }
	.band .section { padding-block: 64px 72px; }
	.site-header__bar { padding-block: 16px; flex-wrap: nowrap; }
	.site-logo img { width: 44px; height: auto; }
	.site-header.is-raised .site-header__bar { padding-block: 8px; }
	.site-header.is-raised .site-logo img { width: auto; height: 32px; }
	.site-nav { gap: 4px 16px; font-size: 15px; }
	.site-nav .menu { gap: 4px 16px; }
	.hero { padding-block: 24px 64px; gap: 32px; }
	.hero__logo { flex-basis: 200px; width: 200px; height: 200px; }
	.featured { padding-block: 64px; gap: 40px; }
	.featured__cover { flex-basis: 240px; width: 240px; }
	a.book--card { gap: 20px; }
	a.book--card .book__cover { flex-basis: 110px; width: 110px; }
	.about-hero__portrait { flex-basis: 220px; width: 220px; height: 220px; }
	.book-head__text .page-title,
	.book-head__text .subtitle,
	.book-head__text .label { text-align: center; }
	.book-head__text .subtitle,
	.book-head__text .label { margin-inline: auto; }
	.panel, .wp-block-group.is-style-panel { padding: 24px; }
	.post-item { gap: 16px; padding-block: 22px; }
	.post-item__media { flex-basis: 72px; width: 72px; height: 72px; }
	.post-item__title { font-size: 18px; }
	.post-item__excerpt { font-size: 16px; }
	.link-sans--desktop { display: none; }
	.substack-btn,
	.books-btn { display: block; }
	.substack-btn .btn,
	.books-btn .btn { width: 100%; }
	.site-footer__tree { left: auto; right: -260px; bottom: -280px; width: 620px; transform: none; }
	.site-footer__inner { align-items: flex-start; gap: 20px; }
	.site-footer__logo img { height: 44px; }
	.site-footer nav,
	.site-footer .menu { width: 100%; }
	.site-footer .menu-item:not(.menu-item-type-custom) { order: 0; }
	.site-footer .menu::after { content: ""; flex-basis: 100%; order: 1; height: 0; }
	.site-footer .menu-item-type-custom { order: 2; }
	.site-footer a { font-weight: inherit; }
	.site-footer .menu-item:not(.menu-item-type-custom) a { background: rgba(255, 255, 255, .12); border-color: transparent; color: #fff; font-weight: 500; }
	.site-footer .menu-item:not(.menu-item-type-custom) a:hover { background: rgba(255, 255, 255, .2); border-color: transparent; color: #fff; }
	.site-footer .current-menu-item:not(.menu-item-type-custom) > a,
	.site-footer .current-menu-parent:not(.menu-item-type-custom) > a,
	.site-footer .menu-item:not(.menu-item-type-custom) > a[aria-current="page"] { background: #fff; border-color: #fff; color: var(--ink); font-weight: 600; }
	.site-footer .menu-item-type-custom:not(.menu-item--home) a { border-color: #6C8293; }
	.site-footer .menu-item-type-custom:not(.menu-item--home) a:hover { background: #355064; border-color: #fff; color: #fff; }
}

/* About page sections after the editor content */
.wrap--narrow > section { margin-top: 72px; }
.wrap--narrow > section:last-child { margin-bottom: 104px; }
.book-body > section:first-child { margin-top: 0; }
.wrap--narrow > section > .section-title { margin-bottom: 24px; }

/* 3D book */
pantlin-book { --book3d-font: var(--sans); }
.book-head__cover .wp-block-pantlin-book-3d { max-width: none; width: 100%; margin: 0; }
.book-head__cover pantlin-book { display: block; width: 100%; }
.featured__cover--3d { flex-basis: 360px; width: min(360px, 100%); }
.featured__cover--3d .wp-block-pantlin-book-3d { max-width: none; width: 100%; margin: 0; }
.featured__cover--3d pantlin-book { display: block; width: 100%; }
