/* The Cozy Talk: every core block and every everyday HTML element in the site's look, the extra block
   styles Eva can pick in the editor, and the small warm touches. Loaded after cozytalk.css, on the site
   and inside the editor. Most rules use :where() so that anything set per block in the editor wins. */

/* ── Base text ─────────────────────────────────────────────────────────── */
::selection { background: color-mix(in srgb, var(--ct-amber) 55%, transparent); color: var(--ct-ink); }
html { scrollbar-color: color-mix(in srgb, var(--ct-muted) 45%, transparent) var(--ct-sand); accent-color: var(--ct-sage); }
body { text-rendering: optimizeLegibility; font-kerning: normal; }
:where(h1, h2, h3, h4, h5, h6) { text-wrap: balance; }
:where(p, li, dd, figcaption, blockquote) { text-wrap: pretty; }
:where(h4) { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
:where(h5) { font-size: 18px; letter-spacing: -0.01em; line-height: 1.3; }
:where(h6) { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ct-ember-text); }
:where(strong, b) { font-weight: 600; }
:where(small) { font-size: .85em; }
:where(mark, .has-inline-color mark) { padding: .05em .25em; border-radius: .3em; background: linear-gradient(104deg, transparent .4em, color-mix(in srgb, var(--ct-amber) 55%, transparent) .5em, color-mix(in srgb, var(--ct-amber) 45%, transparent) 96%, transparent); color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
:where(abbr[title]) { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
:where(q) { quotes: "«" "»" "“" "”"; }
:where(html[lang^="en"]) :where(q) { quotes: "“" "”" "‘" "’"; }
:where(ins) { text-decoration: none; background: var(--ct-sage-soft); padding: 0 .2em; border-radius: .2em; }
:where(del, s) { text-decoration-color: var(--ct-ember); text-decoration-thickness: 2px; opacity: .75; }
:where(sub, sup) { font-size: .7em; line-height: 0; }
:where(dl) { display: grid; gap: 4px 20px; }
:where(dt) { font-weight: 600; }
:where(dd) { margin: 0 0 12px; color: color-mix(in srgb, var(--ct-ink) 75%, var(--ct-muted)); }
:where(ul, ol) ::marker { color: var(--ct-ember); }
:where(ol) ::marker { font-weight: 600; font-variant-numeric: tabular-nums; }
:where(hr:not([class])) { border: 0; height: 1px; margin: 2.4em auto; background: var(--ct-line); }
:where(address) { font-style: normal; }
:where(img, video, iframe, svg) { max-width: 100%; }
:where(img) { height: auto; }
:where(figure) { margin-inline: 0; }
:where(figcaption, .wp-element-caption, .wp-caption-text) { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--ct-muted); text-align: center; }
:where(cite) { font-style: normal; font-size: 15px; color: var(--ct-muted); }

/* Links in running text: a warm underline that grows on hover */
:where(.wp-block-post-content, .entry-content, .ct-prose, .ct-page) :where(p, li, dd, td, figcaption) a:where(:not(.wp-element-button):not(.wp-block-button__link):not(:is(.wp-block-latest-posts, .wp-block-archives-list, .wp-block-categories-list, .wp-block-page-list, .wp-block-rss, .wp-block-tag-cloud, .wp-block-social-links, .wp-block-navigation, .wp-block-post-terms, .ct-chips) *)) {
  color: var(--ct-ember-text); text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(color-mix(in srgb, var(--ct-amber) 45%, transparent), color-mix(in srgb, var(--ct-amber) 45%, transparent));
  background-size: 100% 1px, 0 .45em; background-position: 0 100%, 0 92%; background-repeat: no-repeat;
  transition: background-size .35s ease, color .2s; }
:where(.wp-block-post-content, .entry-content, .ct-prose, .ct-page) :where(p, li, dd, td, figcaption) a:where(:not(.wp-element-button):not(.wp-block-button__link):not(:is(.wp-block-latest-posts, .wp-block-archives-list, .wp-block-categories-list, .wp-block-page-list, .wp-block-rss, .wp-block-tag-cloud, .wp-block-social-links, .wp-block-navigation, .wp-block-post-terms, .ct-chips) *)):hover { color: var(--ct-ink); background-size: 100% 1px, 100% .45em; }

/* Code */
:where(code, kbd, samp, pre) { font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace; font-size: .9em; }
:where(:not(pre) > code) { padding: .12em .4em; border-radius: 6px; background: color-mix(in srgb, var(--ct-clay) 45%, var(--ct-cream)); color: var(--ct-ink-2); }
:where(kbd) { padding: .1em .45em; border-radius: 6px; border: 1px solid var(--ct-line); border-bottom-width: 3px; background: #fff; font-size: .82em; }
:where(pre, .wp-block-code, .wp-block-preformatted) { overflow-x: auto; padding: 22px 24px; border-radius: 22px; background: var(--ct-ink); color: var(--ct-sand); font-size: 15px; line-height: 1.65; tab-size: 2; white-space: pre-wrap; }
:where(.wp-block-code) code { padding: 0; background: none; color: inherit; }
:where(.wp-block-preformatted) { font-family: inherit; background: var(--ct-cream); color: var(--ct-ink); border: 1px solid var(--ct-line); font-size: 16px; }
.wp-block-verse { font-family: var(--ct-serif); font-style: italic; font-size: 20px; line-height: 1.8; padding: 8px 0 8px 28px; border-radius: 0; border-left: 3px solid var(--ct-amber); background: transparent; color: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ── Quotes ────────────────────────────────────────────────────────────── */
:where(blockquote:not([class])) { margin: 1.6em 0; padding-left: 24px; border-left: 3px solid var(--ct-ember); font-family: var(--ct-serif); font-style: italic; font-size: 1.15em; }
:where(.wp-block-quote) { border-left: 3px solid var(--ct-ember); padding-left: 24px; }
:where(.wp-block-quote.has-text-align-center) { border-left: 0; padding-left: 0; }
:where(.wp-block-quote) cite, :where(.wp-block-quote) footer { display: block; margin-top: 12px; font-family: var(--wp--preset--font-family--sans, inherit); font-style: normal; font-size: 15px; color: var(--ct-muted); }
:where(.wp-block-quote) cite::before { content: "— "; }
.wp-block-quote.is-style-large { border: 0; padding: 0; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.35; }
.wp-block-quote.is-style-warm { position: relative; padding: clamp(40px, 5vw, 56px) clamp(24px, 4vw, 48px) clamp(24px, 3vw, 36px); border: 0; border-radius: var(--ct-radius); background: var(--ct-cream); box-shadow: inset 0 0 0 1px var(--ct-line); }
.wp-block-quote.is-style-warm::before { content: "“"; position: absolute; top: -.18em; left: clamp(20px, 3vw, 40px); font-family: var(--ct-serif); font-style: normal; font-size: 120px; line-height: 1; color: var(--ct-ember-soft); }
.wp-block-quote.is-style-plain { border: 0; padding: 0; }
:where(.wp-block-pullquote) { padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px); border: 0; border-block: 2px solid var(--ct-ember-soft); text-align: center; }
:where(.wp-block-pullquote) blockquote p { font-family: var(--ct-serif); font-style: italic; font-size: clamp(24px, 3vw, 34px); line-height: 1.35; }
.wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; font-size: inherit; }
:where(.wp-block-pullquote) cite { display: block; margin-top: 16px; font-family: var(--wp--preset--font-family--sans, inherit); font-style: normal; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ct-ember-text); }

