/*
Theme Name: Moveable Feast
Template: twentytwentyfive
Description: Child theme for Moveable Feast, an emerging community of faith in Chicago. Colours, fonts and sizes live in theme.json; this file holds layout details, the route map and the Sunday card.
Version: 1.0.2
Requires at least: 6.6
Text Domain: moveable-feast
*/

/* ---------- Base ---------- */
:root { --mf-gutter: clamp(1rem, 4vw, 2.5rem); --mf-section: clamp(3.5rem, 8vw, 7rem); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:where(a, button, .wp-element-button, summary, input):focus-visible { outline: 3px solid var(--wp--preset--color--grape); outline-offset: 3px; border-radius: 2px; }
.has-ink-background-color :where(a, .wp-element-button):focus-visible { outline-color: var(--wp--preset--color--candle); }
.mf-small, .mf-credit { font-size: var(--wp--preset--font-size--small); }
.mf-credit { font-family: var(--wp--preset--font-family--lato); color: #5b4a60; }
.wp-block-list { padding-left: 1.2em; }
.wp-block-list li + li { margin-top: 0.45em; }
.wp-block-separator { border-top-width: 1px; opacity: 1; }

/* ---------- Header ---------- */
.mf-header { padding: 0.7rem var(--mf-gutter); gap: 1rem; border-bottom: 1px solid var(--wp--preset--color--lilac); background: var(--wp--preset--color--paper); }
.mf-header .wp-block-site-title a { color: var(--wp--preset--color--ink); text-decoration: none; white-space: nowrap; }
.mf-header .wp-block-site-logo img { display: block; }
.mf-nav a { text-decoration: none; padding: 0.35rem 0; }
.mf-nav a:hover, .mf-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.mf-nav .wp-block-navigation__responsive-container-open { padding: 10px; margin-right: -10px; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.mf-nav .wp-block-navigation__responsive-container-close { padding: 10px; top: -10px; right: -10px; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.mf-nav .is-menu-open .wp-block-navigation-item__content { display: flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0.2rem 0; }
.mf-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--paper); padding: 1.25rem var(--mf-gutter); }
.mf-nav .is-menu-open .wp-block-navigation__container { gap: 0.5rem; font-size: 1.5rem; font-family: var(--wp--preset--font-family--gentium); }
.mf-sunday-cta .wp-block-button__link { padding: 0.55rem 0.95rem; font-size: 0.95rem; white-space: nowrap; }
@media (max-width: 420px) {
	.mf-header .wp-block-site-title { font-size: 1.2rem; }
	.mf-header .wp-block-site-logo img { width: 34px !important; height: auto; }
	.mf-sunday-cta .wp-block-button__link { padding: 0.5rem 0.7rem; font-size: 0.875rem; }
}

/* ---------- Page heads (H1 + real photo) ---------- */
.mf-page-head { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.mf-page-head h1 { margin: 0; color: var(--wp--preset--color--grape); }
.mf-page-head .mf-page-head__intro { font-size: var(--wp--preset--font-size--large); max-width: 34em; margin-top: 1rem; }
.mf-photo-band { margin-top: 0; margin-bottom: 0; }
.mf-photo-band img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: 6px; display: block; }
@media (max-width: 700px) { .mf-photo-band img { aspect-ratio: 4 / 3; } }

/* ---------- Sections ---------- */
.mf-section { padding-top: var(--mf-section); padding-bottom: var(--mf-section); }
.mf-section--tight { padding-top: clamp(2rem, 5vw, 3.5rem); }
.mf-main > .entry-content > .alignfull:last-child, .mf-main .wp-block-post-content > .alignfull:last-child { margin-bottom: 0; }
.mf-main .wp-block-post-content > :first-child { margin-top: 0; }
h2.wp-block-heading { margin-top: 0; margin-bottom: 0.6em; }
.mf-prose > h2:not(:first-child), .mf-prose > h3:not(:first-child) { margin-top: 2.2em; }

/* ---------- Home hero: the creed + Sunday card ---------- */
.mf-home-hero { padding-top: clamp(2rem, 5vw, 4.5rem); padding-bottom: var(--mf-section); }
.mf-home-hero .mf-logo img { width: clamp(150px, 22vw, 230px); height: auto; }
.mf-lede { font-size: clamp(2.1rem, 1.4rem + 2.9vw, 3.6rem); line-height: 1.08; color: var(--wp--preset--color--grape); margin-top: 1.25rem; max-width: 15em; }
.mf-creed { list-style: none; padding: 0; margin-top: 1.5rem; font-size: var(--wp--preset--font-size--large); line-height: 1.4; max-width: 33em; }
.mf-creed li { position: relative; padding-left: 1.9rem; }
.mf-creed li + li { margin-top: 0.75rem; }
.mf-creed li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 1.05rem; height: 3px; border-radius: 3px; background: var(--wp--preset--color--feast-purple); transform: rotate(-8deg); }
.mf-home-hero .mf-hero-contact { margin-top: 1.5rem; font-family: var(--wp--preset--font-family--lato); font-size: 1rem; }
.mf-home-hero .mf-hero-more { margin-top: 0.4rem; font-family: var(--wp--preset--font-family--lato); font-size: 1rem; }

/* ---------- Sunday card ---------- */
.mf-visit { border-radius: 8px; padding: clamp(1.5rem, 4vw, 2.4rem); position: relative; }
.mf-visit a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--paper); }
.mf-visit a:where(:not(.wp-element-button)):hover { color: var(--wp--preset--color--candle); }
.mf-visit__title { color: var(--wp--preset--color--candle) !important; font-style: italic; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.3rem) !important; margin-bottom: 0.4em !important; }
.mf-visit__when { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.9rem); line-height: 1.2; margin: 0; }
.mf-visit__where { font-size: var(--wp--preset--font-size--large); line-height: 1.35; margin-top: 0.4rem; }
.mf-visit__actions { margin-top: 1.25rem; gap: 0.6rem; }
.mf-visit__note, .mf-visit__contact { font-size: 1rem; line-height: 1.55; }
.mf-visit__note { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(244, 239, 247, 0.28); }
.mf-btn-candle .wp-block-button__link { background: var(--wp--preset--color--candle); color: var(--wp--preset--color--ink); }
.mf-btn-candle .wp-block-button__link:hover { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--ink); }
.mf-btn-ghost .wp-block-button__link { background: transparent; color: var(--wp--preset--color--paper); border: 2px solid currentColor; padding: calc(0.8rem - 2px) calc(1.3rem - 2px); }
.mf-btn-ghost .wp-block-button__link:hover { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--paper); }
@media (max-width: 480px) {
	.mf-visit__actions { flex-direction: column; align-items: stretch; }
	.mf-visit__actions .wp-block-button, .mf-visit__actions .wp-block-button__link { width: 100%; text-align: center; }
}
/* On the Gatherings page the card sits beside the Sunday text. */
.mf-sunday-cols .mf-visit { margin-top: 0; }

