/* The Callboard Club — homepage cork board */
.cbc-cb {
	--ink: #2a1216;
	--hand: "Caveat", "Bradley Hand", cursive;
	--marker: "Permanent Marker", "Marker Felt", cursive;
	--display: var(--wp--preset--font-family--display, "Playfair Display", Georgia, serif);
	--mono: var(--wp--preset--font-family--mono, "DM Mono", ui-monospace, monospace);
	position: relative;
	padding: clamp(28px, 4vw, 56px) clamp(12px, 3vw, 40px) clamp(40px, 5vw, 72px);
	background:
		radial-gradient(ellipse 60% 55% at 50% 0%, rgba(255, 233, 196, .16), transparent 70%),
		radial-gradient(ellipse 90% 70% at 50% 110%, rgba(139,15,36, .22), transparent 70%),
		#1d0a0e;
	color: var(--ink);
}

/* Wood frame */
.cbc-cb-frame {
	max-width: 1280px;
	margin: 0 auto;
	padding: clamp(12px, 1.6vw, 22px);
	border-radius: 10px;
	background:
		repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 9px, rgba(0,0,0,.06) 9px 11px, transparent 11px 23px),
		repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 1px, transparent 1px 5px),
		linear-gradient(180deg, #a7713f, #8a5a2f 40%, #7a4e28 60%, #94612f);
	box-shadow:
		inset 0 2px 0 rgba(255,255,255,.25),
		inset 0 -3px 0 rgba(0,0,0,.25),
		0 30px 60px -20px rgba(0,0,0,.7),
		0 10px 20px -10px rgba(0,0,0,.5);
}

/* Cork */
.cbc-cb-cork {
	position: relative;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-template-areas:
		"head head head head head head head aud  aud  aud  aud  aud"
		"late late late now  now  now  now  tix  tix  fly  fly  fly"
		"memo memo memo now  now  now  now  sign sign sign sign sign";
	grid-auto-rows: auto;
	gap: clamp(18px, 2.2vw, 30px) clamp(16px, 2vw, 28px);
	align-items: start;
	padding: clamp(26px, 3.4vw, 48px);
	border-radius: 4px;
	background-color: #c0884f;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .18 0 0 0 0 .06 0 0 0 1.9 -.78'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.045' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .78 0 0 0 0 .52 0 0 0 .9 -.35'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23m)'/%3E%3C/svg%3E"),
		radial-gradient(circle at 30% 20%, #cf9a62, transparent 60%),
		radial-gradient(circle at 80% 90%, #a8723f, transparent 55%);
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), inset 0 6px 18px rgba(0,0,0,.35), inset 0 -2px 10px rgba(0,0,0,.2);
}

/* Paper notes */
.cbc-cb-note {
	--r: 0deg;
	position: relative;
	display: block;
	padding: 26px 22px 20px;
	background: #fffdf7;
	color: var(--ink) !important;
	text-decoration: none !important;
	border-radius: 2px;
	transform: rotate(var(--r));
	transform-origin: 50% 0;
	box-shadow: 0 1px 1px rgba(40,20,0,.18), 0 3px 6px rgba(40,20,0,.14), 0 18px 28px -14px rgba(30,12,0,.55);
	transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
	font-size: 1rem;
	line-height: 1.45;
}
a.cbc-cb-note:hover, .cbc-cb-note:hover {
	transform: rotate(calc(var(--r) * .4)) translateY(-3px);
	box-shadow: 0 1px 1px rgba(40,20,0,.18), 0 6px 10px rgba(40,20,0,.14), 0 28px 38px -16px rgba(30,12,0,.6);
}
.cbc-cb-note p { margin: 0 0 .7em; }
.cbc-cb-note h1, .cbc-cb-note h2 { margin: 0 0 .5rem; color: var(--ink); }

/* Push pins: glossy head + a soft cast shadow */
.cbc-cb-pin {
	--pin: #8b0f24;
	position: absolute;
	top: -9px;
	left: 50%;
	width: 22px;
	height: 22px;
	margin-left: -11px;
	border-radius: 50%;
	background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.85) 0 2px, rgba(255,255,255,.25) 4px, transparent 7px), var(--pin);
	box-shadow: inset -3px -4px 6px rgba(0,0,0,.35), 4px 6px 4px -1px rgba(30,12,0,.35);
	z-index: 2;
}
.cbc-cb-pin::after { /* the pin's collar */
	content: ""; position: absolute; inset: 5px; border-radius: 50%;
	box-shadow: inset 0 0 0 2px rgba(255,255,255,.18);
}

