/*
 * The Farm page: the scrapbook details Divi has no setting for. Everything
 * here is switched on by a CSS class on a Divi module (Advanced → CSS Class)
 * and tuned with custom properties in that module's Custom CSS.
 *
 *   hc-tilt          turns a module a little:            --tilt: -1.5deg
 *   hc-tape          strip of tape across the top edge:  --tape-w, --tape-h, --tape-top, --tape-rot, --tape-color
 *   hc-farm-paper    ruled notebook paper:                --rule: 42px (line spacing)
 *   hc-almanac       year + line list in a Text module (bold the year)
 *   hc-friends       list of outside links with a small gold arrow
 *   hc-farm-wave     full-width wave between two sections (inline SVG): --wave-h
 *
 * The page's own colours (rose, leaf green, pale paper) are not Divi global
 * colours yet; they are set on the modules and repeated here once.
 */
:root {
	--hc-farm-rose: #b04a6e;
	--hc-farm-rose-dark: #8e3a57;
	--hc-farm-leaf: #3e7a2e;
}

.hc-tilt {
	transform: rotate(var(--tilt, 0deg));
}

.hc-tape {
	position: relative;
}
.hc-tape::before {
	content: "";
	position: absolute;
	z-index: 1;
	top: var(--tape-top, -13px);
	left: 50%;
	width: var(--tape-w, 110px);
	height: var(--tape-h, 28px);
	margin-left: calc(var(--tape-w, 110px) / -2);
	background: var(--tape-color, rgba(212, 191, 122, 0.6));
	transform: rotate(var(--tape-rot, 3deg));
}

.hc-farm-paper {
	background-image: repeating-linear-gradient(
		to bottom,
		transparent 0,
		transparent calc(var(--rule, 42px) - 1px),
		rgba(79, 127, 147, 0.16) calc(var(--rule, 42px) - 1px),
		rgba(79, 127, 147, 0.16) var(--rule, 42px)
	) !important;
}

/* Almanac: "<strong>1986</strong> The Bests buy their farm…" per list item. */
.hc-almanac ol,
.hc-almanac ul {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0 !important;
	list-style: none !important;
	line-height: inherit;
}
.hc-almanac li {
	display: grid;
	grid-template-columns: 84px 1fr;
	align-items: baseline;
	gap: 12px;
	margin: 0;
	padding: 9px 0;
}
.hc-almanac li strong {
	color: var(--gcid-primary-color);
	font-family: "Ultra", "Rockwell Extra Bold", Rockwell, Georgia, serif;
	font-size: 22px;
	font-weight: 400;
	line-height: 1.6;
}

/* Friends of the farm: link lists. */
.hc-friends ul {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	margin: 0;
	padding: 0 !important;
	list-style: none !important;
	line-height: inherit;
}
.hc-friends li {
	margin: 0;
	padding: 0;
}
.hc-friends a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	color: var(--gcid-primary-color);
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease;
}
.hc-friends a::after {
	content: "";
	flex: 0 0 auto;
	width: 13px;
	height: 13px;
	background-color: var(--gcid-secondary-color);
	-webkit-mask: var(--hc-arrow-ur) center / contain no-repeat;
	mask: var(--hc-arrow-ur) center / contain no-repeat;
	transition: transform 0.2s ease;
}
.hc-friends a:hover {
	color: var(--gcid-hc-forest);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}
.hc-friends a:hover::after {
	transform: translate(2px, -2px);
}

/* Waves between sections. */
.hc-farm-wave {
	line-height: 0;
}
.hc-farm-wave svg {
	display: block;
	width: 100%;
	height: var(--wave-h, 90px) !important;
}

@media (max-width: 767px) {
	.hc-almanac li {
		grid-template-columns: 66px 1fr;
		gap: 10px;
		padding: 8px 0;
	}
	.hc-almanac li strong {
		font-size: 19px;
	}
	.hc-friends ul {
		gap: 2px;
	}
	.hc-friends a {
		display: flex;
		min-height: 44px;
		padding: 0;
	}
	.hc-farm-wave svg {
		height: var(--wave-h-phone, 56px) !important;
	}
	.hc-farm-wave .hc-farm-trees {
		display: none;
	}
}
