html { scroll-behavior: smooth; overflow-x: clip; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; overflow-x: clip; text-rendering: optimizeLegibility; }
body, .wp-site-blocks { min-height: 100vh; }
.wp-site-blocks { display: flex; flex-direction: column; width: 100%; }
.wp-site-blocks > .alignfull { width: auto; margin-left: calc(-1 * clamp(1rem, 4vw, 2rem)); margin-right: calc(-1 * clamp(1rem, 4vw, 2rem)); }
main { flex: 1; }
/* Auto margins in the flex column shrink the footer to its content; bleed it past the root padding instead. */
.wp-site-blocks > footer.wp-block-template-part { align-self: stretch; margin-left: calc(-1 * clamp(1rem, 4vw, 2rem)); margin-right: calc(-1 * clamp(1rem, 4vw, 2rem)); max-width: none; }
.wp-site-blocks > footer.wp-block-template-part > .emmy-footer { margin-left: 0 !important; margin-right: 0 !important; width: 100%; max-width: none; }
img, svg, video { max-width: 100%; height: auto; }
a { text-underline-offset: .18em; text-decoration-thickness: .08em; }
:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 3px; }
.wp-block-navigation a, .wp-block-button__link { min-height: 44px; display: inline-flex; align-items: center; }
.wp-block-post-title a { text-decoration: none; }
.wp-block-post-excerpt__excerpt { color: var(--wp--preset--color--muted); }
.wp-block-post-excerpt:has(.wp-block-post-excerpt__excerpt:empty) { display: none; }
.wp-block-post-featured-image img { border-radius: 2px; aspect-ratio: 3 / 2; object-fit: cover; }
.wp-block-post-content { max-width: min(100%, 680px); margin-inline: auto; }
.wp-block-post-content > * + * { margin-top: 1.2em; }
.wp-block-post-content p, .wp-block-post-content li { line-height: 1.8; }
.wp-block-verse { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--wp--preset--font-family--reading); line-height: 1.7; }
.wp-block-quote { border-left: 3px solid var(--wp--preset--color--accent); padding-left: 1rem; }
.emmy-kicker { font-family: var(--wp--preset--font-family--ui); letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; font-weight: 750; }
.emmy-footer { --emmy-footer-soft: color-mix(in srgb, var(--wp--preset--color--base) 72%, var(--wp--preset--color--contrast)); }
.emmy-footer p { margin: 0; }
.emmy-footer a { color: inherit; text-decoration: none; }
.emmy-footer a:hover, .emmy-footer a:focus-visible { color: var(--wp--preset--color--base); text-decoration: underline; }
.emmy-footer__main { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem 3rem; }
.emmy-footer__brand .wp-block-site-title { font-weight: 600; line-height: 1.2; }
.emmy-footer__brand .wp-block-site-tagline { margin-top: .5rem; color: var(--emmy-footer-soft); max-width: 22rem; }
.emmy-footer__heading { color: color-mix(in srgb, var(--wp--preset--color--accent) 55%, var(--wp--preset--color--base)); margin-bottom: .5rem !important; }
.emmy-footer__links { list-style: none; margin: 0; padding: 0; color: var(--emmy-footer-soft); font-family: var(--wp--preset--font-family--ui); font-size: .95rem; }
.emmy-footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
.emmy-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: var(--wp--preset--spacing--50) !important; padding-top: var(--wp--preset--spacing--30); border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 16%, transparent); color: var(--emmy-footer-soft); }
.emmy-footer__bottom a { text-decoration: underline; }
/* Motion. Only transform and opacity animate, so it stays smooth on budget phones.
   Entrance and reveal states depend on .emmy-motion, which is never set for reduced motion. */
:root { --emmy-ease: cubic-bezier(.2, .7, .2, 1); --emmy-shadow: 0 18px 40px -20px color-mix(in srgb, var(--wp--preset--color--contrast) 45%, transparent); }

.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 40; margin-left: calc(-1 * clamp(1rem, 4vw, 2rem)); margin-right: calc(-1 * clamp(1rem, 4vw, 2rem)); padding-left: clamp(1rem, 4vw, 2rem); padding-right: clamp(1rem, 4vw, 2rem); view-transition-name: emmy-header; transition: box-shadow .3s ease; }
/* Blur sits on a pseudo element: a backdrop-filter on the header itself would trap the fixed mobile menu inside it. */
.wp-site-blocks > header.wp-block-template-part::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--wp--preset--color--base) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.wp-site-blocks > header.is-scrolled { box-shadow: 0 10px 30px -22px color-mix(in srgb, var(--wp--preset--color--contrast) 60%, transparent); }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
.emmy-header .wp-block-navigation-item__content { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .4em; transition: color .25s ease, text-decoration-color .25s ease, text-underline-offset .25s var(--emmy-ease); }
.emmy-header .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--accent-dark); text-decoration-color: currentColor; text-underline-offset: .25em; }

a { transition: color .2s ease, text-decoration-color .2s ease, text-underline-offset .2s var(--emmy-ease); }
a:hover { text-underline-offset: .3em; }

.wp-element-button { transition: transform .25s var(--emmy-ease), box-shadow .25s ease, background-color .25s ease, color .25s ease; }
.wp-element-button:active { transform: translateY(0) scale(.97); }
.is-style-outline .wp-element-button:hover { background-color: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }

@media (hover: hover) {
  .wp-element-button:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px color-mix(in srgb, var(--wp--preset--color--accent-dark) 70%, transparent); }
}

/* Hero: slate with a fine grain and rose/teal glows, after Emmy's mood image. Text is paper white. */
.emmy-hero { --emmy-on-dark: #FBF7F4; --emmy-on-dark-accent: #F0A8BA; position: relative; overflow: hidden; isolation: isolate; color: var(--emmy-on-dark); }
/* Glows and grain sit on decorative layers, so the browser can paint the hero colour straight away. */
.emmy-hero::before, .emmy-hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.emmy-hero::before { inset: -15%; background: radial-gradient(40vmax 40vmax at 12% 8%, rgba(218, 123, 147, .38), transparent 70%), radial-gradient(42vmax 42vmax at 92% 100%, rgba(55, 110, 111, .6), transparent 70%); }
.emmy-hero::after { inset: 0; 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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.emmy-hero__tagline { margin-block: 0 !important; font-family: var(--wp--preset--font-family--script); font-size: clamp(1.9rem, 4.4vw, 2.8rem); line-height: 1.2; color: var(--emmy-on-dark-accent); }
.emmy-hero__buttons { margin-top: var(--wp--preset--spacing--40) !important; }
.emmy-hero .wp-element-button { background: var(--emmy-on-dark-accent); color: var(--wp--preset--color--contrast); }
.emmy-hero .is-style-outline .wp-element-button { background: transparent; color: var(--emmy-on-dark); border: 1px solid currentColor; }
.emmy-hero .is-style-outline .wp-element-button:hover { background: var(--emmy-on-dark); color: var(--wp--preset--color--slate); }
.emmy-hero :focus-visible { outline-color: var(--emmy-on-dark-accent); }

@keyframes emmy-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes emmy-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes emmy-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); } }
@keyframes emmy-fade-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes emmy-fade-in { from { opacity: 0; transform: translateY(10px); } }

