/*
 * Public homepage — "Epic" design layer.
 *
 * Loaded only by app/views/public/homepage.php. The classic design
 * (homepage_classic.php) never loads this file, so rollback = pick "classic".
 * Everything is scoped under .theme-epic so it cannot leak into other pages.
 *
 * Palette: Forest Green #20402C (brand), warm cream surfaces, amber for the
 * primary action only. Scroll motion is one fade-up reveal; hover states lift, tilt and zoom.
 * Animated properties are transform / opacity only.
 */

:root {
  --ep-green: #20402c;
  --ep-green-deep: #14281c;
  --ep-cream: #f7f1e5;
  --ep-cream-2: #efe5d0;
  --ep-card: #fffaf0;
  --ep-ink: #1b2a21;
  --ep-muted: #44564a;
  --ep-amber: #fbbf24;
  --ep-line: rgba(32, 64, 44, .12);
  --ep-radius: 1.25rem;
  --ep-shadow: 0 10px 30px -18px rgba(20, 40, 28, .45);
  --ep-shadow-hover: 0 18px 40px -20px rgba(20, 40, 28, .5);
  --ep-ease: cubic-bezier(.2, .7, .1, 1);
  --ep-serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --ep-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

.theme-epic {
  background: var(--ep-cream);
  color: var(--ep-ink);
  font-family: var(--ep-sans);
  overflow-x: hidden;
}

/* ── Header (shared renderHeaderNavigation, re-skinned) ──────────── */
.theme-epic > nav {
  background: rgba(247, 241, 229, .88) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ep-line);
  transition: transform .4s var(--ep-ease), box-shadow .3s ease;
}
.theme-epic > nav.ep-nav-scrolled { box-shadow: var(--ep-shadow); }
.theme-epic > nav.ep-nav-hidden { transform: translateY(-100%); }
.theme-epic > nav a.text-indigo-600 { color: var(--ep-green) !important; font-weight: 600; }
.theme-epic > nav a:not([class*="bg-"]):hover { color: var(--ep-green); }
.theme-epic > nav img { transition: transform .5s var(--ep-ease); }
.theme-epic > nav a:hover img { transform: rotate(-8deg) scale(1.08); }

/* ── Type ────────────────────────────────────────────────────────── */
.theme-epic h1,
.theme-epic h2,
.theme-epic .cms-slider-content h2 {
  font-family: var(--ep-serif);
  font-weight: 600;
  letter-spacing: -.015em;
  font-optical-sizing: auto;
}
.theme-epic h1 { line-height: 1.05; }
/* Section headings keep a ~2:1 ratio to body copy. */
.theme-epic h2.text-3xl { font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.12; color: var(--ep-green); }
.theme-epic .cms-section-grid--cols-2 h2.text-3xl { font-size: clamp(1.75rem, 2.4vw, 2.25rem); }
.theme-epic .cms-section-grid--cols-3 h2.text-3xl { font-size: clamp(1.5rem, 2vw, 1.85rem); }
.theme-epic .prose-lg { font-size: clamp(1rem, 1.1vw, 1.125rem); line-height: 1.7; }
.theme-epic .cms-section-grid--cols-3 .prose-lg { font-size: 1rem; }
.theme-epic .cms-section-grid--cols-3 h2.text-3xl + .prose { margin-top: .9rem; }
.theme-epic .text-slate-900 { color: var(--ep-green-deep); }
.theme-epic .text-slate-600,
.theme-epic .prose-slate { color: var(--ep-muted); }
.theme-epic .prose strong { color: var(--ep-green); }

/* ── Surfaces ────────────────────────────────────────────────────── */
.theme-epic main { padding-top: 4rem; }
/* A hero as the first block slides under the fixed nav. */
.theme-epic main:has(> .cms-hero-block:first-child),
.theme-epic main:has(> .ep-default-hero:first-child),
.theme-epic main:has(> .ep-page-hero:first-child) { padding-top: 0; }
.theme-epic main > .cms-hero-block:first-child { border-top: 4rem solid transparent; }
.theme-epic .bg-white { background-color: var(--ep-cream); }
.theme-epic .bg-slate-50 { background-color: var(--ep-cream-2); }

