/* Front Porch theme: textures, motion and a few section styles theme.json can't express. */

/* Paper-grain background */
body {
	background-image:
		repeating-linear-gradient(0deg, rgba(110, 90, 60, 0.022) 0 1px, transparent 1px 5px),
		repeating-linear-gradient(90deg, rgba(110, 90, 60, 0.018) 0 1px, transparent 1px 7px);
}

/* Italic words in a heading become the sage accent (select words, press Ctrl/Cmd+I) */
.wp-block-heading em,
.wp-block-post-title em {
	font-style: normal;
	color: var(--wp--preset--color--sage-dark);
}

/* Header */
.fp-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.fp-header .wp-block-navigation a { color: var(--wp--preset--color--navy); text-decoration: none; }
.fp-header .wp-block-navigation a:hover,
.fp-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--sage-dark); }
.fp-header .wp-block-navigation .current-menu-item > a { border-bottom: 2px solid var(--wp--preset--color--sage-dark); }
.fp-logo img { height: 96px; width: auto; }
@media (max-width: 781px) { .fp-logo img { height: 72px; } }

/* Sage boards (pale green with faint plank lines) */
.is-style-sage-boards {
	background-color: var(--wp--preset--color--sage-light);
	background-image:
		repeating-linear-gradient(0deg, rgba(154, 169, 130, 0.35) 0 1px, transparent 1px 72px),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 13px);
}

/* White card */
.is-style-white-card {
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 6px;
}

/* Porch arch image */
.wp-block-image.is-style-porch-arch img,
.fp-arch img,
.fp-arch.wp-block-post-featured-image img { border-radius: 220px 220px 6px 6px; }

/* Outline button */
.wp-block-button.is-style-outline-dark .wp-block-button__link {
	background: rgba(250, 247, 240, 0.7);
	color: var(--wp--preset--color--navy);
	border: 1.5px solid var(--wp--preset--color--navy);
}
.wp-block-button.is-style-outline-dark .wp-block-button__link:hover { background: var(--wp--preset--color--navy); color: #F1EADB; }

/* Hero headline glow keeps text readable over the sketch */
.fp-hero h1, .fp-hero p { text-shadow: 0 1px 16px rgba(250, 247, 240, 0.9); }

/* Town marquee */
.fp-marquee {
	background: var(--wp--preset--color--sage);
	color: var(--wp--preset--color--forest);
	overflow: hidden;
	padding: 20px 0;
	font: italic 400 19px/1 Gelasio, Georgia, serif;
	letter-spacing: 0.02em;
}
.fp-marquee__track { display: flex; width: max-content; gap: 72px; padding-right: 72px; animation: fp-slide 110s linear infinite; }
@keyframes fp-slide { to { transform: translateX(-50%); } }

/* Flourish divider */
.fp-flourish { display: flex; justify-content: center; margin: 3.5rem 0; }

/* Stars */
.fp-stars { color: var(--wp--preset--color--mustard); font-size: 22px; letter-spacing: 4px; }

/* Blog cards */
.fp-post-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 6px;
	overflow: hidden;
	height: 100%;
}
.fp-post-card .wp-block-post-featured-image img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.fp-post-card .wp-block-post-title a { color: var(--wp--preset--color--navy); text-decoration: none; }
.fp-post-card .wp-block-post-title a:hover { color: var(--wp--preset--color--sage-dark); }

/* Single post body */
.fp-prose h2 { margin-top: 3.5rem; font-size: 2.1rem; }
.fp-prose p, .fp-prose li { font-size: 1.1875rem; line-height: 1.75; }

/* Contact form (Contact Form 7 or WPForms output) */
.fp-form input[type="text"], .fp-form input[type="email"], .fp-form input[type="tel"], .fp-form textarea, .fp-form select {
	width: 100%; box-sizing: border-box; padding: 14px 16px; font: inherit; font-size: 17px;
	background: #FBF8F1; border: 1.5px solid #C9BFA8; border-radius: 4px; color: var(--wp--preset--color--ink);
}
.fp-form input:focus, .fp-form textarea:focus { outline: 3px solid rgba(154, 169, 130, 0.6); border-color: var(--wp--preset--color--forest); }
.fp-form input[type="submit"], .fp-form button[type="submit"] {
	background: var(--wp--preset--color--burgundy); color: #F1EADB; border: 0; border-radius: 4px;
	font-weight: 700; font-size: 18px; padding: 18px 32px; cursor: pointer;
}

/* Motion: load-in for heroes, scroll reveal for everything with .reveal */
@keyframes fp-rise { from { opacity: 0; transform: translateY(44px); } to { opacity: 1; transform: none; } }
@keyframes fp-pan { from { background-position: center 20%; } to { background-position: center 80%; } }
.fp-in { animation: fp-rise 1s cubic-bezier(.2, .7, .2, 1) both; }
.fp-in-2 { animation: fp-rise 1s cubic-bezier(.2, .7, .2, 1) .15s both; }
.fp-in-3 { animation: fp-rise 1s cubic-bezier(.2, .7, .2, 1) .3s both; }
@supports (animation-timeline: view()) {
	.reveal { animation: fp-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
	.fp-parallax .wp-block-cover__image-background { animation: fp-pan linear both; animation-timeline: view(); animation-range: exit-crossing 0% exit 100%; object-position: center 50%; }
}
.fp-fixed-bg .wp-block-cover__image-background { position: fixed; }
@media (max-width: 781px) { .fp-fixed-bg .wp-block-cover__image-background { position: absolute; } }

/* Never animate in the editor, and respect reduced motion */
.editor-styles-wrapper .reveal, .editor-styles-wrapper .fp-in, .editor-styles-wrapper .fp-in-2, .editor-styles-wrapper .fp-in-3 { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; }
	.fp-fixed-bg .wp-block-cover__image-background { position: absolute; }
}
