/* Design tokens, block styles and homepage sections. Loaded on the site and in the editor. */

:root {
	--ivory: #faf6ec;
	--paper: #fffdf7;
	--ink: #16251d;
	--ink-2: #2c3d33;
	--fern: #1d4a37;
	--fern-deep: #11301f;
	--emerald: #0f6b4c;
	--sage: #dfe7d6;
	--moss: #c9d6bd;
	--brass: #a8823f;
	--brass-ink: #7a5b22;
	--brass-soft: #e9dcc0;
	--line: rgba(29, 74, 55, .22);
	--serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ==========================================================================
   Block styles
   ========================================================================== */
.wp-block-button__link, .wp-block-button .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 10px 24px;
	border-radius: 99px; background: var(--fern); color: var(--ivory); font: 700 17px/1.2 var(--sans);
	text-decoration: none; border: 1.5px solid var(--fern); transition: background .2s, color .2s;
}
.wp-block-button__link:hover { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--fern-deep); border-color: var(--fern); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--fern); color: var(--ivory); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-buttons .wp-block-button { margin: 0; }
.wp-block-buttons.is-content-justification-center { justify-content: center; }

.wp-block-separator.is-style-vine {
	border: 0; height: 24px; max-width: 360px !important; opacity: 1;
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 24'><path d='M0 12 C60 2 100 22 180 12 S300 2 360 12' fill='none' stroke='%23a8823f' stroke-width='1.4'/><path d='M180 12 C176 4 168 2 162 4 C166 10 172 13 180 12Z M180 12 C184 20 192 22 198 20 C194 14 188 11 180 12Z' fill='%230f6b4c'/></svg>") no-repeat center / contain;
}

ul.is-style-leafy { list-style: none; padding-left: 0; }
ul.is-style-leafy li { position: relative; padding-left: 38px; margin-bottom: .7em; }
ul.is-style-leafy li::before {
	content: ""; position: absolute; left: 2px; top: .3em; width: 22px; height: 22px;
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 21 C 6 14, 10 8, 21 3 C 20 12, 14 19, 3 21Z' fill='%230f6b4c'/><path d='M4 20 C 9 15, 13 10, 19 5' stroke='%23fffdf7' stroke-width='1.2' fill='none'/></svg>") no-repeat center / contain;
}
ol.is-style-steps { list-style: none; counter-reset: s; padding-left: 0; }
ol.is-style-steps li { counter-increment: s; position: relative; padding: 0 0 1.1em 64px; min-height: 48px; }
ol.is-style-steps li::before {
	content: counter(s); position: absolute; left: 0; top: -2px; width: 46px; height: 46px; border-radius: 50%;
	border: 1.5px solid var(--emerald); display: grid; place-items: center;
	font: italic 500 23px/1 var(--serif); color: var(--emerald); background: var(--paper);
}
ol.is-style-steps li:not(:last-child)::after { content: ""; position: absolute; left: 23px; top: 48px; bottom: 4px; border-left: 1px dashed var(--brass); }

.wp-block-group.is-style-facts {
	position: relative; margin-top: 40px; margin-bottom: 42px; background: var(--paper); border: 1px solid var(--brass); padding: 26px 22px 18px;
	box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px rgba(168, 130, 63, .45);
}
@media (min-width: 700px) {
	.wp-block-group.is-style-facts { padding: 32px 36px 24px; }
}
.is-style-facts h2, .is-style-facts h3 { margin-top: 0 !important; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 28px; }
.is-style-facts ul { list-style: none; padding: 0; margin: 0; }
.is-style-facts li { padding: 12px 0; border-bottom: 1px dotted var(--line); margin: 0; font-weight: 500; }
.is-style-facts li:last-child { border-bottom: 0; }
.is-style-facts li strong { display: block; font: 700 12px/1.6 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brass-ink); }
@media (min-width: 700px) {
	.is-style-facts ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; }
}

