/* Opt-in visual vocabulary for park pages. A surface, cover, frame or button
   can be used independently of its placement on the homepage. */
@font-face {
	font-family: "Park Lato";
	src: url("../fonts/inner/lato-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Park Lato";
	src: url("../fonts/inner/lato-700-normal.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}
@font-face {
	font-family: "Park Playfair";
	src: url("../fonts/inner/playfair-display-700-normal.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}
@font-face {
	font-family: "Park Playfair";
	src: url("../fonts/inner/playfair-display-700-italic.woff2") format("woff2");
	font-style: italic;
	font-weight: 700;
	font-display: swap;
}

:root {
	--bh-ink: #291b11;
	--bh-forest: #19371e;
	--bh-gold: #ffcb24;
	--bh-umber: #624021;
	--bh-paper: #f8e7ca;
	--bh-cream: #fff8e6;
	--bh-display: Georgia, "Times New Roman", serif;
	--bh-body: "Avenir Next", Avenir, system-ui, sans-serif;
	--bh-gutter: clamp(1rem, 3.8vw, 4.5rem);
	--bh-width: 82rem;
}
.bh-wrap { width: min(calc(100% - 2 * var(--bh-gutter)), var(--bh-width)); margin-inline: auto; }
.bh-surface { position: relative; color: var(--bh-surface-ink, var(--bh-ink)); background: var(--bh-surface-background); }
.bh-surface--parchment {
	--bh-surface-background: radial-gradient(ellipse at center, #fff8e5b8, #f6d49c52 78%, #c8893480), url("../images/heritage/paper.webp") repeat, var(--bh-paper);
}
.bh-surface--forest { --bh-surface-background: linear-gradient(105deg, #254823, #152f19); --bh-surface-ink: var(--bh-cream); }
.bh-surface--espresso { --bh-surface-background: linear-gradient(115deg, #422d1d, #291c13 55%, #1e1811); --bh-surface-ink: var(--bh-cream); }
.bh-surface--brush {
	--bh-surface-ink: var(--bh-cream);
	--bh-surface-background: url("../images/heritage/green-brush.webp") center / 100% 100% no-repeat;
}
.bh-edge::before, .bh-edge::after {
	content: ""; position: absolute; inset-inline: 0; height: 23px; pointer-events: none; z-index: 2;
	background: url("../images/heritage/paper-edge.webp") center bottom / 1240px 24px repeat-x;
}
.bh-edge::before { top: -22px; }
.bh-edge::after { bottom: -22px; transform: scaleY(-1); }
.bh-title { font-family: var(--bh-display); font-weight: 700; font-style: italic; line-height: 1.01; letter-spacing: -.04em; margin: 0; color: inherit; }
.bh-underline::after {
	content: ""; display: block; width: var(--bh-rule-width, 6em); height: .22em; margin: .15em 0 0;
	background: url("../images/heritage/yellow-brush.webp") center / 100% 100% no-repeat;
}
.bh-cover { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--bh-focal-point, center); }
.bh-button, .bh-button:visited {
	display: inline-flex; gap: .9rem; justify-content: center; align-items: center; min-height: 43px;
	padding: .64rem 1.35rem; border: 1px solid transparent; border-radius: 5px;
	font: 700 .94rem/1.2 var(--bh-body); text-align: center; text-decoration: none;
	background: var(--bh-button-bg); color: var(--bh-button-ink);
}
.bh-button span { font-size: 1.25em; line-height: 1; }
.bh-button--umber { --bh-button-bg: linear-gradient(100deg, #795132, #563719); --bh-button-ink: #fff8e6; }
.bh-button--gold { --bh-button-bg: var(--bh-gold); --bh-button-ink: #221708; border-radius: 2em; }
.bh-button--forest { --bh-button-bg: var(--bh-forest); --bh-button-ink: #fff4cc; border-radius: 2em; }
.bh-button:hover { filter: brightness(1.1); color: var(--bh-button-ink); }
.bh-frame {
	--bh-paper-frame: url("../images/heritage/paper-frame.webp") center / 100% 100% no-repeat;
	display: block; position: relative; overflow: hidden; background: var(--bh-paper-frame);
}
.bh-image-card__face::before, .bh-image-card__face > .bh-cover, .bh-image-card__face::after, .bh-frame > .bh-cover {
	-webkit-mask: var(--bh-paper-frame); mask: var(--bh-paper-frame);
}
.bh-icon { display: inline-block; width: 1em; height: 1em; vertical-align: middle; flex: none; }
/* In the luminance mask the original brown ink is visible and its white matte is transparent. */
.bh-glyph__source { filter: grayscale(1) invert(1) contrast(1.5); }
.bh-icon--tripadvisor { background: currentColor; -webkit-mask: var(--bh-icon) center / contain no-repeat; mask: var(--bh-icon) center / contain no-repeat; }
.bh-button .bh-icon--arrow { width: 1.25em; height: 1.25em; }
.bh-control {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 100%;
	background: transparent; color: inherit; font: 400 1.6rem/1 var(--bh-display); cursor: pointer;
}
.bh-control[hidden], .bh-reviews [hidden], .bh-story:not([open]) { display: none; }
.bh-home :focus-visible, .bh-header :focus-visible, .bh-footer--heritage :focus-visible {
	outline: 3px solid #1372a1; outline-offset: 4px; box-shadow: 0 0 0 3px white;
}
.bh-visitor-links { position: relative; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(.45rem, 1vw, 1.05rem); }
@media (max-width: 679px) { .bh-visitor-links { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 345px) { .bh-visitor-links { grid-template-columns: 1fr; } }

.bh-image-card {
	display: grid; text-decoration: none; color: var(--bh-cream); transform: rotate(var(--bh-tilt, 0deg));
	filter: drop-shadow(0 3px 3px #7646195c); transition: transform .18s ease;
}
.bh-image-card:visited, .bh-image-card:hover { color: var(--bh-cream); }
.bh-image-card:hover { transform: translateY(-3px) rotate(0); }
.bh-image-card__frame { display: grid; padding: 6px; min-height: clamp(15rem, 24vw, 21rem); }
.bh-image-card__face { position: relative; display: grid; }
.bh-image-card__face::before, .bh-image-card__face::after { content: ""; position: absolute; inset: 0; }
.bh-image-card__face::before { background: #2f1d0c; }
.bh-image-card__face::after { background: linear-gradient(180deg, transparent 25%, #28190938 39%, #2f1d0cf2 70%, #2f1d0c 76%); }
.bh-image-card__face > .bh-cover { position: absolute; inset: 0; height: 74%; }
.bh-image-card__body {
	position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
	padding: clamp(.9rem, 1.7vw, 1.55rem); width: 100%;
}
.bh-image-card__body .bh-icon { font-size: clamp(1.8rem, 3vw, 2.8rem); color: #fff9e8; margin-bottom: .35rem; }
.bh-image-card__title { font-size: clamp(1.5rem, 2.45vw, 2.45rem); }
.bh-image-card__summary { margin-top: .4rem; font: 500 clamp(.9rem, 1.13vw, 1.06rem)/1.3 var(--bh-body); max-width: 21ch; }
.bh-image-card__arrow .bh-icon { width: 67%; height: 67%; margin: 0; color: inherit; }
.bh-image-card__arrow {
	display: grid; place-items: center; align-self: flex-end; margin-top: .65rem; width: 1.9rem; height: 1.9rem;
	border-radius: 50%; background: var(--bh-gold); color: #291700; font: 600 1.25rem/1 var(--bh-body);
}
@media (prefers-reduced-motion: reduce) {
	.bh-image-card { transition: none; }
	.bh-image-card:hover { transform: none; }
}
/* The photograph sits behind the transparent cut-out in each supplied paper mount. */
.park-print {
	position: relative;
	isolation: isolate;
	display: block;
	width: 100%;
	margin: 0;
	aspect-ratio: var(--print-ratio);
	filter: drop-shadow(2px 6px 5px #603b1a42);
}
.park-print > .bh-cover, .park-print__second { position: absolute; object-fit: cover; }
.park-print > .bh-cover { inset: var(--print-inset); width: var(--print-width); height: var(--print-height); rotate: var(--print-angle,0deg); }
.park-print::after, .park-print::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.park-print::after { background: var(--print-frame) center / 100% 100% no-repeat; }
.park-print--donate {
	--print-ratio: 1251/770; --print-frame: url("../images/inner/frame-donate.webp"); --print-inset: 7.43% auto auto 8.35%; --print-width: 87.87%; --print-height: 83.66%; --print-angle: -2.79deg;
}
.park-print--member {
	--print-ratio: 1266/655; --print-frame: url("../images/inner/frame-member.webp"); --print-inset: 10.06% auto auto 7.12%; --print-width: 74.89%; --print-height: 69.32%; --print-angle: -6.54deg;
}
.park-print--member > img, .park-print--society > img, .park-print__second { filter: grayscale(1) sepia(.5) contrast(1.08); }
.park-print--member::before, .park-print--collage::before { z-index: 2; background: var(--print-seal) no-repeat var(--seal-position) / var(--seal-size) auto; }
.park-print--member { --print-seal: url("../images/inner/seal-red-fortress.webp"); --seal-position: 86% 78%; --seal-size: 19%; }
.park-print--society {
	--print-ratio: 829/583; --print-frame: url("../images/inner/paper-society.webp"); --print-inset: 7% auto auto 5%; --print-width: 90%; --print-height: 84%;
}
.park-print--society > img { z-index: 1; mix-blend-mode: multiply; mask-image: linear-gradient(90deg,transparent,#000 8% 92%,transparent); }
.park-print--collage {
	--print-ratio: 1969/817; --print-frame: url("../images/inner/frame-home-collage.webp"); --print-inset: 7.2% auto auto 13.12%; --print-width: 47.22%; --print-height: 81.11%; --print-angle: -7.13deg;
	--print-seal: url("../images/inner/seal-copper-brimstone-hill.webp"); --seal-position: 100% 93%; --seal-size: 23.82%;
}
.park-print__second { top: 12.14%; left: 66.65%; width: 29.57%; height: 49.01%; rotate: 10.43deg; }

/* The brush has two painted ends and a repeatable center, so the edges keep their proportions. */
:root {
	--park-brush-end: clamp(2.5rem, 6vw, 5rem);
	--park-brush: url("../images/inner/brush-cap-l.webp") left center / var(--park-brush-end) 100% no-repeat,
		url("../images/inner/brush-cap-r.webp") right center / var(--park-brush-end) 100% no-repeat,
		url("../images/inner/brush-mid.webp") center / calc(100% - 2 * var(--park-brush-end) + 2px) 100% no-repeat;
}
