/* Grace House family: components theme.json can't express. Tokens come from theme.json presets. */

:root {
	--gh-gold: var(--wp--preset--color--gold, #B39051);
	--gh-dark-gold: var(--wp--preset--color--dark-gold, #8F713D);
	--gh-navy: var(--wp--preset--color--navy, #051E39);
	--gh-diploma: var(--wp--preset--color--diploma, #F9F6E5);
	--gh-buzz: var(--wp--preset--color--buzz, #EAAA00);
}

html { scroll-padding-top: 1rem; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
p, li { max-width: 70ch; }
img { height: auto; }

.screen-reader-text {
	border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
	padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: #fff; clip-path: none; color: var(--gh-navy); display: block; height: auto;
	left: 6px; padding: 12px 20px; top: 6px; width: auto; z-index: 100000;
}

/* Visible keyboard focus everywhere; buzz ring on dark/gold areas. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--gh-navy);
	outline-offset: 3px;
	border-radius: 2px;
}
.has-navy-background-color :focus-visible { outline-color: var(--gh-buzz); }

/* Gold text is only ever Dark Gold, weight 500+ (GT rule). */
.has-dark-gold-color { font-weight: 500; }

/* ---------- Header ---------- */
.gh-header { border-bottom: 3px solid var(--gh-gold); }
.gh-header .wp-block-site-logo img { display: block; }
.gh-header .wp-block-navigation a { text-decoration: none; padding-block: 0.35rem; }
.gh-header .wp-block-navigation a:hover,
.gh-header .wp-block-navigation .current-menu-item > a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; text-decoration-color: var(--gh-gold); }
.gh-header .wp-block-navigation .gh-nav-give > a {
	background: var(--gh-gold); color: var(--gh-navy); border-radius: 0.375rem;
	padding: 0.45rem 0.9rem; font-weight: 700;
}
.gh-header .wp-block-navigation .gh-nav-give > a:hover { background: var(--gh-navy); color: #fff; text-decoration: none; }
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
.wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: 1.25rem; }

/* Outline buttons: navy edge so the button outline is visible (gold on white is too faint). */
.wp-block-button.is-style-outline > .wp-block-button__link { border-color: var(--gh-navy); color: var(--gh-navy); background: transparent; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--gh-navy); color: #fff; }

/* ---------- Home hero ---------- */
.gh-hero { align-items: center; }
.gh-hero h1 { font-size: clamp(2.375rem, 5.2vw, 4rem); line-height: 1.05; max-width: 14ch; }
.gh-hero .gh-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.5; }
.gh-hero .wp-block-image img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
@media (max-width: 781px) {
	.gh-hero .wp-block-image img { aspect-ratio: 3 / 2; }
}

/* The sign: the three facts a first-time visitor needs, as live text. */
.gh-sign {
	background: var(--gh-diploma);
	border-top: 6px solid var(--gh-gold);
	border-radius: 0 0 0.375rem 0.375rem;
	padding: 1.1rem 1.4rem 1.2rem;
	max-width: 30rem;
}
.gh-sign p { margin: 0; }
.gh-sign .gh-sign-what { font-family: var(--wp--preset--font-family--roboto-slab); font-weight: 800; font-size: 1.75rem; line-height: 1.1; }
.gh-sign .gh-sign-when { font-family: var(--wp--preset--font-family--roboto-slab); font-weight: 600; font-size: 1.375rem; margin-top: 0.2rem; }
.gh-sign .gh-sign-where { margin-top: 0.4rem; }

/* ---------- The menu board (weekly schedule) ---------- */
.gh-board { color: var(--gh-navy); }
.gh-board h2, .gh-board h3 { color: var(--gh-navy); }
.gh-board .gh-row {
	display: grid;
	grid-template-columns: 9rem minmax(0, 1fr) auto;
	align-items: baseline;
	column-gap: 0.75rem;
	padding-block: 0.6rem;
	border-bottom: 1px solid rgba(5, 30, 57, 0.25);
	margin: 0 !important;
}
.gh-board .gh-row > * { margin: 0 !important; max-width: none; }
.gh-board .gh-row:last-child { border-bottom: 0; }
.gh-board .gh-day { font-family: var(--wp--preset--font-family--roboto-slab); font-weight: 700; font-size: 1.25rem; }
.gh-board .gh-what { display: flex; align-items: baseline; gap: 0.6rem; font-size: 1.125rem; font-weight: 500; }
.gh-board .gh-what::after { content: ""; flex: 1 1 2rem; min-width: 1.5rem; border-bottom: 2px dotted currentColor; transform: translateY(-0.3em); }
.gh-board .gh-time { font-family: var(--wp--preset--font-family--roboto-slab); font-weight: 700; font-size: 1.25rem; text-align: right; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.gh-board .gh-row.gh-row--no-day { grid-template-columns: minmax(0, 1fr) auto; }
.gh-board .gh-note { font-size: 1rem; }
@media (max-width: 600px) {
	.gh-board .gh-row, .gh-board .gh-row.gh-row--no-day { grid-template-columns: minmax(0, 1fr); row-gap: 0.1rem; }
	.gh-board .gh-what::after { display: none; }
	.gh-board .gh-time { text-align: left; white-space: normal; font-size: 1.125rem; }
}

/* ---------- Quote band ---------- */
.gh-welcome blockquote, .gh-welcome .wp-block-quote { margin: 0; }
.gh-welcome .wp-block-quote p { font-size: clamp(1.625rem, 3.2vw, 2.5rem); line-height: 1.2; max-width: 22ch; }
.gh-welcome .wp-block-image img { aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Photo strip ---------- */
.gh-photos .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gh-photos .wp-block-image { margin: 0; }

/* ---------- Ways to stay in touch ---------- */
.gh-links { list-style: none; padding: 0; margin: 0; border-top: 3px solid var(--gh-gold); }
.gh-links li { border-bottom: 1px solid rgba(5, 30, 57, 0.2); padding: 0.9rem 0; max-width: none; }
.gh-links li a { font-family: var(--wp--preset--font-family--roboto-slab); font-weight: 700; font-size: 1.25rem; }
.gh-links li span.gh-links-note { display: block; margin-top: 0.15rem; }

/* ---------- Staff ---------- */
.gh-staff .wp-block-image img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: 9rem; }
.gh-role { color: var(--gh-dark-gold); font-weight: 600; margin-top: 0 !important; }

/* ---------- Galleries ---------- */
.wp-block-gallery.has-nested-images figure.wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Page title band ---------- */
.gh-page-head { border-bottom: 1px solid rgba(5, 30, 57, 0.15); }
.gh-page-head .wp-block-post-title { max-width: 20ch; }

/* ---------- Embeds ---------- */
.gh-calendar iframe { width: 100%; height: 640px; border: 0; display: block; }
@media (max-width: 600px) { .gh-calendar iframe { height: 520px; } }

/* ---------- Footer ---------- */
.gh-footer a { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.gh-footer .gh-footer-motto { font-family: var(--wp--preset--font-family--roboto-slab); font-weight: 600; }
.gh-footer ul { list-style: none; padding: 0; margin: 0; }
.gh-footer li { margin: 0 0 0.35rem; }

/* Podcast player keeps to the column. */
.powerpress_player, .powerpress_links { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Staff rows (Media & Text): round portrait, text beside it. */
.gh-staff .wp-block-media-text__media img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; max-width: 10rem; }
.gh-staff .wp-block-media-text__content { padding-right: 0; }
.gh-staff .wp-block-media-text__content > h3 { margin-top: 0; }
@media (max-width: 600px) { .gh-staff .wp-block-media-text__content { padding: 1rem 0 0; } }

/* =====================================================================
   Artistic layer (2026-10): word river, chalkboard, layered photos, gold line-work.
   Boldness lives in two places: the river flowing into the chalkboard schedule, and the
   layered hero photos. Everything else stays quiet.
   ===================================================================== */

:root { --gh-river-h: max(112px, 14.17vw); }

/* ---------- Hand-drawn gold underline: italic words in a hero heading ---------- */
.gh-hero h1 em,
.gh-scribble em {
	font-style: normal;
	white-space: nowrap;
	padding-bottom: 0.08em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 22' preserveAspectRatio='none'%3E%3Cpath d='M4 12 C 46 5, 104 3, 196 8 M 22 18 C 70 12, 126 12, 184 15' fill='none' stroke='%23B39051' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 100% / 100% 0.3em;
}

/* ---------- Layered hero photos ---------- */
.gh-collage { position: relative; padding: 1rem 1rem 2.75rem 2.75rem; margin: 0 !important; }
.gh-collage::before {
	content: ""; position: absolute; top: 0; right: 0; bottom: 1.75rem; left: 4rem;
	border: 2px solid var(--gh-gold); border-radius: 0.5rem; pointer-events: none;
}
.gh-collage > .wp-block-image { position: relative; z-index: 1; margin: 0 !important; }
.gh-hero .gh-collage > .gh-collage__inset {
	position: absolute; left: 0; bottom: 0; z-index: 2; width: 38%;
	background: #fff; padding: 0.45rem 0.45rem 1.5rem; border-radius: 2px;
	box-shadow: 0 1px 0 rgba(5, 30, 57, 0.08), 0 16px 30px -14px rgba(5, 30, 57, 0.55);
	transform: rotate(-4deg);
}
.gh-hero .gh-collage > .gh-collage__inset img { aspect-ratio: 1; border-radius: 0; }
@media (max-width: 781px) {
	.gh-collage { padding: 0.75rem 0.75rem 2.25rem 1.75rem; }
	.gh-collage::before { left: 2.75rem; bottom: 1.25rem; }
	.gh-hero .gh-collage > .gh-collage__inset { width: 34%; }
}

/* ---------- Word river (see inc/river.php) ---------- */
.gh-river {
	position: relative; display: block; height: var(--gh-river-h);
	margin-block: 0 !important; line-height: 0; pointer-events: none; user-select: none;
}
.gh-river + * { margin-block-start: 0 !important; }
.gh-river__svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.gh-river__below { fill: var(--gh-river-below, var(--gh-navy)); }
/* Above the chalkboard, match the board's chalk-dusted navy so there is no seam. */
.gh-river:has(+ .gh-chalk) { --gh-river-below: #112842; }
.gh-river__stripe { fill: none; stroke-linecap: round; }
.gh-river__stripe--gold { stroke: var(--gh-gold); stroke-width: 7; }
.gh-river__stripe--buzz { stroke: var(--gh-buzz); stroke-width: 2.5; }
.gh-river__stripe--navy { stroke: var(--gh-navy); stroke-width: 3.5; }
.gh-river__words { font-family: var(--wp--preset--font-family--roboto-slab); font-weight: 700; font-size: 30px; letter-spacing: 0.01em; }
.gh-river__a { fill: var(--gh-navy); }
.gh-river__b { fill: var(--gh-dark-gold); }
.gh-river__dot { fill: var(--gh-gold); }

/* Wreckshaw road: the words ride along the top of a navy road with a dashed centre line. */
.gh-river--road { z-index: 1; margin-block-start: calc(var(--gh-river-h) * -0.745) !important; }
.gh-river--road .gh-river__road { fill: var(--gh-navy); }
.gh-river--road .gh-river__lane { fill: none; stroke: var(--gh-buzz); stroke-width: 4; stroke-dasharray: 30 24; stroke-linecap: round; }
.gh-river--road .gh-river__a,
.gh-river--road .gh-river__b { fill: var(--gh-navy); }
.gh-river--road .gh-river__b { font-family: var(--wp--preset--font-family--roboto); font-style: italic; font-weight: 700; }
.gh-river--road .gh-river__dot { fill: #fff; }

/* In the editor the river is just its paragraph, shown quietly. */
.editor-styles-wrapper .gh-river {
	height: auto; line-height: 1.4; pointer-events: auto; user-select: auto; margin-block: 1rem !important;
	padding: 1rem; text-align: center; font-family: var(--wp--preset--font-family--roboto-slab);
	border-block: 2px dashed var(--gh-gold);
}

/* ---------- Chalkboard (weekly schedule on a navy board) ---------- */
.gh-chalk {
	background-color: var(--gh-navy);
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
		radial-gradient(ellipse 60% 40% at 18% 55%, rgba(249, 246, 229, 0.06), transparent 70%),
		radial-gradient(ellipse 50% 40% at 82% 75%, rgba(249, 246, 229, 0.05), transparent 70%);
	color: var(--gh-diploma);
}
.gh-chalk .gh-board {
	position: relative;
	padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3.25rem);
	border: 2px solid var(--gh-gold);
	outline: 1px solid rgba(179, 144, 81, 0.7);
	outline-offset: 7px;
	border-radius: 3px;
}
.gh-chalk .gh-board,
.gh-chalk .gh-board h3 { color: var(--gh-diploma); }
.gh-chalk .gh-board h2 { color: var(--gh-gold); text-align: center; font-size: clamp(2rem, 4.4vw, 3rem); }
.gh-chalk .gh-board h2::after {
	content: ""; display: block; width: 9rem; height: 0.7rem; margin: 0.5rem auto 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 144 12'%3E%3Cpath d='M2 6 C 14 0, 22 0, 34 6 S 56 12, 70 6 S 94 0, 106 6 S 130 12, 142 6' fill='none' stroke='%23F9F6E5' stroke-width='2' stroke-linecap='round' opacity='.75'/%3E%3C/svg%3E") no-repeat center / contain;
}
.gh-chalk .gh-board h3 { font-size: 1.5rem; }
.gh-chalk .gh-board .gh-row { border-bottom: 1px dashed rgba(249, 246, 229, 0.3); }
.gh-chalk .gh-board .gh-day { color: var(--gh-gold); }
.gh-chalk .gh-board .gh-time { color: #fff; }
.gh-chalk .gh-board .gh-what::after { opacity: 0.55; }
.gh-chalk .gh-board :is(.gh-day, .gh-time, h2, h3) { text-shadow: 0 0 1px rgba(249, 246, 229, 0.35); }
.gh-chalk a { color: var(--gh-diploma); }
.gh-chalk :focus-visible { outline-color: var(--gh-buzz); }

/* ---------- "Y'all means all": big gold quote mark, taped photo ---------- */
.gh-welcome .wp-block-quote { border-left: 0; padding-left: 0; position: relative; padding-top: 3.25rem; }
.gh-welcome .wp-block-quote::before {
	content: "\201C"; position: absolute; top: -1.25rem; left: -0.3rem;
	font-family: var(--wp--preset--font-family--roboto-slab); font-weight: 800; font-size: 7.5rem; line-height: 1;
	color: var(--gh-gold);
}
.gh-welcome .wp-block-image {
	position: relative; background: #fff; padding: 0.55rem; transform: rotate(1.6deg);
	box-shadow: 0 1px 0 rgba(5, 30, 57, 0.08), 0 20px 34px -18px rgba(5, 30, 57, 0.55);
}
.gh-welcome .wp-block-image img { border-radius: 0; display: block; }
.gh-welcome .wp-block-image::before {
	content: ""; position: absolute; z-index: 1; top: -0.85rem; left: 50%; width: 7rem; height: 1.7rem;
	transform: translateX(-50%) rotate(-3deg); background: rgba(179, 144, 81, 0.6);
	clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 4% 96%, 0 50%);
}

/* ---------- "Is Grace House for me?": a gold line drawing of a cup ---------- */
.gh-forme { position: relative; overflow: hidden; }
@media (min-width: 1200px) {
	.gh-forme::after {
		content: ""; position: absolute; top: 50%; right: max(2rem, calc(50% - 38rem)); width: 10rem; height: 12rem;
		transform: translateY(-50%) rotate(-6deg); pointer-events: none;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 140' fill='none' stroke='%23B39051' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M47 42c-8-10 8-15 0-26M63 44c-8-10 8-16 0-29M79 42c-8-10 8-15 0-26'/%3E%3Cpath d='M27 58c22-2 51-2 73 1l-6 49c-1 7-7 12-14 12H48c-7 0-13-5-14-12z'/%3E%3Cpath d='M99 66c17-1 18 25-3 26'/%3E%3Cpath d='M14 127c22 7 78 6 98-1'/%3E%3Cpath d='M64 96l-8-8c-5-6 3-12 8-5 5-7 13-1 8 5z'/%3E%3C/svg%3E") no-repeat center / contain;
	}
}

/* ---------- Photos hung on a gold line with navy pegs ---------- */
.gh-photos { position: relative; padding-top: 2.25rem; }
.gh-photos .wp-block-column { position: relative; }
.gh-photos .wp-block-image {
	position: relative; background: #fff; padding: 0.5rem 0.5rem 1.75rem;
	box-shadow: 0 1px 0 rgba(5, 30, 57, 0.08), 0 18px 30px -18px rgba(5, 30, 57, 0.55);
	transform-origin: 50% 0;
}
.gh-photos .wp-block-image img { border-radius: 0; }
.gh-photos .wp-block-image::before {
	content: ""; position: absolute; z-index: 1; top: -0.85rem; left: 50%; width: 0.7rem; height: 1.75rem;
	transform: translateX(-50%); background: var(--gh-navy); border-radius: 2px;
}
@media (min-width: 782px) {
	.gh-photos::before {
		content: ""; position: absolute; left: -1%; right: -1%; top: 0; height: 2.6rem; pointer-events: none;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 40' preserveAspectRatio='none'%3E%3Cpath d='M0 4 Q 50 34 100 4 Q 150 34 200 4 Q 250 34 300 4' fill='none' stroke='%23B39051' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
	}
	.gh-photos .wp-block-column:nth-child(3n+1) .wp-block-image { transform: rotate(-2deg); }
	.gh-photos .wp-block-column:nth-child(3n+2) .wp-block-image { transform: rotate(1.4deg); }
	.gh-photos .wp-block-column:nth-child(3n+3) .wp-block-image { transform: rotate(-1deg); }
}
@media (max-width: 781px) {
	.gh-photos { padding-top: 1rem; }
	.gh-photos .wp-block-column:nth-child(odd) .wp-block-image { transform: rotate(-1deg); }
	.gh-photos .wp-block-column:nth-child(even) .wp-block-image { transform: rotate(1deg); }
	.gh-photos.wp-block-columns { row-gap: 2rem !important; }
}

/* ---------- Page titles get a short gold squiggle ---------- */
main > .wp-block-post-title::after,
.gh-squiggle::after {
	content: ""; display: block; width: 6.5rem; height: 0.75rem; margin-top: 0.6rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 104 12'%3E%3Cpath d='M2 6 C 10 0, 18 0, 26 6 S 42 12, 50 6 S 66 0, 74 6 S 92 12, 102 6' fill='none' stroke='%23B39051' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 50% / contain;
}

/* ---------- Footer: a coffee-house awning edge ---------- */
.gh-footer, .ws-sponsor { position: relative; border-top: 4px solid var(--gh-gold); }
.gh-footer::before, .ws-sponsor::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; pointer-events: none;
	background: radial-gradient(circle at 14px 0, var(--gh-gold) 12.5px, transparent 13.5px) 0 0 / 28px 14px repeat-x;
}

/* Long web addresses (e.g. in the Privacy Policy) wrap instead of widening the page on phones. */
p, li, td { overflow-wrap: break-word; }

/* Sticky header (2026-10-16, with the ow-sticky-header add-on): once the page scrolls, the bar slims down so it takes less of the screen */
.gh-header .wp-block-site-logo img { transition: width .25s ease, height .25s ease; }
.ow-stuck .gh-header { padding-top: 0.35rem !important; padding-bottom: 0.35rem !important; }
.ow-stuck .gh-header .wp-block-site-logo img { width: 64px !important; height: auto !important; }
@media (max-width: 600px) { .ow-stuck .gh-header .wp-block-site-logo img { width: 52px !important; } }
@media (prefers-reduced-motion: reduce) { .gh-header .wp-block-site-logo img { transition: none; } }
