/*
Theme Name: Pirouette Royale
Description: Lightweight block theme for La Pirouette Royale Ballet & Dance Arts. No page builder, no slider, no jQuery.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: pirouette-royale
*/

/* Colours and fonts come from theme.json. The fallbacks below let preview pages render without WordPress. */
:root {
	--lpr-ink: var(--wp--preset--color--ink, #2e2230);
	--lpr-rose: var(--wp--preset--color--rose, #a8456b);
	--lpr-blush: var(--wp--preset--color--blush, #fbf3f6);
	--lpr-gold: var(--wp--preset--color--gold, #b08d57);
	--lpr-muted: var(--wp--preset--color--muted, #6b5c68);
	--lpr-base: var(--wp--preset--color--base, #ffffff);
}

/* Header */
.site-header { border-bottom: 1px solid #eee3e8; background: var(--lpr-base); position: sticky; top: 0; z-index: 50; }
.site-header .wp-block-navigation { font-size: 0.95rem; font-weight: 500; }
.site-header .wp-block-navigation a { text-decoration: none; }
.site-header .wp-block-navigation a:hover { color: var(--lpr-rose); }
.site-header .lpr-logo img { width: 190px; height: auto; display: block; }
@media (max-width: 781px) { .site-header .lpr-header-cta { display: none; } .site-header .lpr-logo img { width: 150px; } }

/* Cover/hero: keep text readable on the dark overlay */
.wp-block-cover h1, .wp-block-cover h2, .wp-block-cover h3, .wp-block-cover p { color: inherit; }
.lpr-hero h1 { max-width: 18ch; margin-inline: auto; }

/* Small uppercase label above headings */
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; font-weight: 600; color: var(--lpr-rose); margin-bottom: 0.25rem; }
.wp-block-cover .eyebrow { color: #f3c9d8; }

/* Section backgrounds */
.lpr-section { padding-block: clamp(3rem, 7vw, 6rem); }
.lpr-tint { background: var(--lpr-blush); }

/* Cards */
.lpr-card { background: var(--lpr-base); border: 1px solid #efe2e8; border-radius: 14px; padding: 1.5rem; height: 100%; }
.lpr-card h3 { margin-top: 0; font-size: 1.35rem; }

/* Faculty */
.lpr-person { border-top: 1px solid #efe2e8; padding-top: 2rem; margin-top: 2rem; }
.lpr-person img { border-radius: 12px; aspect-ratio: 1 / 1; object-fit: cover; }
.lpr-credential { color: var(--lpr-rose); font-weight: 600; margin-top: -0.5rem; }

/* Tables (important dates) */
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table th, .wp-block-table td { border: 0; border-bottom: 1px solid #eadde3; padding: 0.75rem 0.5rem; text-align: left; vertical-align: top; }
.wp-block-table thead th { border-bottom: 2px solid var(--lpr-rose); }
.wp-block-table td:first-child { white-space: nowrap; font-weight: 600; padding-right: 1.5rem; }
@media (max-width: 600px) { .wp-block-table td:first-child { white-space: normal; } }

/* Contact / NAP block from the LPR SEO plugin */
.lpr-nap { font-style: normal; line-height: 1.8; }
.lpr-map iframe { width: 100%; height: 360px; border: 0; border-radius: 12px; }

/* Footer */
.site-footer { background: var(--lpr-ink); color: #eadde3; }
.site-footer a { color: #fff; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1.15rem; }
.site-footer .lpr-copy { font-size: 0.85rem; color: #c9b8c2; }

/* Accessibility */
a:focus-visible, button:focus-visible { outline: 3px solid var(--lpr-gold); outline-offset: 2px; }
.skip-link:focus { position: fixed; top: 0.5rem; left: 0.5rem; z-index: 100; background: #fff; padding: 0.5rem 1rem; }
