/* Our Tiny Place — Édition Nocturne.
   Source of truth: Figma "Our Tiny Place — Édition Nocturne (Golden Master)"
   (file Y0ephtjtsHPnQFGBFRy9Qg). Tokens below mirror its variables
   (color/*, space/*, radius/*, layout/*) and text styles 1:1. */

/* ---------- Fonts (self-hosted, OFL — see assets/fonts/LICENSES.txt) ---------- */
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif-latin.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif-italic-latin.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/dm-sans-latin.woff2') format('woff2'); }

:root {
	/* color/bg */
	--bg-base: #201c25;
	--bg-deep: #141117;
	--bg-surface: #2a2430;
	--bg-soft: #352d3a;
	--bg-plum: #463347;
	/* color/line */
	--line: #453c4b;
	--line-strong: #5e5266;
	/* color/text */
	--ink: #f6f0f4;
	--body: #e6dde4;
	--muted: #b6aab9;
	--faint: #8f8394;
	--on-cream: #201c25;
	/* color/accent */
	--rose: #e8cbd3;
	--rose-deep: #d9b1bc;
	--cream: #f8eddf;
	--ember: #c98a6b;
	/* space / radius / layout */
	--s4: 4px; --s8: 8px; --s12: 12px; --s16: 16px; --s24: 24px; --s32: 32px; --s48: 48px; --s64: 64px; --s96: 96px;
	--r-sm: 4px; --r-md: 8px; --r-lg: 16px; --r-pill: 999px;
	--gutter: clamp(20px, 4.2vw, 60px);
	--max: 1440px;
	--read: 680px;
	/* type */
	--serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
	--sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
	--section: clamp(56px, 6vw, 88px);
	/* legacy aliases used by older markup/blocks */
	--hub-accent: var(--rose);
	--hub-tint: var(--bg-surface);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Smooth only for in-page clicks: a visitor landing from a Pin on a section anchor must jump instantly (smooth-on-load stops short). */
html { -webkit-text-size-adjust: 100%; background: var(--bg-deep); }
html:focus-within { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html, html:focus-within { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg-base); color: var(--body); font: 400 16px/1.6 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--bg-plum); color: var(--ink); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.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 !important; width: 1px; word-wrap: normal !important; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cream); color: var(--on-cream); padding: 12px 18px; font-weight: 600; font-size: 14px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Text styles (Figma) ---------- */
.t-display-xl { font: 400 clamp(54px, 6.7vw, 96px)/.92 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.t-display-l, .page-title { font: 400 clamp(40px, 4.5vw, 64px)/1 var(--serif); letter-spacing: -.023em; color: var(--ink); }
.t-h2, .section-head h2 { font: 400 clamp(34px, 3.3vw, 48px)/1.05 var(--serif); letter-spacing: -.02em; color: var(--ink); margin: 0; }
.t-h3 { font: 400 clamp(24px, 2vw, 28px)/1.15 var(--serif); letter-spacing: -.014em; color: var(--ink); margin: 0; }
.label, .kicker, .eyebrow { font: 700 11px/1.3 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--rose); }
.eyebrow--link:hover { color: var(--ink); }
.meta { font: 400 13px/1.4 var(--sans); color: var(--faint); }
em.accent, .accent { font-style: italic; color: var(--rose); }