/* ── Buttons and every kind of form field ──────────────────────────────── */
:where(.wp-block-button__link, .wp-element-button) { transition: background-color .2s, color .2s, box-shadow .25s, transform .15s; }
:where(.wp-block-button__link, .wp-element-button):hover { box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--ct-sage) 80%, transparent); transform: translateY(-1px); }
:where(.wp-block-button__link, .wp-element-button):active { transform: translateY(0) scale(.98); }
.wp-block-button.is-style-soft > .wp-block-button__link { background: var(--ct-peach); color: var(--ct-ink); }
.wp-block-button.is-style-soft > .wp-block-button__link:hover { background: var(--ct-clay); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--ct-ember) 60%, transparent); }
.wp-block-button.is-style-amber > .wp-block-button__link { background: var(--ct-amber); color: var(--ct-ink); }
.wp-block-button.is-style-amber > .wp-block-button__link:hover { background: color-mix(in srgb, var(--ct-amber) 85%, var(--ct-ember)); box-shadow: 0 12px 28px -12px var(--ct-amber); }
.wp-block-button.is-style-link > .wp-block-button__link { padding: 0 !important; background: none; color: var(--ct-ember-text); border-radius: 0; text-decoration: underline; text-underline-offset: 4px; box-shadow: none; }
.wp-block-button.is-style-link > .wp-block-button__link::after { content: " →"; display: inline-block; transition: transform .2s; }
.wp-block-button.is-style-link > .wp-block-button__link:hover::after { transform: translateX(4px); }
:where(.wp-block-buttons) { gap: 12px; }

