/* drumdrumdrum — small layer on top of theme.json */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { height: auto; }

/* Eyebrow labels: small, uppercase, spaced */
.ddd-eyebrow {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.75rem !important;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--sage);
}
.has-forest-background-color .ddd-eyebrow,
.wp-block-cover .ddd-eyebrow { color: var(--wp--preset--color--sand); }

/* Italic emphasis inside serif headings */
h1 em, h2 em, h3 em, .ddd-statement em { font-style: italic; color: var(--wp--preset--color--terracotta); }
.wp-block-cover h1 em { color: var(--wp--preset--color--sand); }

/* Header */
.ddd-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(246, 241, 233, 0.86);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(216, 204, 186, 0.6);
}
.admin-bar .ddd-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ddd-header { top: 46px; } }

/* Outline button style */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 1px solid currentColor;
	color: var(--wp--preset--color--espresso);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--espresso);
	border-color: var(--wp--preset--color--cream);
}

/* Hero */
.ddd-hero { min-height: 92vh; }
.ddd-hero:has(.wp-block-cover__image-background, .wp-block-cover__video-background) .wp-block-cover__background { background: linear-gradient(180deg, rgba(43,36,32,0.25) 0%, rgba(43,36,32,0.55) 100%) !important; opacity: 1 !important; }
.ddd-hero .ddd-hero-sub { max-width: 34rem; margin-inline: auto; opacity: 0.92; }

/* Concentric rings motif (pure CSS, zero image weight) */
.ddd-rings { position: relative; overflow: hidden; }
.ddd-rings::before {
	content: ""; position: absolute; left: 50%; top: 50%;
	width: 900px; height: 900px; transform: translate(-50%, -50%);
	border-radius: 50%; pointer-events: none;
	background: repeating-radial-gradient(circle, transparent 0 58px, rgba(138,154,123,0.18) 58px 59px);
	-webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
	mask-image: radial-gradient(circle, #000 30%, transparent 70%);
}
.ddd-rings > * { position: relative; }

.ddd-statement { max-width: 18ch; margin-inline: auto; }

/* Step numbers */
.ddd-step-num {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 3rem !important; line-height: 1;
	color: var(--wp--preset--color--terracotta);
}
.ddd-step { border-top: 1px solid var(--wp--preset--color--line); padding-top: 1.5rem; }

/* Cards */
.ddd-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 20px;
	padding: 2rem 1.75rem !important;
	height: 100%;
	transition: transform .35s ease, box-shadow .35s ease;
}
.ddd-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(43,36,32,0.35); }
.ddd-icon {
	width: 52px; height: 52px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--sage);
	font-size: 1.35rem !important; line-height: 1; margin: 0 0 1rem !important;
}

/* Event cards */
.ddd-event {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 20px; padding: 1.75rem !important;
}
.ddd-event .ddd-date {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 2rem !important; line-height: 1.1;
}
.ddd-tag {
	display: inline-block; padding: 0.3rem 0.8rem; border-radius: 999px;
	background: var(--wp--preset--color--sand); color: var(--wp--preset--color--muted);
	font-size: 0.75rem !important; font-weight: 500; letter-spacing: 0.06em;
}

