/* Lake Catholic Performing Arts – shared site styles */

@font-face {
  font-family: 'Beaufort Pro';
  src: url('../assets/fonts/Beaufort-Pro-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Beaufort Pro';
  src: url('../assets/fonts/Beaufort-Pro-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Beaufort Pro';
  src: url('../assets/fonts/Beaufort-Pro-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Liberator';
  src: url('../assets/fonts/Liberator-Light.ttf') format('truetype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Liberator';
  src: url('../assets/fonts/Liberator-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Liberator';
  src: url('../assets/fonts/Liberator-Heavy.ttf') format('truetype');
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --green: #004C31;
  --green-dark: #003322;
  --green-tint: #eef5f1;
  --lime: #BED600;
  --bg: #f0f2ee;
  --card: #ffffff;
  --border: #d8ddd4;
  --text: #1a1f17;
  --muted: #5f6a5a;
  --serif: 'Liberator', Georgia, 'Times New Roman', serif;
  --sans: 'Beaufort Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img { max-width: 100%; }

a { color: var(--green); }

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

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: #fff; color: var(--green); padding: 8px 14px; border-radius: 6px; z-index: 20;
}
.skip-link:focus { left: 12px; }

/* ── Header ───────────────────────────────────────────── */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.site-header-inner {
  max-width: 1080px; margin: 0 auto; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--text);
}
.brand img { width: 78px; height: 78px; display: block; }
.brand span { font-family: var(--serif); font-size: 18px; line-height: 1.2; color: var(--green); white-space: nowrap; }
.brand small { display: block; font-family: var(--sans); font-size: 12px; color: var(--muted); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 9px 12px; border-radius: 6px;
  text-decoration: none; color: var(--text); font-weight: 500; font-size: 15px;
}
.site-nav a:hover { background: var(--green-tint); }
.site-nav a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -3px 0 var(--lime); border-radius: 0; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: 8px 10px; color: var(--green); cursor: pointer;
  line-height: 0;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--border); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 12px 14px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--lime); }
}

/* ── Page structure ───────────────────────────────────── */

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.page-title {
  background: var(--green); color: #fff;
  border-bottom: 5px solid var(--lime);
  padding: 34px 0 36px;
}
.page-title h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(30px, 5vw, 44px); line-height: 1.12; margin: 0;
}
.page-title p { margin: 10px 0 0; max-width: 62ch; opacity: 0.9; }

.section { padding: 44px 0; }
.section + .section { padding-top: 0; }

h2.heading {
  font-family: var(--serif); font-weight: 600; color: var(--green);
  font-size: 28px; line-height: 1.2; margin: 0 0 14px;
}
h3 { font-size: 18px; margin: 0 0 6px; }

.prose { max-width: 68ch; }
.prose p { margin: 0 0 14px; }

.panel {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 26px 28px;
}

.btn {
  display: inline-block; text-decoration: none;
  font-weight: 600; font-size: 16px; line-height: 1.2;
  padding: 13px 24px; border-radius: 8px;
  background: var(--green); color: #fff; border: 2px solid var(--green);
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn.light { background: #fff; color: var(--green); border-color: #fff; }
.btn.light:hover { background: var(--green-tint); border-color: var(--green-tint); }
.btn.outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn.outline:hover { background: rgba(255,255,255,0.12); }

.loading { color: var(--muted); }

/* ── Content loading state ────────────────────────────── */
/* Applied while waiting for the first API response.
   Cached visitors never see this — content is applied synchronously. */

[data-content], [data-content-lines], [data-content-src] {
  transition: opacity 0.4s ease;
}
body[data-content-loading] [data-content],
body[data-content-loading] [data-content-lines] {
  opacity: 0;
}
body[data-content-loading] [data-content-src] {
  opacity: 0;
}
body[data-content-loading] [data-docs] {
  opacity: 0;
}

/* Shimmer pulse on placeholder text while loading */
@keyframes lct-shimmer {
  0%, 100% { opacity: 0; }
  50%       { opacity: 0.06; }
}
body[data-content-loading] [data-content]::after,
body[data-content-loading] [data-content-lines]::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--text);
  border-radius: 4px;
  animation: lct-shimmer 1.4s ease-in-out infinite;
  pointer-events: none;
}

/* ── Footer ───────────────────────────────────────────── */

.site-footer {
  background: var(--green-dark); color: rgba(255,255,255,0.85);
  padding: 34px 0 40px; margin-top: 20px; font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; justify-content: space-between; }
.site-footer img { width: 54px; height: 54px; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer .footer-brand { display: flex; gap: 14px; align-items: center; }
.site-footer address { font-style: normal; }
.site-footer .copy { width: 100%; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 16px; color: rgba(255,255,255,0.6); }