:where(button:not([class]), input[type="submit"]:not([class]), input[type="button"]:not([class]), input[type="reset"]:not([class])) {
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--ct-sage); color: #fff; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: background .2s, transform .15s; }
:where(button:not([class]), input[type="submit"]:not([class])):hover { background: color-mix(in srgb, var(--ct-sage) 84%, #000); }
:where(input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="tel"], input[type="number"], input[type="date"], input[type="month"], input[type="time"], input[type="datetime-local"], select, textarea):where(:not(:is(.ct-sub *, .ct-search *, .ct-letter *, .ct-news *, .ctc *, .fluentform *, .wp-block-search *, .ct-filters *, .ctr-bar *, .ctr-full *, .ct-comments *))) {
  box-sizing: border-box; max-width: 100%; min-height: 48px; padding: 10px 18px; border: 1px solid color-mix(in srgb, var(--ct-line) 75%, var(--ct-muted)); border-radius: 16px; background: #fff; color: var(--ct-ink); font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
:where(textarea:not(:is(.ct-sub *, .ct-search *, .ct-letter *, .ct-news *, .ctc *, .fluentform *, .wp-block-search *, .ct-filters *, .ctr-bar *, .ctr-full *, .ct-comments *))) { min-height: 140px; border-radius: 20px; line-height: 1.6; resize: vertical; }
:where(select:not(:is(.ct-sub *, .ct-search *, .ct-letter *, .ct-news *, .ctc *, .fluentform *, .wp-block-search *, .ct-filters *, .ctr-bar *, .ctr-full *, .ct-comments *))) { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B5B4F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
:where(input, select, textarea):where(:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(:is(.ct-sub *, .ct-search *, .ct-letter *, .ct-news *, .ctc *, .fluentform *, .wp-block-search *, .ct-filters *, .ctr-bar *, .ctr-full *, .ct-comments *))):where(:focus) { border-color: var(--ct-sage); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ct-sage) 16%, transparent); outline: none; }
:where(input, textarea)::placeholder { color: color-mix(in srgb, var(--ct-muted) 75%, transparent); }
:where(input[type="checkbox"], input[type="radio"]) { width: 18px; height: 18px; accent-color: var(--ct-sage); vertical-align: -3px; }
:where(input[type="range"]) { accent-color: var(--ct-ember); }
:where(input[type="file"])::file-selector-button { margin-right: 12px; padding: 8px 16px; border: 1px solid var(--ct-line); border-radius: 999px; background: var(--ct-cream); color: var(--ct-ink); font: inherit; cursor: pointer; }
:where(fieldset) { margin: 0 0 20px; padding: 18px 22px; border: 1px solid var(--ct-line); border-radius: 22px; }
:where(legend) { padding: 0 8px; font-weight: 600; }
:where(label) { cursor: pointer; }
:where(input:disabled, select:disabled, textarea:disabled, button:disabled) { opacity: .55; cursor: not-allowed; }
:where(input, textarea, select):where(:not(:is(.ct-sub *, .ct-search *, .ct-letter *, .ct-news *, .ctc *, .fluentform *, .wp-block-search *, .ct-filters *, .ctr-bar *, .ctr-full *, .ct-comments *))):where(:user-invalid) { border-color: var(--ct-ember); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ct-ember) 14%, transparent); }

