/* ==========================================================================
   Abode & Bloom — static Page template (.ab-page)
   Loads on standalone Pages only (About, Contact, Terms, Privacy, etc.).
   Colours use the site tokens (defined on :root in theme-ui.css) so every
   page is readable in BOTH light and dark mode. Does not affect the homepage,
   posts, header or footer.
   ========================================================================== */

.ab-page { background: var(--canvas); color: var(--ink); font-family: var(--f-body); }
.ab-page .wrap { max-width: 820px; margin: 0 auto; padding-inline: 20px; }

/* ---- Hero ---------------------------------------------------------------- */
.ab-page .page-hero { padding: 56px 0 6px; text-align: center; }
.ab-page .page-crumbs { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.ab-page .page-crumbs a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; transition: color .15s ease, border-color .15s ease; }
.ab-page .page-crumbs a:hover { color: var(--moss); border-color: var(--moss); }
.ab-page .page-title { font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 6vw, 48px); line-height: 1.08; letter-spacing: -.01em; color: var(--ink); margin: 0; }
.ab-page .page-lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 60ch; margin: 14px auto 0; }
.ab-page .page-rule { display: block; width: 54px; height: 3px; border-radius: 2px; background: var(--marigold); margin: 24px auto 0; }

/* ---- Body / reading typography ------------------------------------------ */
.ab-page .page-body { padding: 32px 0 64px; }
.ab-page .page-content { color: var(--ink); font-size: 17px; line-height: 1.75; }
.ab-page .page-content > * + * { margin-top: 1.15em; }
.ab-page .page-content h2,
.ab-page .page-content h3,
.ab-page .page-content h4 { font-family: var(--f-display); font-weight: 600; color: var(--ink); line-height: 1.2; margin-top: 1.8em; }
.ab-page .page-content h2 { font-size: clamp(23px, 3.4vw, 30px); }
.ab-page .page-content h3 { font-size: clamp(20px, 2.6vw, 24px); }
.ab-page .page-content h4 { font-size: 19px; }
.ab-page .page-content p,
.ab-page .page-content li { color: var(--ink); }
.ab-page .page-content a { color: var(--moss); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color .15s ease; }
.ab-page .page-content a:hover { color: var(--marigold-deep); }
.ab-page .page-content strong { color: var(--ink); font-weight: 700; }
.ab-page .page-content ul,
.ab-page .page-content ol { padding-left: 1.3em; }
.ab-page .page-content li + li { margin-top: .5em; }
.ab-page .page-content li::marker { color: var(--fern); }
.ab-page .page-content blockquote { border-left: 3px solid var(--marigold); padding: 4px 0 4px 20px; margin-left: 0; font-family: var(--f-display); font-style: italic; font-size: 20px; color: var(--moss); }
.ab-page .page-content img { max-width: 100%; height: auto; border-radius: 12px; }
.ab-page .page-content figure { margin-inline: 0; }
.ab-page .page-content figcaption { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 8px; }
.ab-page .page-content hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }
.ab-page .page-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--sage-soft); color: var(--ink); padding: .15em .4em; border-radius: 6px; }
.ab-page .page-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.ab-page .page-content th,
.ab-page .page-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; color: var(--ink); }
.ab-page .page-content th { background: var(--sage-soft); font-weight: 600; }

/* Buttons authored in the editor (e.g. a "Send message" / "Get in touch" link
   given the button style) render on-brand without needing homepage.css. */
.ab-page .page-content .wp-block-button__link,
.ab-page .page-content .btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 13px 22px; border-radius: 999px;
	background: var(--moss); color: #fff; font-weight: 600; text-decoration: none;
	transition: background-color .2s ease, transform .18s ease;
}
.ab-page .page-content .wp-block-button__link:hover,
.ab-page .page-content .btn:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }

/* Optional card styling for contact details, hours, etc. (editor "Group"/"Table"
   blocks). Purely additive — only applies if you use these classes. */
.ab-page .page-content .is-style-card,
.ab-page .page-content .ab-card {
	background: var(--cream); border: 1px solid var(--line); border-radius: 16px;
	padding: 22px 24px;
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 600px) {
	.ab-page .page-hero { padding-top: 38px; }
	.ab-page .page-body { padding-bottom: 48px; }
	.ab-page .page-content { font-size: 16.5px; }
}