.emmy-motion .emmy-hero .alignwide > * { animation: emmy-rise .8s var(--emmy-ease) both; }
.emmy-motion .emmy-hero .alignwide > :nth-child(2) { animation-delay: .1s; }
.emmy-motion .emmy-hero .alignwide > :nth-child(3) { animation-delay: .22s; }
.emmy-motion .emmy-hero .alignwide > :nth-child(4) { animation-delay: .34s; }
.emmy-motion .emmy-hero::before { animation: emmy-drift 16s ease-in-out infinite alternate; }

.emmy-motion .emmy-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease var(--emmy-delay, 0ms), transform .9s var(--emmy-ease) var(--emmy-delay, 0ms); }
.emmy-motion .emmy-reveal.is-in { opacity: 1; transform: none; }

.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--base) !important; padding: 1.25rem clamp(1rem, 4vw, 2rem) !important; animation: emmy-rise .35s var(--emmy-ease) both; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 4rem !important; align-items: stretch !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: stretch !important; gap: 0 !important; width: 100%; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent); font-size: clamp(1.75rem, 8vw, 2.25rem); font-weight: 600; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { width: 100%; padding: .6rem 0 !important; justify-content: flex-start; }
.wp-block-navigation__responsive-container-close { top: 1.25rem !important; right: clamp(1rem, 4vw, 2rem) !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { animation: emmy-rise .5s var(--emmy-ease) both; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(2) { animation-delay: .05s; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(3) { animation-delay: .1s; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(4) { animation-delay: .15s; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(5) { animation-delay: .2s; }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: emmy-fade-out .2s ease both; }
  ::view-transition-new(root) { animation: emmy-fade-in .4s var(--emmy-ease) .05s both; }
}

.emmy-share { margin-top: var(--wp--preset--spacing--50) !important; padding-top: var(--wp--preset--spacing--40); border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent); }
.emmy-share ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: .75rem 0 0; padding: 0; }
.emmy-share__btn { --emmy-brand: var(--wp--preset--color--accent-dark); position: relative; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 16%, transparent); border-radius: 50%; color: var(--wp--preset--color--contrast); text-decoration: none; transition: transform .25s var(--emmy-ease), background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease; }
.emmy-share__btn.is-whatsapp { --emmy-brand: #25d366; }
.emmy-share__btn.is-facebook { --emmy-brand: #1877f2; }
.emmy-share__btn.is-x { --emmy-brand: #000; }
.emmy-share__btn:hover, .emmy-share__btn:focus-visible { background: var(--emmy-brand); border-color: var(--emmy-brand); color: #fff; transform: translateY(-3px); box-shadow: 0 10px 20px -12px var(--emmy-brand); }
.emmy-share__btn:active { transform: scale(.94); }
.emmy-share__icon { grid-area: 1 / 1; transition: transform .3s var(--emmy-ease), opacity .2s ease; }
.emmy-share__icon.is-check { opacity: 0; transform: scale(.4); }
.emmy-share__btn.is-copied { background: var(--wp--preset--color--accent-dark); border-color: var(--wp--preset--color--accent-dark); color: #fff; }
.emmy-share__btn.is-copied .is-link { opacity: 0; transform: scale(.4); }
.emmy-share__btn.is-copied .is-check { opacity: 1; transform: none; }
.emmy-share__btn.is-copy::after { content: attr(data-copied); position: absolute; bottom: calc(100% + 8px); left: 50%; padding: .3rem .6rem; border-radius: .4rem; background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); font-family: var(--wp--preset--font-family--ui); font-size: .75rem; white-space: nowrap; opacity: 0; transform: translate(-50%, 4px); pointer-events: none; transition: opacity .2s ease, transform .2s var(--emmy-ease); }
.emmy-share__btn.is-copied::after { opacity: 1; transform: translate(-50%, 0); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Comment form: match the site's form style. */
.wp-block-post-comments-form label { font-family: var(--wp--preset--font-family--ui); font-size: .85rem; font-weight: 600; }
.wp-block-post-comments-form input:not([type=submit]):not([type=checkbox]), .wp-block-post-comments-form textarea { width: 100%; min-height: 48px; padding: .65rem .9rem; border: 1px solid #867a72; border-radius: 2px; background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); font: inherit; }
.wp-block-post-comments-form textarea { min-height: 9rem; resize: vertical; }
.wp-block-post-comments-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: .7rem; }
.wp-block-post-comments-form .comment-form-cookies-consent input[type=checkbox] { flex: none; width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; accent-color: var(--wp--preset--color--accent-dark); cursor: pointer; }
.wp-block-post-comments-form .comment-form-cookies-consent label { font-weight: 400; font-size: .9rem; line-height: 1.5; color: var(--wp--preset--color--muted); cursor: pointer; }

/* Dateline band: today's date and the newest piece. */
.wp-site-blocks > .emmy-dateline + * { margin-block-start: 0; }
.emmy-dateline { padding-top: .6rem; padding-bottom: .6rem; font-family: var(--wp--preset--font-family--ui); font-size: .85rem; }
.emmy-dateline p { margin: 0; }
.emmy-dateline__date { opacity: .75; }
.emmy-dateline__latest, .emmy-dateline__latest .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.emmy-dateline__latest:not(:has(li)) { display: none; }
.emmy-dateline__latest li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; margin: 0; }
.emmy-dateline__label { padding: .1rem .5rem; border-radius: 2px; background: var(--wp--preset--color--orange); color: var(--wp--preset--color--contrast); font-size: .7rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.emmy-dateline .wp-block-post-title { margin: 0; font-family: inherit; font-size: inherit; font-weight: 600; line-height: 1.4; }
.emmy-dateline .wp-block-post-title a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }

.emmy-meta { font-family: var(--wp--preset--font-family--ui); letter-spacing: .01em; }
.emmy-kicker { font-weight: 600; letter-spacing: .18em; }

/* Header logo (round inkpot). The light-lettering version replaces it in night mode. */
.emmy-logo { display: inline-flex; flex: none; line-height: 0; }
.emmy-logo img { width: auto; height: 74px; margin-block: -6px; }
.emmy-logo__night { display: none; }
html[data-emmy-night] .emmy-logo__day { display: none; }
html[data-emmy-night] .emmy-logo__night { display: block; }
.emmy-footer__logo { display: inline-block; line-height: 0; }
.emmy-footer__logo img { width: 200px; height: auto; }
@media (min-width: 600px) {
  .emmy-nav .wp-block-navigation__container { align-items: center; gap: 1.5rem; }
  .emmy-nav .wp-block-navigation-item__content { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--wp--preset--font-family--ui); font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
  .emmy-nav .emmy-nav__pill > .wp-block-navigation-item__content { display: inline-flex; align-items: center; min-height: 38px; padding: 0 1rem; line-height: 1; background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
  .emmy-nav .emmy-nav__pill > .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--accent-dark); color: var(--wp--preset--color--base); }
}
@media (max-width: 599px) { .emmy-logo img { height: 58px; margin-block: -4px; } }

/* "Browse the writing:" in script, then category links in spaced capitals. */
.emmy-browse { gap: .4rem 2.2rem; padding-block: var(--wp--preset--spacing--50); }
.emmy-browse__label { margin: 0; font-family: var(--wp--preset--font-family--script); font-size: clamp(1.7rem, 3.4vw, 2.2rem); line-height: 1; }
.emmy-browse__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 2rem; margin: 0; padding: 0; list-style: none; }
.emmy-browse__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--wp--preset--color--contrast); font-family: var(--wp--preset--font-family--ui); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-decoration: none; text-transform: uppercase; }
.emmy-browse__links a:hover { color: var(--wp--preset--color--accent-dark); text-decoration: underline; text-underline-offset: .5em; }