/* ---------- Buttons (Figma: Button Primary / Ghost / Text link) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: var(--r-sm); background: var(--cream); color: var(--on-cream); font: 600 14px/1.2 var(--sans); letter-spacing: .015em; border: 1px solid var(--cream); transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.btn:hover { background: var(--rose); border-color: var(--rose); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--rose-deep); color: var(--ink); }
.textlink { display: inline-block; padding-bottom: 6px; border-bottom: 1px solid var(--rose); color: var(--ink); font: 600 14px/1.2 var(--sans); transition: color .2s ease; }
.textlink:hover { color: var(--rose); }

/* ---------- Header ---------- */
.topline { background: var(--bg-deep); color: var(--muted); text-align: center; padding: 9px var(--gutter); font-size: 13px; }
.mast { position: relative; z-index: 20; background: var(--bg-base); }
.mast-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); }
.brand-logo { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.brand-name { display: flex; flex-direction: column; gap: 4px; }
.brand-word { font: 400 30px/1 var(--serif); letter-spacing: -.017em; }
.brand-word em { font-style: italic; color: var(--rose); }
.brand-sub { font: 700 10px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.nav-tools { display: flex; align-items: center; gap: 18px; }
.header-search { display: flex; align-items: center; gap: 16px; width: clamp(240px, 24vw, 340px); padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); color: var(--ink); transition: border-color .2s ease; }
.header-search:focus-within { border-color: var(--rose); }
.header-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--ink); }
.header-search input::placeholder { color: var(--muted); }
.header-search__icon { display: grid; place-items: center; order: 2; cursor: pointer; }
.iconbtn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink); }
.menu { display: none; }
.menu .icon-close, .menu[aria-expanded="true"] .icon-open { display: none; }
.menu[aria-expanded="true"] .icon-close { display: block; }
.nav { border-block: 1px solid var(--line); background: var(--bg-base); }
.nav-inner { max-width: var(--max); margin-inline: auto; padding: 16px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.nav a { font: 500 13px/1.3 var(--sans); letter-spacing: .015em; color: var(--ink); padding-block: 2px; border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
.nav a:hover { color: var(--rose); }
.nav a.active { color: var(--rose); border-bottom-color: var(--rose); }

/* ---------- Home: hero ---------- */
.hero { padding-top: 28px; }
.hero-frame { position: relative; border-radius: var(--r-md); overflow: hidden; min-height: clamp(460px, 43vw, 620px); display: flex; align-items: center; background: var(--bg-deep); }
.hero-frame picture, .hero-frame > img { position: absolute; inset: 0; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 17, 23, .88) 0%, rgba(20, 17, 23, .35) 55%, rgba(20, 17, 23, 0) 100%); }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; padding: 56px clamp(28px, 4vw, 56px); max-width: 640px; }
.hero-copy h1 { margin: 0; }
.hero-copy p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--body); max-width: 27em; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.photo-credit { position: absolute; right: 24px; bottom: 24px; z-index: 1; padding: 8px 14px; border-radius: var(--r-sm); background: rgba(20, 17, 23, .7); font-size: 13px; color: var(--muted); }
.promise-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-block: 28px 24px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.promise-strip b { color: var(--ink); font-weight: 600; }

/* ---------- Section heads ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 36px; }
.section-head .label { display: block; margin-bottom: 14px; }
.section-head p { margin: 0; max-width: 20em; color: var(--rose-deep); }

/* ---------- Home: find your space (Hub Row) ---------- */
.find-space { padding-top: var(--section); }
.hub-rows { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.hub-row { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 22px; border-bottom: 1px solid var(--line); transition: border-color .25s ease; }
.hub-row strong { font: 400 28px/1.15 var(--serif); letter-spacing: -.014em; color: var(--ink); font-weight: 400; transition: color .2s ease; }
.hub-row span { font-size: 14px; color: var(--muted); }
.hub-row:hover { border-color: var(--rose); }
.hub-row:hover strong { color: var(--rose); }

/* ---------- Home: journal (Journal Card, staggered) ---------- */
.journal { padding-block: var(--section); }
.journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
.journal-grid > :nth-child(2) { margin-top: 56px; }
.journal-grid > :nth-child(3) { margin-top: 112px; }
.jcard { display: flex; flex-direction: column; gap: 14px; }
.jcard__img { display: block; border-radius: var(--r-md); overflow: hidden; background: var(--bg-surface); }
.jcard__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s ease; }
.journal-grid > :nth-child(2) .jcard__img img { aspect-ratio: 9 / 10; }
.journal-grid > :nth-child(3) .jcard__img img { aspect-ratio: 1 / 1; }
.jcard:hover .jcard__img img { transform: scale(1.03); }
.jcard h3 { margin: 0; font: 400 clamp(24px, 2vw, 28px)/1.15 var(--serif); letter-spacing: -.014em; color: var(--ink); }
.jcard h3 a::after { content: ""; position: absolute; inset: 0; }
.jcard { position: relative; }
.jcard p { margin: 0; font-size: 14px; color: var(--muted); }
.jcard:focus-within { outline: 2px solid var(--rose); outline-offset: 6px; border-radius: var(--r-md); }

/* ---------- Home: point of view ---------- */
.pov { padding-bottom: var(--s96); }
.pov-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px; border-radius: var(--r-md); background: var(--bg-plum); border: 1px solid var(--line-strong); }
.pov-panel h2 { margin: 18px 0 0; }
.pov-panel p { margin: 0 0 12px; color: var(--body); }
.pov-list { list-style: none; margin: 0; padding: 0; }
.pov-list li { padding: 14px 0; border-bottom: 1px solid var(--line-strong); font-size: 14px; color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-deep); color: var(--muted); padding-block: 64px 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 32px 64px; }
.footer p { font-size: 14px; max-width: 22em; margin: 18px 0 0; }
.footer-title { margin: 0 0 16px; font: 700 11px/1.3 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--rose); }
.footer-grid a:not(.brand) { display: block; margin-bottom: 10px; font-size: 14px; color: var(--body); transition: color .2s ease; }
.footer-grid a:not(.brand):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--ink); }

