/*
Theme Name: Charleston Unpacked
Theme URI: https://charlestonunpacked.com
Author: Drew Wyse
Description: Custom theme for Charleston Unpacked: honest guides to visiting and living in Charleston, SC. Includes neighborhood guides, ad slots, a newsletter band and page-building patterns.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: charleston-unpacked
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--cu-ink: #12312B;
	--cu-text: #33433F;
	--cu-muted: #55655F;
	--cu-line: #E2E8E5;
	--cu-tint: #F1F5F3;
	--cu-warm: #FBF3EF;
	--cu-rust: #7A2E14;
	--cu-visit-bg: #DDEFEE;
	--cu-visit: #0F4C4C;
	--cu-live-bg: #FBE5DC;
	--cu-haint: #CFE7E6;
	--cu-head: 'Bricolage Grotesque', Inter, system-ui, sans-serif;
	--cu-body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 16px; }
body {
	margin: 0;
	background: #fff;
	color: var(--cu-ink);
	font-family: var(--cu-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cu-ink); }
a:hover { color: var(--cu-rust); }
:focus-visible { outline: 3px solid var(--cu-rust); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--cu-head); font-weight: 700; letter-spacing: -0.015em; line-height: 1.12; margin: 0; color: var(--cu-ink); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal;
}
.cu-skip { position: absolute; left: -9999px; top: 0; }
.cu-skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 8px; }

.cu-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.cu-narrow { max-width: 760px; }

/* Header */
.cu-header { border-bottom: 1px solid var(--cu-line); background: #fff; }
.cu-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.cu-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.cu-brand__name { font-family: var(--cu-head); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.cu-brand .custom-logo { max-height: 48px; width: auto; }
.cu-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; }
.cu-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 26px; font-size: 15px; font-weight: 500; }
.cu-menu a { display: block; padding: 12px 0; text-decoration: none; }
.cu-menu .current-menu-item > a, .cu-menu .current-menu-ancestor > a, .cu-menu a[aria-current] { color: var(--cu-rust); }

