/* Gerlachfest theme styles. Colors, fonts and sizes come from theme.json presets. */

:root {
	--gf-ember: var(--wp--preset--color--ember);
	--gf-line: var(--wp--preset--color--line);
	--gf-muted: var(--wp--preset--color--sage-shade);
	--gf-sage: var(--wp--preset--color--sage);
	--gf-mono: var(--wp--preset--font-family--mono);
	--gf-display: var(--wp--preset--font-family--display);
}

a:focus-visible,
button:focus-visible { outline: 2px solid var(--gf-ember); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }

/* ---------- labels ---------- */
.is-style-eyebrow {
	font-family: var(--gf-mono);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gf-muted);
	margin-bottom: 0.4rem !important;
}
.gf-muted { color: var(--gf-muted); }
.gf-more a { font-weight: 600; text-decoration-color: var(--gf-ember); text-underline-offset: 4px; }

/* ---------- header ---------- */
.gf-site-header { position: sticky; top: 0; z-index: 20; }
.admin-bar .gf-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .gf-site-header { top: 46px; } }
.gf-header {
	background: var(--wp--preset--color--dusk);
	color: var(--wp--preset--color--on-dark);
	padding-top: 1rem;
	padding-bottom: 1rem;
}
.gf-header a { color: inherit; text-decoration: none; }
.gf-wordmark { margin: 0; font-family: var(--gf-display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.22em; text-transform: uppercase; }
.gf-nav { font-size: 0.85rem; font-weight: 500; gap: 0.25rem 1.4rem; }
.gf-nav .wp-block-navigation-item__content { opacity: 0.85; }
.gf-nav .wp-block-navigation-item__content:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.gf-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--dusk) !important;
	color: var(--wp--preset--color--on-dark) !important;
	padding: 1.5rem var(--wp--custom--gutter);
}
.gf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.15rem; padding: 0.4rem 0; }
.gf-nav .wp-block-navigation__responsive-container-open svg,
.gf-nav .wp-block-navigation__responsive-container-close svg { fill: currentColor; }
/* Core only collapses the menu below 600px; six links need it below 960px. */
@media (min-width: 600px) and (max-width: 959px) {
	.gf-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.gf-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}

/* No root block gap between header, main and footer: the hero meets the header. */
.wp-site-blocks > main,
.wp-site-blocks > footer { margin-block-start: 0; }

/* ---------- hero ---------- */
/* Text sits in the dark sky above the fire; the crowd and shadows stay clear. */
.gf-hero { color: var(--wp--preset--color--on-dark); padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: 6rem; align-items: flex-start !important; }
.gf-hero .wp-block-cover__inner-container { display: grid; gap: 1.2rem; justify-items: start; text-align: left; width: 100%; max-width: 1120px; margin-inline: auto; }
.gf-hero .wp-block-cover__inner-container > * { margin-inline: 0 !important; }
.gf-hero .wp-block-cover__background {
	background:
		linear-gradient(90deg, rgba(14,12,18,.72) 0%, rgba(14,12,18,.45) 38%, rgba(14,12,18,0) 62%),
		linear-gradient(180deg, rgba(14,12,18,.35) 0%, rgba(14,12,18,0) 55%, rgba(14,12,18,.35) 100%) !important;
	opacity: 1 !important;
}
.gf-hero .wp-block-cover__inner-container { text-shadow: 0 1px 12px rgba(0,0,0,.55); }
.gf-hero__place { color: var(--wp--preset--color--on-dark) !important; opacity: 0.85; }
.gf-hero__title { font-size: var(--wp--preset--font-size--huge) !important; font-weight: 700 !important; letter-spacing: 0.12em !important; line-height: 1 !important; margin: 0 !important; }
.gf-hero__lede { max-width: 34ch !important; font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.5; margin: 0; }
.gf-hero__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; font-family: var(--gf-mono); font-size: 0.8rem; letter-spacing: 0.06em; opacity: 0.9; margin: 0; }

/* ---------- sections ---------- */
.gf-section { padding-top: var(--wp--preset--spacing--70); padding-bottom: var(--wp--preset--spacing--70); }
.gf-section + .gf-section:not(.has-background) { border-top: 1px solid var(--gf-line); }
.gf-section h2 { margin-top: 0; }
.gf-sec-head { margin-bottom: 2rem; gap: 1rem; }
.gf-sec-head h2 { margin-bottom: 0.4rem; }
.gf-split { gap: clamp(2rem, 5vw, 4rem) !important; }
.gf-dropcap::first-letter { font-family: var(--gf-display); font-weight: 700; color: var(--gf-ember); }