/* Featured latest piece: square photo with a round badge, overlapped by a white card. */
.emmy-feature { margin-top: var(--wp--preset--spacing--40) !important; }
.emmy-feature .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.emmy-feature li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
.emmy-feature__media { position: relative; grid-column: 2 / span 6; grid-row: 1; margin: 0 !important; }
.emmy-feature__media .wp-block-post-featured-image { margin: 0; }
.emmy-feature__media img { border-radius: 0; }
.emmy-feature__media:not(:has(.wp-block-post-featured-image))::before { content: "\201C"; display: grid; place-items: center; aspect-ratio: 1; background: var(--wp--preset--color--slate); color: var(--wp--preset--color--accent); font-family: var(--wp--preset--font-family--display); font-size: clamp(8rem, 18vw, 14rem); line-height: 1; }
.emmy-feature__badge { position: absolute; z-index: 2; top: -1.75rem; left: -1.75rem; display: grid; place-items: center; width: 6.5rem; height: 6.5rem; margin: 0 !important; padding: 1rem; border-radius: 50%; background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); font-family: var(--wp--preset--font-family--ui); font-size: .6rem; font-weight: 600; letter-spacing: .2em; line-height: 1.5; text-align: center; text-transform: uppercase; }
.emmy-feature__card { position: relative; z-index: 1; grid-column: 7 / span 5; grid-row: 1; margin: 0 !important; padding: clamp(1.5rem, 3.5vw, 2.75rem); background: var(--wp--preset--color--base); box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--wp--preset--color--contrast) 60%, transparent); }
.emmy-feature__card > * { margin-block: 0; }
.emmy-feature__kicker { font-family: var(--wp--preset--font-family--ui); font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.emmy-feature__kicker a { color: var(--wp--preset--color--accent-dark); text-decoration: none; }
.emmy-feature__title { margin: .6rem 0 .5rem !important; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; }
.emmy-feature__title a { color: var(--wp--preset--color--contrast); }
.emmy-feature__excerpt { margin-top: 1rem !important; }
.emmy-feature__excerpt p { margin: 0; font-size: 1rem; }
.emmy-feature__more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 1.4rem !important; padding: 0 1.4rem; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--contrast); font-family: var(--wp--preset--font-family--ui); font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-decoration: none; text-transform: uppercase; transition: background-color .25s ease, color .25s ease; }
.emmy-feature__more:hover { background: var(--wp--preset--color--accent-dark); color: var(--wp--preset--color--base); }
@media (max-width: 781px) {
  .emmy-feature li { display: block; }
  .emmy-feature__badge { top: -1rem; left: .5rem; width: 5.5rem; height: 5.5rem; }
  .emmy-feature__card { margin: -3rem 1rem 0 !important; }
}

/* Writing grid: square photos with the category written sideways, centred titles, italic "Read more". */
.emmy-grid-section { padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40); }
.emmy-grid-section:not(:has(.emmy-entry)) { display: none; }
.emmy-grid .wp-block-post-template { margin: 0; padding: 0; }
.emmy-entry { text-align: center; }
.emmy-entry > * { margin-block: 0; }
.emmy-entry__media { position: relative; margin: 0 0 1.1rem !important; padding-left: 1.6rem; }
.emmy-entry__media .wp-block-post-featured-image { margin: 0; }
.emmy-entry__media img { border-radius: 0; }
.emmy-entry__media:not(:has(.wp-block-post-featured-image))::before { content: "\201C"; display: grid; place-items: center; aspect-ratio: 1; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--accent); font-family: var(--wp--preset--font-family--display); font-size: 7rem; line-height: 1; }
.emmy-entry__side { position: absolute; top: 0; left: 0; margin: 0 !important; writing-mode: vertical-rl; font-family: var(--wp--preset--font-family--ui); font-size: .6rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.emmy-entry__side a { color: var(--wp--preset--color--muted); text-decoration: none; }
.emmy-entry__title { margin: 0 0 .6rem !important; padding-left: 1.6rem; font-size: 1.55rem; line-height: 1.12; }
.emmy-entry__title a { color: var(--wp--preset--color--contrast); }
.emmy-entry__excerpt { padding-left: 1.6rem; }
.emmy-entry__excerpt p { margin: 0; font-size: .95rem; line-height: 1.6; }
.emmy-entry__more { display: inline-flex; align-items: center; min-height: 44px; margin-left: 1.6rem; color: var(--wp--preset--color--contrast); font-style: italic; text-decoration: underline; text-underline-offset: .35em; }
.emmy-grid-section__all { margin-top: var(--wp--preset--spacing--40) !important; font-family: var(--wp--preset--font-family--ui); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
@media (max-width: 900px) { .emmy-grid .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 600px) { .emmy-grid .wp-block-post-template { grid-template-columns: minmax(0, 1fr) !important; } }
/* Short videos: vertical preview cards, swipeable on phones. */
.emmy-videos-section, .emmy-newsletter { width: 100%; max-width: var(--wp--style--global--wide-size, 1160px); margin-left: auto !important; margin-right: auto !important; box-sizing: border-box; }
.emmy-videos-section { padding-top: var(--wp--preset--spacing--60); }
.emmy-videos-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .5rem 2rem; margin-bottom: var(--wp--preset--spacing--40); }
.emmy-videos-section__head h2, .emmy-videos-section__head p { margin: 0; }
.emmy-videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: var(--wp--preset--spacing--40); }
.emmy-video__frame { position: relative; aspect-ratio: 9 / 16; border-radius: 2px; overflow: hidden; background: var(--wp--preset--color--contrast); box-shadow: var(--emmy-shadow); }
.emmy-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.emmy-video__play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border: 0; padding: 0; cursor: pointer; background: linear-gradient(to top, color-mix(in srgb, var(--wp--preset--color--contrast) 55%, transparent), transparent 55%); transition: opacity .3s ease; }
.emmy-video__play span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, var(--wp--preset--color--base) 92%, transparent); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); transition: transform .3s var(--emmy-ease); }
.emmy-video__play span::before { content: ""; margin-left: 5px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--wp--preset--color--accent-dark); }
.emmy-video__play:hover span, .emmy-video__play:focus-visible span { transform: scale(1.1); }
.emmy-video.is-playing .emmy-video__play, .emmy-video__frame:has(.emmy-video__end:not([hidden])) .emmy-video__play { opacity: 0; pointer-events: none; }
.emmy-video__end { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 1.25rem; text-align: center; color: var(--wp--preset--color--base); background: color-mix(in srgb, var(--wp--preset--color--contrast) 84%, transparent); animation: emmy-rise .4s var(--emmy-ease) both; }
.emmy-video__end[hidden] { display: none; }
.emmy-video__end p { margin: 0; }
.emmy-video__end .wp-element-button { background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); font-size: .9rem; }
.emmy-video__count { font-family: var(--wp--preset--font-family--ui); font-size: .85rem; opacity: .8; }
.emmy-video__stay { min-height: 44px; padding: 0 .5rem; border: 0; background: none; color: inherit; font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }
.emmy-video__title { margin: .85rem 0 .2rem; font-size: 1.1rem; line-height: 1.3; }
.emmy-video__full { font-size: .9rem; }
@media (max-width: 781px) {
  .emmy-videos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: calc(-1 * clamp(1rem, 4vw, 2rem)); padding: 0 clamp(1rem, 4vw, 2rem) .75rem 0; }
  .emmy-videos::-webkit-scrollbar { display: none; }
  .emmy-video { scroll-snap-align: start; }
}