/* Indigo (CMS default accent) → forest green */
.theme-epic .text-indigo-600 { color: var(--ep-green); }
.theme-epic .text-indigo-700,
.theme-epic .hover\:text-indigo-700:hover { color: var(--ep-green-deep); }
.theme-epic .bg-indigo-600 { background-color: var(--ep-green); }
.theme-epic .hover\:bg-indigo-700:hover { background-color: var(--ep-green-deep); }

/* ── Hero blocks ─────────────────────────────────────────────────── */
.theme-epic .hero-coffee,
.theme-epic .hero-dark,
.theme-epic .hero-gradient {
  background:
    radial-gradient(70% 90% at 85% 0%, rgba(251, 191, 36, .14), transparent 60%),
    var(--ep-green);
}
.theme-epic .cms-hero-block h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
.theme-epic .cms-hero-block h1 span.block { text-wrap: balance; }
.theme-epic .cms-hero-block p.text-xl { font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 40rem; margin-left: auto; margin-right: auto; }
.theme-epic .cms-hero-block .text-left p.text-xl { margin-left: 0; }
.theme-epic .cms-hero-block a.rounded-full {
  transition: transform .35s var(--ep-ease), box-shadow .35s var(--ep-ease), background-color .25s ease;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6);
}
.theme-epic .cms-hero-block a.rounded-full:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 22px 36px -14px rgba(0, 0, 0, .65); }
.theme-epic .cms-hero-block a.bg-white { background: var(--ep-amber); color: var(--ep-green-deep); }
.theme-epic .cms-hero-block a.bg-white:hover { background: #f5b514; }

/* ── Slider ──────────────────────────────────────────────────────── */
.theme-epic .cms-slider { border-radius: var(--ep-radius); box-shadow: var(--ep-shadow); }
.theme-epic .cms-slider-slide { background-size: 108%; transition: background-size 7s ease-out; }
.theme-epic .cms-slider-slide.is-active { background-size: 100%; }
.theme-epic .cms-slider-slide::after { background: linear-gradient(110deg, rgba(20, 40, 28, .8), rgba(20, 40, 28, .15) 70%); }
.theme-epic .cms-slider-content h2,
.theme-epic .cms-slider-content p,
.theme-epic .cms-slider-content .cms-slider-button { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ep-ease), transform .6s var(--ep-ease); }
.theme-epic .cms-slider-slide.is-active .cms-slider-content h2 { opacity: 1; transform: none; transition-delay: .1s; }
.theme-epic .cms-slider-slide.is-active .cms-slider-content p { opacity: 1; transform: none; transition-delay: .2s; }
.theme-epic .cms-slider-slide.is-active .cms-slider-content .cms-slider-button { opacity: 1; transform: none; transition-delay: .3s; }
.theme-epic .cms-slider-dots button { width: .5rem; height: .5rem; transition: width .3s var(--ep-ease), background .3s ease; }
.theme-epic .cms-slider-dots button.is-active { width: 1.5rem; transform: none; background: var(--ep-amber); }

/* ── Marquee ─────────────────────────────────────────────────────── */
.theme-epic .homepage-marquee { border: 0; }
.theme-epic .homepage-marquee-item { font-family: var(--ep-serif); font-style: italic; letter-spacing: .18em; font-weight: 600; }

/* ── Media ───────────────────────────────────────────────────────── */
.theme-epic .cms-uploaded-video-frame,
.theme-epic figure img { border-radius: var(--ep-radius); box-shadow: var(--ep-shadow); }
.theme-epic figure img { transition: transform .8s var(--ep-ease), box-shadow .8s var(--ep-ease); }
.theme-epic figure:hover img { transform: scale(1.02) rotate(-.6deg); box-shadow: var(--ep-shadow-hover); }
.theme-epic figure figcaption { font-family: var(--ep-serif); font-style: italic; color: var(--ep-muted); }