/* ---------- Route map (signature element) ---------- */
.mf-route-section { padding-top: var(--mf-section); padding-bottom: var(--mf-section); border-top: 1px solid var(--wp--preset--color--lilac); }
.mf-map { margin: 0; }
.mf-map__svg { display: block; width: 100%; height: auto; overflow: visible; color: var(--wp--preset--color--grape); }
.mf-map__lake { fill: var(--wp--preset--color--lilac); }
.mf-map__streets path { stroke: #c9b8d1; stroke-width: 1.5; fill: none; }
.mf-map__street-names text { font-family: var(--wp--preset--font-family--gentium); font-style: italic; font-size: 15px; fill: #6d5a74; }
.mf-map__lake-name { font-size: 17px !important; fill: #5f4c6b !important; letter-spacing: 0.06em; }
.mf-map__woods { fill: var(--wp--preset--color--moss); }
.mf-map__trunk { stroke: var(--wp--preset--color--moss); stroke-width: 2.5; stroke-linecap: round; }
.mf-map__route { fill: none; stroke: var(--wp--preset--color--grape); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.mf-map__retreat { fill: none; stroke: var(--wp--preset--color--grape); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.1 10; }
.mf-map__stop { stroke: var(--wp--preset--color--ink); stroke-width: 2.5; }
.mf-map__stop--meal { fill: var(--wp--preset--color--feast-purple); stroke: none; }
.mf-map__stop--woods { fill: var(--wp--preset--color--moss); stroke: var(--wp--preset--color--paper); stroke-width: 3; }
.mf-map__stop--now circle { fill: var(--wp--preset--color--candle); stroke: var(--wp--preset--color--ink); stroke-width: 3; }
.mf-map__stop--now path { fill: none; stroke: var(--wp--preset--color--ink); stroke-width: 1.8; stroke-linejoin: round; }
.mf-map__labels text, .mf-map__street-names text, .mf-map__scale { paint-order: stroke; stroke: var(--wp--preset--color--paper); stroke-width: 6px; stroke-linejoin: round; }
.mf-map__name { font-family: var(--wp--preset--font-family--lato); font-weight: 700; font-size: 21px; fill: var(--wp--preset--color--ink); }
.mf-map__note { font-family: var(--wp--preset--font-family--gentium); font-style: italic; font-size: 18px; fill: #4a3651; }
.mf-map__compass path { fill: none; stroke: var(--wp--preset--color--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mf-map__compass text { font-family: var(--wp--preset--font-family--lato); font-weight: 700; font-size: 15px; fill: var(--wp--preset--color--ink); }
.mf-map__scale { font-family: var(--wp--preset--font-family--gentium); font-style: italic; font-size: 15px; fill: #5f4c6b; }
@media (max-width: 600px) {
	.mf-map__name { font-size: 29px; }
	.mf-map__note, .mf-map__street-names text:not(.mf-map__lake-name) { display: none; }
	.mf-map__scale { font-size: 20px; }
}
/* One drawn moment: the route inks itself in as the map scrolls into view. Static everywhere else. */
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.mf-map__route { stroke-dasharray: 1; animation: mf-draw linear both; animation-timeline: view(); animation-range: entry 15% cover 50%; }
		.mf-map__retreat, .mf-map__stop--woods, .mf-map__labels text:nth-child(n+3) { animation: mf-appear linear both; animation-timeline: view(); animation-range: cover 40% cover 55%; }
	}
}
@keyframes mf-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes mf-appear { from { opacity: 0; } to { opacity: 1; } }
.mf-stops { list-style: none; padding: 0; margin-top: 1.25rem; }
.mf-stops li { padding: 0.85rem 0; border-top: 1px solid var(--wp--preset--color--lilac); margin: 0 !important; }
.mf-stops li:last-child { border-bottom: 1px solid var(--wp--preset--color--lilac); }
.mf-stops strong { font-family: var(--wp--preset--font-family--lato); font-size: 1.02rem; }

/* ---------- What to expect ---------- */
.mf-expect { padding-top: var(--mf-section); padding-bottom: var(--mf-section); }
.mf-expect__intro { font-size: var(--wp--preset--font-size--large); line-height: 1.4; }
.mf-welcome { list-style: none; padding: 0; margin: 0; counter-reset: none; font-size: var(--wp--preset--font-size--large); line-height: 1.4; }
.mf-welcome li { padding: 1.1rem 0 1.1rem 2.4rem; border-bottom: 1px solid rgba(111, 52, 110, 0.28); margin: 0 !important; position: relative; }
.mf-welcome li:first-child { padding-top: 0.2rem; }
.mf-welcome li::before { content: ""; position: absolute; left: 0.2rem; top: 1.65rem; width: 0.95rem; height: 0.95rem; border-radius: 50%; border: 2px solid var(--wp--preset--color--grape); background: var(--wp--preset--color--candle); }
.mf-welcome li:first-child::before { top: 0.75rem; }

/* ---------- Pastor note (home) ---------- */
.mf-pastor-note { padding-top: var(--mf-section); padding-bottom: var(--mf-section); }
.mf-pastor-note .wp-block-image img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: clamp(140px, 22vw, 220px); }
.mf-pastor-note h2 { font-style: italic; }

/* ---------- Gatherings ---------- */
.mf-sunday-cols { align-items: flex-start !important; }
.mf-cal iframe { display: block; width: 100%; height: 600px; border: 0; border-radius: 6px; background: #fff; }
.mf-retreat { border-left: 4px solid var(--wp--preset--color--moss); padding-left: clamp(1rem, 3vw, 1.75rem); }

/* ---------- Give ---------- */
.mf-give-box { border: 2px solid var(--wp--preset--color--lilac); border-radius: 8px; padding: clamp(1.25rem, 4vw, 2rem); background: var(--wp--preset--color--white); }
.mf-give-box .wp-block-columns { align-items: center !important; }
.mf-give-box .wp-block-image { margin: 0; }
.mf-give-box .mf-qr img { width: 200px; height: auto; }
.mf-give-box .mf-paypal img { width: min(100%, 360px); height: auto; }

/* ---------- About ---------- */
.mf-pastor img { border-radius: 6px; }
.mf-person { font-family: var(--wp--preset--font-family--gentium); }
.mf-pastor .mf-role { font-family: var(--wp--preset--font-family--lato); font-size: var(--wp--preset--font-size--small); margin-top: 0.2rem; }

/* ---------- Footer ---------- */
.mf-footer { padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(2.5rem, 5vw, 3.5rem); padding-left: var(--mf-gutter); padding-right: var(--mf-gutter); font-size: 1.05rem; }
.mf-footer a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--paper); }
.mf-footer a:where(:not(.wp-element-button)):hover { color: var(--wp--preset--color--candle); }
.mf-footer-name { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem); font-style: italic; line-height: 1.1; color: var(--wp--preset--color--candle); }
.mf-join .wp-block-button__link { background: var(--wp--preset--color--candle); color: var(--wp--preset--color--ink); }
.mf-join .wp-block-button__link:hover { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--ink); }
.mf-footer-nav { font-size: 1rem; margin-top: 1.5rem; }
.mf-footer-nav a, .mf-footer-legal a { display: inline-block; padding: 0.3rem 0; }
.mf-footer-legal { font-family: var(--wp--preset--font-family--lato); font-size: 0.95rem; margin-top: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.mf-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.45; }
.mf-map__waves path { fill: none; stroke: #a58fb3; stroke-width: 1.6; stroke-linecap: round; }
@media (max-width: 781px) { .mf-route-text { order: -1; } }
@media (min-width: 782px) { .mf-hero-cols { align-items: center !important; } }