/* ---------- Breadcrumbs, notices, pagination, forms ---------- */
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--faint); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs [aria-current] { color: var(--ink); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice { padding: 14px 18px; border-radius: var(--r-sm); background: var(--bg-soft); border: 1px solid var(--ember); font-size: 14px; color: var(--body); }
.notice strong { margin-right: 6px; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--ember); }
.pagination ul { list-style: none; margin: 48px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-size: 14px; color: var(--ink); }
.pagination .current { background: var(--cream); color: var(--on-cream); border-color: var(--cream); }
.pagination a:hover { border-color: var(--rose); }
.search-form { display: flex; align-items: center; gap: 12px; max-width: 620px; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); }
.search-form:focus-within { border-color: var(--rose); }
.search-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 18px; color: var(--ink); padding: 8px 0; }
.search-form input::placeholder { color: var(--muted); }
.chip { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: 500 13px/1.3 var(--sans); color: var(--muted); transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.chip:hover { color: var(--ink); border-color: var(--rose-deep); }
.chip.active { background: var(--bg-plum); border-color: var(--rose-deep); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
mark.tr-placeholder { background: transparent; color: var(--ember); font-weight: 600; }

/* ---------- Hub ---------- */
.hub-intro { padding-block: 28px 56px; }
.hub-intro .breadcrumbs { margin-bottom: 28px; }
.hub-intro__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 64px; align-items: center; }
.hub-intro__copy { display: flex; flex-direction: column; gap: 20px; }
.hub-intro__copy h1, .hub-intro__copy p { margin: 0; }
.hub-intro__copy p.lede { font-size: 19px; line-height: 1.6; color: var(--body); }
.hub-intro__img { border-radius: var(--r-md); overflow: hidden; }
.hub-intro__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hub-topics { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hub-topics li { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: 500 13px/1.3 var(--sans); color: var(--muted); }
.hub-topics li:first-child { background: var(--bg-plum); border-color: var(--rose-deep); color: var(--ink); }
.feature-card { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); border-radius: var(--r-md); overflow: hidden; background: var(--bg-surface); border: 1px solid var(--line); }
.feature-card__media img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.feature-card__body { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 48px; }
.feature-card__body h2, .feature-card__body h3 { margin: 0; font: 400 clamp(30px, 3vw, 44px)/1.05 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.feature-card__body p { margin: 0; color: var(--muted); }
.feature-card__body .btn { align-self: flex-start; }
.hub-feature { padding-bottom: 64px; }
.hub-ideas { padding-bottom: 72px; }
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 48px; }
.gcard { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px 0 28px; border-top: 1px solid var(--line); }
.gcard h3 { margin: 0; font: 400 28px/1.15 var(--serif); letter-spacing: -.014em; color: var(--ink); }
.gcard h3 a::after { content: ""; position: absolute; inset: 0; }
.gcard p { margin: 0; color: var(--muted); }
.gcard .textlink { align-self: flex-start; }
.gcard:hover h3 { color: var(--rose); }
.empty-state { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; padding: 40px; border-radius: var(--r-md); background: var(--bg-surface); border: 1px solid var(--line); }
.empty-state p { margin: 0 0 18px; color: var(--muted); }
.empty-state__lead { font: 400 clamp(26px, 2.4vw, 34px)/1.2 var(--serif) !important; color: var(--ink) !important; }
.mini-read { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.mini-read img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-sm); }
.mini-read span { font: 400 19px/1.25 var(--serif); color: var(--ink); }
.mini-read small { display: block; margin-bottom: 4px; font: 700 10px/1.3 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--rose); }
.edit-tiles { padding-bottom: var(--s96); }
.edit-tiles__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.edit-tile { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 315 / 200; background: var(--bg-surface); }
.edit-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.edit-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 17, 23, 0) 35%, rgba(20, 17, 23, .85) 100%); }
.edit-tile span { position: absolute; left: 20px; bottom: 18px; z-index: 1; font: 400 26px/1.1 var(--serif); color: var(--ink); }
.edit-tile:hover img { transform: scale(1.04); }

/* ---------- Article ---------- */
.article-head { max-width: 880px; margin-inline: auto; padding: 32px var(--gutter) 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.article-head .breadcrumbs ol { justify-content: center; }
.article-title { margin: 0; font: 400 clamp(40px, 4.5vw, 64px)/1 var(--serif); letter-spacing: -.023em; color: var(--ink); text-wrap: balance; }
.article-dek { margin: 0; max-width: 32em; font-size: 19px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.article-meta { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; font-size: 13px; color: var(--faint); }
.article-meta span + span::before { content: "·"; margin: 0 10px; }
.article-head .notice { text-align: left; max-width: var(--read); }
.article-hero { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.article-hero img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--r-md); }
.article-hero figcaption { margin-top: 12px; font-size: 13px; color: var(--faint); }
.article-body { max-width: calc(var(--read) + 2 * var(--gutter)); margin-inline: auto; padding: 56px var(--gutter) 72px; }
.article-body.has-toc { max-width: calc(var(--read) + 300px + 2 * var(--gutter)); display: grid; grid-template-columns: 220px minmax(0, var(--read)); gap: 80px; justify-content: center; }
.toc { position: sticky; top: 28px; align-self: start; }
.toc summary { list-style: none; cursor: pointer; padding-bottom: 8px; font: 700 11px/1.3 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--rose); }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.toc a { display: grid; grid-template-columns: 26px 1fr; padding: 11px 0; font-size: 14px; line-height: 1.4; color: var(--muted); transition: color .2s ease; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-size: 13px; color: var(--rose); }
.toc a:hover { color: var(--ink); }

