/* Camp MJC — professional static site (original design) */
:root {
  --ink: #142033;
  --muted: #5a6678;
  --paper: #f7f8fa;
  --white: #ffffff;
  --line: #e2e6ec;
  --navy: #13233d;
  --navy-soft: #1c3358;
  --accent: #0d8a92;
  --accent-soft: #e7f5f6;
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --max: 1080px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6rem;
  color: var(--ink);
}

p {
  margin: 0 0 1rem;
}

.shell {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.kicker {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.kicker.dark {
  color: var(--accent);
}

.kicker.on-dark {
  color: rgba(255, 255, 255, 0.65);
}

.lede {
  max-width: 38rem;
  color: var(--muted);
  margin: 0;
}

.lede.on-dark {
  color: rgba(255, 255, 255, 0.72);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(247, 248, 250, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.5rem, var(--max));
}

.brand {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}

.brand img {
  height: 2.5rem;
  width: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.primary-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.primary-nav a:hover {
  color: var(--accent);
}

.nav-cta {
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white) !important;
}

.nav-cta:hover {
  background: var(--navy-soft);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88svh, 820px);
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(12, 24, 42, 0.88) 0%, rgba(12, 24, 42, 0.55) 48%, rgba(12, 24, 42, 0.28) 100%),
    linear-gradient(0deg, rgba(12, 24, 42, 0.7) 0%, transparent 45%);
}

.hero-panel {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.5rem;
  max-width: 38rem;
  margin-left: max(1.25rem, calc((100% - var(--max)) / 2));
  margin-right: auto;
  animation: rise 0.85s var(--ease) both;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--white);
  margin-bottom: 0.85rem;
}

.hero-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.facts dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.3rem;
}

.facts dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2,
.enroll-grid h2,
.mta-body h2,
.staff-grid h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}

.section-enroll {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.enroll-grid {
  display: grid;
  gap: 2rem;
  align-items: end;
}

.enroll-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-soft);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: #c5ccd6;
  background: var(--paper);
  color: var(--ink);
}

.resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.resource {
  display: grid;
  gap: 0.25rem;
  padding: 1.25rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.resource:hover,
.resource:focus-visible {
  border-color: #b7dfe2;
  background: var(--accent-soft);
  outline: none;
}

.resource-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}

.resource-desc {
  font-size: 0.92rem;
  color: var(--muted);
}

.section-mta {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.mta-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.mta-photo {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.mta-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.detail-list {
  list-style: none;
  margin: 1.4rem 0 1.6rem;
  padding: 0;
  border-top: 1px solid var(--line);
}

.detail-list li {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink);
}

.detail-list span {
  min-width: 6.5rem;
  color: var(--muted);
  font-weight: 600;
}

.section-staff {
  background: var(--navy);
  color: var(--white);
}

.section-staff h2 {
  color: var(--white);
}

.staff-grid {
  display: grid;
  gap: 1.75rem;
}

.staff-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.staff-links a {
  display: block;
  padding: 0.9rem 0;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.staff-links a:hover {
  color: #9fd8dc;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.25rem;
}

.contact-grid h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.contact-grid p {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.contact-grid a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid #c5d9db;
}

.contact-grid a:hover {
  color: var(--accent);
}

.site-footer {
  background: #0d1829;
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0;
  font-size: 0.92rem;
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.site-footer strong {
  display: block;
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.site-footer p {
  margin: 0;
  max-width: 40rem;
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Subpages */
.subpage {
  min-height: 100vh;
  background: var(--paper);
}

.subpage-header {
  background: var(--navy);
  color: var(--white);
  padding: 1.35rem 0;
}

.subpage-header-inner {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.subpage-header h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.subpage-back {
  color: var(--white);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
}

.subpage-back:hover {
  background: rgba(255, 255, 255, 0.08);
}

.subpage-main {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 2.25rem 0 3.5rem;
}

.media-grid {
  display: grid;
  gap: 1.25rem;
}

.media-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.media-card a {
  display: block;
}

.media-card figcaption {
  padding: 0.85rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 760px) {
  .enroll-grid,
  .mta-grid,
  .staff-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
  }

  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .resource-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-block;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) + 0.5rem);
    right: 1.25rem;
    left: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(20, 32, 51, 0.1);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 0.85rem 0.9rem;
    border-radius: 8px;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.25rem;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 1.75rem, var(--max));
  }

  .hero-panel {
    margin-left: 0;
    width: min(100% - 1.75rem, var(--max));
    padding: 3.5rem 0 2.5rem;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .enroll-btns {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.25rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-panel {
    animation: none;
  }
}
