/*
 * PORCH base: page canvas, typography baseline, link defaults, image fade.
 *
 * This file is unopinionated about layout. Layout is the job of Bricks
 * templates plus porch-components.css. Base only sets the temperature.
 */

html {
	background: var(--porch-neutral-warm);
}

body {
	background: var(--porch-neutral-warm);
	color: var(--porch-text-black);
	font-family: var(--porch-font-sans);
	font-size: var(--porch-fs-body);
	font-weight: var(--porch-fw-regular);
	line-height: var(--porch-lh-body);
	letter-spacing: var(--porch-ls-tight);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--porch-font-sans);
	font-weight: var(--porch-fw-semibold);
	letter-spacing: var(--porch-ls-tight);
	color: var(--porch-text-black);
	margin-top: 0;
}

h1 {
	font-size: var(--porch-fs-h1);
	line-height: var(--porch-lh-h1);
	letter-spacing: var(--porch-ls-display);
	font-weight: var(--porch-fw-bold);
	color: var(--porch-brand-green);
}

h2 {
	font-size: var(--porch-fs-h2);
	line-height: var(--porch-lh-h2);
}

h3 {
	font-size: var(--porch-fs-h3);
	line-height: var(--porch-lh-h3);
}

h4 {
	font-size: var(--porch-fs-h4);
	line-height: var(--porch-lh-h4);
}

p {
	margin-top: 0;
	margin-bottom: var(--porch-space-3);
}

a {
	color: var(--porch-cta-green);
	text-decoration: none;
	transition: color var(--porch-dur-fast) var(--porch-easing);
}

a:hover,
a:focus-visible {
	color: var(--porch-cta-green-hover);
	text-decoration: underline;
}

a:focus-visible {
	outline: 2px solid var(--porch-cta-green);
	outline-offset: 2px;
	border-radius: 2px;
}

img {
	max-width: 100%;
	height: auto;
	opacity: 1;
	transition: opacity var(--porch-dur-image) ease-in;
}

img[loading="lazy"]:not(.is-loaded) {
	opacity: 0;
}

/* Utility: cream zone separator */
.porch-zone-ceramic {
	background: var(--porch-ceramic);
}

/* Utility: full-bleed dark green band */
.porch-zone-deep {
	background: var(--porch-deep-green);
	color: var(--porch-text-white);
}

.porch-zone-deep h1,
.porch-zone-deep h2,
.porch-zone-deep h3,
.porch-zone-deep h4 {
	color: var(--porch-text-white);
}

/* Container utilities */
.porch-container {
	width: 100%;
	max-width: var(--porch-container-default);
	margin-inline: auto;
	padding-inline: var(--porch-gutter);
}

.porch-container--narrow {
	max-width: var(--porch-container-narrow);
}

.porch-container--wide {
	max-width: var(--porch-container-wide);
}

/* Body-text scale utilities for use inside Bricks rich text */
.porch-body-large {
	font-size: var(--porch-fs-body-large);
	line-height: var(--porch-lh-body);
	color: var(--porch-text-black);
}

.porch-text-soft {
	color: var(--porch-text-black-soft);
}

.porch-text-on-dark {
	color: var(--porch-text-white);
}

.porch-text-on-dark-soft {
	color: var(--porch-text-white-soft);
}

/* Lora is restricted to founder quotes and one featured testimonial.
 * PORCH section 3 calls this out explicitly. The utility class makes
 * the restriction visible and reviewable in template diffs.
 */
.porch-quote-serif {
	font-family: var(--porch-font-serif);
	font-style: italic;
	font-weight: var(--porch-fw-regular);
	letter-spacing: normal;
}

.porch-quote-serif--featured {
	font-size: 28px;
	font-weight: var(--porch-fw-medium);
}

.porch-quote-serif--founder {
	font-size: 24px;
}