/* ── Buttons from the CMS "buttons" block ────────────────────────── */
.theme-epic a.bg-amber-900 { background: var(--ep-green); }
.theme-epic a.bg-amber-900:hover { background: var(--ep-green-deep); }
.theme-epic main a.px-6.py-3.rounded-lg { border-radius: 999px; transition: transform .3s var(--ep-ease), box-shadow .3s var(--ep-ease), background-color .25s ease, color .25s ease; }
.theme-epic main a.px-6.py-3.rounded-lg:hover { transform: translateY(-2px); box-shadow: 0 14px 24px -14px rgba(20, 40, 28, .7); }
.theme-epic main a.px-6.py-3.rounded-lg.bg-white { background: transparent; border-color: var(--ep-green); color: var(--ep-green); }
.theme-epic main a.px-6.py-3.rounded-lg.bg-white:hover { background: var(--ep-green); color: var(--ep-cream); }

/* ── Cards: blog, contact, faq ───────────────────────────────────── */
.theme-epic article.rounded-2xl {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--ep-card); border: 1px solid var(--ep-line); border-radius: var(--ep-radius);
  box-shadow: none; transition: transform .5s var(--ep-ease), box-shadow .5s var(--ep-ease);
}
.theme-epic article.rounded-2xl:hover { transform: translateY(-8px) rotate(-.4deg); box-shadow: 0 34px 50px -30px rgba(20, 40, 28, .6); }
.theme-epic article.rounded-2xl img { transition: transform 1s var(--ep-ease); }
.theme-epic article.rounded-2xl:hover img { transform: scale(1.07); }
.theme-epic article.rounded-2xl > .p-6 { flex: 1; display: flex; flex-direction: column; }
.theme-epic article.rounded-2xl > .p-6 > p { margin-bottom: 1.25rem; }
.theme-epic article h3 { font-family: var(--ep-serif); font-weight: 600; color: var(--ep-green); }
/* "Read more" → outlined pill, pinned to the card bottom so the row lines up. */
.theme-epic article.rounded-2xl a.inline-flex {
  align-self: flex-end; margin-top: auto; gap: .4rem;
  padding: .5rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--ep-green); color: var(--ep-green); font-weight: 600;
  transition: background-color .25s ease, color .25s ease, transform .3s var(--ep-ease), box-shadow .3s var(--ep-ease);
}
.theme-epic article.rounded-2xl a.inline-flex:hover { background: var(--ep-green); color: var(--ep-cream); transform: translateY(-2px); box-shadow: 0 12px 20px -12px rgba(20, 40, 28, .7); }

/* Touch screens have no hover: JS adds .is-active while a card is mid-screen. */
@media (hover: none) {
  .theme-epic article.rounded-2xl.is-active { transform: translateY(-8px) rotate(-.4deg); box-shadow: 0 34px 50px -30px rgba(20, 40, 28, .6); }
  .theme-epic article.rounded-2xl.is-active img { transform: scale(1.07); }
  .ep-feature.is-active { transform: translateY(-6px); box-shadow: 0 34px 50px -30px rgba(20, 40, 28, .6); }
  .ep-feature.is-active .ep-feature-media img { transform: scale(1.05); }
}

.theme-epic #contact .bg-slate-50.rounded-xl {
  background: var(--ep-card); border: 1px solid var(--ep-line); border-radius: var(--ep-radius);
  transition: transform .4s var(--ep-ease), background .3s ease, color .3s ease;
}
.theme-epic #contact .bg-slate-50.rounded-xl:hover { transform: translateY(-6px); background: var(--ep-green); }
.theme-epic #contact .bg-slate-50.rounded-xl:hover p { color: var(--ep-cream); }
/* Four contact tiles were squeezed into a 56rem column, wrapping the phone number. */
@media (min-width: 1024px) {
  .theme-epic #contact > div, .theme-epic #contact > div > .grid { max-width: 74rem; }
}
.theme-epic #contact .bg-slate-50.rounded-xl { padding-left: 1rem; padding-right: 1rem; }
.theme-epic #contact .bg-slate-50.rounded-xl p { text-wrap: balance; }
.theme-epic #contact svg { color: var(--ep-green); transition: transform .4s var(--ep-ease), color .3s ease; }
.theme-epic #contact .bg-slate-50.rounded-xl:hover svg { color: var(--ep-amber); transform: scale(1.15) rotate(-6deg); }