/* Search block */
:where(.wp-block-search__inside-wrapper) { gap: 6px; padding: 5px; border-radius: 999px !important; border: 1px solid var(--ct-line) !important; background: #fff; }
:where(.wp-block-search__input) { min-height: 42px !important; border: 0 !important; border-radius: 999px !important; box-shadow: none !important; padding: 0 16px !important; }
:where(.wp-block-search__button) { margin: 0 !important; min-height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--ct-sage); color: #fff; }
:where(.wp-block-search__label) { font-weight: 600; margin-bottom: 8px; }

/* ── Images, galleries, covers, media ──────────────────────────────────── */
:where(.wp-block-image) img { border-radius: 22px; }
:where(.wp-block-image.is-style-rounded) img { border-radius: 9999px; }
.wp-block-image.is-style-arch img { border-radius: 999px 999px 32px 32px; aspect-ratio: 4 / 5; object-fit: cover; }
.wp-block-image.is-style-polaroid { display: table; padding: 12px 12px 4px; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(36, 28, 23, .08), 0 18px 40px -22px rgba(36, 28, 23, .45); transform: rotate(-1.5deg); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.wp-block-image.is-style-polaroid:nth-of-type(even) { transform: rotate(1.2deg); }
.wp-block-image.is-style-polaroid:hover { transform: rotate(0) translateY(-4px); }
.wp-block-image.is-style-polaroid img { border-radius: 2px; }
.wp-block-image.is-style-polaroid figcaption { font-family: var(--ct-serif); font-style: italic; font-size: 17px; color: var(--ct-ink-2); padding-bottom: 8px; }
.wp-block-image.is-style-soft-frame img { padding: 10px; background: var(--ct-cream); border: 1px solid var(--ct-line); border-radius: var(--ct-radius); }
:where(.wp-block-gallery) { gap: 14px; }
:where(.wp-block-gallery .wp-block-image) img { border-radius: 18px; transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .4s; }
:where(.wp-block-gallery .wp-block-image) { overflow: hidden; border-radius: 18px; }
:where(.wp-block-gallery .wp-block-image):hover img { transform: scale(1.04); filter: saturate(1.08); }
.wp-block-gallery.is-style-scattered { gap: 22px; }
.wp-block-gallery.is-style-scattered .wp-block-image { overflow: visible; padding: 10px 10px 2px; border-radius: 6px; background: #fff; box-shadow: 0 16px 36px -22px rgba(36, 28, 23, .5); transform: rotate(-2deg); transition: transform .4s; }
.wp-block-gallery.is-style-scattered .wp-block-image:nth-child(3n + 2) { transform: rotate(1.5deg) translateY(8px); }
.wp-block-gallery.is-style-scattered .wp-block-image:nth-child(3n) { transform: rotate(-.6deg); }
.wp-block-gallery.is-style-scattered .wp-block-image:hover { transform: rotate(0) scale(1.03); z-index: 1; }
.wp-block-gallery.is-style-scattered .wp-block-image img { border-radius: 2px; }
:where(.wp-block-cover) { border-radius: var(--ct-radius); overflow: hidden; }
:where(.wp-block-cover.alignfull) { border-radius: 0; }
:where(.wp-block-cover) :where(h1, h2, h3) em { color: var(--ct-amber); }
:where(.wp-block-media-text) { gap: 0; border-radius: var(--ct-radius); overflow: hidden; }
:where(.wp-block-media-text:not(.has-background)) { background: var(--ct-cream); border: 1px solid var(--ct-line); }
:where(.wp-block-media-text) .wp-block-media-text__content { padding: clamp(24px, 4vw, 56px); }
:where(.wp-block-media-text) .wp-block-media-text__media img { border-radius: 0; }
:where(.wp-block-embed) { margin-block: 1.6em; }
:where(.wp-block-embed) iframe, :where(.wp-block-video) video { border-radius: 22px; }
:where(.wp-block-embed.is-type-video) .wp-block-embed__wrapper { border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px -34px rgba(36, 28, 23, .5); }
:where(.wp-block-audio) audio { width: 100%; border-radius: 999px; }
:where(.wp-block-audio) { padding: 14px; border-radius: 999px; background: var(--ct-cream); border: 1px solid var(--ct-line); }
:where(.wp-block-file) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 16px 22px; border-radius: 22px; background: var(--ct-cream); border: 1px solid var(--ct-line); }
:is(.wp-block-file) > a:first-child { font-weight: 600; color: var(--ct-ink); text-decoration: none; }
:is(.wp-block-file .wp-block-file__button) { margin: 0; padding: 10px 20px; border-radius: 999px; background: var(--ct-sage); color: #fff; font-size: 14px; text-decoration: none; }
/* Photos and pictures arrive softly instead of popping in */
@media (prefers-reduced-motion: no-preference) {
  :where(.wp-block-post-content, .ct-prose, .ct-post-card) img.ct-img-wait { opacity: 0; filter: blur(6px); }
  :where(.wp-block-post-content, .ct-prose, .ct-post-card) img.ct-img-in { opacity: 1; filter: none; transition: opacity .7s ease, filter .9s ease; }
}

/* ── Tables ────────────────────────────────────────────────────────────── */
:where(.wp-block-table) { overflow-x: auto; }
.wp-block-table :is(thead, tfoot) { border: 0; }
.wp-block-table tfoot td { background: var(--ct-cream); font-weight: 600; }
:where(.wp-block-table table, .ct-prose table, .entry-content table) { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: 20px; border: 1px solid var(--ct-line); background: #fff; font-size: 16px; }
.wp-block-table :is(th, td), :where(.ct-prose, .entry-content) :where(th, td) { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--ct-line); text-align: left; vertical-align: top; }
.wp-block-table th, :where(.ct-prose, .entry-content) th { background: var(--ct-cream); font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.wp-block-table tr:last-child td, :where(.ct-prose, .entry-content) tr:last-child td { border-bottom: 0; }
:where(.wp-block-table, .ct-prose, .entry-content) tbody tr { transition: background .15s; }
:where(.wp-block-table, .ct-prose, .entry-content) tbody tr:hover { background: color-mix(in srgb, var(--ct-cream) 70%, #fff); }
.wp-block-table.is-style-stripes { border: 0; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: color-mix(in srgb, var(--ct-sand) 55%, #fff); }
.wp-block-table.is-style-stripes table { border: 1px solid var(--ct-line); }
:where(.wp-block-table) figcaption { text-align: left; }

/* ── Details, separators, spacers ──────────────────────────────────────── */
:where(.wp-block-details) { padding: 18px 24px; border-radius: 24px; background: var(--ct-cream); border: 1px solid var(--ct-line); margin-block: 12px; }
:where(.wp-block-details) > summary { position: relative; padding-right: 36px; list-style: none; cursor: pointer; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
:where(.wp-block-details) > summary::-webkit-details-marker { display: none; }
:where(.wp-block-details) > summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ct-ember); border-bottom: 2px solid var(--ct-ember); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
:where(.wp-block-details)[open] > summary::after { transform: translateY(-30%) rotate(225deg); }
:where(.wp-block-details)[open] > summary { margin-bottom: 10px; }
:where(.wp-block-details) > :not(summary) { color: color-mix(in srgb, var(--ct-ink) 75%, var(--ct-muted)); }
@media (prefers-reduced-motion: no-preference) { :where(.wp-block-details)[open] > :not(summary) { animation: ct-open .35s ease; } }
@keyframes ct-open { from { opacity: 0; transform: translateY(-4px); } }
:where(.wp-block-separator) { border: 0; border-top: 1px solid currentColor; opacity: 1; }
:where(.wp-block-separator:not(.is-style-wide):not(.is-style-dots)) { width: 120px; margin-inline: auto; }
.wp-block-separator.is-style-dots { border: 0; height: auto; line-height: 1; text-align: center; background: none !important; }
.wp-block-separator.is-style-dots::before { content: "· · ·"; color: var(--ct-ember); font-size: 28px; letter-spacing: 1em; padding-left: 1em; }
.wp-block-separator.is-style-sprig { position: relative; width: 100%; max-width: 420px; height: 24px; margin-inline: auto; border: 0; background: none !important; }
.wp-block-separator.is-style-sprig::before, .wp-block-separator.is-style-sprig::after { content: ""; position: absolute; top: 50%; width: calc(50% - 30px); height: 1px; background: var(--ct-line); }
.wp-block-separator.is-style-sprig::before { left: 0; }
.wp-block-separator.is-style-sprig::after { right: 0; }
.wp-block-separator.is-style-sprig { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='24' viewBox='0 0 40 24' fill='none' stroke='%23B4532F' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M20 21V6'/%3E%3Cpath d='M20 13c-4-1-7-4-7-8 4 0 7 3 7 8zM20 10c4-1 7-4 7-8-4 0-7 3-7 8z'/%3E%3C/svg%3E") center / 40px 24px no-repeat !important; }

/* ── Lists ─────────────────────────────────────────────────────────────── */
.is-style-hearts { list-style: none; padding-left: 0; }
.is-style-hearts li { position: relative; padding-left: 30px; }
.is-style-hearts li + li { margin-top: .5em; }
.is-style-hearts li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 16px; height: 14px; background: var(--ct-ember); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 21'%3E%3Cpath d='M12 21C5 16 0 12 0 6.5A6.5 6.5 0 0 1 12 3a6.5 6.5 0 0 1 12 3.5C24 12 19 16 12 21z'/%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 21'%3E%3Cpath d='M12 21C5 16 0 12 0 6.5A6.5 6.5 0 0 1 12 3a6.5 6.5 0 0 1 12 3.5C24 12 19 16 12 21z'/%3E%3C/svg%3E") center / contain no-repeat; }
ol.is-style-steps { list-style: none; padding-left: 0; counter-reset: ct-step; }
ol.is-style-steps li { position: relative; min-height: 40px; padding-left: 56px; counter-increment: ct-step; }
ol.is-style-steps li + li { margin-top: 18px; }
ol.is-style-steps li::before { content: counter(ct-step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ct-peach); color: var(--ct-ember-text); font-family: var(--ct-serif); font-style: italic; font-size: 20px; }

/* ── Paragraph and heading styles ──────────────────────────────────────── */
.is-style-note { position: relative; padding: 22px 26px 22px 30px; border-radius: 6px 22px 22px 6px; background: repeating-linear-gradient(transparent 0 31px, color-mix(in srgb, var(--ct-clay) 55%, transparent) 31px 32px), #FFFDF8; background-position: 0 22px; border-left: 4px solid var(--ct-ember-soft); line-height: 32px; box-shadow: 0 14px 30px -24px rgba(36, 28, 23, .5); }
.is-style-highlight { display: inline; padding: .1em .3em; background: linear-gradient(104deg, transparent .3em, color-mix(in srgb, var(--ct-amber) 50%, transparent) .4em, color-mix(in srgb, var(--ct-amber) 40%, transparent) 97%, transparent); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.has-drop-cap:not(:focus)::first-letter { float: left; margin: .08em .12em 0 0; font-family: var(--ct-serif); font-style: italic; font-size: 4.2em; line-height: .82; font-weight: 400; color: var(--ct-ember); }
.wp-block-heading.is-style-brush { position: relative; display: inline-block; z-index: 0; }
.wp-block-heading.is-style-brush::after { content: ""; position: absolute; z-index: -1; left: -.1em; right: -.15em; bottom: .06em; height: .34em; border-radius: .3em .6em .4em .5em; background: color-mix(in srgb, var(--ct-amber) 60%, transparent); transform: rotate(-1deg); }
.wp-block-heading.is-style-serif { font-family: var(--ct-serif); font-style: italic; font-weight: 400; letter-spacing: -0.015em; }
.wp-block-heading.is-style-centered-line { display: flex; align-items: center; gap: 18px; text-align: center; }
.wp-block-heading.is-style-centered-line::before, .wp-block-heading.is-style-centered-line::after { content: ""; flex: 1; height: 1px; background: var(--ct-line); }

/* ── Group and columns styles ──────────────────────────────────────────── */
.is-style-paper { padding: clamp(28px, 4vw, 48px); border-radius: 8px 8px 28px 8px; background: #FFFDF8; box-shadow: 0 1px 1px rgba(36, 28, 23, .06), 0 22px 50px -30px rgba(36, 28, 23, .45); }
.is-style-glow { padding: clamp(28px, 4vw, 48px); border-radius: var(--ct-radius); background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--ct-amber) 35%, transparent), transparent 55%), radial-gradient(100% 80% at 100% 100%, color-mix(in srgb, var(--ct-peach) 80%, transparent), transparent 60%), var(--ct-cream); border: 1px solid var(--ct-line); }
.is-style-outline-soft { padding: clamp(24px, 3vw, 40px); border-radius: var(--ct-radius); border: 1.5px dashed color-mix(in srgb, var(--ct-ember-soft) 70%, transparent); }
.wp-block-columns.is-style-cards > .wp-block-column { padding: clamp(22px, 3vw, 34px); border-radius: 28px; background: #fff; border: 1px solid var(--ct-line); }
:where(.wp-block-columns) { gap: clamp(20px, 3vw, 40px); }
:where(.wp-block-group.has-background, .wp-block-column.has-background) { border-radius: var(--ct-radius); }

/* ── Site blocks, lists of posts, archives, widgets ────────────────────── */
:where(.wp-block-latest-posts, .wp-block-archives-list, .wp-block-categories-list, .wp-block-page-list, .wp-block-rss) { list-style: none; padding-left: 0; }
:where(.wp-block-latest-posts, .wp-block-archives-list, .wp-block-categories-list, .wp-block-page-list, .wp-block-rss) > li { padding: 10px 0; border-bottom: 1px solid var(--ct-line); }
:is(.wp-block-latest-posts, .wp-block-archives-list, .wp-block-categories-list, .wp-block-page-list, .wp-block-rss) a { color: var(--ct-ink); text-decoration: none; font-weight: 500; }
:is(.wp-block-latest-posts, .wp-block-archives-list, .wp-block-categories-list, .wp-block-page-list, .wp-block-rss) a:hover { color: var(--ct-ember-text); }
:where(.wp-block-latest-posts.is-grid) > li { padding: 22px; border: 1px solid var(--ct-line); border-radius: 24px; background: #fff; }
:where(.wp-block-latest-posts__post-date, .wp-block-rss__item-publish-date) { display: block; font-size: 13.5px; color: var(--ct-muted); }
:where(.wp-block-latest-posts__featured-image) img { border-radius: 16px; }
:where(.wp-block-tag-cloud) { display: flex; flex-wrap: wrap; gap: 8px; }
:is(.wp-block-tag-cloud) a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ct-line); background: var(--ct-cream); color: var(--ct-ink); font-size: 14px !important; text-decoration: none; transition: background .15s, border-color .15s; }
:where(.wp-block-tag-cloud) a:hover { background: #fff; border-color: color-mix(in srgb, var(--ct-line) 60%, var(--ct-muted)); }
:is(.wp-block-post-terms) a { color: var(--ct-ember-text); text-decoration: none; }
:where(.wp-block-post-terms) a:hover { text-decoration: underline; }
:where(.wp-block-post-date, .wp-block-post-author-name, .wp-block-post-author__byline) { color: var(--ct-muted); font-size: 15px; }
:where(.wp-block-avatar, .wp-block-post-author__avatar) img { border-radius: 50%; box-shadow: 0 0 0 3px var(--ct-cream), 0 0 0 4px var(--ct-line); }
:is(.wp-block-post-excerpt__more-link, .wp-block-read-more) { color: var(--ct-ember-text); font-weight: 500; text-decoration: none; }
:where(.wp-block-post-excerpt__more-link, .wp-block-read-more)::after { content: " →"; display: inline-block; transition: transform .2s; }
:where(.wp-block-post-excerpt__more-link, .wp-block-read-more):hover::after { transform: translateX(4px); }
:is(.wp-block-post-navigation-link) a { display: inline-flex; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--ct-line); background: var(--ct-cream); color: var(--ct-ink); text-decoration: none; }
:where(.wp-block-post-navigation-link) a:hover { background: #fff; }
:where(.wp-block-calendar) table { border-radius: 18px; overflow: hidden; border: 1px solid var(--ct-line); background: #fff; }
:where(.wp-block-calendar) th { background: var(--ct-cream); color: var(--ct-ink); }
:where(.wp-block-calendar) :where(th, td) { padding: 8px; text-align: center; border: 0; }
:where(.wp-block-calendar) a { color: var(--ct-ember-text); font-weight: 600; }
:where(.wp-block-social-links) { gap: 8px; }
:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link { background: var(--ct-ink) !important; color: var(--ct-sand) !important; transition: transform .2s, background .2s; }
:where(.wp-block-social-links) .wp-social-link:hover { transform: translateY(-2px); background: var(--ct-ember) !important; }
:where(.wp-block-footnotes) { margin-top: 3em; padding-top: 18px; border-top: 1px solid var(--ct-line); font-size: 15px; color: var(--ct-muted); }
:is(.wp-block-footnotes) a, :is(sup.fn) a { color: var(--ct-ember-text); text-decoration: none; }
:where(.wp-block-navigation) a { text-decoration: none; }
:where(.wp-block-navigation .wp-block-navigation-item__content):hover { color: var(--ct-ember-text); }
:where(.wp-block-navigation__responsive-container.is-menu-open) { background: var(--ct-cream) !important; }
:where(.wp-block-navigation .wp-block-navigation__submenu-container) { border-radius: 18px; border: 1px solid var(--ct-line) !important; box-shadow: 0 18px 40px -24px rgba(36, 28, 23, .4); padding: 6px; }
:where(.wp-block-loginout) a { color: var(--ct-ember-text); }
:where(.wp-block-comments, .wp-block-comment-template) { list-style: none; padding-left: 0; }
:where(.wp-block-comment-template) ol { list-style: none; padding-left: clamp(16px, 4vw, 48px); }
:is(.wp-block-comment-date) a, :is(.wp-block-comment-edit-link) a, :is(.wp-block-comment-reply-link) a { color: var(--ct-muted); font-size: 14px; text-decoration: none; }
:where(.wp-block-comment-reply-link) a { color: var(--ct-ember-text); font-weight: 500; }
:where(.wp-block-query-no-results) { padding: 32px; border-radius: 26px; background: var(--ct-cream); text-align: center; }

/* ── Classic content (pasted HTML, older posts, widgets) ───────────────── */
:where(.alignleft) { float: left; margin: .4em 1.6em 1em 0; }
:where(.alignright) { float: right; margin: .4em 0 1em 1.6em; }
:where(.aligncenter) { display: block; margin-inline: auto; }
:where(.wp-caption) { max-width: 100%; }
:where(.wp-caption) img { border-radius: 18px; }
:where(.gallery) { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
:where(.gallery-item) img { border-radius: 16px; }
:where(.sticky) .ct-talk-card, :where(.sticky) .ct-post-card { box-shadow: inset 0 0 0 2px var(--ct-amber); }
:where(.bypostauthor) > .ct-comment, :where(.bypostauthor) .ct-comment { background: var(--ct-peach); border-color: var(--ct-peach); }
.screen-reader-text:not(:focus) { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 600px) { :where(.alignleft, .alignright) { float: none; margin: 1em auto; } }

/* ── Warm touches ──────────────────────────────────────────────────────── */
/* A little paper grain over the whole page: warmth without weight (skipped in the editor and in print) */
body:not(.block-editor-iframe__body)::after {
  content: ""; position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .38 0 0 0 0 .25 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Evening: after dusk (the visitor's own clock) a lamp-like glow warms the top of the page */
html.ct-dusk body { background-image: radial-gradient(90% 55% at 50% -12%, color-mix(in srgb, var(--ct-amber) 26%, transparent), transparent 70%); background-attachment: fixed; background-repeat: no-repeat; }

/* Cards lift a little and catch the light where the pointer is */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :is(.ct-talk-card, .ct-post-card, .ct-related__card, .is-style-card, .wp-block-columns.is-style-cards > .wp-block-column, .wp-block-latest-posts.is-grid > li) {
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .2s; }
  :is(.ct-talk-card, .ct-post-card, .ct-related__card):hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(36, 28, 23, .45); }
  :is(.ct-talk-card, .ct-post-card, .ct-related__card, .is-style-card, .wp-block-columns.is-style-cards > .wp-block-column)[data-ct-glow] {
    background-image: radial-gradient(360px circle at var(--ct-mx, 50%) var(--ct-my, 50%), color-mix(in srgb, var(--ct-amber) 16%, transparent), transparent 65%); }
  .ct-post-card .wp-block-post-featured-image { overflow: hidden; border-radius: 20px; }
  .ct-post-card .wp-block-post-featured-image img { transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
  .ct-post-card:hover .wp-block-post-featured-image img { transform: scale(1.045); }
}

/* The cup in the logo breathes a little steam on hover */
.ct-logo__mark { position: relative; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.ct-logo:hover .ct-logo__mark { transform: rotate(-6deg) scale(1.05); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ct-peach) 55%, transparent); }

/* Back to the top: a small warm button once the page has been read a while */
.ct-top { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: 96px; z-index: 55; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--ct-line); border-radius: 50%;
  background: color-mix(in srgb, var(--ct-cream) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ct-ember); box-shadow: 0 14px 30px -16px rgba(36, 28, 23, .45);
  cursor: pointer; opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .3s, transform .3s, background .2s; }
.ct-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.ct-top:hover { background: #fff; }
body:not(.ctr-has-bar) .ct-top { bottom: 24px; }

/* Page changes: a soft cross-fade between pages in browsers that support it */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* Keyboard focus glows warm */
:where(a, button, summary, [tabindex]):focus-visible { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ct-amber) 30%, transparent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  @view-transition { navigation: none; }
}

/* High-contrast modes keep their own colours; decorations step aside */
@media (forced-colors: active) {
  body::after, html.ct-dusk body { background: none !important; }
  .is-style-card, .is-style-thread, .ct-talk-card, .ct-post-card, .ct-sub__card { border: 1px solid CanvasText; }
}

/* ── Print: just the words ─────────────────────────────────────────────── */
@media print {
  body::after, .ct-crisis, .ct-header, .ct-footer, .ct-sub, .ctr-bar, .ct-top, .ct-share, .ct-related, .ct-comments, .ct-progress, .ct-sub, .wp-block-search, .ct-tools { display: none !important; }
  body { background: #fff !important; color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
  .ct-prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .is-style-card, .is-style-card-dark, .is-style-thread, .is-style-bubble-eva, .is-style-bubble-quote { background: none !important; color: #000 !important; border: 1px solid #ccc; }
  h1, h2, h3 { break-after: avoid; }
  img, figure, blockquote { break-inside: avoid; }
}

/* ── Article and talk layouts Eva can choose (Template in the editor sidebar) ── */
.ct-article--quiet .ct-prose { font-size: 20px; line-height: 1.8; }
.ct-article--cover .ct-cover-hero { margin-bottom: clamp(32px, 5vw, 56px) !important; color: #fff; }
.ct-article--cover .ct-cover-hero .wp-block-post-title { color: #fff; margin: 8px 0 12px; }
.ct-article--cover .ct-cover-hero :is(.is-style-eyebrow, .is-style-eyebrow a) { color: var(--ct-amber) !important; }
.ct-article--cover .ct-cover-hero .ct-meta { color: rgba(255, 255, 255, .85); }
.ct-article--paper .ct-paper-sheet { margin-top: 12px; padding: clamp(28px, 6vw, 72px) clamp(20px, 6vw, 72px); }
.ct-article--paper .wp-block-post-title { font-size: clamp(38px, 5vw, 60px); }
.ct-talk--wide .is-style-thread { margin-top: 12px; }