/* Type */
.cbc-cb-eyebrow, .cbc-cb-type, .cbc-cb-admit {
	font-family: var(--mono);
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: .74rem;
	font-weight: 500;
}
.cbc-cb-marker {
	display: block;
	font-family: var(--marker) !important;
	font-weight: 400 !important;
	font-size: clamp(1.5rem, 2.3vw, 2rem) !important;
	line-height: 1.05 !important;
	letter-spacing: .01em;
	text-transform: none;
}
.cbc-cb-hand { font-family: var(--hand); font-size: 1.35rem; font-weight: 600; line-height: 1; color: #23317a; }
.cbc-cb-more {
	display: inline-block;
	margin-top: .6rem;
	font-weight: 700;
	font-size: .92rem;
	color: var(--ink) !important;
	text-decoration: underline !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 4px;
}
.cbc-cb-note small { display: block; font-size: .82rem; color: #6e5a5c; line-height: 1.3; }

/* 1. Headline sheet: printed playbill-style sheet */
.cbc-cb-head {
	grid-area: head;
	padding: clamp(30px, 3.6vw, 52px) clamp(24px, 3.4vw, 50px) clamp(26px, 3vw, 40px);
	background:
		linear-gradient(#fffdf7, #fffdf7) padding-box,
		#fffdf7;
	border-top: 10px solid var(--ink);
}
.cbc-cb-head .cbc-cb-pin { top: -16px; }
.cbc-cb-head .cbc-cb-eyebrow { color: #8a5d14; margin-bottom: 1.1rem; }
.cbc-cb-title {
	font-family: var(--display) !important;
	font-weight: 700 !important;
	font-size: clamp(2.3rem, 4.4vw, 3.9rem) !important;
	line-height: 1.04 !important;
	letter-spacing: -.01em !important;
	margin: 0 0 1.1rem !important;
	text-wrap: balance;
}
.cbc-cb-title em {
	font-style: italic;
	color: #8b0f24;
	background: linear-gradient(transparent 82%, rgba(212,169,74,.55) 82%, rgba(212,169,74,.55) 94%, transparent 94%);
	padding: 0 .04em;
}
.cbc-cb-lede { font-size: clamp(1.02rem, 1.25vw, 1.18rem); color: #4a3236; max-width: 36ch; }
.cbc-cb-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.cbc-cb-btn {
	display: inline-flex; align-items: center;
	padding: 13px 22px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none !important;
	border: 2px solid var(--ink);
	transition: transform .15s ease, box-shadow .15s ease;
}
.cbc-cb-btn:hover { transform: translateY(-2px); }
.cbc-cb .cbc-cb-btn-pink { background: #8b0f24; color: #fff !important; box-shadow: 0 6px 16px -6px rgba(139,15,36,.7); }
.cbc-cb .cbc-cb-btn-ink { background: transparent; color: var(--ink) !important; }
.cbc-cb .cbc-cb-btn-ink:hover { background: var(--ink); color: #fff !important; }

/* 2. Auditions: yellow legal pad */
.cbc-cb-legal {
	background-color: #fff3a8;
	background-image:
		linear-gradient(90deg, transparent 34px, rgba(229,50,45,.55) 34px 35.5px, transparent 35.5px),
		repeating-linear-gradient(180deg, transparent 0 29px, rgba(70,110,200,.28) 29px 30px);
	background-position: 0 0, 0 52px;
	padding-left: 50px;
}
.cbc-cb-aud { grid-area: aud; }
.cbc-cb-aud .cbc-cb-marker { color: #d4232b; font-size: clamp(2rem, 3vw, 2.6rem) !important; transform: rotate(-2deg); margin-bottom: .8rem; }
.cbc-cb-list { list-style: none; margin: 0; padding: 0; }
.cbc-cb-list li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px dashed rgba(42,18,22,.18); }
.cbc-cb-list li:last-child { border-bottom: 0; }
.cbc-cb-list b { display: block; font-family: var(--display); font-size: 1.05rem; line-height: 1.2; }
.cbc-cb-date {
	flex: none;
	min-width: 62px;
	font-family: var(--hand);
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1;
	color: #d4232b;
	padding-top: 1px;
}

/* 3. Sticky note */
.cbc-cb-sticky {
	background: linear-gradient(170deg, #ffe066, #ffd23f 70%, #f7c629);
	box-shadow: 0 1px 1px rgba(40,20,0,.15), 0 22px 22px -16px rgba(30,12,0,.55), inset 0 -18px 18px -18px rgba(120,80,0,.35);
}
.cbc-cb-late { grid-area: late; aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: center; }
.cbc-cb-late .cbc-cb-marker span { color: #d4232b; display: inline-block; transform: rotate(-3deg); font-size: 1.15em; }

/* 4. Now playing: lined index card */
.cbc-cb-index {
	background-color: #fffefb;
	background-image:
		linear-gradient(180deg, transparent 58px, rgba(229,50,45,.5) 58px 60px, transparent 60px),
		repeating-linear-gradient(180deg, transparent 0 27px, rgba(70,110,200,.22) 27px 28px);
}
.cbc-cb-now { grid-area: now; margin-top: 8px; }
.cbc-cb-now .cbc-cb-marker { color: #23317a; margin-bottom: 1.1rem; }
.cbc-cb-plain li { justify-content: space-between; }
.cbc-cb-thru { flex: none; font-family: var(--hand); font-size: 1.2rem; font-weight: 700; color: #23317a; white-space: nowrap; }

/* 5. Ticket stub */
.cbc-cb-ticket {
	grid-area: tix;
	text-align: center;
	padding: 32px 14px 18px;
	background: #f6e3e3;
	border: 0;
	-webkit-mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
	        mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
	filter: drop-shadow(0 10px 10px rgba(30,12,0,.35));
	box-shadow: none;
	outline: 2px dashed rgba(139,15,36,.45);
	outline-offset: -8px;
}
.cbc-cb-ticket:hover { box-shadow: none; }
.cbc-cb-ticket .cbc-cb-admit { display: block; color: #8b0f24; }
.cbc-cb-ticket b { display: block; font-family: var(--display); font-size: 2.6rem; font-weight: 700; line-height: 1; margin: .35rem 0 .2rem; letter-spacing: -.01em; }
.cbc-cb-ticket span:last-child { font-size: .84rem; line-height: 1.25; display: block; }
.cbc-cb-ticket .cbc-cb-pin { top: 2px; }

/* 6. Orange flyer */
.cbc-cb-flyer { grid-area: fly; background: #b5562b; display: flex; flex-direction: column; gap: .35rem; }
.cbc-cb-flyer .cbc-cb-marker { color: #fff; text-shadow: 0 2px 0 rgba(42,18,22,.25); }
.cbc-cb-flyer > span:nth-of-type(2) { font-weight: 600; }

/* 7. Sign-up sheet */
.cbc-cb-signup { grid-area: sign; background: #fff; }
.cbc-cb-signup .cbc-cb-type { font-size: .8rem; font-weight: 600; margin-bottom: .4rem; }
.cbc-cb-signup ol { margin: 0; padding: 0 0 0 1.6rem; font-family: var(--mono); font-size: .8rem; color: #9a8a85; }
.cbc-cb-signup li { border-bottom: 1px solid rgba(42,18,22,.25); padding: 6px 0 2px; min-height: 1.9rem; }

/* 8. Company memo */
.cbc-cb-memo { grid-area: memo; background: #f1e5e2; display: flex; flex-direction: column; gap: .4rem; }
.cbc-cb-memo .cbc-cb-type { color: #8a5d14; }

/* Tablet */
@media (max-width: 1020px) {
	.cbc-cb-cork {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		grid-template-areas:
			"head head head head head head"
			"aud  aud  aud  late late late"
			"aud  aud  aud  now  now  now"
			"tix  tix  fly  fly  fly  fly"
			"memo memo memo sign sign sign";
	}
	.cbc-cb-late { aspect-ratio: auto; }
	.cbc-cb-now { margin-top: 0; }
}
/* Phone: a single column of notes, gentler tilts */
@media (max-width: 640px) {
	.cbc-cb { padding-left: 8px; padding-right: 8px; }
	.cbc-cb-cork {
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"head head"
			"aud  aud"
			"late tix"
			"now  now"
			"fly  fly"
			"sign memo";
		padding: 22px 14px 26px;
		gap: 22px 14px;
	}
	.cbc-cb-note { --r: 0deg !important; transform: rotate(calc(var(--r) * .5)); padding: 22px 16px 16px; }
	.cbc-cb-legal { padding-left: 40px; background-image: linear-gradient(90deg, transparent 26px, rgba(229,50,45,.55) 26px 27.5px, transparent 27.5px), repeating-linear-gradient(180deg, transparent 0 29px, rgba(70,110,200,.28) 29px 30px); }
	.cbc-cb-late { aspect-ratio: auto; }
	.cbc-cb-late .cbc-cb-marker, .cbc-cb-flyer .cbc-cb-marker { font-size: 1.3rem !important; }
	.cbc-cb-signup, .cbc-cb-memo { font-size: .9rem; }
	.cbc-cb-signup .cbc-cb-hand { font-size: 1.15rem; }
	.cbc-cb-btn { width: 100%; justify-content: center; }
}
@media (max-width: 400px) {
	.cbc-cb-cork { grid-template-areas: "head head" "aud aud" "late late" "tix tix" "now now" "fly fly" "sign sign" "memo memo"; }
}
@media (prefers-reduced-motion: reduce) { .cbc-cb-note, .cbc-cb-btn { transition: none; } }

/* ── Homepage sections below the board ── */
.cbc-section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem) !important; letter-spacing: -.01em; line-height: 1.05 !important; margin-top: .4rem !important; }
.cbc-ways { background: #fbf7f0; }
.cbc-way {
	position: relative;
	padding: clamp(28px, 3vw, 44px) !important;
	border-radius: 22px;
	border: 1px solid rgba(42,18,22,.08);
	box-shadow: 0 1px 2px rgba(42,18,22,.06), 0 24px 48px -28px rgba(42,18,22,.35);
	overflow: hidden;
}
.cbc-way::after { /* a big soft spotlight in the corner */
	content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -140px; border-radius: 50%;
	background: radial-gradient(circle, rgba(255,255,255,.75), transparent 65%); pointer-events: none;
}
.cbc-way-aud { background: linear-gradient(160deg, #f6e3e3, #fbf1ef 60%); }
.cbc-way-act { background: linear-gradient(160deg, #e7eee6, #f1fcf8 60%); }
body .wp-site-blocks .cbc-way .cbc-way-kicker {
	display: inline-block; margin: 0 0 .9rem; padding: 6px 12px; border-radius: 999px;
	font-family: var(--wp--preset--font-family--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
	background: #2a1216; color: #fff !important;
}
.cbc-way h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem) !important; letter-spacing: -.005em; margin: 0 0 1.1rem !important; }
.cbc-checks { list-style: none; padding: 0 !important; margin: 0 0 1.6rem !important; }
.cbc-checks li { position: relative; padding: 0 0 0 2.1rem; margin: 0 0 .85rem; line-height: 1.5; }
.cbc-checks li::before {
	content: ""; position: absolute; left: 0; top: .18em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
	background: #2a1216 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.cbc-way-aud .cbc-checks li::before { background-color: #8b0f24; }
.cbc-way-act .cbc-checks li::before { background-color: #2f5d50; }

/* Program-style "three acts" */
.cbc-program { background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(212,169,74,.12), transparent 70%), #2a1216 !important; }
.cbc-program-card {
	position: relative;
	padding: clamp(32px, 4vw, 60px) clamp(20px, 4vw, 60px);
	border: 1px solid rgba(212,169,74,.55);
	outline: 1px solid rgba(212,169,74,.25);
	outline-offset: 7px;
	border-radius: 6px;
}
body .wp-site-blocks .cbc-program .cbc-eyebrow { color: #d4a94a !important; }
.cbc-acts { gap: 0 !important; }
.cbc-act { padding: 0 clamp(14px, 2.4vw, 34px); border-left: 1px solid rgba(255,255,255,.14); }
.cbc-act:first-child { border-left: 0; }
body .wp-site-blocks .cbc-program .cbc-act-no {
	font-family: "Caveat", cursive; font-size: 1.9rem; font-weight: 700; line-height: 1; color: #d4a94a !important; margin: 0 0 .5rem;
}
.cbc-act h3 { font-size: 1.45rem !important; margin: 0 0 .5rem !important; }
body .wp-site-blocks .cbc-program .cbc-act p:not(.cbc-act-no) { color: rgba(255,255,255,.78) !important; font-size: 1rem; line-height: 1.6; }
@media (max-width: 781px) {
	.cbc-act { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); padding: 1.4rem 0 .4rem; }
	.cbc-act:first-child { border-top: 0; padding-top: 0; }
}
/* Belt and braces against auto-paragraphs */
.cbc-cb-cork > p { display: contents; }
.cbc-cb-cork br { display: none; }
.cbc-cb-note > p:empty { display: none; }
