/*
Theme Name: CMSW Hennage Evening
Description: Redesign of the Chamber Music Society of Williamsburg site (concept A). Season cards with links to each ensemble's website and social channels.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cmsw-hennage
*/

:root {
	--ground: #FAF6EF;
	--surface: #FFFFFF;
	--ink: #231A2B;
	--body: #3D3346;
	--muted: #5A5063;
	--rule: #E3DACB;
	--plum: #4B2A5E;
	--plum-dark: #2E1840;
	--plum-soft: #E9E0EF;
	--serif: "Cormorant Garamond", Georgia, serif;
	--sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--plum); }
a:hover { color: var(--plum-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; color: var(--ink); margin: 0 0 .4em; }
h1 { font-size: clamp(44px, 6vw, 76px); }
h2 { font-size: clamp(34px, 4vw, 52px); }
h3 { font-size: 28px; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 64px); }
.wrap.narrow { max-width: 900px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; }

.eyebrow { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; color: var(--plum); margin-bottom: 10px; }
.lead { font-size: 19px; color: var(--body); }
.muted { color: var(--muted); }
.text-link { font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; }
.btn-solid { background: var(--plum); color: #fff; }
.btn-solid:hover { background: var(--plum-dark); color: #fff; }
.btn-outline { border: 1.5px solid var(--plum); color: var(--plum); }
.btn-light { background: #fff; color: var(--plum); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 24px 0 0; }

/* Header */
.site-header { background: var(--ground); border-bottom: 1px solid var(--rule); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1.15; }
.brand-tag { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.nav-menu > li { position: relative; }
.nav-menu a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav-menu a:hover, .nav-menu .current-menu-item > a { color: var(--plum); }
.nav-menu .sub-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 0; top: 100%; min-width: 220px; background: var(--surface); border: 1px solid var(--rule); box-shadow: 0 12px 30px rgba(35, 26, 43, .12); display: none; }
.nav-menu li:hover > .sub-menu, .nav-menu li:focus-within > .sub-menu { display: block; }
.nav-menu .sub-menu a { padding: 10px 18px; font-weight: 500; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; }
.hero-media { position: relative; }
.hero-media img { display: block; width: 100%; height: 400px; object-fit: cover; border-radius: 4px; }
.date-tag { position: absolute; left: -24px; bottom: -24px; background: var(--surface); border: 1px solid var(--rule); padding: 16px 20px; box-shadow: 0 10px 30px rgba(35, 26, 43, .10); }
.date-big { font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1; color: var(--plum); }
.date-small { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 4px; }
.follow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; font-size: 15px; font-weight: 600; color: var(--muted); }

/* Social links */
.social { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.social a { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--plum); border-radius: 999px; }
.social a:hover { background: var(--plum-soft); }
.social-round { gap: 8px; }
.social-round a { border: 1px solid #CFC3D8; background: var(--surface); }

/* Season */
.season { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 64px 0 72px; }
.season.archive { border-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2, .section-head h1 { margin: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; background: var(--ground); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.card-media { display: block; aspect-ratio: 16 / 9; background: var(--rule); }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px 22px 18px; display: flex; flex-direction: column; flex-grow: 1; }
.card-body h3 { margin: 0 0 4px; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--plum); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule); margin-top: 16px; }
.card-past { opacity: .7; }

/* Visit */
.visit { padding: 64px 0; }
.visit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.visit h2 { font-size: 40px; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 28px; }
.panel h3 { font-family: var(--sans); font-size: 20px; font-weight: 700; }

/* Give + footer */
.give { padding: 0 0 64px; }
.give-inner { background: var(--plum); color: #fff; border-radius: 4px; padding: 44px 52px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; max-width: calc(1280px - 2 * clamp(16px, 5vw, 64px)); }
.give h2 { color: #fff; font-size: 40px; }
.give p { color: var(--plum-soft); margin: 0; }
.site-footer { border-top: 1px solid var(--rule); padding: 40px 0; font-size: 15px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-name { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); }
.footer-links { display: flex; gap: 20px; align-items: flex-start; font-weight: 600; }
.footer-links a { color: var(--ink); text-decoration: none; }

/* Single pages and posts */
.entry { padding: 56px 0 72px; }
.entry-head { margin-bottom: 32px; }
.entry-content { font-size: 18px; color: var(--body); }
.entry-content img { border-radius: 4px; }
.entry-content h2, .entry-content h3 { margin-top: 1.2em; }

@media (max-width: 960px) {
	.hero-grid { grid-template-columns: 1fr; gap: 40px; }
	.hero-media { order: -1; }
	.hero-media img { height: 300px; }
	.date-tag { left: 16px; bottom: -20px; }
	.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.visit-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
	.card-grid { grid-template-columns: 1fr; }
	.give-inner { padding: 32px 24px; }
	.main-nav { width: 100%; }
}