/* Newsletter signup. */
.emmy-newsletter { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--wp--preset--spacing--50); align-items: center; margin-top: var(--wp--preset--spacing--60) !important; padding: clamp(1.5rem, 5vw, 3.5rem); border-radius: 2px; background: var(--wp--preset--color--surface); }
.emmy-newsletter::before { content: ""; position: absolute; z-index: -1; top: -10rem; right: -8rem; width: 26rem; height: 26rem; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--accent) 20%, transparent), transparent 65%); }
.emmy-newsletter .emmy-kicker { margin: 0; color: var(--wp--preset--color--accent-dark); }
.emmy-newsletter h2 { margin: .4rem 0 .6rem; font-size: var(--wp--preset--font-size--large); }
.emmy-newsletter__intro > p:last-child { margin: 0; color: var(--wp--preset--color--muted); }
.emmy-newsletter__form p { margin: 0 0 .8rem; }
.emmy-newsletter__field label { display: block; margin-bottom: .3rem; font-family: var(--wp--preset--font-family--ui); font-size: .85rem; font-weight: 600; }
.emmy-newsletter__field input { width: 100%; min-height: 48px; padding: .65rem .9rem; border: 1px solid #867a72; border-radius: 2px; background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); font: inherit; }
.emmy-newsletter__form .wp-element-button { width: 100%; border: 0; cursor: pointer; }
.emmy-newsletter__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.emmy-newsletter__notice { margin: .25rem 0 0 !important; padding: .75rem 1rem; border-left: 3px solid var(--wp--preset--color--accent-dark); border-radius: 2px; background: var(--wp--preset--color--base); font-family: var(--wp--preset--font-family--ui); font-size: .9rem; }
.emmy-newsletter__notice.is-invalid, .emmy-newsletter__notice.is-error { border-left-color: #b3261e; }
@media (max-width: 781px) { .emmy-newsletter { grid-template-columns: minmax(0, 1fr); } }

.woocommerce form .form-row input.input-text { min-height: 48px; border: 1px solid #867a72; border-radius: 2px; padding: .65rem .8rem; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { min-height: 44px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (max-width: 600px) {
  .wp-block-navigation__responsive-container.is-menu-open { padding: 1.25rem; }
  .wp-block-buttons { flex-wrap: wrap; }
  .wp-block-button { max-width: 100%; }
  .wp-block-button__link { white-space: normal; text-align: center; }
  .wp-block-post-content { max-width: 100%; }
  .emmy-footer__main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 1.5rem; }
  .emmy-footer__brand { grid-column: 1 / -1; }
  .emmy-footer__bottom { flex-direction: column; }
  h1, h2, h3, p { overflow-wrap: anywhere; }
}

/* Quote cards: floating "Share this line" button and the desktop preview dialog. */
.emmy-quote-button { position: fixed; z-index: 60; left: 50%; bottom: max(1.25rem, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: 0 1.4rem; border: 0; border-radius: 999px; background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55); font-family: var(--wp--preset--font-family--ui); font-size: .95rem; font-weight: 700; cursor: pointer; transform: translateX(-50%); animation: emmy-rise .3s var(--emmy-ease) both; }
.emmy-quote-button::before { content: "\201C"; font-family: var(--wp--preset--font-family--reading); font-size: 1.6rem; line-height: 0; color: var(--wp--preset--color--accent); transform: translateY(.2em); }
.emmy-quote-button[hidden] { display: none; }
.emmy-quote-button:disabled { opacity: .7; cursor: progress; }
.emmy-quote-dialog { width: min(92vw, 420px); max-height: 92vh; padding: 1rem; border: 0; border-radius: 2px; background: var(--wp--preset--color--base); box-shadow: var(--emmy-shadow); }
.emmy-quote-dialog::backdrop { background: color-mix(in srgb, var(--wp--preset--color--contrast) 60%, transparent); }
.emmy-quote-dialog img { display: block; width: 100%; max-height: 62vh; object-fit: contain; border-radius: 2px; }
.emmy-quote-dialog__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.emmy-quote-dialog__actions .wp-element-button { display: inline-flex; align-items: center; flex: 1 1 auto; justify-content: center; min-height: 48px; font-size: .9rem; text-decoration: none; }
.emmy-quote-dialog__actions .is-whatsapp { background: #1f8f4e; }
.emmy-quote-dialog__close { flex-basis: 100%; min-height: 44px; border: 0; background: none; color: var(--wp--preset--color--muted); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }
.emmy-share__hint { margin: .9rem 0 0; color: var(--wp--preset--color--muted); font-family: var(--wp--preset--font-family--ui); font-size: .85rem; }

/* Hero quote slideshow. Slides share one grid cell, so the height never jumps between quotes. */
.emmy-quotes { position: relative; margin: 1.25rem auto 0 !important; max-width: 860px; text-align: center; }
.emmy-quotes__track { display: grid; }
.emmy-quotes__slide { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; margin: 0; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .9s ease, transform 1.1s var(--emmy-ease), visibility 0s linear .9s; }
.emmy-quotes__slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.emmy-quotes blockquote { margin: 0; padding: 0; border: 0; }
.emmy-quotes blockquote p { margin: 0; font-family: var(--wp--preset--font-family--reading); font-size: clamp(1.65rem, 4.2vw, 3.1rem); font-style: italic; font-weight: 400; line-height: 1.28; letter-spacing: -.01em; color: var(--wp--preset--color--contrast); text-wrap: balance; }
.emmy-quotes blockquote p::before { content: "\201C"; display: block; height: .55em; margin-bottom: .1em; font-size: 2.2em; font-style: normal; line-height: 1; color: color-mix(in srgb, var(--wp--preset--color--accent) 55%, transparent); }
.emmy-quotes__line { display: block; }
.emmy-motion .emmy-quotes__slide.is-active .emmy-quotes__line { animation: emmy-rise .9s var(--emmy-ease) calc(.15s + var(--emmy-line, 0) * .18s) both; }
.emmy-quotes .emmy-quotes__source { margin: 1.1rem 0 0; font-family: var(--wp--preset--font-family--ui); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.emmy-quotes .emmy-quotes__source a { color: var(--wp--preset--color--accent-dark); text-decoration: none; }
.emmy-quotes .emmy-quotes__source a:hover { text-decoration: underline; }
.emmy-quotes cite { font-style: normal; }
.emmy-quotes .emmy-quotes__source::after { content: ""; display: block; width: 4.5rem; height: 3px; margin: 1.1rem auto 0; border-radius: 3px; background: var(--wp--preset--color--accent); }

.emmy-quotes__controls { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: 1rem; }
.emmy-quotes__dots { display: flex; gap: .15rem; }
.emmy-quotes__dot, .emmy-quotes__pause { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 4px; border: 0; background: none; cursor: pointer; }
.emmy-quotes__dot span { position: relative; display: block; width: 8px; height: 8px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--wp--preset--color--contrast) 22%, transparent); transition: width .4s var(--emmy-ease); }
.emmy-quotes__dot.is-active span { width: 30px; }
.emmy-quotes__dot.is-active span::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--wp--preset--color--accent-dark); transform-origin: left; }
.emmy-quotes__dot.is-timing span::after { animation: emmy-quote-progress var(--emmy-quote-interval, 6.5s) linear both; }
@keyframes emmy-quote-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.emmy-quotes__pause span { position: relative; width: 12px; height: 12px; }
.emmy-quotes__pause span::before, .emmy-quotes__pause span::after { content: ""; position: absolute; top: 0; width: 4px; height: 12px; border-radius: 1px; background: var(--wp--preset--color--muted); }
.emmy-quotes__pause span::before { left: 1px; }
.emmy-quotes__pause span::after { right: 1px; }
.emmy-quotes__pause.is-paused span::before { left: 2px; width: 0; height: 0; border-radius: 0; background: none; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--wp--preset--color--muted); }
.emmy-quotes__pause.is-paused span::after { display: none; }
@media (prefers-reduced-motion: reduce) { .emmy-quotes__slide { transform: none; } }

