/*
Theme Name: Celery City Players
Theme URI: https://theatre.mrhyde.net/
Author: Celery City Players
Description: A polished community theatre WordPress theme for Celery City Players at The Monroe Theatre in Sanford, Florida. Designed around deep greens, warm cream, charcoal, and brass accents with flexible homepage controls and accessible responsive layouts.
Version: 0.0.1
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: celery-city-players
*/

:root {
  --ccp-ink: #16211b;
  --ccp-ink-soft: #324038;
  --ccp-forest: #1f4d3a;
  --ccp-forest-dark: #123529;
  --ccp-celery: #8aa86d;
  --ccp-celery-light: #d8e3cb;
  --ccp-cream: #f5f0e4;
  --ccp-paper: #fffdf8;
  --ccp-gold: #b7924b;
  --ccp-line: #d8d1c0;
  --ccp-white: #ffffff;
  --ccp-shadow: 0 18px 50px rgba(22, 33, 27, 0.12);
  --ccp-radius: 18px;
  --ccp-content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ccp-ink);
  background: var(--ccp-cream);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a { color: var(--ccp-forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--ccp-gold); }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.ccp-wrap { width: min(calc(100% - 40px), var(--ccp-content)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31, 77, 58, 0.14);
}
.admin-bar .site-header { top: 32px; }

.ccp-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding { display: flex; align-items: center; gap: 14px; min-width: 0; }
.custom-logo-link img { max-height: 58px; width: auto; display: block; }
.ccp-brand-text { min-width: 0; }
.site-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.site-title a { color: var(--ccp-ink); text-decoration: none; }
.site-description { margin: 6px 0 0; color: var(--ccp-ink-soft); font-size: .85rem; }

.primary-navigation ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.primary-navigation a {
  display: block;
  padding: 10px 12px;
  color: var(--ccp-ink);
  text-decoration: none;
  font-weight: 650;
  font-size: .95rem;
  border-radius: 999px;
}
.primary-navigation a:hover,
.primary-navigation a:focus,
.primary-navigation .current-menu-item > a { background: var(--ccp-celery-light); color: var(--ccp-forest-dark); }

.ccp-menu-toggle {
  display: none;
  border: 1px solid var(--ccp-line);
  background: var(--ccp-paper);
  color: var(--ccp-ink);
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.ccp-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(183, 146, 75, .22), transparent 28%),
    linear-gradient(135deg, var(--ccp-forest-dark), var(--ccp-forest));
  color: var(--ccp-white);
}
.ccp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(90deg, transparent 49%, rgba(255,255,255,.14) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(255,255,255,.08) 50%, transparent 51%);
  background-size: 80px 80px;
}
.ccp-hero-inner {
  position: relative;
  z-index: 1;
  min-height: min(72vh, 720px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 50px;
  align-items: center;
  padding-block: 88px;
}
.ccp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 800;
  color: var(--ccp-celery-light);
}
.ccp-kicker::before { content: ""; width: 32px; height: 1px; background: var(--ccp-gold); }
.ccp-hero h1 {
  max-width: 820px;
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: .93;
  letter-spacing: -0.055em;
  font-weight: 700;
}
.ccp-hero-copy { max-width: 720px; font-size: clamp(1.05rem, 2vw, 1.28rem); color: #eef4e9; }
.ccp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ccp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.ccp-button:hover { transform: translateY(-1px); }
.ccp-button-primary { background: var(--ccp-celery-light); color: var(--ccp-forest-dark); }
.ccp-button-primary:hover { background: var(--ccp-white); color: var(--ccp-forest-dark); }
.ccp-button-secondary { border-color: rgba(255,255,255,.45); color: var(--ccp-white); }
.ccp-button-secondary:hover { background: rgba(255,255,255,.12); color: var(--ccp-white); }

.ccp-hero-card {
  align-self: end;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--ccp-radius);
  padding: 26px;
  box-shadow: 0 22px 70px rgba(0,0,0,.16);
}
.ccp-hero-card-label { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 800; color: var(--ccp-celery-light); }
.ccp-hero-card h2 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; }
.ccp-hero-card p:last-child { margin-bottom: 0; }

.ccp-section { padding-block: 76px; }
.ccp-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.ccp-eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 850; color: var(--ccp-forest); }
.ccp-section-heading h2,
.entry-title,
.archive-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.ccp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ccp-card {
  background: var(--ccp-paper);
  border: 1px solid var(--ccp-line);
  border-radius: var(--ccp-radius);
  overflow: hidden;
  box-shadow: var(--ccp-shadow);
}
.ccp-card-image { aspect-ratio: 16 / 9; background: var(--ccp-celery-light); overflow: hidden; }
.ccp-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .28s ease; }
.ccp-card:hover .ccp-card-image img { transform: scale(1.02); }
.ccp-card-body { padding: 22px; }
.ccp-card-meta { margin: 0 0 8px; color: var(--ccp-forest); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.ccp-card h3 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; line-height: 1.15; }
.ccp-card h3 a { color: var(--ccp-ink); text-decoration: none; }
.ccp-card p:last-child { margin-bottom: 0; }