.gf-photo img { width: 100%; border-radius: 2px; }
.gf-photo figcaption { margin-top: 0.5rem; }

/* the weekend */
.gf-slots { gap: 1px !important; background: var(--gf-line); border: 1px solid var(--gf-line); margin-top: 2rem; }
.gf-slot { background: var(--wp--preset--color--playa); padding: 1.6rem 1.5rem 1.8rem; display: grid; gap: 0.6rem; align-content: start; }
.gf-slot > * { margin: 0 !important; }
.gf-slot__when { font-family: var(--gf-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gf-ember); }
.gf-slot p:not(.gf-slot__when) { color: var(--gf-muted); font-size: 0.97rem; }

/* posts */
.gf-posts .wp-block-post-template { gap: clamp(1.4rem, 3vw, 2.4rem); }
.gf-post { display: grid; gap: 0.6rem; align-content: start; }
.gf-post > * { margin: 0 !important; }
.gf-post .wp-block-post-featured-image img { border-radius: 2px; }
.gf-post .wp-block-post-title { font-size: 1.15rem; line-height: 1.3; }
.gf-post .wp-block-post-title a { text-decoration: none; }
.gf-post .wp-block-post-title a:hover { text-decoration: underline; text-decoration-color: var(--gf-ember); text-underline-offset: 4px; }
.gf-post .wp-block-post-excerpt { color: var(--gf-muted); font-size: 0.95rem; }
.gf-post .wp-block-post-excerpt__more-link { display: none; }
.gf-pagination { margin-top: 2.5rem; font-family: var(--gf-mono); font-size: 0.85rem; }

/* year tiles (shortcode) */
.gf-years { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.gf-year { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 2px; background: var(--wp--preset--color--dust); text-decoration: none; }
.gf-year img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gf-year:hover img { transform: scale(1.04); }
.gf-year__label { position: absolute; inset: auto 0 0 0; padding: 2.4rem 0.9rem 0.8rem; color: #F6EFE3; background: linear-gradient(180deg, transparent, rgba(20,18,24,.75)); font-family: var(--gf-display); font-weight: 600; font-size: 1.25rem; letter-spacing: 0.08em; }
.gf-year__label small { display: block; font-family: var(--gf-mono); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.06em; opacity: 0.85; margin-top: 0.15rem; }
@media (prefers-reduced-motion: reduce) { .gf-year img { transition: none; } }

/* getting there */
.gf-facts { gap: 1.6rem 2rem !important; margin-top: 2rem; }
.gf-fact { display: grid; gap: 0.35rem; align-content: start; }
.gf-fact > * { margin: 0 !important; }
.gf-fact__value { font-family: var(--gf-mono); font-size: 1.3rem; font-weight: 500; line-height: 1.25; font-variant-numeric: tabular-nums; }
.gf-fact p:last-child:not(.gf-fact__value) { color: var(--gf-muted); font-size: 0.95rem; }

/* ---------- page heads + articles ---------- */
.gf-page-head { background: var(--wp--preset--color--dust); padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--50); border-bottom: 1px solid var(--gf-line); }
.gf-page-head h1 { margin: 0; }
.gf-page-head__lede { max-width: 60ch; color: var(--gf-muted); font-size: 1.1rem; }
.gf-page-head__meta { gap: 0.4rem 1rem; margin-bottom: 0.6rem; }
.gf-article { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--70); }
.gf-article .wp-block-post-featured-image img { border-radius: 2px; }
.gf-post-nav { font-size: 0.95rem; gap: 1rem; }

/* FooGallery album on the Galleries page: give it room and the theme's type */
.gf-article .foogallery-album-gallery-list,
.gf-article .foogallery { font-family: var(--wp--preset--font-family--body); }

/* ---------- footer ---------- */
.gf-footer { border-top: 1px solid var(--gf-line); padding-top: 2.4rem; padding-bottom: 3rem; color: var(--gf-muted); font-size: 0.9rem; }
.gf-footer__row { gap: 1rem; }
.gf-footer .gf-wordmark a { color: var(--wp--preset--color--basalt); text-decoration: none; }
.gf-footer__meta { margin: 0; }

@media (max-width: 820px) {
	.gf-years { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gf-posts .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.gf-hero { min-height: 520px !important; padding-top: 4rem; }
}