/* Free ebook sample link under Add to cart. */
.emmy-sample { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; margin: 1rem 0 0; font-family: var(--wp--preset--font-family--ui); }
.emmy-sample__link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1.2rem; border: 1.5px solid var(--wp--preset--color--contrast); border-radius: 2px; color: var(--wp--preset--color--contrast); font-size: .95rem; font-weight: 700; text-decoration: none; transition: background-color .25s ease, color .25s ease; }
.emmy-sample__link::before { content: ""; width: 1rem; height: 1.15rem; 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='M2 4h7a4 4 0 0 1 4 4v13a3 3 0 0 0-3-3H2zM22 4h-7a4 4 0 0 0-4 4v13a3 3 0 0 1 3-3h8z'/%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='M2 4h7a4 4 0 0 1 4 4v13a3 3 0 0 0-3-3H2zM22 4h-7a4 4 0 0 0-4 4v13a3 3 0 0 1 3-3h8z'/%3E%3C/svg%3E") center / contain no-repeat; }
.emmy-sample__link:hover, .emmy-sample__link:focus-visible { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.emmy-sample__meta { color: var(--wp--preset--color--muted); font-size: .8rem; }

/* Purchase note under Buy now, and the 404 page. */
.emmy-purchase-note { max-width: 34rem; line-height: 1.6; }
.emmy-404-search { max-width: 32rem; margin-top: var(--wp--preset--spacing--40) !important; }
.emmy-404-search .wp-block-search__input { min-height: 48px; padding: .6rem .9rem; border: 1px solid #867a72; border-radius: 2px; background: var(--wp--preset--color--base); font: inherit; }
.emmy-404-search .wp-block-search__button { min-height: 48px; margin-left: .5rem; border: 0; border-radius: 999px; background: var(--wp--preset--color--accent-dark); color: var(--wp--preset--color--base); font-family: var(--wp--preset--font-family--ui); font-weight: 700; padding: 0 1.2rem; cursor: pointer; }
.emmy-404-heading { margin-top: var(--wp--preset--spacing--60) !important; font-size: var(--wp--preset--font-size--large); }
.emmy-404-list .wp-block-post-template { margin: 0 0 var(--wp--preset--spacing--50); padding: 0; list-style: none; }
.emmy-404-list li { padding: .9rem 0; border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent); }
.emmy-404-list .wp-block-post-title { margin: .2rem 0; font-size: 1.2rem; }
.emmy-404-list .emmy-kicker { font-size: .7rem; }
.emmy-404-list .emmy-kicker a { color: var(--wp--preset--color--accent-dark); text-decoration: none; }

/* Reading controls on posts: text size and night reading. */
.emmy-meta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.emmy-meta-row > .wp-block-post-date { margin: 0; }
.emmy-reading { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--wp--preset--font-family--ui); }
.emmy-reading button { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-width: 40px; min-height: 40px; padding: 0 .7rem; border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 18%, transparent); border-radius: 999px; background: none; color: var(--wp--preset--color--contrast); font: 700 .85rem/1 var(--wp--preset--font-family--ui); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.emmy-reading button:hover { background: color-mix(in srgb, var(--wp--preset--color--contrast) 8%, transparent); }
.emmy-reading button:disabled { opacity: .4; cursor: default; }
.emmy-reading__a { font-family: var(--wp--preset--font-family--ui); font-weight: 700; line-height: 1; }
.emmy-reading__a.is-small { font-size: .85rem; }
.emmy-reading__a.is-large { font-size: 1.2rem; }
.emmy-reading__icon { width: .9rem; height: .9rem; border-radius: 50%; box-shadow: inset -.28rem -.1rem 0 0 currentColor; transform: rotate(-20deg); }
.emmy-mode-toggle.is-day .emmy-reading__icon { width: .55rem; height: .55rem; margin: 0 .15rem; box-shadow: none; background: currentColor; outline: 2px dotted currentColor; outline-offset: 2px; transform: none; }
html[data-emmy-size="1"] .wp-block-post-content { font-size: 1.22rem; }
html[data-emmy-size="2"] .wp-block-post-content { font-size: 1.38rem; }

/* Night reading: Emmy's deep green with rose accents. Ink bands (date strip, ebooks, footer) become aubergine. */
html[data-emmy-night] {
  color-scheme: dark;
  --wp--preset--color--base: #1C3334;
  --wp--preset--color--contrast: #F5ECEE;
  --wp--preset--color--surface: #233F40;
  --wp--preset--color--muted: #B9C7C4;
  --wp--preset--color--accent: #E58FA5;
  --wp--preset--color--accent-dark: #F0A8BA;
}
html[data-emmy-night] body { background: var(--wp--preset--color--base); }
html[data-emmy-night] .has-contrast-background-color { background-color: #2E151B !important; }
html[data-emmy-night] .has-contrast-background-color, html[data-emmy-night] .has-contrast-background-color .has-base-color { color: #F5ECEE !important; }
html[data-emmy-night] .has-contrast-background-color .has-base-background-color { background-color: #F5ECEE !important; color: #2E151B !important; }
html[data-emmy-night] img { filter: brightness(.9); }
html[data-emmy-night] .emmy-footer { --emmy-footer-soft: #D9C9CD; }
html[data-emmy-night] .emmy-footer__heading { color: #F0A8BA; }
html[data-emmy-night] .emmy-hero { background-color: #182B37 !important; }
html[data-emmy-night] .wp-element-button, html[data-emmy-night] .emmy-nav .emmy-nav__pill > .wp-block-navigation-item__content { color: #1C3334; }

/* Series box under a post: part number, previous/next, and the full list. */
.emmy-series { margin-top: var(--wp--preset--spacing--50) !important; padding: clamp(1.25rem, 4vw, 1.75rem); border-radius: 2px; background: var(--wp--preset--color--surface); }
.emmy-series__kicker { margin: 0; color: var(--wp--preset--color--accent-dark); font-family: var(--wp--preset--font-family--ui); font-size: .75rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.emmy-series__title { margin: .3rem 0 1rem; font-size: var(--wp--preset--font-size--large); }
.emmy-series__title a { color: inherit; text-decoration: none; }
.emmy-series__title a:hover { text-decoration: underline; }
.emmy-series__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .75rem; }
.emmy-series__step { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem; border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 14%, transparent); border-radius: 2px; background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); font-weight: 600; line-height: 1.3; text-decoration: none; transition: border-color .2s ease, transform .25s var(--emmy-ease); }
.emmy-series__step span { color: var(--wp--preset--color--muted); font-family: var(--wp--preset--font-family--ui); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.emmy-series__step.is-next { text-align: right; }
.emmy-series__step:hover { border-color: var(--wp--preset--color--accent-dark); transform: translateY(-2px); }
.emmy-series__all { margin-top: 1rem; font-family: var(--wp--preset--font-family--ui); font-size: .9rem; }
.emmy-series__all summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.emmy-series__all ol { margin: .25rem 0 0; padding-left: 1.4rem; }
.emmy-series__all li { padding: .3rem 0; }
.emmy-series__all li[aria-current] { font-weight: 700; }
.emmy-series__all summary { list-style: none; }
.emmy-series__all summary::-webkit-details-marker { display: none; }
.emmy-series__all summary::before { content: ""; width: 0; height: 0; margin-right: .6rem; border-style: solid; border-width: 5px 0 5px 7px; border-color: transparent transparent transparent currentColor; transition: transform .2s var(--emmy-ease); }
.emmy-series__all[open] summary::before { transform: rotate(90deg); }

/* Audio reading above a post. */
.emmy-audio { margin-bottom: var(--wp--preset--spacing--40) !important; padding: .9rem 1rem; border-radius: 2px; background: var(--wp--preset--color--surface); }
.emmy-audio__label { margin: 0 0 .5rem; font-family: var(--wp--preset--font-family--ui); font-size: .85rem; font-weight: 700; }
.emmy-audio__length { color: var(--wp--preset--color--muted); font-weight: 500; }
.emmy-audio audio { display: block; width: 100%; height: 44px; }

/* Day/night toggle in the header, beside the menu (or the menu button on phones). */
.emmy-header__end { gap: .75rem; }
.emmy-mode-toggle { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 16%, transparent); border-radius: 50%; background: none; color: var(--wp--preset--color--contrast); cursor: pointer; transition: background-color .2s ease, border-color .2s ease, transform .3s var(--emmy-ease); }
.emmy-mode-toggle:hover { background: color-mix(in srgb, var(--wp--preset--color--contrast) 8%, transparent); }
.emmy-mode-toggle:active { transform: rotate(-25deg) scale(.94); }
.emmy-mode-toggle .emmy-reading__icon { width: 1.05rem; height: 1.05rem; box-shadow: inset -.32rem -.12rem 0 0 currentColor; }
.emmy-mode-toggle.is-day .emmy-reading__icon { width: .62rem; height: .62rem; margin: 0; box-shadow: none; }

/* Quote slideshow on the dark hero: large display serif in paper white, rose accents. */
.emmy-hero .emmy-quotes blockquote p { font-family: var(--wp--preset--font-family--display); font-size: clamp(2.1rem, 5.4vw, 3.9rem); font-style: normal; font-weight: 500; line-height: 1.12; color: var(--emmy-on-dark); }
.emmy-hero .emmy-quotes blockquote p::before { color: var(--wp--preset--color--accent); }
.emmy-hero .emmy-quotes .emmy-quotes__source { color: color-mix(in srgb, var(--emmy-on-dark) 75%, transparent); font-weight: 600; letter-spacing: .2em; }
.emmy-hero .emmy-quotes .emmy-quotes__source a { color: var(--emmy-on-dark-accent); }
.emmy-hero .emmy-quotes .emmy-quotes__source::after { height: 1px; background: var(--emmy-on-dark-accent); }
.emmy-hero .emmy-quotes__dot span { background: color-mix(in srgb, var(--emmy-on-dark) 35%, transparent); }
.emmy-hero .emmy-quotes__dot.is-active span::after { background: var(--emmy-on-dark-accent); }
.emmy-hero .emmy-quotes__pause span::before, .emmy-hero .emmy-quotes__pause span::after { background: var(--emmy-on-dark); }
.emmy-hero .emmy-quotes__pause.is-paused span::before { background: none; border-color: transparent transparent transparent var(--emmy-on-dark); }
.emmy-hero .screen-reader-text + .wp-block-heading, .emmy-hero h1.wp-block-heading { color: var(--emmy-on-dark); }

.emmy-header__end, .emmy-header .alignwide { align-items: center; }

/* Social icon links (About section and footer). */
.emmy-social { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.emmy-social__link { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); border-radius: 50%; color: var(--wp--preset--color--contrast); transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .25s var(--emmy-ease); }
.emmy-social__link:hover, .emmy-social__link:focus-visible { background: var(--wp--preset--color--accent-dark); border-color: var(--wp--preset--color--accent-dark); color: var(--wp--preset--color--base); transform: translateY(-2px); }
.emmy-footer .emmy-social__link { color: var(--emmy-footer-soft); }
.emmy-footer .emmy-social__link:hover, .emmy-footer .emmy-social__link:focus-visible { background: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--contrast); }

/* About section portrait with the photographer's credit. */
.emmy-about__figure { margin: 0; }
.emmy-about__figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 2px; }
.emmy-about__figure figcaption { margin-top: .5rem; color: var(--wp--preset--color--muted); font-family: var(--wp--preset--font-family--ui); font-size: .7rem; letter-spacing: .08em; }
.emmy-about__bio { font-size: 1.05rem; line-height: 1.75; }

/* Codex hero (trial). */
.emmy-editorial-hero { background-color: #10100f; background-image: radial-gradient(circle at 12% 78%, rgba(255,255,255,.14), transparent 22%), radial-gradient(circle at 88% 10%, rgba(255,255,255,.06), transparent 28%), linear-gradient(115deg, transparent 0 45%, rgba(255,255,255,.04) 46%, transparent 68%); isolation: isolate; overflow: hidden; position: relative; }
.emmy-editorial-hero::after { background: repeating-linear-gradient(90deg, transparent 0 119px, rgba(255,255,255,.018) 120px); content: ""; inset: 0; pointer-events: none; position: absolute; z-index: -1; }
.emmy-editorial-hero h1 { color: var(--wp--preset--color--base); margin-block: .35em .2em; }
.emmy-hero-deck { font-family: var(--wp--preset--font-family--ui); letter-spacing: .04em; max-width: 42rem; opacity: .78; }
.emmy-editorial-hero .wp-block-buttons { margin-top: 2rem; }
.emmy-editorial-hero .wp-block-button__link:hover { background: var(--wp--preset--color--surface) !important; }
@media (max-width: 781px) { .emmy-editorial-hero { min-height: 70svh; display: flex; align-items: center; } }
/* Hero: Emmy's portrait as a slowly moving background, darkened so the text over it stays readable. */
.emmy-editorial-hero { padding-left: clamp(1rem, 4vw, 2rem) !important; padding-right: clamp(1rem, 4vw, 2rem) !important; }
.emmy-editorial-hero.has-photo { min-height: min(88svh, 820px); display: flex; flex-direction: column; justify-content: center; }
.emmy-editorial-hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; margin: 0 !important; max-width: none !important; }
.emmy-editorial-hero__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transform: scale(1.08); transform-origin: 50% 30%; }
.emmy-editorial-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 16, 15, .55) 0%, rgba(16, 16, 15, .45) 45%, rgba(16, 16, 15, .82) 100%), radial-gradient(70% 60% at 50% 50%, rgba(16, 16, 15, .15), rgba(16, 16, 15, .55)); }
.emmy-motion .emmy-editorial-hero__photo { animation: emmy-kenburns 24s ease-in-out infinite alternate; }
@keyframes emmy-kenburns { from { transform: scale(1.08) translate3d(0, 0, 0); } to { transform: scale(1.2) translate3d(-2%, -1.5%, 0); } }
.emmy-editorial-hero__title { margin: .3em 0 .3em !important; font-size: clamp(3.2rem, 9vw, 7.4rem); font-weight: 500; line-height: .96; letter-spacing: -.03em; color: var(--wp--preset--color--base); text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.emmy-editorial-hero .emmy-hero-deck { margin-inline: auto; max-width: 38rem; font-size: clamp(1rem, 1.8vw, 1.2rem); line-height: 1.6; opacity: .9; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.emmy-editorial-hero .emmy-kicker { text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.emmy-editorial-hero__credit { position: absolute; right: clamp(1rem, 4vw, 2rem); bottom: 1rem; margin: 0 !important; font-family: var(--wp--preset--font-family--ui); font-size: .65rem; letter-spacing: .08em; opacity: .6; }
/* Wide screens: the portrait sits on the right and the text on the left, so the words never cross her face
   and the photo is not stretched across the whole width. */
@media (min-width: 900px) {
  .emmy-editorial-hero.has-photo .emmy-editorial-hero__bg { left: 38%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%); }
  .emmy-editorial-hero.has-photo .emmy-editorial-hero__photo { object-position: center 18%; }
  .emmy-editorial-hero.has-photo .emmy-editorial-hero__bg::after { background: linear-gradient(90deg, rgba(16, 16, 15, .35) 0%, rgba(16, 16, 15, .05) 55%, rgba(16, 16, 15, .3) 100%), linear-gradient(180deg, transparent 60%, rgba(16, 16, 15, .55) 100%); }
  .emmy-editorial-hero.has-photo .emmy-editorial-hero__text { width: 100%; max-width: var(--wp--style--global--wide-size) !important; margin-inline: auto !important; }
  .emmy-editorial-hero.has-photo .emmy-editorial-hero__text > * { max-width: min(36rem, 46%) !important; margin-left: 0 !important; margin-right: 0 !important; text-align: left; }
  .emmy-editorial-hero.has-photo .emmy-editorial-hero__title { font-size: clamp(3.6rem, 6.2vw, 6.4rem); }
  .emmy-editorial-hero.has-photo .wp-block-buttons { justify-content: flex-start; }
}

/* ===== Direction A: editorial. Ivory, ink and maroon; real photography; no script, no pink panels. ===== */
.emmy-wordmark { display: inline-flex; align-items: center; min-height: 44px; color: var(--wp--preset--color--contrast); font-family: var(--wp--preset--font-family--display); font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 600; letter-spacing: .24em; line-height: 1; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.emmy-wordmark:hover { color: var(--wp--preset--color--accent-dark); }
.emmy-header { border-bottom-color: color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent) !important; }
.emmy-footer__wordmark { color: var(--wp--preset--color--base); font-size: 1.6rem; }
.emmy-footer__wordmark:hover { color: var(--wp--preset--color--base); text-decoration: underline; }
.emmy-footer__tagline { margin: .4rem 0 0 !important; color: var(--emmy-footer-soft); font-family: var(--wp--preset--font-family--display); font-size: 1.1rem; font-style: italic; }

/* Browse row: a quiet line between two rules. */
.emmy-browse { margin-top: 0 !important; padding-block: 1.1rem; border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent); }
.emmy-browse__label { font-family: var(--wp--preset--font-family--ui); font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--wp--preset--color--muted); }