.theme-epic details.group { border-radius: var(--ep-radius); background: var(--ep-card); border-color: var(--ep-line); transition: border-color .2s ease, box-shadow .3s ease; }
.theme-epic details.group[open] { border-color: var(--ep-green); box-shadow: 0 20px 36px -28px rgba(20, 40, 28, .6); }
.theme-epic details.group summary { list-style: none; }
.theme-epic details.group summary::-webkit-details-marker { display: none; }
.theme-epic details.group summary span { font-family: var(--ep-serif); font-weight: 600; color: var(--ep-green); }

/* ── Scroll reveal (one motion, used everywhere) ─────────────────── */
.js-epic .ep-reveal { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity .6s var(--ep-ease), transform .6s var(--ep-ease); transition-delay: var(--ep-delay, 0ms); }
.js-epic .ep-reveal.is-in { opacity: 1; transform: none; }

/* ── Default hero (no CMS layout) ────────────────────────────────── */
.ep-default-hero { min-height: 80vh; display: grid; place-items: center; text-align: center; color: var(--ep-cream); padding: 8rem 1.5rem 5rem; }
.ep-default-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.ep-default-hero p { margin: 1.5rem auto 0; max-width: 36rem; color: rgba(247, 241, 229, .8); font-size: 1.2rem; }
.ep-default-hero .ep-cta { display: inline-flex; margin-top: 2.25rem; padding: .85rem 1.8rem; border-radius: 999px; font-weight: 600; background: var(--ep-amber); color: var(--ep-green-deep); text-decoration: none; transition: transform .3s var(--ep-ease), background-color .2s ease; }
.ep-default-hero .ep-cta:hover { transform: translateY(-3px); }
.ep-default-hero .ep-cta:hover { background: #f5b514; }
.ep-default-hero .ep-cta--ghost { background: transparent; color: var(--ep-cream); border: 1px solid rgba(247, 241, 229, .4); margin-left: .75rem; }
.ep-default-hero .ep-cta--ghost:hover { background: rgba(247, 241, 229, .1); }

/* ── Order button: phones only, where the nav is a hamburger ─────── */
.ep-fab {
  display: none; position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60;
  align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.25rem; border-radius: 999px; background: var(--ep-green); color: var(--ep-cream);
  font: 600 .95rem var(--ep-sans); text-decoration: none;
  box-shadow: var(--ep-shadow-hover);
  transform: translateY(140%); transition: transform .4s var(--ep-ease);
  padding-bottom: calc(.85rem + env(safe-area-inset-bottom));
}
.ep-fab.is-on { transform: none; }
.ep-fab svg { width: 1.15rem; height: 1.15rem; color: var(--ep-amber); }
@media (max-width: 767px) { .ep-fab { display: inline-flex; } }

/* ── Footer ──────────────────────────────────────────────────────── */
.ep-footer { background: var(--ep-green-deep); color: rgba(247, 241, 229, .72); padding: 3.5rem 0 2rem; }
.ep-footer a { color: inherit; text-decoration: none; transition: color .2s ease; }
.ep-footer a:hover { color: var(--ep-amber); }
.ep-footer-inner { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.ep-footer-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1.5rem 3rem; }
.ep-footer-brand { display: flex; align-items: center; gap: .75rem; color: var(--ep-cream); font: 600 1.15rem var(--ep-serif); }
.ep-footer-brand img { height: 2rem; width: auto; }
.ep-footer-tagline { margin: .75rem 0 0; max-width: 28rem; font-size: .95rem; line-height: 1.6; }
.ep-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; font-size: .92rem; padding-top: .35rem; }
.ep-footer small { display: block; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(247, 241, 229, .12); font-size: .78rem; opacity: .6; }


/* ── Inner pages (blog index) ────────────────────────────────────── */
.ep-page-hero {
  background: radial-gradient(70% 90% at 85% 0%, rgba(251, 191, 36, .14), transparent 60%), var(--ep-green);
  color: var(--ep-cream); padding: 8rem 1.25rem 4rem; text-align: center;
}
.ep-page-hero-inner { max-width: 48rem; margin: 0 auto; }
.ep-page-hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.25rem); }
.ep-page-lede { margin: 1rem auto 0; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(247, 241, 229, .8); }
.ep-eyebrow { margin: 0 0 1rem; font-size: .8rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: rgba(247, 241, 229, .7); }
.ep-eyebrow--dark { color: var(--ep-muted); margin-bottom: .75rem; }