.wp-block-group.is-style-tip {
	margin-top: 44px; margin-bottom: 44px; padding: 30px 0 30px 0; border-top: 1px solid var(--fern); border-bottom: 1px solid var(--fern);
	position: relative;
}
@media (min-width: 700px) {
	.wp-block-group.is-style-tip { padding: 36px 0 36px 110px; }
	.wp-block-group.is-style-tip::before {
		content: ""; position: absolute; left: 6px; top: 34px; width: 72px; height: 96px;
		background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 96'><g fill='none' stroke='%23a8823f' stroke-width='1.3' stroke-linecap='round'><path d='M36 94 C36 70 34 50 30 30'/><path d='M34 66 C22 64 10 56 6 42 C20 42 30 52 34 66Z'/><path d='M33 46 C38 34 50 26 64 26 C62 40 50 48 33 46Z'/></g><g fill='none' stroke='%230f6b4c' stroke-width='1.1'><circle cx='30' cy='14' r='9'/><circle cx='30' cy='14' r='3'/><circle cx='44' cy='18' r='7'/></g></svg>") no-repeat center / contain;
	}
}
.is-style-tip p { font: italic 500 24px/1.45 var(--serif); color: var(--fern-deep); }
@media (min-width: 1024px) {
	.is-style-tip p { font-size: 27px; }
}
.is-style-tip p:last-child { margin-bottom: 0; }

h1.is-style-eyebrow, h2.is-style-eyebrow, h3.is-style-eyebrow, h4.is-style-eyebrow,
.is-style-eyebrow {
	font: 700 13px/1.3 var(--sans) !important; letter-spacing: .2em !important; text-transform: uppercase;
	color: var(--brass-ink); margin-bottom: 12px; margin-top: 0;
}

.wp-block-group.is-style-panel { background: var(--fern); color: #f1ede1; padding: 44px 26px; border-radius: 4px; }
@media (min-width: 900px) {
	.wp-block-group.is-style-panel { padding: 60px 56px; }
}
.is-style-panel h1, .is-style-panel h2, .is-style-panel h3, .is-style-panel strong { color: var(--ivory); }
.is-style-panel .is-style-eyebrow { color: var(--brass-soft) !important; }
.is-style-panel a:not(.wp-block-button__link) { color: #fff; }
.is-style-panel .wp-block-button__link { background: var(--ivory); color: var(--fern-deep); border-color: var(--ivory); }
.is-style-panel .wp-block-button__link:hover { background: var(--brass-soft); border-color: var(--brass-soft); color: var(--fern-deep); }
.is-style-panel .is-style-outline .wp-block-button__link { background: transparent; color: var(--ivory); border-color: var(--ivory); }
.is-style-panel .is-style-outline .wp-block-button__link:hover { background: var(--ivory); color: var(--fern-deep); }
.is-style-panel .wp-block-latest-posts.is-style-cards li a, .is-style-panel .wp-block-latest-posts.is-style-cards .wp-block-latest-posts__post-title { color: var(--ivory); }
.is-style-panel .wp-block-latest-posts.is-style-cards .wp-block-latest-posts__post-title:hover { color: #fff; }
.is-style-panel .wp-block-latest-posts.is-style-cards .wp-block-latest-posts__post-date { color: var(--brass-soft); }
.is-style-panel .wp-block-buttons + .wp-block-latest-posts { margin-top: 32px; }
.wp-block-group.is-style-sage { background: var(--sage); padding: 40px 24px; border-radius: 4px; }
@media (min-width: 900px) {
	.wp-block-group.is-style-sage { padding: 54px 56px; }
}
.cs-placeholder { border: 1.5px dashed currentColor; padding: 16px; border-radius: 6px; opacity: .8; font-size: 16px; }

/* Latest posts block as cards */
.wp-block-latest-posts.is-style-cards { list-style: none; padding: 0 !important; margin: 0 0 1em; display: grid; gap: 30px; }
.wp-block-latest-posts.is-style-cards.is-grid { display: grid; }
@media (min-width: 640px) {
	.wp-block-latest-posts.is-style-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
	.wp-block-latest-posts.is-style-cards.columns-3 { grid-template-columns: repeat(3, 1fr); }
	.wp-block-latest-posts.is-style-cards.columns-4 { grid-template-columns: repeat(4, 1fr); }
}
.wp-block-latest-posts.is-style-cards li { width: auto !important; margin: 0 !important; display: flex; flex-direction: column; }
.wp-block-latest-posts.is-style-cards .wp-block-latest-posts__featured-image { margin: 0 0 14px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--fern); }
.wp-block-latest-posts.is-style-cards .wp-block-latest-posts__featured-image a { display: block; height: 100%; }
.wp-block-latest-posts.is-style-cards .wp-block-latest-posts__featured-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .6s cubic-bezier(.3, .7, .3, 1); }
.wp-block-latest-posts.is-style-cards li:hover img { transform: scale(1.04); }
.wp-block-latest-posts.is-style-cards .wp-block-latest-posts__post-title { font: 600 23px/1.24 var(--serif); color: var(--fern-deep); text-decoration: none; }
.wp-block-latest-posts.is-style-cards .wp-block-latest-posts__post-title:hover { color: var(--emerald); text-decoration: underline; text-decoration-thickness: 1px; }
.wp-block-latest-posts.is-style-cards .wp-block-latest-posts__post-date { order: -1; font: 700 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brass-ink); margin: 0 0 8px; }
.wp-block-latest-posts.is-style-cards .wp-block-latest-posts__featured-image + .wp-block-latest-posts__post-date,
.wp-block-latest-posts.is-style-cards .wp-block-latest-posts__post-title + .wp-block-latest-posts__post-date { order: 0; margin: 8px 0 0; }
.wp-block-latest-posts.is-style-cards .wp-block-latest-posts__post-excerpt { font-size: 17px; margin-top: 8px; }

