/*
Theme Name: Providence
Description: A city-desk theme for the City of Fairfax: a brick band on the home page, the latest stories beside the city calendar, and pages set in Caslon.
Version: 1.0.2
Requires at least: 6.5
Requires PHP: 8.0
Author: Team DDA
License: GPL-2.0-or-later
Text Domain: providence
*/

/* Old Town brick and a civic sans. Caslon carries the headings (the type of the courthouse era), Public Sans carries everything you read to get something done. */
@font-face { font-family: "Libre Caslon Text"; font-weight: 400; font-style: normal; font-display: swap; src: url(assets/fonts/libre-caslon-text-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-weight: 400; font-style: italic; font-display: swap; src: url(assets/fonts/libre-caslon-text-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-weight: 700; font-style: normal; font-display: swap; src: url(assets/fonts/libre-caslon-text-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(assets/fonts/public-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url(assets/fonts/public-sans-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(assets/fonts/public-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url(assets/fonts/public-sans-latin-700-normal.woff2) format("woff2"); }

:root {
	--slate: #1e2a38;
	--slate-2: #2c3b4d;
	--ink: #1b2129;
	--quiet: #58626e;
	--brick: #8e3423;
	--brick-deep: #6b2618;
	--mortar: #dcd8d2;
	--wash: #f2f3f4;
	--page: #ffffff;
	--serif: "Libre Caslon Text", "Baskerville", Georgia, serif;
	--sans: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--wide: 74rem;
	--narrow: 44rem;
	--brick-pattern: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22244%22%20height%3D%22100%22%3E%3Crect%20width%3D%22244%22%20height%3D%22100%22%20fill%3D%22%235e2015%22%2F%3E%3Crect%20x%3D%221.5%22%20y%3D%221.5%22%20width%3D%2258%22%20height%3D%2222%22%20fill%3D%22%2393392a%22%2F%3E%3Crect%20x%3D%2262.5%22%20y%3D%221.5%22%20width%3D%2258%22%20height%3D%2222%22%20fill%3D%22%237f2e1f%22%2F%3E%3Crect%20x%3D%22123.5%22%20y%3D%221.5%22%20width%3D%2258%22%20height%3D%2222%22%20fill%3D%22%23843020%22%2F%3E%3Crect%20x%3D%22184.5%22%20y%3D%221.5%22%20width%3D%2258%22%20height%3D%2222%22%20fill%3D%22%238e3626%22%2F%3E%3Crect%20x%3D%22-29.0%22%20y%3D%2226.5%22%20width%3D%2258%22%20height%3D%2222%22%20fill%3D%22%238a3322%22%2F%3E%3Crect%20x%3D%22215.0%22%20y%3D%2226.5%22%20width%3D%2258%22%20height%3D%2222%22%20fill%3D%22%238a3322%22%2F%3E%3Crect%20x%3D%2232.0%22%20y%3D%2226.5%22%20width%3D%2258%22%20height%3D%2222%22%20fill%3D%22%238a3322%22%2F%3E%3Crect%20x%3D%2293.0%22%20y%3D%2226.5%22%20width%3D%2258%22%20height%3D%2222%22%20fill%3D%22%237a2b1d%22%2F%3E%3Crect%20x%3D%22154.0%22%20y%3D%2226.5%22%20width%3D%2258%22%20height%3D%2222%22%20fill%3D%22%238a3322%22%2F%3E%3Crect%20x%3D%22215.0%22%20y%3D%2226.5%22%20width%3D%2258%22%20height%3D%2222%22%20fill%3D%22%2393392a%22%2F%3E%3Crect%20x%3D%221.5%22%20y%3D%2251.5%22%20width%3D%2258%22%20height%3D%2222%22%20fill%3D%22%237a2b1d%22%2F%3E%3Crect%20x%3D%2262.5%22%20y%3D%2251.5%22%20width%3D%2258%22%20height%3D%2222%22%20fill%3D%22%238a3322%22%2F%3E%3Crect%20x%3D%22123.5%22%20y%3D%2251.5%22%20width%3D%2258%22%20height%3D%2222%22%20fill%3D%22%237a2b1d%22%2F%3E%3Crect%20x%3D%22184.5%22%20y%3D%2251.5%22%20width%3D%2258%22%20height%3D%2222%22%20fill%3D%22%237f2e1f%22%2F%3E%3Crect%20x%3D%22-29.0%22%20y%3D%2276.5%22%20width%3D%2258%22%20height%3D%2222%22%20fill%3D%22%238a3322%22%2F%3E%3Crect%20x%3D%22215.0%22%20y%3D%2276.5%22%20width%3D%2258%22%20height%3D%2222%22%20fill%3D%22%238a3322%22%2F%3E%3Crect%20x%3D%2232.0%22%20y%3D%2276.5%22%20width%3D%2258%22%20height%3D%2222%22%20fill%3D%22%238a3322%22%2F%3E%3Crect%20x%3D%2293.0%22%20y%3D%2276.5%22%20width%3D%2258%22%20height%3D%2222%22%20fill%3D%22%23843020%22%2F%3E%3Crect%20x%3D%22154.0%22%20y%3D%2276.5%22%20width%3D%2258%22%20height%3D%2222%22%20fill%3D%22%23843020%22%2F%3E%3Crect%20x%3D%22215.0%22%20y%3D%2276.5%22%20width%3D%2258%22%20height%3D%2222%22%20fill%3D%22%238a3322%22%2F%3E%3C%2Fsvg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brick); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brick-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; color: var(--slate); text-wrap: balance; }
p { margin: 0 0 1em; }

.pv-wrap { width: min(100% - 40px, var(--wide)); margin-inline: auto; }
.pv-narrow { width: min(100% - 40px, var(--narrow)); }
.pv-skip { position: absolute; left: -999px; }
.pv-skip:focus { left: 12px; top: 12px; z-index: 50; background: #fff; color: var(--ink); padding: 8px 12px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top bar */
.pv-top { background: var(--slate); color: #fff; }
.pv-top__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; min-height: 68px; padding-block: 12px; }
.pv-name { font-family: var(--serif); font-size: 1.45rem; color: #fff; text-decoration: none; line-height: 1.1; }
.pv-name:hover { color: #fff; }
.pv-name img { max-height: 44px; width: auto; }
.pv-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.pv-nav a { display: block; color: #d9dee5; text-decoration: none; font-size: .97rem; font-weight: 600; padding: 8px 12px; border-radius: 2px; }
.pv-nav a:hover { color: #fff; background: var(--slate-2); }
.pv-top .pv-nav .is-here a { color: #fff; box-shadow: inset 0 -3px 0 #c45a43; }

/* Home band: brick courses, or the owner's photo */
.pv-front { position: relative; background: var(--brick) var(--brick-pattern) center / 244px 100px repeat; color: #fff; overflow: hidden; }
.pv-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 42, 56, .82) 0%, rgba(30, 42, 56, .45) 55%, rgba(30, 42, 56, .1) 100%); }
.pv-front__inner { position: relative; z-index: 1; padding-block: clamp(56px, 9vw, 112px) clamp(44px, 7vw, 84px); }
.pv-front h1 { color: #fff; font-size: clamp(2.7rem, 7.2vw, 5.4rem); line-height: 1.02; margin: 0; max-width: 14ch; letter-spacing: -.01em; }
.pv-front__tag { margin: 18px 0 0; font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: #eef0f3; max-width: 38ch; }
.pv-front.has-photo { background: var(--slate); min-height: clamp(380px, 44vw, 600px); display: flex; align-items: flex-end; }
.pv-front.has-photo .pv-front__inner { width: min(100% - 40px, var(--wide)); }
.pv-front__photo { position: absolute; inset: 0; }
.pv-front__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center var(--focus, center); }
.pv-front.has-photo::after { background: linear-gradient(0deg, rgba(30, 42, 56, .88) 0%, rgba(30, 42, 56, .35) 55%, rgba(30, 42, 56, 0) 100%); }
.pv-front__credit { position: absolute; z-index: 1; right: 14px; bottom: 8px; margin: 0; font-size: .8rem; color: #d9dee5; }

/* Home: stories beside the calendar */
.pv-home { display: grid; gap: 48px; padding-block: clamp(36px, 5vw, 60px) 0; }
@media (min-width: 960px) { .pv-home { grid-template-columns: minmax(0, 1fr) 21rem; gap: 64px; } }
.pv-hello { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.45; color: var(--slate); margin: 0 0 40px; max-width: 34em; }
.pv-label { font-family: var(--serif); font-style: italic; font-size: 1.5rem; margin: 0 0 4px; padding-bottom: 10px; border-bottom: 1px solid var(--mortar); }
.pv-list { list-style: none; margin: 0; padding: 0; }
.pv-entry { display: grid; grid-template-columns: minmax(0, 1fr) 9.5rem; gap: 22px; padding-block: 24px; border-bottom: 1px solid var(--mortar); }
.pv-entry .pv-pic { order: 2; }
.pv-entry .pv-pic img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.pv-entry:not(:has(.pv-pic)) { grid-template-columns: 1fr; }
.pv-entry.is-lead { grid-template-columns: 1fr; padding-top: 18px; }
.pv-entry.is-lead .pv-pic { order: 0; }
.pv-entry.is-lead h3 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.pv-entry.is-lead p { font-size: 1.1rem; }
.pv-kicker { display: inline-block; font-size: .88rem; font-weight: 700; color: var(--brick); text-decoration: none; margin-bottom: 6px; }
.pv-entry h3 { font-size: 1.35rem; margin: 0 0 8px; }
.pv-entry h3 a { color: var(--slate); text-decoration: none; }
.pv-entry h3 a:hover { color: var(--brick); text-decoration: underline; }
.pv-entry p { color: var(--quiet); margin: 0 0 8px; }
.pv-when { font-size: .88rem; color: var(--quiet); }
@media (max-width: 560px) { .pv-entry { grid-template-columns: minmax(0, 1fr) 6.5rem; gap: 14px; } }
.pv-more { display: inline-block; margin-top: 18px; font-weight: 600; }

/* Rail */
.pv-home__rail { display: grid; gap: 36px; align-content: start; }
.pv-cal ul { list-style: none; margin: 0; padding: 0; }
.pv-cal li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 14px; align-items: center; padding-block: 14px; border-bottom: 1px solid var(--mortar); }
.pv-date { display: grid; justify-items: center; line-height: 1; }
.pv-date .d { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--brick); font-variant-numeric: lining-nums; }
.pv-date .m { font-size: .8rem; font-weight: 700; color: var(--quiet); margin-top: 4px; }
.pv-cal a:not(.pv-more) { color: var(--slate); font-weight: 600; text-decoration: none; line-height: 1.35; }
.pv-cal a:not(.pv-more):hover { color: var(--brick); text-decoration: underline; }
.pv-quiet { color: var(--quiet); padding-top: 12px; }
.pv-guide-card { background: var(--slate); color: #e6eaef; padding: 24px; border-radius: 2px; position: relative; }
.pv-guide-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--brick) var(--brick-pattern) 0 0 / 122px 50px repeat; }
.pv-guide-card h2 { color: #fff; font-size: 1.45rem; margin: 6px 0 8px; }
.pv-guide-card p { margin: 0 0 16px; }
.pv-btn, .pv-signup button, .pv-search button { display: inline-block; font: 700 .98rem/1 var(--sans); background: var(--brick); color: #fff; border: 0; border-radius: 2px; padding: 13px 18px; text-decoration: none; cursor: pointer; }
.pv-btn:hover, .pv-signup button:hover, .pv-search button:hover { background: var(--brick-deep); color: #fff; }
.pv-guide-card .pv-btn { background: #fff; color: var(--slate); }
.pv-guide-card .pv-btn:hover { background: var(--mortar); color: var(--slate); }

/* Signup */
.pv-signup { background: var(--wash); padding: 22px; border-radius: 2px; }
.pv-signup h2 { font-size: 1.3rem; margin-bottom: 4px; }
.pv-signup p { color: var(--quiet); margin-bottom: 12px; font-size: .98rem; }
.pv-signup form { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-signup input, .pv-search input { flex: 1 1 200px; min-width: 0; font: inherit; font-size: 1rem; padding: 11px 12px; border: 1px solid #b9bfc7; border-radius: 2px; background: #fff; }

/* Page headers */
.pv-head { padding-block: clamp(36px, 6vw, 64px) 14px; margin-bottom: 8px; }
.pv-head h1, .pv-story-head h1 { font-size: clamp(2.2rem, 5.2vw, 3.3rem); margin: 0 0 12px; }
.pv-head::after, .pv-story-head::after { content: ""; display: block; height: 8px; margin-top: 22px; background: var(--brick) var(--brick-pattern) 0 0 / 122px 50px repeat; }
.pv-head p { color: var(--quiet); margin: 0; }
.pv-head .pv-listings { margin: 18px 0 0; padding: 14px 16px; background: var(--wash); border-left: 4px solid var(--brick); color: var(--ink); }
.pv-listings a { font-weight: 700; }
.pv-list .pv-event { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: 16px; padding-block: 20px; border-bottom: 1px solid var(--mortar); }
.pv-event h3 { font-size: 1.3rem; margin: 0 0 4px; }
.pv-event h3 a { color: var(--slate); text-decoration: none; }
.pv-event p { margin: 0; color: var(--quiet); }

/* Story and page */
.pv-story-head { padding-block: clamp(36px, 6vw, 64px) 26px; }
.pv-byline { color: var(--quiet); font-size: .96rem; margin: 0; }
.pv-byline a { color: var(--quiet); }
.pv-lede { font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; color: var(--slate); margin: 0 0 16px; }
.pv-figure { margin: 0 0 32px; }
.pv-figure img { width: 100%; border-radius: 2px; }
.pv-figure figcaption, .pv-body figcaption { font-size: .88rem; color: var(--quiet); margin-top: 8px; }
.pv-body { font-size: 1.1rem; line-height: 1.7; }
.pv-body h2 { font-size: 1.75rem; margin-top: 1.7em; }
.pv-body h3 { font-size: 1.3rem; margin-top: 1.4em; }
.pv-body ul, .pv-body ol { padding-left: 1.25em; }
.pv-body li { margin-bottom: .4em; }
.pv-body li::marker { color: var(--brick); }
.pv-body blockquote { margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--brick); font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.45; color: var(--slate); }
.pv-body blockquote p:last-child { margin: 0; }
.pv-body figure { margin: 1.6em 0; }
.pv-body table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.pv-body th, .pv-body td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--mortar); }
.pv-after { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--mortar); font-size: .96rem; color: var(--quiet); }
.pv-after p { margin: 0 0 6px; }

/* Event */
.pv-facts { margin: 0 0 28px; padding: 0; list-style: none; border-top: 1px solid var(--mortar); }
.pv-facts li { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--mortar); }
.pv-facts span:first-child { color: var(--quiet); font-weight: 600; }

.pv-pages { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; font-weight: 600; }
.pv-empty { padding-block: 28px 56px; color: var(--quiet); }
.pv-search { display: flex; gap: 8px; margin-top: 16px; }

/* Footer */
.pv-foot { background: var(--slate); color: #cdd4dc; margin-top: 88px; }
.pv-course { height: 16px; background: var(--brick) var(--brick-pattern) 0 0 / 244px 100px repeat; }
.pv-foot__inner { display: grid; gap: 22px; padding-block: 40px 30px; }
@media (min-width: 860px) { .pv-foot__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } .pv-foot small { grid-column: 1 / -1; } }
.pv-foot .pv-name { display: inline-block; font-size: 1.35rem; margin-bottom: 10px; }
.pv-foot p { margin: 0 0 8px; font-size: .95rem; max-width: 60ch; }
.pv-foot a { color: #fff; }
.pv-foot .pv-nav a { color: #cdd4dc; padding: 6px 10px; }
.pv-foot .pv-nav a:hover { background: var(--slate-2); }
.pv-foot small { color: #9ea8b3; font-size: .85rem; }
.pv-independent { font-size: .88rem; color: #b7c0ca; }

@media print { .pv-top, .pv-foot, .pv-signup, .pv-front { display: none; } }

/* ---------- Community Content Studio: guide pages, maps, question box ---------- */
body {
	--ccs-ink: var(--ink); --ccs-muted: var(--quiet); --ccs-line: var(--mortar); --ccs-surface: var(--wash);
	--ccs-accent: var(--slate); --ccs-radius: 2px; --ccs-font-ui: var(--sans);
	--ccs-pin-park: #3d6b4f;
}
.pv-story-head .ccs-crumbs { margin-bottom: .6em; }
.pv-story-head .ccs-reviewed { margin: .6em 0 0; }
.pv-body .ccs-ask h2 { font-size: 1.45rem; }
.ccs-ask button { color: #fff; }
.pv-body .ccs-sources { margin-top: 2.4em; padding-top: 1.1em; border-top: 1px solid var(--mortar); font-size: .92rem; color: var(--quiet); }
.pv-body .ccs-sources h2 { font-family: var(--sans); font-size: .95rem; font-weight: 700; color: var(--quiet); margin: 0 0 .4em; }
.pv-body .ccs-sources ul { margin: 0; padding-left: 1.1em; }
.pv-body .ccs-sources a { color: var(--quiet); }
.pv-body .ccs-facts { border-radius: 2px; }
.pv-notes { margin-top: 2.2em; padding-top: 1em; border-top: 1px solid var(--mortar); font-size: .92rem; color: var(--quiet); }
.pv-notes a { color: var(--quiet); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Guide button under the home page tagline */
.pv-front .pv-front__guide {
	display: inline-flex;
	align-items: center;
	gap: 0.75em;
	margin-top: 26px;
	padding: 0.85em 1.4em;
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 0;
	color: #fff;
	font-family: var(--sans);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.3;
	transition: background 0.2s ease, color 0.2s ease;
}
.pv-front .pv-front__guide span {
	font-size: 1.15em;
	transition: transform 0.2s ease;
}
.pv-front .pv-front__guide:hover,
.pv-front .pv-front__guide:focus-visible {
	background: #fff;
	color: var(--brick-deep);
}
.pv-front .pv-front__guide:hover span {
	transform: translateX(4px);
}