.ep-blog { max-width: 76rem; margin: 0 auto; padding: 3.5rem 1.25rem 5rem; }
.ep-meta { margin: 0 0 .6rem; font-size: .82rem; color: var(--ep-muted); }

.ep-feature {
  display: grid; grid-template-columns: 1.15fr 1fr; margin-bottom: 2.5rem; overflow: hidden;
  background: var(--ep-card); border: 1px solid var(--ep-line); border-radius: var(--ep-radius);
  transition: transform .5s var(--ep-ease), box-shadow .5s var(--ep-ease);
}
.ep-feature:hover { transform: translateY(-6px); box-shadow: 0 34px 50px -30px rgba(20, 40, 28, .6); }
.ep-feature-media { display: block; overflow: hidden; min-height: 18rem; }
.ep-feature-media img, .ep-feature-placeholder { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ep-ease); }
.ep-feature:hover .ep-feature-media img { transform: scale(1.05); }
.ep-feature-placeholder { background: linear-gradient(135deg, var(--ep-cream-2), #e3d2ae); min-height: 12rem; }
.ep-feature-body { padding: clamp(1.5rem, 3vw, 3rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.ep-feature-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.15; color: var(--ep-green); }
.ep-feature-excerpt { margin: 1rem 0 1.25rem; color: var(--ep-muted); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.ep-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fill, minmax(18.5rem, 1fr)); }
.ep-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.ep-card-media img, .ep-card-media .ep-feature-placeholder { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-grid article h3 a, .ep-feature-body h2 a { text-decoration: none; color: inherit; }
.ep-grid article h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: .6rem; }
.ep-grid article .p-6 > p.text-slate-600 { font-size: .95rem; }

.ep-pill {
  display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1.2rem; border-radius: 999px;
  border: 1px solid var(--ep-green); color: var(--ep-green); font-weight: 600; font-size: .9rem; text-decoration: none;
  transition: background-color .25s ease, color .25s ease, transform .3s var(--ep-ease), box-shadow .3s var(--ep-ease);
}
.ep-pill svg, .ep-grid article a.inline-flex svg { width: 1rem; height: 1rem; flex: none; }
.ep-pill:hover { background: var(--ep-green); color: var(--ep-cream); transform: translateY(-2px); box-shadow: 0 12px 20px -12px rgba(20, 40, 28, .7); }
.ep-pill--solid { background: var(--ep-green); color: var(--ep-cream); padding: .7rem 1.4rem; }
.ep-pill--solid:hover { background: var(--ep-green-deep); }

.ep-pager { margin-top: 3.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1rem; }
.ep-pager ul { display: flex; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.ep-page { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid var(--ep-line); color: var(--ep-green); font-weight: 600; font-size: .9rem; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.ep-page:hover { background: var(--ep-cream-2); }
.ep-page.is-current { background: var(--ep-green); border-color: var(--ep-green); color: var(--ep-cream); }

.ep-empty { text-align: center; padding: 5rem 1rem; }
.ep-empty h2 { font-size: 1.75rem; color: var(--ep-green); }
.ep-empty p { margin: .75rem 0 1.5rem; color: var(--ep-muted); }

@media (max-width: 767px) {
  .ep-page-hero { padding: 6.5rem 1.25rem 3rem; }
  .ep-feature { grid-template-columns: 1fr; }
  .ep-feature-media { min-height: 0; aspect-ratio: 16 / 10; }
  .ep-blog { padding-top: 2rem; }
}

/* ── Blog article ────────────────────────────────────────────────── */
.ep-article-hero { padding-bottom: 7rem; text-align: left; }
.ep-article-hero-inner { max-width: 47.5rem; margin: 0 auto; }
.ep-article-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.1; }
.ep-back { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: 1.5rem; font-size: .88rem; font-weight: 600; color: rgba(247, 241, 229, .75); text-decoration: none; transition: color .2s ease, transform .3s var(--ep-ease); }
.ep-back:hover { color: var(--ep-cream); transform: translateX(-3px); }
.ep-back svg { width: 1rem; height: 1rem; }
.ep-article-meta { margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .92rem; color: rgba(247, 241, 229, .8); }
.ep-avatar { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; background: var(--ep-amber); color: var(--ep-green-deep); font-weight: 700; font-size: .85rem; }

.ep-article { max-width: 50rem; margin: 0 auto; padding: 0 1.25rem 4rem; }
.ep-article-figure { margin: -4.5rem 0 2.5rem; border-radius: var(--ep-radius); overflow: hidden; box-shadow: var(--ep-shadow-hover); background: var(--ep-cream-2); }
.ep-article-figure img { display: block; width: 100%; height: auto; }
.ep-article > .ep-prose:first-child { padding-top: 3rem; }

.ep-prose { font-size: 1.125rem; line-height: 1.8; color: var(--ep-ink); overflow-wrap: anywhere; }
.ep-prose p { margin: 0 0 1.35em; color: var(--ep-ink); }
.ep-prose h2, .ep-prose h3, .ep-prose h4 { font-family: var(--ep-serif); color: var(--ep-green); line-height: 1.2; }
.ep-prose h2 { font-size: 1.85rem; margin: 2.2em 0 .7em; }
.ep-prose h3 { font-size: 1.4rem; margin: 1.8em 0 .6em; }
.ep-prose ul, .ep-prose ol { margin: 1.3em 0; padding-left: 1.5em; }
.ep-prose ul { list-style: disc; }
.ep-prose ol { list-style: decimal; }
.ep-prose li { margin: .45em 0; }
.ep-prose a { color: var(--ep-green); text-decoration: underline; text-decoration-color: var(--ep-amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ep-prose a:hover { background: rgba(251, 191, 36, .25); }
.ep-prose img { max-width: 100%; height: auto; border-radius: 1rem; margin: 2em 0; }
.ep-prose blockquote { margin: 1.8em 0; padding: .4em 0 .4em 1.25rem; border-left: 4px solid var(--ep-amber); font-family: var(--ep-serif); font-size: 1.25rem; font-style: italic; color: var(--ep-green); }
.ep-prose code { background: var(--ep-cream-2); padding: .15em .4em; border-radius: .3em; font-size: .9em; }
.ep-prose pre { background: var(--ep-green-deep); color: var(--ep-cream); padding: 1.1rem; border-radius: .9rem; overflow-x: auto; margin: 1.6em 0; }
.ep-prose pre code { background: none; padding: 0; }
.ep-prose hr { border: 0; border-top: 1px solid var(--ep-line); margin: 2.5em 0; }

.ep-share { margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--ep-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.ep-share p { margin: 0; font-weight: 600; color: var(--ep-green); }
.ep-share div { display: flex; gap: .6rem; }
.ep-share a { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 999px; border: 1px solid var(--ep-green); color: var(--ep-green); transition: background-color .25s ease, color .25s ease, transform .3s var(--ep-ease); }
.ep-share a:hover { background: var(--ep-green); color: var(--ep-cream); transform: translateY(-2px); }
.ep-share svg { width: 1.1rem; height: 1.1rem; }

.ep-more { background: var(--ep-cream-2); }
.ep-more .ep-blog { padding-top: 4rem; }
.ep-more h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); color: var(--ep-green); margin-bottom: 2rem; }

@media (max-width: 767px) {
  .ep-article-hero { padding-bottom: 5.5rem; }
  .ep-article-figure { margin-top: -3.5rem; }
  .ep-prose { font-size: 1.05rem; }
}

/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .theme-epic .cms-slider { border-radius: 1rem; }
  .theme-epic .cms-hero-block h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  /* Stacked columns: each nested block carries its own 64px top+bottom padding
     (inline style), which doubles up into a ~130px gap. Tighten it on phones. */
  .theme-epic .cms-section-grid { gap: 0 !important; }
  .theme-epic .cms-column > section { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
  .ep-footer { padding-bottom: 5.5rem; } /* clear the order button */
}

/* ── Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .theme-epic *, .theme-epic *::before, .theme-epic *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0ms !important;
  }
  .js-epic .ep-reveal { opacity: 1; transform: none; }
}
