/*
Theme Name: Something Queer
Description: A small, fast, hand-built theme for the Something Queer Music and Arts Collective. Site details and the Board of Directors are edited at the top of functions.php.
Version: 1.14.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: something-queer
*/

/* ---------- Heading font: El Camino (Opus Nigrum), all caps ---------- */
@font-face {
	font-family: "El Camino";
	src: url("assets/fonts/el-camino-regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "El Camino";
	src: url("assets/fonts/el-camino-bold.woff2") format("woff2");
	font-weight: 700 900;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	/* Official brand colors */
	--brand-charcoal: #434854;
	--brand-red: #da4658;
	--brand-green: #88c055;
	--brand-blue: #3da9e0;
	--brand-pink: #e687b8;
	--brand-yellow: #fdcf58;

	/* How they're used. Green, blue, pink and yellow are too light
	   for text on white, so they appear as color blocks; buttons and
	   links use a slightly deeper red so white text stays readable. */
	--ink: var(--brand-charcoal);
	--ink-soft: #5c616d;
	--paper: #fffdf8;
	--tint: #fdf2f7;
	--line: #ece4e8;
	--accent: #c23347;
	--accent-ink: #9f2738;
	--violet: #a8336f;
	--radius: 14px;
	--wrap: 1080px;
	--narrow: 720px;
	--sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--display: "El Camino", "Nunito", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 17px/1.65 var(--sans);
}
body::before { /* brand stripe */
	content: "";
	display: block;
	height: 6px;
	background: linear-gradient(90deg,
		var(--brand-pink) 0 20%, var(--brand-red) 20% 40%, var(--brand-yellow) 40% 60%,
		var(--brand-green) 60% 80%, var(--brand-blue) 80%);
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 32px, var(--narrow)); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 12px; }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.button {
	display: inline-block;
	padding: .75em 1.4em;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-weight: 650;
	text-decoration: none;
	border: 2px solid var(--accent);
	transition: background .15s, color .15s;
}
.button:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.button--small { padding: .45em 1.1em; font-size: .9rem; }
.button--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.button--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.button--light { background: var(--ink); color: #fff; border-color: var(--ink); }
.button--light:hover { background: transparent; color: var(--ink); border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; flex-wrap: wrap; padding: 14px 0;
}
.brand img { max-height: 72px; width: auto; display: block; }
@media (min-width: 800px) { .brand img { max-height: 96px; } }
.brand__text {
	font: 400 1.35rem/1 var(--display);
	color: var(--ink); text-decoration: none; letter-spacing: .01em;
}
.brand__text em { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
/* Phones: logo + Donate on one row, menu underneath */
.header-donate { order: 2; }
.site-nav { order: 3; flex-basis: 100%; }
@media (min-width: 800px) {
	.site-nav { order: 2; flex-basis: auto; margin-left: auto; }
	.header-donate { order: 3; }
}
.site-nav .menu { display: flex; gap: 6px 18px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav .menu a { color: var(--ink); text-decoration: none; font-weight: 550; }
.site-nav .menu a:hover,
.site-nav .current-menu-item > a { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 10vw, 112px) 0 clamp(48px, 8vw, 88px); }
.eyebrow {
	text-transform: uppercase; letter-spacing: .12em;
	font-size: .78rem; font-weight: 700; color: var(--violet);
}
.eyebrow--light { color: var(--ink); opacity: .75; }
.hero__title {
	font: 400 clamp(2.6rem, 7.5vw, 5rem)/1.02 var(--display); letter-spacing: .01em; max-width: 16ch;
}
.hero__lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Gathering banner ---------- */
.gathering { background: var(--brand-yellow); color: var(--ink); padding: 36px 0; }
.gathering__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.gathering .eyebrow { margin-bottom: .4em; }
.gathering__title { font: 400 clamp(1.6rem, 4vw, 2.2rem)/1.1 var(--display); margin: 0; }
.gathering__dates { margin: .3em 0 0; font-size: 1.05rem; opacity: .9; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tint { background: var(--tint); }
.section__title { font: 400 clamp(1.7rem, 4vw, 2.4rem)/1.1 var(--display); letter-spacing: .01em; }
.section__intro { color: var(--ink-soft); margin-bottom: 36px; }

.prose-grid { display: grid; gap: 24px; }
@media (min-width: 800px) { .prose-grid { grid-template-columns: 1fr 2fr; gap: 48px; } }
.prose .big { font: 600 1.35rem/1.5 var(--sans); }
.prose p:not(.big) { color: var(--ink-soft); }

/* ---------- About: quick facts ---------- */
.facts {
	margin: 24px 0 0; padding: 0;
	display: grid; gap: 1px;
	background: var(--line);
	border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden;
}
.facts div { background: #fff; padding: 14px 18px; }
.facts div:nth-child(5n+1) { border-left: 5px solid var(--brand-pink); }
.facts div:nth-child(5n+2) { border-left: 5px solid var(--brand-yellow); }
.facts div:nth-child(5n+3) { border-left: 5px solid var(--brand-blue); }
.facts div:nth-child(5n+4) { border-left: 5px solid var(--brand-green); }
.facts div:nth-child(5n+5) { border-left: 5px solid var(--brand-red); }
.facts dt {
	font-size: .75rem; font-weight: 700; text-transform: uppercase;
	letter-spacing: .1em; color: var(--ink-soft);
}
.facts dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); }
.prose__heading {
	font: 400 1.5rem/1.1 var(--display); letter-spacing: .01em;
	margin: 1.6em 0 .5em; color: var(--ink);
}

/* ---------- Art grants ---------- */
.grants {
	padding: clamp(56px, 8vw, 96px) 0;
	background: #f1f8ea; /* light tint of brand green */
	border-top: 6px solid var(--brand-green);
	border-bottom: 1px solid var(--line);
}
.grants .eyebrow { color: #3f6b1f; }
.grants .prose .big { color: var(--ink); }
.grants .button { margin-top: 8px; }

/* ---------- Board ---------- */
.board {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.person {
	display: flex; gap: 16px; align-items: flex-start;
	background: #fff; border: 1px solid var(--line);
	border-radius: var(--radius); padding: 20px;
}
.person__photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.person__photo--initials {
	display: grid; place-items: center;
	background: var(--brand-pink);
	color: var(--ink); font: 400 1.3rem/1 var(--display);
}
/* Cycle the brand colors across board members */
.person:nth-child(5n+2) .person__photo--initials { background: var(--brand-yellow); }
.person:nth-child(5n+3) .person__photo--initials { background: var(--brand-blue); }
.person:nth-child(5n+4) .person__photo--initials { background: var(--brand-green); }
.person:nth-child(5n+5) .person__photo--initials { background: var(--brand-red); color: #fff; }
.person__name { font-size: 1.05rem; margin: 2px 0 2px; }
.person__name a { color: var(--ink); }
.person__role { color: var(--violet); font-weight: 600; font-size: .9rem; margin: 0; }
.person__bio { color: var(--ink-soft); font-size: .95rem; margin: .6em 0 0; }

/* ---------- Contact band ---------- */
.contact-band {
	display: flex; justify-content: space-between; align-items: center;
	gap: 24px; flex-wrap: wrap;
}
.contact-band p { color: var(--ink-soft); margin: 0; }

/* ---------- Inner pages ---------- */
.page-header { padding: clamp(48px, 7vw, 80px) 0 24px; }
.page-title { font: 400 clamp(2rem, 5vw, 3rem)/1.1 var(--display); letter-spacing: .01em; margin: 0; }
.entry { padding-bottom: clamp(56px, 8vw, 96px); }
.entry > * { max-width: 100%; }
.entry h2 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; margin-top: 1.6em; }
.entry ul, .entry ol { padding-left: 1.2em; }
.entry h3 { font-size: 1.15rem; margin-top: 1.6em; }
.entry li { margin-bottom: .35em; }
.entry hr, .entry .wp-block-separator {
	border: 0; border-top: 1px solid var(--line);
	margin: clamp(40px, 6vw, 64px) 0;
}

/* Buttons from the block editor match the theme's buttons */
.entry .wp-block-buttons { margin: 28px 0; }
.entry .wp-block-button__link {
	display: inline-block; padding: .75em 1.4em; border-radius: 999px;
	background: var(--accent); color: #fff; border: 2px solid var(--accent);
	font-weight: 650; text-decoration: none; font-size: 1rem;
}
.entry .wp-block-button__link:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.entry .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border-color: var(--ink); }
.entry .is-style-outline .wp-block-button__link:hover { background: var(--ink); color: #fff; }

/* Art Grants page */
.grants-hero {
	background: #f1f8ea;
	border-bottom: 6px solid var(--brand-green);
	padding: clamp(48px, 7vw, 80px) 0 clamp(36px, 5vw, 56px);
	margin-bottom: clamp(36px, 5vw, 56px);
}
.grants-hero .eyebrow { color: #3f6b1f; }
.grants-hero__lede { font-size: 1.2rem; font-weight: 600; margin: 16px 0 0; max-width: 40ch; }
.sq-stats { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; margin: 0 0 8px; }
.sq-stats .wp-block-column {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 18px 20px; border-top: 5px solid var(--brand-pink);
}
.sq-stats .wp-block-column:nth-child(2) { border-top-color: var(--brand-yellow); }
.sq-stats .wp-block-column:nth-child(3) { border-top-color: var(--brand-blue); }
.sq-stat__number { font: 400 2rem/1 var(--display); letter-spacing: .01em; margin: 0 0 6px; }
.sq-stat__label { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.4; }
.entry mark { padding: 0 .2em; border-radius: 3px; color: var(--ink); }

/* File blocks (Transparency documents) */
.wp-block-file {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; flex-wrap: wrap;
	background: #fff; border: 1px solid var(--line);
	border-radius: var(--radius); padding: 16px 20px; margin: 0 0 12px;
}
.wp-block-file a:first-child { font-weight: 600; color: var(--ink); }
.wp-block-file .wp-block-file__button {
	background: var(--accent); color: #fff; border-radius: 999px;
	padding: .4em 1em; font-size: .85rem; text-decoration: none; font-weight: 600;
}

.info-cards { display: grid; gap: 16px; margin-bottom: 40px; }
@media (min-width: 600px) { .info-cards { grid-template-columns: 1fr 1fr; } }
.info-card {
	background: var(--tint); border-radius: var(--radius); padding: 20px 22px;
}
.info-card h2 {
	font-size: .78rem; text-transform: uppercase; letter-spacing: .12em;
	color: var(--violet); margin-bottom: .6em;
}
.info-card p { margin: 0; }

.contact-map {
	margin: 0 auto 40px;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--line);
	aspect-ratio: 16 / 10;
	background: var(--tint);
}
.contact-map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Forms (works for WPForms, Contact Form 7, and plain HTML forms) */
.entry input[type="text"], .entry input[type="email"], .entry input[type="tel"],
.entry input[type="url"], .entry textarea, .entry select {
	width: 100%; max-width: 100%;
	font: inherit; color: inherit;
	padding: .7em .9em; border: 1px solid var(--line);
	border-radius: 10px; background: #fff;
}
.entry button[type="submit"], .entry input[type="submit"] {
	font: inherit; font-weight: 650; cursor: pointer;
	background: var(--accent); color: #fff; border: 0;
	border-radius: 999px; padding: .75em 1.6em;
}

.post-summary { padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-summary h2 { margin: 0 0 .2em; font-family: var(--display); font-weight: 400; }
.post-summary h2 a { color: var(--ink); text-decoration: none; }
.meta { color: var(--ink-soft); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #e4e6ea; padding: 48px 0 32px; font-size: .92rem; }
.site-footer__inner { display: grid; gap: 20px; }
@media (min-width: 700px) { .site-footer__inner { grid-template-columns: 2fr 1fr; } }
.site-footer__name { color: #fff; font: 400 1.1rem/1.3 var(--display); margin-bottom: .3em; }
.site-footer__copy {
	grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15);
	padding-top: 20px; margin: 8px 0 0; color: #c9ccd4;
}
.site-footer a { color: #fff; }

/* ---------- WordPress core helpers ---------- */
.alignwide { width: min(100vw - 32px, var(--wrap)); margin-inline: calc(50% - min(50vw - 16px, var(--wrap) / 2)); }
.alignfull { width: 100vw; margin-inline: calc(50% - 50vw); }
.aligncenter { margin-inline: auto; display: block; }
.nowrap { white-space: nowrap; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.wp-caption-text, figcaption { color: var(--ink-soft); font-size: .9rem; }