/* Featured piece: square photo with a bordered card; without a photo, the card stands alone, centred. */
.emmy-feature { margin-top: var(--wp--preset--spacing--60) !important; }
.emmy-feature__card { box-shadow: none; border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 14%, transparent); }
.emmy-feature li:not(:has(.wp-block-post-featured-image)) .emmy-feature__media { display: none; }
.emmy-feature li:not(:has(.wp-block-post-featured-image)) .emmy-feature__card { grid-column: 3 / span 8; text-align: center; }
.emmy-feature__more { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.emmy-feature__more:hover { background: var(--wp--preset--color--accent-dark); }

/* Grid: every piece gets the same square tile (her photo, or a stone tile with a quote mark),
   then the category on one line, so a row of mixed pieces lines up. */
.emmy-entry__media { display: flex; flex-direction: column; gap: 1rem; padding-left: 0; }
.emmy-entry__media:not(:has(.wp-block-post-featured-image))::before { padding-top: .3em; font-size: clamp(5rem, 9vw, 7rem); }
.emmy-entry__side { position: static; writing-mode: horizontal-tb; display: block; text-align: center; }
.emmy-entry__title, .emmy-entry__excerpt { padding-left: 0; }
.emmy-entry__more { margin-left: 0; }
@media (max-width: 600px) { .emmy-entry__media:not(:has(.wp-block-post-featured-image))::before { aspect-ratio: 5 / 2; padding-top: .2em; font-size: 4.5rem; } }

/* Phones: the words sit low in the hero so her face stays clear above them. */
@media (max-width: 899px) {
  .emmy-editorial-hero.has-photo { justify-content: flex-end; padding-bottom: 3.5rem !important; }
  .emmy-editorial-hero.has-photo .emmy-editorial-hero__photo { object-position: 30% 15%; }
}

/* About page portrait: a framed photo, never taller than the screen. */
.emmy-about-page__photo img { width: 100%; max-height: min(78svh, 720px); object-fit: cover; object-position: center 20%; }

/* The hero is always dark, so it keeps the light palette at night too. */
html[data-emmy-night] .emmy-editorial-hero { --wp--preset--color--base: #FAF8F5; --wp--preset--color--contrast: #1A1617; --wp--preset--color--surface: #F1EDE8; }

/* Panels: stone, square, no glows. */
.emmy-newsletter { border-radius: 2px; }
.emmy-newsletter::before { content: none; }
.emmy-quote-button::before { color: var(--wp--preset--color--base); opacity: .7; }

/* Night: neutral charcoal with a soft wine accent. */
html[data-emmy-night] {
  --wp--preset--color--base: #141313;
  --wp--preset--color--contrast: #F3EEE8;
  --wp--preset--color--surface: #1F1D1D;
  --wp--preset--color--muted: #B9B2AB;
  --wp--preset--color--accent: #D98A9C;
  --wp--preset--color--accent-dark: #E3A0B0;
}
html[data-emmy-night] .has-contrast-background-color { background-color: #0C0B0B !important; }
html[data-emmy-night] .has-contrast-background-color, html[data-emmy-night] .has-contrast-background-color .has-base-color { color: #F3EEE8 !important; }
html[data-emmy-night] .wp-element-button, html[data-emmy-night] .emmy-nav .emmy-nav__pill > .wp-block-navigation-item__content { color: #141313; }
html[data-emmy-night] .emmy-feature__more { background: #F3EEE8; color: #141313; }

/* Writing list (Stories, Poems, Writing, tags, search): each piece is its own entry between rules. */
.emmy-listing-page .wp-block-query-title { margin-bottom: .25rem; }
.emmy-list { margin-top: var(--wp--preset--spacing--40) !important; }
.emmy-list .wp-block-post-template { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 14%, transparent); }
.emmy-list .wp-block-post-template > li { margin: 0; }
.emmy-list__item { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.25rem); align-items: start; margin: 0; padding-block: clamp(1.75rem, 4vw, 2.5rem); border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 14%, transparent); }
.emmy-list__item:not(:has(.wp-block-post-featured-image)) { grid-template-columns: minmax(0, 1fr); }
.emmy-list__item > * { margin: 0 !important; }
.emmy-list__media img { display: block; width: 100%; border-radius: 2px; object-fit: cover; object-position: center 25%; }
.emmy-list__text > * { margin-block: 0; }
.emmy-list__labels { gap: .25rem 1rem; margin-bottom: .55rem !important; }
.emmy-list__kicker, .emmy-list__series { margin: 0; font-family: var(--wp--preset--font-family--ui); font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.emmy-list__kicker a { color: var(--wp--preset--color--accent-dark); text-decoration: none; }
.emmy-list__series, .emmy-list__series a { color: var(--wp--preset--color--muted); text-decoration: none; }
.emmy-list__title { margin: 0 0 .45rem !important; font-size: clamp(1.7rem, 3.4vw, 2.35rem); line-height: 1.08; }
.emmy-list__title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.emmy-list__title a:hover { color: var(--wp--preset--color--accent-dark); }
.emmy-list__excerpt { margin-top: .85rem !important; }
.emmy-list__excerpt p { margin: 0; font-size: 1.02rem; line-height: 1.65; }
.emmy-list__more { display: inline-flex; align-items: center; min-height: 44px; margin-top: .4rem; color: var(--wp--preset--color--contrast); font-family: var(--wp--preset--font-family--ui); font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; text-decoration: underline; text-underline-offset: .55em; }
.emmy-list__more:hover { color: var(--wp--preset--color--accent-dark); }
.emmy-list .wp-block-query-pagination { margin-top: var(--wp--preset--spacing--50); font-family: var(--wp--preset--font-family--ui); font-size: .8rem; }
@media (max-width: 640px) {
  .emmy-list__item { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .emmy-list__media img { aspect-ratio: 4 / 3 !important; }
}
.category:not(.emmy-has-topics) .emmy-list__kicker { display: none; }

/* Themes inside a category (All poems, Love, Tributes ...): a quiet row of links under the title. */
.emmy-topics { margin-block: 1.25rem 0; }
/* A piece's own page shows its photo whole (most are portraits), centred and never taller than the screen. */
.single .wp-block-post-featured-image img { display: block; width: auto; max-width: 100%; max-height: min(80svh, 760px); margin-inline: auto; aspect-ratio: auto; object-fit: contain; }
.emmy-topics ul { display: flex; flex-wrap: wrap; gap: 0 1.75rem; margin: 0; padding: 0; list-style: none; }
.emmy-topics a { display: inline-flex; align-items: center; min-height: 44px; color: var(--wp--preset--color--muted); font-family: var(--wp--preset--font-family--ui); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; border-bottom: 2px solid transparent; }
.emmy-topics a:hover { color: var(--wp--preset--color--contrast); }
.emmy-topics a[aria-current="page"] { color: var(--wp--preset--color--contrast); border-bottom-color: var(--wp--preset--color--accent); }
@media (max-width: 640px) { .emmy-list__media img { object-position: center 38%; } }