/* Prose (block content and pipeline content share it) */
.prose { min-width: 0; font-size: 18px; line-height: 1.75; color: var(--body); overflow-wrap: break-word; }
.prose > * { margin-block: 0 1.2em; }
.prose h2 { margin: 2em 0 .6em; padding-top: 28px; border-top: 1px solid var(--line); font: 400 clamp(30px, 3vw, 44px)/1.08 var(--serif); letter-spacing: -.02em; color: var(--ink); scroll-margin-top: 24px; text-wrap: balance; }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin: 1.6em 0 .5em; font: 600 19px/1.4 var(--sans); color: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rose); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose a:hover { color: var(--rose); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--rose); }
.prose img { height: auto; margin-inline: auto; border-radius: var(--r-md); }
.prose figure { margin: 2.2em 0; }
.prose figure img { width: 100%; }
.prose figure.tr-portrait img, .prose .wp-block-image.is-style-portrait img { width: auto; max-width: 100%; max-height: 640px; }
.prose figcaption { margin-top: 10px; font-size: 13px; color: var(--faint); text-align: center; }
.prose blockquote { margin-left: 0; padding-left: 24px; border-left: 2px solid var(--rose); font: italic 400 26px/1.4 var(--serif); color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose .wp-block-table { overflow-x: auto; margin: 2em 0; }
.prose table { width: 100%; min-width: 520px; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.5; background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.prose th, .prose td { padding: 14px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.prose thead th { border-top: 0; background: var(--bg-plum); font: 700 11px/1.3 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--rose); }
.prose tbody td:first-child { color: var(--ink); }
.callout { margin: 2.2em 0; padding: 24px 28px; border-left: 3px solid var(--rose-deep); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--bg-soft); }
.callout::before { display: block; margin-bottom: 8px; font: 600 14px/1.2 var(--sans); color: var(--ink); }
.callout > * { margin-block: 0 .8em; font-size: 16px; line-height: 1.6; }
.callout > :last-child { margin-bottom: 0; }
.callout--measure::before { content: "Measure first"; }
.callout--renter::before { content: "Renter note"; }
.callout--renter { border-left-color: var(--cream); }
.callout--safety::before { content: "Safety & weight limits"; }
.callout--safety { border-left-color: var(--ember); }

/* Rich (production pipeline) content: inline-styled HTML restyled without touching the markup */
.prose--rich [style*="font-family:Arial"] { font-family: var(--sans) !important; }
.prose--rich [style*="font-family:Georgia"] { font-family: var(--serif) !important; }
.prose--rich [style*="border-radius"] { border-radius: var(--r-md) !important; }
.prose--rich [style*="box-shadow"] { box-shadow: none !important; }
.prose--rich p[style] { font-size: 18px !important; line-height: 1.75 !important; color: var(--body) !important; }
.prose--rich > p:first-child[style] { font-size: 20px !important; color: var(--ink) !important; font-weight: 400 !important; }
.prose--rich > p:first-child > span[style*="float:left"] { font-family: var(--serif) !important; color: var(--rose) !important; font-weight: 400 !important; }
.prose--rich div[style*="text-transform:uppercase"] { font: 700 11px/1.3 var(--sans) !important; letter-spacing: .13em !important; color: var(--rose) !important; }
.prose--rich > div[style*="background"]:not([style*="overflow-x"]) { background: var(--bg-soft) !important; border: 0 !important; border-left: 3px solid var(--rose-deep) !important; border-radius: 0 var(--r-md) var(--r-md) 0 !important; padding: 24px 28px !important; margin: 2.2em 0 !important; color: var(--body) !important; }
.prose--rich > div[style*="background"] div[style*="font-size:17px"], .prose--rich > div[style*="background"] ul[style] { font-size: 17px !important; line-height: 1.65 !important; color: var(--body) !important; }
.prose--rich > div[style*="background"] > span[style*="font-size"]:first-child { color: var(--rose) !important; }
.prose--rich > div[style*="background:#1c1a17"][style] { background: var(--bg-plum) !important; border-left: 0 !important; border-radius: var(--r-md) !important; text-align: center; padding: 36px 40px !important; }
.prose--rich > div[style*="background:#1c1a17"] div[style*="font-family:Georgia"] { font-size: clamp(24px, 2.2vw, 30px) !important; line-height: 1.35 !important; color: var(--ink) !important; }
.prose--rich > div[style*="font-style:italic"][style*="border-left"] { background: none !important; border-left: 2px solid var(--rose) !important; border-radius: 0 !important; padding: 4px 0 4px 26px !important; font: italic 400 clamp(24px, 2.4vw, 30px)/1.35 var(--serif) !important; color: var(--ink) !important; }
.prose--rich > div[style]:has(> ol[style*="columns"]) { background: none !important; border: 0 !important; border-block: 1px solid var(--line) !important; border-radius: 0 !important; padding: 20px 0 !important; margin: 2.4em 0 !important; }
.prose--rich ol[style*="columns"] { list-style: none; padding: 0 !important; counter-reset: rtoc; font-size: 15px !important; column-gap: 40px !important; }
.prose--rich ol[style*="columns"] li { counter-increment: rtoc; break-inside: avoid; margin: 0 !important; padding: 7px 0; display: grid; grid-template-columns: 30px 1fr; }
.prose--rich ol[style*="columns"] li::before { content: counter(rtoc, decimal-leading-zero); font-size: 13px; line-height: 1.9; color: var(--rose); }
.prose--rich ol[style*="columns"] a { color: var(--muted) !important; border: 0 !important; text-decoration: none; }
.prose--rich ol[style*="columns"] a:hover { color: var(--ink) !important; }
.prose--rich h2[style] { font: 400 clamp(30px, 3vw, 44px)/1.08 var(--serif) !important; letter-spacing: -.02em; color: var(--ink) !important; margin: 2em 0 .6em !important; }
.prose--rich h2[style*="display:flex"] { align-items: baseline !important; gap: 14px !important; padding-top: 28px; border-top: 1px solid var(--line); }
.prose--rich h2[style*="display:flex"] > span:first-child { background: none !important; color: var(--rose) !important; min-width: 0 !important; height: auto !important; font: inherit !important; margin: 0 !important; }
.prose--rich h2[style*="display:flex"] > span:first-child::after { content: "."; }
.prose--rich span[id^="s-"] { scroll-margin-top: 24px; }
.prose--rich span[id^="s-"] + h2 { margin-top: 1em !important; }
.prose--rich h2[style*="font-style:italic"] { font-style: normal !important; }
.prose--rich img[style] { width: auto !important; max-width: 100% !important; max-height: 640px; margin: 22px auto !important; }
.prose--rich div[style*="overflow-x"] table { min-width: 520px; }
.prose--rich th[style] { background: var(--bg-plum) !important; border: 0 !important; color: var(--rose) !important; font: 700 11px/1.3 var(--sans) !important; letter-spacing: .13em !important; text-transform: uppercase; padding: 14px 20px !important; }
.prose--rich td[style] { border: 0 !important; border-top: 1px solid var(--line) !important; font-size: 15px !important; padding: 14px 20px !important; color: var(--body) !important; }
.prose--rich tr[style] { background: var(--bg-surface) !important; }
.prose--rich h2 + div[style*="background"][style] { border-left-width: 0 !important; background: none !important; padding: 0 !important; }
.prose--rich h2 + div[style*="background"] h3[style] { font: 600 17px/1.45 var(--sans) !important; color: var(--ink) !important; margin: 0 !important; padding-top: 18px; border-top: 1px solid var(--line); }
.prose--rich h2 + div[style*="background"] p[style] { font-size: 16px !important; margin: 8px 0 18px !important; color: var(--muted) !important; }
.prose--rich > div[style*="border-left:5px"][style*="background"] { background: var(--bg-plum) !important; border-left: 0 !important; border-radius: var(--r-md) !important; padding: 28px 32px !important; margin-top: 3em !important; }
.prose--rich > div[style*="border-left:5px"] h2[style] { margin: 0 0 10px !important; border: 0; padding: 0; font-size: clamp(26px, 2.4vw, 32px) !important; }
.prose--rich > div[style*="letter-spacing:12px"] { color: var(--rose-deep) !important; }
.prose--rich > div[style*="margin:56px 0"] img { max-height: 520px; }

/* Article end */
.article-end { margin-top: 3em; display: flex; flex-direction: column; gap: 20px; }
.filed-in { display: grid; grid-template-columns: 88px 1fr auto; gap: 20px; align-items: center; padding: 16px 24px 16px 16px; border-radius: var(--r-md); background: var(--bg-surface); border: 1px solid var(--line); color: var(--ink) !important; text-decoration: none !important; transition: border-color .25s ease; }
.filed-in:hover { border-color: var(--rose-deep); }
.filed-in__img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--r-sm); }
.filed-in__text small { display: block; font: 700 11px/1.3 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--rose); }
.filed-in__text strong { display: block; margin: 4px 0 2px; font: 400 26px/1.15 var(--serif); font-weight: 400; }
.filed-in__text span { font-size: 14px; color: var(--muted); }
.filed-in__cta { padding-bottom: 6px; border-bottom: 1px solid var(--rose); font: 600 14px/1.2 var(--sans); white-space: nowrap; }
.article-end__notes p { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.article-end__notes strong { color: var(--ink); }
.article-end__notes a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 3px; }
.related { padding-block: 56px var(--s96); border-top: 1px solid var(--line); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.related-grid .jcard__img img { aspect-ratio: 4 / 3 !important; }

/* ---------- Standard / legal pages ---------- */
.page-head { padding-block: 32px 48px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.page-head .page-title { margin: 0; }
.page-head .article-meta { justify-content: flex-start; }
.page-dek { margin: 0; max-width: 34em; font-size: 19px; color: var(--muted); }
.page-visual { margin-top: 40px; }
.page-visual img { width: 100%; height: clamp(240px, 30vw, 440px); object-fit: cover; border-radius: var(--r-md); }
.page-body { padding-block: 56px var(--s96); }
.page-body.has-side { display: grid; grid-template-columns: 220px minmax(0, var(--read)); gap: 96px; }
.page-side { position: sticky; top: 28px; align-self: start; }
.page-side .label { display: block; margin-bottom: 8px; }
.page-side ul { list-style: none; margin: 0; padding: 0; }
.page-side a { display: block; padding: 12px 0 12px 14px; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; font-size: 14px; color: var(--muted); transition: color .2s ease; }
.page-side a:hover { color: var(--ink); }
.page-side a.is-current { color: var(--ink); border-left-color: var(--rose); }
.page-main { min-width: 0; max-width: var(--read); }
.page-main .notice { margin-bottom: 28px; }
.prose--page > p:first-child, .prose--page .lead { font-size: 20px; color: var(--ink); }

/* ---------- Search ---------- */
.search-head { padding-block: 40px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.search-head .page-title { margin: 0; }
.search-list { padding-block: 16px var(--s96); }
.result-list { list-style: none; margin: 0; padding: 0; }
.result { position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.result:not(.has-thumb) { grid-template-columns: 1fr; }
.result__thumb img { width: 200px; height: 134px; object-fit: cover; border-radius: var(--r-sm); }
.result small { font: 700 11px/1.3 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--rose); }
.result h2 { margin: 8px 0; font: 400 28px/1.15 var(--serif); letter-spacing: -.014em; color: var(--ink); }
.result h2 a::after { content: ""; position: absolute; inset: 0; }
.result:hover h2 { color: var(--rose); }
.result p { margin: 0; font-size: 14px; color: var(--muted); }
.search-empty { margin-top: 32px; padding: 32px; border-radius: var(--r-md); background: var(--bg-surface); border: 1px solid var(--line); }
.search-empty p { margin: 0 0 18px; color: var(--muted); }

/* ---------- 404 ---------- */
.notfound { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 64px; align-items: center; padding-block: 72px; }
.notfound__copy { display: flex; flex-direction: column; gap: 22px; }
.notfound__copy h1, .notfound__copy p { margin: 0; }
.notfound__copy p { font-size: 19px; color: var(--body); max-width: 27em; }
.notfound__img img { width: 100%; aspect-ratio: 7 / 8; object-fit: cover; border-radius: var(--r-md); }
.notfound-rooms { padding-bottom: var(--s96); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.hub-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nav-inner { justify-content: center; gap: 6px 22px; }
	.pov-panel { gap: 40px; padding: 40px; }
	.article-body.has-toc { grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: calc(var(--read) + 2 * var(--gutter)); }
	.toc { position: static; padding: 16px 20px; border-radius: var(--r-md); background: var(--bg-surface); }
	.edit-tiles__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: 1fr 1fr 1fr; }
	.footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
	.menu { display: grid; }
	.js .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 25; box-shadow: 0 24px 40px rgba(0, 0, 0, .45); }
	.js .nav.open { display: block; }
	.nav-inner { flex-direction: column; gap: 0; padding-block: 8px 16px; }
	.nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
	.nav a.active { border-bottom-color: var(--line); }
	.hub-intro__row, .notfound { grid-template-columns: 1fr; gap: 32px; }
	.hub-intro__img, .notfound__img { order: -1; }
	.feature-card { grid-template-columns: 1fr; }
	.feature-card__media img { min-height: 0; aspect-ratio: 3 / 2; }
	.feature-card__body { padding: 24px 20px; }
	.journal-grid { grid-template-columns: 1fr 1fr; }
	.journal-grid > :nth-child(3) { display: none; }
	.journal-grid > :nth-child(n) { margin-top: 0; }
	.pov-panel { grid-template-columns: 1fr; }
	.guide-list, .related-grid { grid-template-columns: 1fr; }
	.page-body.has-side { grid-template-columns: 1fr; gap: 0; }
	.page-side { position: static; order: 2; margin-top: 56px; }
	.empty-state { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.topline { font-size: 12px; padding-block: 8px; }
	.mast-main { padding-block: 14px; flex-wrap: nowrap; border-bottom: 1px solid var(--line); }
	.nav { border-block: 0; }
	.brand-logo { width: 38px; height: 38px; }
	.brand-word { font-size: 24px; }
	.brand-sub { display: none; }
	.header-search { width: 40px; padding: 0; border: 0; overflow: hidden; }
	.header-search input { width: 0; flex: 0 0 0; opacity: 0; }
	.header-search:focus-within { position: absolute; left: var(--gutter); right: 64px; top: 14px; width: auto; height: 44px; padding: 0 0 6px; border-bottom: 1px solid var(--rose); background: var(--bg-base); z-index: 40; }
	.header-search:focus-within input { width: auto; flex: 1 1 auto; opacity: 1; }
	.hero { padding-top: 16px; }
	.hero-frame { display: block; min-height: 0; background: none; }
	.hero-frame picture, .hero-frame > img { position: static; }
	.hero-frame img { height: auto; aspect-ratio: 350 / 300; border-radius: var(--r-md); }
	.hero-frame::after { display: none; }
	.hero-copy { padding: 24px 0 0; gap: 18px; max-width: none; }
	.hero-copy p { font-size: 16px; }
	.hero-ctas { flex-direction: column; align-items: stretch; }
	.hero-ctas .textlink { align-self: flex-start; }
	.photo-credit { display: none; }
	.promise-strip { flex-direction: column; gap: 6px; }
	.hub-rows { grid-template-columns: 1fr; gap: 0; }
	.hub-row { padding: 18px 0; }
	.journal-grid { grid-template-columns: 1fr; }
	.journal-grid > :nth-child(3) { display: flex; }
	.pov-panel { padding: 32px 24px; gap: 24px; }
	.hub-topics, .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
	.hub-topics li, .chip { white-space: nowrap; flex: none; }
	.edit-tiles__row { grid-template-columns: 1fr 1fr; gap: 12px; }
	.edit-tile span { font-size: 20px; left: 14px; bottom: 12px; }
	.article-head { text-align: left; align-items: flex-start; padding-top: 20px; }
	.article-head .breadcrumbs ol { justify-content: flex-start; }
	.article-head .breadcrumbs li[aria-current] { display: none; }
	.article-meta { justify-content: flex-start; }
	.article-hero { padding-inline: 0; }
	.article-hero img { border-radius: 0; }
	.article-hero figcaption { padding-inline: var(--gutter); }
	.article-body { padding-top: 32px; }
	.prose { font-size: 17px; }
	.prose table, .prose--rich div[style*="overflow-x"] table { min-width: 0 !important; font-size: 13px; }
	.prose th, .prose td, .prose--rich th[style], .prose--rich td[style] { padding: 11px 10px !important; }
	.prose--rich ol[style*="columns"] { columns: 1 !important; }
	.prose--rich > div[style*="background"]:not([style*="overflow-x"]) { padding: 20px !important; }
	.filed-in { grid-template-columns: 64px 1fr; padding-right: 16px; }
	.filed-in__img { width: 64px; height: 64px; }
	.filed-in__cta { grid-column: 2; justify-self: start; }
	.result { grid-template-columns: 96px 1fr; gap: 16px; align-items: start; }
	.result__thumb img { width: 96px; height: 96px; }
	.result h2 { font-size: 22px; }
	.result p { display: none; }
	.search-form { flex-wrap: wrap; }
	.search-form .btn { width: 100%; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
	.footer-grid > :last-child { grid-column: 1 / -1; }
	.legal { flex-direction: column; }
}

/* ---------- Premium FX (Figma: "FX / …" layers on Home / Desktop 1440) ----------
   Raster art = assets/img/fx/*.webp (generated in Figma). Leaves and bokeh sit on
   black and are composited with mix-blend-mode: screen. Decorative only. */
.fx { position: absolute; z-index: 1; pointer-events: none; background-repeat: no-repeat; }
.hero-frame .fx-bokeh { top: -12%; right: -6%; width: 68%; height: 100%; background-image: image-set(url('../img/fx/bokeh-1400.webp') 1x); background-size: cover; background-position: right top; mix-blend-mode: screen; opacity: .55; }
.hero-frame .fx-leaves { top: -24%; left: -8%; width: 42%; aspect-ratio: 3 / 2; background-image: url('../img/fx/leaves-1100.webp'); background-size: contain; mix-blend-mode: screen; opacity: .9; }
.fx-grain { inset: 0; opacity: .14; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-frame::after { z-index: 0; background: radial-gradient(ellipse at 70% 45%, rgba(20,17,23,0) 40%, rgba(20,17,23,.5) 100%), linear-gradient(90deg, rgba(20,17,23,.88) 0%, rgba(20,17,23,.35) 55%, rgba(20,17,23,0) 100%); }
.hero-copy, .photo-credit { z-index: 2; }
/* rose hairline transition under the promise strip */
.promise-strip { position: relative; border-bottom: 0; }
.promise-strip::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(232,203,211,0), rgba(232,203,211,.9) 50%, rgba(232,203,211,0)); box-shadow: 0 0 10px rgba(217,177,188,.55); }
/* velvet point-of-view panel */
.pov-panel { position: relative; overflow: hidden; background: linear-gradient(rgba(70,51,71,.66), rgba(70,51,71,.66)), url('../img/fx/velvet-1536.webp') center / cover; }
.pov-panel > * { position: relative; z-index: 1; }
/* closing scene: night window fading into the footer */
.closing-scene { position: relative; min-height: 420px; display: flex; align-items: center; background: linear-gradient(180deg, var(--bg-base) 0%, rgba(32,28,37,0) 30%, rgba(20,17,23,0) 80%, var(--bg-deep) 100%), url('../img/fx/night-window-1792.webp') right center / cover; }
.closing-scene__line { margin: 0; font: 400 clamp(40px, 3.9vw, 56px)/1 var(--serif); letter-spacing: -.02em; color: var(--ink); }
@media (max-width: 900px) { .hero-frame .fx-bokeh { opacity: .4; } }
@media (max-width: 640px) {
	.hero-frame .fx-bokeh, .hero-frame .fx-grain { display: none; }
	.hero-frame .fx-leaves { top: -8%; left: -14%; width: 62%; }
	.closing-scene { min-height: 300px; align-items: flex-start; padding-top: 48px; background: linear-gradient(180deg, var(--bg-base) 0%, rgba(32,28,37,0) 35%, rgba(20,17,23,0) 75%, var(--bg-deep) 100%), url('../img/fx/night-window-900.webp') 72% center / cover; }
}
.hub-intro__row > *, .notfound > * { min-width: 0; }
@media (max-width: 900px) { .hub-intro__row, .notfound { grid-template-columns: minmax(0, 1fr); } }
.journal-grid:has(> :nth-child(2):last-child) { grid-template-columns: 1.15fr 1fr; gap: 48px; }
.journal-grid:has(> :nth-child(2):last-child) > :nth-child(2) { margin-top: 96px; }
@media (max-width: 640px) { .journal-grid:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; } .journal-grid:has(> :nth-child(2):last-child) > :nth-child(2) { margin-top: 0; } }

/* Section openers: each H2 comes with its full Pin (1000x1500, headline included), set BESIDE the text,
   alternating left / right; the H2 and its paragraphs wrap next to it. Phones: Pin on top, edge to edge. */
.prose--rich figure.tr-pin { float: left; clear: both; width: 46%; margin: 8px 36px 20px 0 !important; padding: 0; }
.prose--rich figure.tr-pin img { display: block; width: 100%; max-width: 100%; height: auto; margin: 0; border-radius: var(--r-sm); }
.prose--rich figure.tr-pin--right { float: right; margin: 8px 0 20px 36px !important; }
.prose--rich figure.tr-pin + h2 { margin-top: 0 !important; padding-top: 0 !important; border-top: 0 !important; }
/* Blocks that must not slide under a Pin: boxes shrink beside it, tables start below it. */
.prose--rich > div, .prose--rich > blockquote { display: flow-root; }
.prose--rich table, .prose--rich > div:has(table), .prose--rich h2:not(.tr-pin + h2) { clear: both; }
/* Pipeline anchors: <p><span id="s-…"></span></p> start a new section below the previous Pin. */
.prose--rich p:has(> span[id^="s-"]) { clear: both; margin: 0 !important; height: 0; line-height: 0; padding-top: 64px; }
.prose--rich span[id^="s-"] { display: block !important; height: 0 !important; margin: 0 !important; padding: 0 !important; scroll-margin-top: 16px; }
.prose--rich div:has(a[href^="#s-"]) + p:has(> span[id^="s-"]) { padding-top: 40px; }
@media (max-width: 640px) {
	.prose--rich figure.tr-pin, .prose--rich figure.tr-pin--right { float: none; width: auto; margin: 0 calc(-1 * var(--gutter)) 24px !important; }
	.prose--rich figure.tr-pin img { border-radius: 0; }
}