/* Buttons */
.cu-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
	border-radius: 999px; border: 1.5px solid var(--cu-ink); background: var(--cu-ink); color: #fff;
	font: 600 15px/1.2 var(--cu-body); text-decoration: none; cursor: pointer; text-align: center;
}
.cu-btn:hover { background: #1F4A41; border-color: #1F4A41; color: #fff; }
.cu-btn--ghost { background: #fff; color: var(--cu-ink); }
.cu-btn--ghost:hover { background: var(--cu-tint); border-color: var(--cu-ink); color: var(--cu-ink); }
.cu-btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }

.cu-kicker { margin: 0; font-size: 15px; font-weight: 600; color: var(--cu-rust); }
.cu-more { font-weight: 600; font-size: 15px; padding: 12px 0; align-self: flex-start; }
.cu-note { margin: 0; padding: 18px 20px; border: 1px dashed #8A9A95; border-radius: 12px; background: #FAFBFA; color: var(--cu-muted); font-size: 15px; }
.cu-note--dark { background: transparent; border-color: #6F8C85; color: #D8E3E0; }

/* Hero */
.cu-hero { background: var(--cu-haint); }
.cu-hero__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.cu-hero__copy { display: flex; flex-direction: column; gap: 22px; }
.cu-hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.03; letter-spacing: -0.02em; }
.cu-hero__lede { margin: 0; font-size: 19px; line-height: 1.55; color: #24403A; max-width: 34rem; }
.cu-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.cu-hero__media img, .cu-hero__media .cu-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.cu-hero__media--wide img, .cu-hero__media--wide .cu-ph { aspect-ratio: 16 / 10; }
.cu-hero .cu-ph { background: rgba(255, 255, 255, 0.55); border: 1.5px dashed #5C7570; }
.cu-hero .cu-pill { background: #fff; }
.cu-hero--page { padding: 40px 0 56px; }
.cu-hero__inner--page { padding: 0; gap: 40px; }
.cu-hero--page h1 { font-size: clamp(44px, 5.5vw, 72px); line-height: 1; letter-spacing: -0.025em; }
.cu-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #24403A; margin-bottom: 28px; }
.cu-crumbs a { text-decoration: none; }
.cu-byline { margin: 0; font-size: 14px; color: var(--cu-muted); }
.cu-hero .cu-byline { color: #24403A; }

/* Placeholder image */
.cu-ph { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 10; background: var(--cu-haint); color: #24403A; }

/* Sections */
.cu-section { padding: 80px 0; }
.cu-section--tint { background: var(--cu-tint); }
.cu-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.cu-section__head > div { display: flex; flex-direction: column; gap: 12px; max-width: 40rem; }
.cu-section__head h2 { font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -0.02em; }
.cu-section__head p { margin: 0; color: var(--cu-text); }

/* Visit / Live paths */
.cu-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.cu-path { display: flex; flex-direction: column; gap: 16px; padding: 40px; border-radius: 20px; background: var(--cu-tint); }
.cu-path--live { background: var(--cu-warm); }
.cu-path h2 { font-size: 34px; }
.cu-path > p { margin: 0; color: var(--cu-text); }
.cu-path__links { list-style: none; margin: 8px 0 0; padding: 0; }
.cu-path__links a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; padding: 10px 0; border-top: 1px solid #D5E0DC; text-decoration: none; font-weight: 600; }
.cu-path--live .cu-path__links a { border-top-color: #EBDCD5; }
.cu-path__links svg { flex: 0 0 auto; }

/* Ads */
.cu-ad { margin: 0 auto; max-width: 100%; text-align: center; }
.cu-ad-row { padding-bottom: 72px; }
.cu-ad--leaderboard { max-width: 728px; }
.cu-ad--rectangle, .cu-ad--infeed { max-width: 300px; }
.cu-ad--incontent { margin: 32px auto; }
.cu-ad--placeholder { display: flex; align-items: center; justify-content: center; padding: 20px; border: 1px dashed #8A9A95; border-radius: 8px; background: #FAFBFA; color: var(--cu-muted); font-size: 13px; }
.cu-ad--leaderboard.cu-ad--placeholder { min-height: 90px; }
.cu-ad--rectangle.cu-ad--placeholder, .cu-ad--infeed.cu-ad--placeholder { min-height: 250px; width: 300px; }

/* Card grids */
.cu-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.cu-grid--guides { gap: 32px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

.cu-ncard { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--cu-line); border-radius: 16px; text-decoration: none; }
.cu-ncard img, .cu-ncard .cu-ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cu-ncard__body { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.cu-ncard__title { font-family: var(--cu-head); font-weight: 700; font-size: 21px; line-height: 1.2; }
.cu-ncard__text { font-size: 14px; line-height: 1.55; color: #44554F; }
.cu-ncard:hover .cu-ncard__title { color: var(--cu-rust); }

.cu-gcard { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.cu-gcard img, .cu-gcard .cu-ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; }
.cu-gcard__title { font-family: var(--cu-head); font-weight: 700; font-size: 23px; line-height: 1.2; letter-spacing: -0.01em; }
.cu-gcard__text { font-size: 15px; color: #44554F; }
.cu-gcard:hover .cu-gcard__title { color: var(--cu-rust); }
.cu-gcard--ad { align-items: center; justify-content: center; }

/* Newsletter */
.cu-newsletter { background: var(--cu-ink); color: #fff; padding: 72px 0; }
.cu-newsletter__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px; align-items: center; }
.cu-newsletter h2 { color: #fff; font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -0.02em; }
.cu-newsletter__inner > div > p { margin: 14px 0 0; color: #D8E3E0; max-width: 34rem; }
.cu-newsletter a { color: #fff; }
.cu-newsletter input[type="email"], .cu-newsletter input[type="text"], .cu-box--dark input[type="email"], .cu-box--dark input[type="text"] {
	width: 100%; min-height: 50px; padding: 0 20px; border: 0; border-radius: 999px; font: inherit; color: var(--cu-ink); background: #fff;
}
.cu-newsletter button, .cu-newsletter input[type="submit"], .cu-box--dark button, .cu-box--dark input[type="submit"] {
	min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--cu-haint); color: var(--cu-ink); font: 600 15px/1 var(--cu-body); cursor: pointer;
}

/* Footer */
.cu-footer { border-top: 1px solid var(--cu-line); padding: 56px 0 40px; }
.cu-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; }
.cu-footer__brand { margin: 0; font-family: var(--cu-head); font-weight: 700; font-size: 20px; }
.cu-footer__tag { margin: 10px 0 0; font-size: 14px; color: #44554F; }
.cu-footer h2 { font-family: var(--cu-body); font-size: 14px; font-weight: 600; letter-spacing: 0; margin-bottom: 6px; }
.cu-footer ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.cu-footer li a { display: block; padding: 6px 0; text-decoration: none; }
.cu-footer__legal { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--cu-line); font-size: 13px; color: var(--cu-muted); }

/* Neighborhood and article layout */
.cu-jump { border-bottom: 1px solid var(--cu-line); }
.cu-jump ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 0; margin-bottom: 0; font-size: 15px; font-weight: 600; }
.cu-jump a { display: block; padding: 16px 0; text-decoration: none; }

.cu-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; padding-top: 48px; padding-bottom: 80px; }
.cu-layout__main { flex: 999 1 560px; min-width: 0; }
.cu-layout__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

.cu-box { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 16px; background: var(--cu-tint); }
.cu-box h2 { font-size: 20px; }
.cu-box p { margin: 0; font-size: 14px; color: #44554F; }
.cu-box--dark { background: var(--cu-ink); color: #fff; }
.cu-box--dark h2 { color: #fff; }
.cu-box--dark p { color: #D8E3E0; }
.cu-box--dark a { color: #fff; }

.cu-compare { margin-top: 56px; }
.cu-compare h2 { font-size: 22px; margin-bottom: 14px; }
.cu-chiplinks { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.cu-chiplinks a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--cu-tint); text-decoration: none; font-weight: 600; font-size: 14px; }

.cu-article-head { display: flex; flex-direction: column; gap: 16px; max-width: 820px; padding-top: 48px; }
.cu-article-head h1 { font-size: clamp(36px, 4.5vw, 56px); line-height: 1.05; letter-spacing: -0.02em; }
.cu-article-lede { margin: 0; font-size: 19px; color: var(--cu-text); }
.cu-article-media { margin: 32px 0 0; }
.cu-article-media img { width: 100%; border-radius: 20px; }
.cu-article-media figcaption { margin-top: 8px; font-size: 13px; color: var(--cu-muted); }

/* Listings and pages */
.cu-archive, .cu-page { padding-bottom: 80px; }
.cu-archive-head { display: flex; flex-direction: column; gap: 12px; max-width: 46rem; padding: 56px 0 36px; }
.cu-archive-head h1, .cu-page h1 { font-size: clamp(36px, 4.5vw, 52px); letter-spacing: -0.02em; }
.cu-archive-head p, .cu-archive-desc { margin: 0; color: var(--cu-text); }
.cu-page h1 { padding-top: 56px; margin-bottom: 24px; }
.cu-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.cu-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--cu-line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; }
.cu-pagination .page-numbers.current { background: var(--cu-ink); border-color: var(--cu-ink); color: #fff; }

.search-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.search-form label { flex: 1 1 220px; }
.search-form .search-field { width: 100%; min-height: 46px; padding: 0 16px; border: 1px solid #B9C6C2; border-radius: 999px; font: inherit; }
.search-form .search-submit { min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--cu-ink); color: #fff; font: 600 14px/1 var(--cu-body); cursor: pointer; }

@media (max-width: 600px) {
	.cu-hero__inner { padding-top: 48px; padding-bottom: 48px; gap: 32px; }
	.cu-section { padding: 56px 0; }
	.cu-path { padding: 28px; }
	.cu-path h2 { font-size: 28px; }
	.cu-menu { gap: 0 20px; }
}

/* When there is no sidebar, keep lines a comfortable length. */
.cu-layout__main:only-child { max-width: 820px; }