/* Photo frames: arched + rounded */
.ddd-arch img { border-radius: 999px 999px 24px 24px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.ddd-round img { border-radius: 24px; object-fit: cover; width: 100%; }

/* Image placeholders shown until real photos are added */
.ddd-placeholder {
	aspect-ratio: 4 / 5; border-radius: 999px 999px 24px 24px;
	background:
		repeating-radial-gradient(circle at 50% 60%, transparent 0 34px, rgba(246,241,233,0.35) 34px 35px),
		linear-gradient(160deg, #A9B59B 0%, #8A9A7B 45%, #C8714E 120%);
	display: grid; place-items: end center; padding-bottom: 1.25rem;
	color: var(--wp--preset--color--cream); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
}

/* Testimonials */
.ddd-quote p { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: 1.45rem; line-height: 1.4; }
.ddd-quote cite { font-style: normal; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wp--preset--color--muted); }

/* FAQ (core/details) */
.ddd-faq .wp-block-details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 1.25rem 0; }
.ddd-faq summary {
	font-family: var(--wp--preset--font-family--serif); font-size: 1.4rem; cursor: pointer;
	list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.ddd-faq summary::-webkit-details-marker { display: none; }
.ddd-faq summary::after { content: "+"; color: var(--wp--preset--color--terracotta); transition: transform .3s; }
.ddd-faq details[open] summary::after { transform: rotate(45deg); }
.ddd-faq details p { color: var(--wp--preset--color--muted); margin-top: 0.75rem; }

/* Sessions calendar (month tabs + week rows) */
.ddd-cal-tabs {
	display: none; gap: 0.5rem; overflow-x: auto; margin-bottom: 1.5rem; padding-bottom: 0.5rem;
	scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ddd-cal-tabs::-webkit-scrollbar { display: none; }
.ddd-cal.is-js .ddd-cal-tabs { display: flex; }
.ddd-cal.is-js .ddd-cal-month { display: none; }
.ddd-cal-month { font-size: 1.6rem; margin: 2rem 0 0.5rem; }
.ddd-cal-tab {
	flex: 0 0 auto; font: inherit; font-size: 0.95rem; font-weight: 500; cursor: pointer;
	padding: 0.6rem 1.25rem; border-radius: 999px; background: transparent;
	border: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--espresso);
	transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.ddd-cal-tab[aria-selected="true"] {
	background: var(--wp--preset--color--espresso); border-color: var(--wp--preset--color--espresso);
	color: var(--wp--preset--color--cream);
}
.ddd-cal-tab:focus-visible { outline: 2px solid var(--wp--preset--color--terracotta); outline-offset: 2px; }

.ddd-week {
	display: grid; grid-template-columns: 11rem 1fr; gap: 1rem 2rem;
	padding: 1.75rem 0; border-top: 1px solid var(--wp--preset--color--line);
}
.ddd-week.is-current {
	background: var(--wp--preset--color--sand); border-radius: 20px;
	border-top-color: transparent; padding: 1.75rem 1.5rem; margin: 0.5rem 0;
}
.ddd-week-label { font-variant-numeric: lining-nums; font-family: var(--wp--preset--font-family--serif); font-size: 1.5rem; line-height: 1.2; margin: 0; }
.ddd-badge {
	display: inline-block; margin-top: 0.6rem; padding: 0.3rem 0.8rem; border-radius: 999px;
	background: var(--wp--preset--color--terracotta); color: var(--wp--preset--color--white);
	font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em;
}
.ddd-today-note { display: block; margin-top: 0.5rem; font-size: 0.85rem; color: var(--wp--preset--color--muted); }
.ddd-dot {
	display: inline-block; width: 0.55rem; height: 0.55rem; margin-right: 0.45rem;
	border-radius: 50%; background: var(--wp--preset--color--terracotta); vertical-align: middle;
}
.ddd-week-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.ddd-week-empty { margin: 0; color: var(--wp--preset--color--muted); font-style: italic; }
.ddd-cal .ddd-event { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.ddd-cal .ddd-event p { margin: 0; }
.ddd-cal .ddd-date { font-size: 1.6rem !important; font-variant-numeric: lining-nums; }
.ddd-cal .ddd-session-name { font-weight: 500; }
.ddd-cal .ddd-session-price { color: var(--wp--preset--color--terracotta); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; }
.ddd-cal .ddd-session-blurb { color: var(--wp--preset--color--muted); font-size: 0.95rem; }
.ddd-cal .wp-element-button { display: inline-block; margin-top: 0.25rem; text-decoration: none; cursor: pointer; }
.ddd-week.is-past { opacity: 0.6; }
.ddd-week:not(.is-past) .ddd-event.is-past { opacity: 0.6; }
.ddd-past { margin-top: 1.5rem; border-top: 1px solid var(--wp--preset--color--line); }
.ddd-past > summary {
	cursor: pointer; padding: 1.25rem 0; list-style: none; display: flex; justify-content: space-between;
	font-family: var(--wp--preset--font-family--serif); font-size: 1.4rem; color: var(--wp--preset--color--muted);
}
.ddd-past > summary::-webkit-details-marker { display: none; }
.ddd-past > summary::after { content: "+"; color: var(--wp--preset--color--terracotta); transition: transform .3s; }
.ddd-past[open] > summary::after { transform: rotate(45deg); }
.ddd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ddd-cal-empty { color: var(--wp--preset--color--muted); }

@media (max-width: 781px) {
	.ddd-week { grid-template-columns: 1fr; gap: 0.75rem; }
	.ddd-week.is-current { padding: 1.25rem; }
	.ddd-week-cards { grid-template-columns: 1fr; }
}

/* Footer */
.ddd-footer a { text-decoration: none; }
.ddd-footer .wp-block-navigation { gap: 0.6rem 1.5rem; }

/* Gentle fade-up on scroll (modern browsers; others just show content) */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.ddd-reveal {
			animation: ddd-fade-up linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 35%;
		}
	}
}
@keyframes ddd-fade-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* Mobile polish */
@media (max-width: 781px) {
	.ddd-hero { min-height: 86vh; }
	.ddd-card, .ddd-event { padding: 1.5rem !important; }
	.ddd-hide-mobile { display: none !important; }
}