.ccp-feature-band { background: var(--ccp-paper); border-block: 1px solid var(--ccp-line); }
.ccp-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.ccp-feature { padding: 36px; border-right: 1px solid var(--ccp-line); }
.ccp-feature:last-child { border-right: 0; }
.ccp-feature-number { display: block; margin-bottom: 12px; font-family: Georgia, "Times New Roman", serif; font-size: 2.1rem; color: var(--ccp-gold); }
.ccp-feature h3 { margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }

.site-main { min-height: 50vh; }
.ccp-content-shell { width: min(calc(100% - 40px), 920px); margin-inline: auto; padding-block: 68px 88px; }
.entry-header { margin-bottom: 30px; }
.entry-content { font-size: 1.05rem; }
.entry-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: 1100px; }
.entry-content > .alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: Georgia, "Times New Roman", serif; line-height: 1.15; }
.entry-content h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-top: 2.2em; }
.entry-content blockquote { border-left: 4px solid var(--ccp-gold); padding: 10px 0 10px 24px; margin-block: 2rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }

.wp-block-button__link { background: var(--ccp-forest); border-radius: 999px; }
.wp-block-button__link:hover { background: var(--ccp-forest-dark); }

.ccp-post-list { display: grid; gap: 20px; }
.ccp-post-row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; background: var(--ccp-paper); border: 1px solid var(--ccp-line); border-radius: 16px; overflow: hidden; }
.ccp-post-row img { width: 100%; height: 100%; object-fit: cover; min-height: 160px; }
.ccp-post-row-body { padding: 22px 22px 22px 0; }
.ccp-post-row h2 { margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; }

.navigation.pagination { margin-top: 34px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--ccp-line); background: var(--ccp-paper); border-radius: 9px; text-decoration: none; }
.page-numbers.current { background: var(--ccp-forest); color: white; border-color: var(--ccp-forest); }

.site-footer { background: var(--ccp-ink); color: #dce4df; }
.ccp-footer-top { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 40px; padding-block: 56px; }
.site-footer h2, .site-footer h3 { color: var(--ccp-white); font-family: Georgia, "Times New Roman", serif; }
.site-footer a { color: var(--ccp-celery-light); }
.ccp-footer-menu { list-style: none; margin: 0; padding: 0; }
.ccp-footer-menu li + li { margin-top: 8px; }
.ccp-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 20px; font-size: .88rem; color: #b9c5be; }

input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea, select {
  width: 100%;
  border: 1px solid #bfc8c1;
  border-radius: 10px;
  padding: 11px 12px;
  background: var(--ccp-white);
  color: var(--ccp-ink);
}
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(138,168,109,.35); border-color: var(--ccp-forest); }
button, input[type="submit"] { background: var(--ccp-forest); color: white; border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 800; cursor: pointer; }
button:hover, input[type="submit"]:hover { background: var(--ccp-forest-dark); }

@media (max-width: 900px) {
  .ccp-menu-toggle { display: inline-flex; }
  .primary-navigation { display: none; position: absolute; left: 20px; right: 20px; top: calc(100% + 8px); background: var(--ccp-paper); border: 1px solid var(--ccp-line); border-radius: 14px; box-shadow: var(--ccp-shadow); padding: 10px; }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { display: block; }
  .primary-navigation a { border-radius: 8px; }
  .ccp-hero-inner { grid-template-columns: 1fr; min-height: auto; padding-block: 68px; }
  .ccp-hero-card { align-self: auto; max-width: 620px; }
  .ccp-grid, .ccp-feature-grid, .ccp-footer-top { grid-template-columns: 1fr; }
  .ccp-feature { border-right: 0; border-bottom: 1px solid var(--ccp-line); }
  .ccp-feature:last-child { border-bottom: 0; }
  .ccp-post-row { grid-template-columns: 1fr; }
  .ccp-post-row-body { padding: 0 22px 22px; }
}

@media (max-width: 640px) {
  .admin-bar .site-header { top: 46px; }
  .ccp-wrap { width: min(calc(100% - 28px), var(--ccp-content)); }
  .site-description { display: none; }
  .ccp-hero h1 { font-size: clamp(2.75rem, 15vw, 4.4rem); }
  .ccp-section { padding-block: 54px; }
  .ccp-section-heading { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