/* ==========================================================================
   Homepage built from blocks
   ========================================================================== */
.home-content { padding-top: 0; padding-bottom: 20px; }
.home-content > * { margin-top: 0; margin-bottom: 0; }
.home-content > * + * { margin-top: 64px; }
@media (min-width: 1024px) {
	.home-content > * + * { margin-top: 90px; }
}
.home-content > .alignwide { max-width: var(--wide); }
.home-content .alignfull .alignwide {
	box-sizing: border-box; width: 100%; max-width: var(--wide); margin-left: auto; margin-right: auto;
}
.cs-section-title { font: 600 34px/1.12 var(--serif) !important; color: var(--fern-deep); margin: 0 0 24px !important; }
.cs-section-title em { color: var(--emerald); font-weight: 500; }
.is-style-panel .cs-section-title { color: var(--ivory); }
.is-style-panel .cs-section-title em { color: #9fd0b4; }
@media (min-width: 1024px) {
	.cs-section-title { font-size: 44px !important; }
}
.cs-see-all a { font: 700 16px/1 var(--sans); text-decoration: none; }
.cs-welcome { padding: 40px var(--gutter) 10px; background: linear-gradient(180deg, var(--ivory), var(--sage)); }
@media (min-width: 1024px) {
	.cs-welcome { padding: 40px 40px 56px; }
}
.home-content .cs-welcome .wp-block-image { margin: 0; }
.home-content .cs-welcome .wp-block-image img { width: 100%; height: auto; display: block; }
.home-content .cs-welcome .is-style-eyebrow { margin: 0 0 14px; }
.home-content .cs-welcome h1 { font-size: 48px; line-height: 1.04; margin: 0 0 18px; }
@media (min-width: 1024px) {
	.home-content .cs-welcome h1 { font-size: 72px !important; }
}
.home-content .cs-welcome h1 em { color: var(--emerald); font-weight: 500; }
.home-content .wp-block-columns { display: flex; flex-wrap: wrap; gap: 30px; margin-bottom: 0; }
.home-content .wp-block-column { flex-grow: 1; min-width: 0; margin-left: 0; }
@media (max-width: 781px) {
	.home-content .wp-block-column { flex-basis: 100% !important; }
}
@media (min-width: 782px) {
	.home-content .wp-block-columns { flex-wrap: nowrap; gap: 48px; }
}
.cs-topic-buttons .wp-block-button__link { min-width: 200px; }

