/* The Beechies — responsive homepage */
:root {
  --plum: #281d35;
  --plum-soft: #392847;
  --plum-light: #5b4566;
  --cream: #fbf7f0;
  --paper: #f3ece3;
  --coral: #f08c7d;
  --coral-pale: #ffd0c5;
  --lilac: #c9b8d8;
  --ink: #2c2630;
  --muted: #746c76;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 1000; padding: .75rem 1rem; background: white; color: var(--plum); }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,247,240,.95); border-bottom: 1px solid rgba(40,29,53,.09); backdrop-filter: blur(16px); }
.nav-wrap { max-width: 1240px; height: 82px; min-height: 82px; box-sizing: border-box; padding: 0 5.5%; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--plum); }
.brand-logo { display: block; width: 72px; height: 72px; max-width: 72px; max-height: 72px; flex: 0 0 72px; object-fit: contain; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; position: relative; border: 1px solid var(--coral); border-radius: 50%; color: var(--plum); font-size: 1.25rem; }
.brand-mark span:last-child { position: absolute; right: -4px; bottom: -3px; color: #d66e68; font-size: 1rem; }
.brand-name { display: flex; flex-direction: column; font-size: .8rem; letter-spacing: .05em; line-height: 1.15; }
.brand-name strong, .footer-brand strong { font-size: 1.28rem; letter-spacing: -.04em; }
.brand-name small { margin-top: .25rem; color: var(--muted); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.7vw, 2.5rem); }
.site-nav a { text-decoration: none; font-size: .82rem; font-weight: 600; transition: color .2s ease; }
.site-nav a:hover, .footer-links a:hover { color: #b95e62; }
/* the current-page underline is animated in motion.css */
.site-nav .nav-cta { padding: .8rem 1.1rem; border: 1px solid rgba(40,29,53,.25); border-radius: 3px; }
.nav-cta span { padding-left: .4rem; color: #bd6b6a; }
.menu-toggle { display: none; border: 0; background: transparent; padding: .5rem; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--plum); }
.hero { position: relative; overflow: hidden; background: var(--plum); color: var(--cream); min-height: 630px; }

/* Photo-led homepage hero: place choirpicindex.png beside index.html */
.hero-photo {
  min-height: 650px;
  display: flex;
  align-items: center;
  isolation: isolate;
  background: #281d35;
}
.hero-photo-image,
.hero-photo-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-photo-image {
  z-index: -2;
  object-fit: cover;
  object-position: center 38%;
}
.hero-photo-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(30, 20, 39, .88) 0%, rgba(30, 20, 39, .70) 42%, rgba(30, 20, 39, .22) 100%),
    linear-gradient(0deg, rgba(30, 20, 39, .45) 0%, transparent 30%, rgba(30, 20, 39, .08) 100%);
}
.hero-photo-content {
  width: 100%;
  max-width: 1240px;
  margin: auto;
  padding: 6rem 5.5% 7rem;
  position: relative;
  z-index: 1;
}
.hero-photo-content .hero-lede { max-width: 480px; }
.hero-photo .hero-bottom { z-index: 2; }

.hero-inner { max-width: 1240px; min-height: 590px; padding: 80px 5.5% 70px; margin: auto; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 3rem; position: relative; z-index: 2; }
.hero-copy { max-width: 620px; }
.eyebrow { margin: 0 0 1.4rem; display: flex; align-items: center; gap: .7rem; color: var(--coral-pale); font-size: .7rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow-line { width: 30px; height: 1px; background: var(--coral); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.045em; line-height: 1.1; }
h1 { margin-bottom: 1.5rem; font-size: clamp(3.4rem, 6.1vw, 5.8rem); }
h1 em, h2 em { color: var(--coral); font-weight: 500; }
.hero-lede { max-width: 480px; color: #e1d8e5; font-size: 1.05rem; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 1.4rem; padding: 1rem 1.25rem; text-decoration: none; font-size: .83rem; font-weight: 700; border-radius: 3px; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-light { background: var(--coral-pale); color: var(--plum); }
.button-light:hover { background: white; }
.text-link { color: white; font-size: .83rem; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: .3rem; }
.text-link span { padding-left: .4rem; color: var(--coral); }
.hero-note { display: flex; gap: .8rem; align-items: center; margin-top: 3rem; color: #cfc3d4; font-size: .76rem; line-height: 1.6; }
.hero-note strong { color: white; font-weight: 600; }
.note-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: var(--coral); font-size: 1.3rem; }
.hero-art { min-height: 420px; display: grid; place-items: center; position: relative; isolation: isolate; }
.hero-art:before { content: ""; position: absolute; width: min(34vw, 390px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(240,140,125,.25), rgba(201,184,216,.07) 55%, transparent 70%); z-index: -1; }
.art-ring { position: absolute; border: 1px solid rgba(255,208,197,.24); border-radius: 50%; transform: rotate(-25deg); }
.ring-a { width: min(33vw, 370px); height: min(39vw, 435px); }
.ring-b { width: min(27vw, 305px); height: min(36vw, 390px); transform: rotate(38deg); border-color: rgba(201,184,216,.4); }
.ring-c { width: min(22vw, 250px); height: min(30vw, 330px); transform: rotate(67deg); border-color: rgba(240,140,125,.48); }
.art-disc { width: min(21vw, 235px); aspect-ratio: 1; border-radius: 50%; background: var(--coral-pale); color: var(--plum); display: flex; flex-direction: column; justify-content: center; align-items: center; box-shadow: 0 25px 80px rgba(0,0,0,.18); transform: rotate(-8deg); }
.disc-note { font-size: 4.2rem; line-height: 1.1; }
.disc-caption { text-align: center; font-family: var(--serif); font-size: 1.25rem; line-height: 1.15; }
.float-note { position: absolute; color: var(--coral); font-family: var(--serif); }
.note-a { top: 10%; right: 14%; font-size: 3.3rem; transform: rotate(12deg); }
.note-b { bottom: 12%; left: 10%; font-size: 2.8rem; color: var(--lilac); transform: rotate(-15deg); }
.note-c { top: 22%; left: 12%; font-size: 1.8rem; color: var(--coral-pale); }
.art-label { position: absolute; bottom: 2%; right: 0; color: #b8aabe; font-size: .57rem; letter-spacing: .2em; }
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.orb-one { width: 480px; height: 480px; top: -340px; right: -140px; border: 1px solid rgba(255,255,255,.08); }
.orb-two { width: 560px; height: 560px; bottom: -480px; left: -240px; border: 1px solid rgba(255,255,255,.08); }
.hero-bottom { position: absolute; z-index: 3; bottom: 0; left: 0; right: 0; min-height: 44px; padding: .75rem 5.5%; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.12); color: #b8aabe; font-size: .58rem; font-weight: 700; letter-spacing: .16em; }
.hero-bottom-right span { color: var(--coral); margin-left: .4rem; }
.quick-facts { max-width: 1240px; padding: 2.2rem 5.5%; margin: auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; border-bottom: 1px solid #e7ded6; }
.fact { display: flex; gap: 1rem; align-items: flex-start; }
.fact-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 50%; background: #f1e4df; color: #9f6268; font-size: 1.25rem; }
.fact div { display: flex; flex-direction: column; }
.fact-label, .detail-label { color: #9c7479; font-size: .63rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; }
.fact strong { margin-top: .25rem; font-size: .87rem; }
.fact small { color: var(--muted); font-size: .75rem; }
.section { max-width: 1240px; margin: auto; padding: 6.5rem 5.5%; }
.section-kicker { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #e4d9d0; color: #9b6c72; font-size: .65rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.section-kicker span { color: #a69aa6; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding: 4.2rem 0 4.7rem; }
h2 { margin-bottom: 1.5rem; font-size: clamp(2.6rem, 4.3vw, 4.4rem); }
.about-grid h2 em, .visit-copy h2 em { color: #b86d73; }
.about-copy { max-width: 540px; padding-top: .3rem; color: #665e68; font-size: .93rem; }
.about-copy p { margin-bottom: 1.1rem; }
.large-copy { color: var(--plum); font-family: var(--serif); font-size: 1.35rem; line-height: 1.5; }
.underlined-link { display: inline-flex; gap: .9rem; margin-top: .7rem; padding-bottom: .35rem; border-bottom: 1px solid #c68b8a; color: var(--plum); text-decoration: none; font-size: .82rem; font-weight: 700; }
.underlined-link span { color: #b86d73; }
.quote-band { display: flex; align-items: center; gap: 1.5rem; padding: 2.2rem 2.5rem; background: #f1e7df; position: relative; overflow: hidden; }
.quote-mark { color: #bd7b80; font-family: var(--serif); font-size: 4rem; line-height: .8; }
.quote-band p { margin: 0; font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 2rem); color: var(--plum); }
.quote-decoration { margin-left: auto; color: #bd7b80; font-size: 2rem; }
.music-section { background: var(--plum); color: var(--cream); }
.music-inner { max-width: 1240px; margin: auto; padding: 5.5rem 5.5% 5rem; }
.light-kicker { border-color: rgba(255,255,255,.16); color: var(--coral-pale); }
.light-kicker span { color: #a99bb0; }
.music-heading { display: grid; grid-template-columns: 1fr .65fr; gap: 4rem; align-items: end; padding: 3.5rem 0 3rem; }
.music-heading h2 { margin: 0; }
.music-heading h2 em { color: var(--coral); }
.music-heading > p { max-width: 400px; margin: 0 0 .35rem; color: #cfc4d5; font-size: .94rem; }
.music-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.music-card { min-height: 245px; padding: 1.6rem; position: relative; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.025); transition: transform .2s ease, background .2s ease; }
.music-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.06); }
.card-number { color: #a99bb0; font-size: .65rem; letter-spacing: .12em; }
.music-symbol { display: block; margin: 1.4rem 0 .8rem; color: var(--coral); font-size: 1.65rem; }
.music-card h3 { margin-bottom: .6rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.music-card p { margin: 0; color: #cfc4d5; font-size: .8rem; }
.music-footnote { margin: 1.5rem 0 0; color: #a99bb0; font-size: .75rem; }
.visit-section { padding-top: 6rem; padding-bottom: 6rem; }
.visit-grid { display: grid; grid-template-columns: 1fr .78fr; gap: 5rem; padding-top: 4rem; align-items: start; }
.visit-copy { max-width: 510px; }
.visit-copy .large-copy { margin-bottom: 1rem; }
.visit-copy > p:not(.large-copy) { color: #6d6470; font-size: .93rem; margin-bottom: 1.8rem; }
.button-dark { background: var(--plum); color: white; }
.button-dark:hover { background: #46304f; }
.visit-card { padding: 2rem; background: #f1e7df; border-top: 4px solid #c77b7d; }
.visit-card-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.5rem; border-bottom: 1px solid #ddcfc7; }
.visit-card-label { color: #98676c; font-size: .65rem; font-weight: 700; letter-spacing: .14em; }
.visit-star { color: #b86d73; font-size: 1.5rem; }
.visit-detail { padding: 1.2rem 0; border-bottom: 1px solid #ddcfc7; }
.visit-detail strong { display: block; margin-top: .35rem; color: var(--plum); font-size: 1rem; }
.visit-detail p { margin: .15rem 0 0; color: #6d6470; font-size: .82rem; }
.map-link { display: flex; justify-content: space-between; margin-top: 1.2rem; color: var(--plum); font-size: .82rem; font-weight: 700; text-decoration: none; }
.map-link span { color: #b86d73; }
.final-cta { position: relative; overflow: hidden; padding: 5.5rem 5.5%; background: #ead5d0; color: var(--plum); text-align: center; }
.final-cta .eyebrow { justify-content: center; color: #9b5e67; }
.final-cta h2 { margin-bottom: 1rem; font-size: clamp(2.7rem, 5vw, 4.8rem); }
.final-cta h2 em { color: #a85f69; }
.final-cta > p:not(.eyebrow) { margin-bottom: 1.6rem; color: #6b5665; }
.final-cta .button { background: var(--plum); color: white; }
.final-cta .button:hover { background: #46304f; }
.cta-spark { position: absolute; top: 1.8rem; right: 12%; color: rgba(168,95,105,.3); font-size: 4rem; transform: rotate(15deg); }
.site-footer { padding: 2.6rem 5.5% 2rem; background: #21172b; color: #d7cbdc; text-align: center; }
.footer-brand { color: white; text-decoration: none; font-family: var(--serif); font-size: 1rem; }
.footer-brand img { display: block; width: 92px; height: 92px; max-width: 92px; max-height: 92px; margin: 0 auto; object-fit: contain; }
.footer-brand strong { color: var(--coral-pale); }
.site-footer p { margin: .6rem 0 1.2rem; color: #b8aabe; font-size: .75rem; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.3rem; }
.footer-links a { color: #eee4ef; font-size: .75rem; text-decoration: none; }
.site-footer small { color: #9f91a7; font-size: .68rem; }
.footer-admin { color: #b8aabe; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.18); }
.footer-admin:hover { color: var(--coral-pale); }
@media (max-width: 900px) {
  .nav-wrap { min-height: 74px; }
  .menu-toggle { display: block; z-index: 3; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 1rem 5.5% 1.5rem; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid #e7ded6; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .9rem 0; }
  .site-nav .nav-cta { margin-top: .5rem; padding: .85rem 1rem; text-align: center; }
  .hero-inner { grid-template-columns: 1fr .8fr; gap: 1rem; padding-top: 65px; }
  h1 { font-size: clamp(3rem, 6vw, 4.6rem); }
  .hero-art { min-height: 350px; }
  .about-grid { gap: 2rem; }
  .visit-grid { gap: 2.5rem; }
}
@media (max-width: 650px) {
  .nav-wrap { height: 74px; min-height: 74px; gap: .6rem; }
  .brand-logo { width: 62px; height: 62px; max-width: 62px; max-height: 62px; flex-basis: 62px; }

  html { scroll-padding-top: 72px; }
  .nav-wrap { padding: 0 6%; }
  .hero-inner { display: flex; flex-direction: column; align-items: stretch; padding: 4rem 6% 3.5rem; gap: 1rem; }
  .hero { min-height: auto; }
  h1 { font-size: clamp(3.2rem, 13vw, 4.8rem); }
  .hero-lede { font-size: .96rem; }
  .hero-note { margin-top: 2rem; }
  .hero-art { min-height: 310px; margin-top: .5rem; }
  .art-ring { width: 245px; height: 280px; }
  .ring-b { width: 205px; height: 255px; }
  .ring-c { width: 165px; height: 215px; }
  .art-disc { width: 155px; }
  .disc-note { font-size: 3.2rem; }
  .disc-caption { font-size: 1.05rem; }
  .hero-art:before { width: 260px; }
  .note-a { right: 15%; }
  .art-label { bottom: 0; right: 4%; }
  .hero-bottom { position: relative; padding: .8rem 6%; font-size: .49rem; }
  .hero-bottom-right { display: none; }
  .quick-facts { padding: 1.5rem 6%; grid-template-columns: 1fr; gap: 1.4rem; }
  .section { padding: 4.2rem 6%; }
  .section-kicker { font-size: .57rem; }
  .about-grid, .music-heading, .visit-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .about-grid { padding: 2.8rem 0 3rem; }
  h2 { font-size: clamp(2.6rem, 10vw, 3.7rem); }
  .about-copy { font-size: .9rem; }
  .quote-band { padding: 1.6rem 1.2rem; gap: .8rem; }
  .quote-mark { font-size: 3rem; }
  .quote-decoration { font-size: 1.4rem; }
  .music-inner { padding: 4.2rem 6%; }
  .music-heading { padding: 2.8rem 0 2rem; }
  .music-cards { grid-template-columns: 1fr; }
  .music-card { min-height: auto; padding: 1.3rem; }
  .music-symbol { margin: .8rem 0 .4rem; }
  .visit-section { padding-top: 4.2rem; padding-bottom: 4.2rem; }
  .visit-grid { padding-top: 2.8rem; }
  .visit-card { padding: 1.4rem; }
  .final-cta { padding: 4.5rem 6%; }
  .cta-spark { top: .8rem; right: 7%; font-size: 2.8rem; }
  .site-footer { padding: 2.4rem 6% 1.8rem; }
}

@media (max-width: 650px) {
  .hero-photo { min-height: 640px; align-items: flex-start; }
  .hero-photo-image { object-position: center center; }
  .hero-photo-overlay {
    background:
      linear-gradient(90deg, rgba(30, 20, 39, .79) 0%, rgba(30, 20, 39, .53) 100%),
      linear-gradient(0deg, rgba(30, 20, 39, .58) 0%, transparent 75%);
  }
  .hero-photo-content { padding: 5rem 6% 6rem; }
  .hero-photo-content .hero-actions { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

[hidden] { display: none !important; }

/* ---------- Homepage diary teaser ---------- */
.diary-teaser-section { padding-top: 0; }
.section-kicker a { color: inherit; text-decoration: none; }
.section-kicker a:hover { color: #b95e62; }
.diary-teaser { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; padding-top: 3.6rem; align-items: start; }
.diary-teaser h2 { margin-bottom: 1rem; font-size: clamp(2.2rem, 3.6vw, 3.4rem); }
.diary-teaser h2 em { color: #b86d73; }
.diary-teaser-lede { margin: 0; max-width: 340px; color: #665e68; font-size: .93rem; }
.diary-teaser-list .underlined-link { margin-top: 1.4rem; }

@media (max-width: 900px) {
  .diary-teaser { gap: 2.5rem; }
}
@media (max-width: 650px) {
  .diary-teaser { grid-template-columns: 1fr; gap: 1.6rem; padding-top: 2.6rem; }
}

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 5rem; padding-top: 4rem; align-items: start; }
.contact-copy { max-width: 520px; }
.contact-copy h2 em { color: #b86d73; }
.contact-copy > p { color: #665e68; font-size: .93rem; margin-bottom: 1.1rem; }
.contact-details { margin-top: 2rem; border-top: 1px solid #e4d9d0; }
.contact-details .visit-detail:first-child { border-top: 0; }

.contact-form-wrap { padding: 2rem; background: #f1e7df; border-top: 4px solid #c77b7d; }
.contact-form h3 { margin: 0 0 1.6rem; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; margin-bottom: .4rem; color: var(--plum); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.form-field label span { color: #b86d73; }
.form-field input, .form-field textarea {
  width: 100%; padding: .8rem .9rem;
  background: #fff; color: var(--ink);
  border: 1px solid #ddcfc7; border-radius: 3px;
  font-family: var(--sans); font-size: .92rem; line-height: 1.5;
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--coral); outline-offset: 1px; border-color: var(--coral); }
.form-field textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form .button { width: 100%; border: 0; cursor: pointer; font-family: var(--sans); }
.contact-form .button:disabled { opacity: .6; cursor: progress; transform: none; }
.form-note { margin: .9rem 0 0; min-height: 1.2em; font-size: .8rem; line-height: 1.5; }
.form-note.is-ok { color: #4a7a5c; }
.form-note.is-error { color: #a85f69; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 900px) { .contact-grid { gap: 2.5rem; } }
@media (max-width: 650px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.6rem; }
  .contact-form-wrap { padding: 1.4rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Admin panel ---------- */
.admin-body { background: #f6f1ea; min-height: 100vh; }
.admin-login { display: grid; place-items: center; min-height: 100vh; padding: 2rem; }
.admin-login-card { width: 100%; max-width: 400px; padding: 2.4rem; background: #fff; border-top: 4px solid var(--coral); text-align: center; }
.admin-login-card img { width: 78px; height: 78px; object-fit: contain; }
.admin-login-card h1 { margin: 1rem 0 .4rem; font-family: var(--serif); font-size: 2.2rem; font-weight: 500; letter-spacing: -.04em; }
.admin-login-sub { margin-bottom: 1.8rem; color: var(--muted); font-size: .85rem; }
.admin-login-card .form-field { text-align: left; }
.admin-login-card .button { width: 100%; border: 0; cursor: pointer; font-family: var(--sans); }
.admin-login-card .button:disabled { opacity: .6; cursor: progress; }
.admin-back { display: inline-block; margin-top: 1.4rem; color: var(--muted); font-size: .78rem; text-decoration: none; }
.admin-back:hover { color: var(--plum); }

.admin-topbar { position: sticky; top: 0; z-index: 10; background: var(--plum); color: var(--cream); }
.admin-topbar-inner { max-width: 1180px; margin: auto; padding: 1rem 5.5%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-brand { display: flex; align-items: center; gap: .7rem; font-size: .85rem; font-weight: 600; }
.admin-brand img { width: 38px; height: 38px; object-fit: contain; }
.admin-actions { display: flex; align-items: center; gap: 1.2rem; }
.admin-actions .admin-back { margin: 0; color: #c9b8d8; }
.admin-btn { padding: .5rem .85rem; background: transparent; color: inherit; border: 1px solid rgba(255,255,255,.28); border-radius: 3px; font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .06em; cursor: pointer; }
.admin-btn:hover { background: rgba(255,255,255,.1); }
.admin-btn:disabled { opacity: .5; cursor: progress; }

.admin-body-inner { max-width: 1180px; margin: auto; padding: 2.5rem 5.5% 4rem; }
.admin-tabs { display: flex; gap: .5rem; margin-bottom: 1.6rem; border-bottom: 1px solid #e0d5cb; }
.admin-tab { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-family: var(--sans); font-size: .82rem; font-weight: 700; cursor: pointer; }
.admin-tab.is-active { color: var(--plum); border-bottom-color: var(--coral); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 .35rem; background: var(--coral); color: white; border-radius: 10px; font-size: .68rem; }

.admin-columns { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.5rem; align-items: start; }
.admin-card { padding: 1.6rem; background: #fff; border: 1px solid #e7ded6; }
.admin-card h2 { margin-bottom: 1.3rem; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; letter-spacing: -.02em; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.admin-card-head h2 { margin: 0; }
.admin-card-head .admin-btn { color: var(--plum); border-color: rgba(40,29,53,.25); }
.admin-card-head .admin-btn:hover { background: #f1e7df; }
.admin-card .button { border: 0; cursor: pointer; font-family: var(--sans); }
.admin-card .button:disabled { opacity: .6; cursor: progress; }

.admin-list { display: grid; gap: .7rem; }
.admin-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; background: #faf6f1; border-left: 3px solid #ddcfc7; }
.admin-item-actions { display: flex; flex: 0 0 auto; gap: .5rem; }
.admin-item.is-superadmin { border-left-color: var(--coral); background: #fdf3f0; }
.admin-role { display: inline-block; padding: .2rem .5rem; background: var(--coral); color: #fff; border-radius: 2px; font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; vertical-align: middle; }
.admin-locked { flex: 0 0 auto; color: #a69aa6; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.admin-form-actions { display: flex; align-items: center; gap: .75rem; }
.admin-btn-ghost { color: var(--muted); border-color: #ddcfc7; }
.admin-btn-ghost:hover { background: #f1e7df; color: var(--plum); }
.admin-hint { margin: -.6rem 0 1.3rem; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.form-hint { display: block; margin-top: .35rem; color: var(--muted); font-size: .68rem; }
.admin-item-main { min-width: 0; }
.admin-item strong { display: block; color: var(--plum); font-size: .92rem; }
.admin-item-meta { display: block; color: var(--muted); font-size: .74rem; }
.admin-item strong .admin-item-meta { font-weight: 400; }
.admin-message { border-left-color: var(--coral); background: #fff; }
.admin-message.is-unread { background: #fdf3f0; }
.admin-message-body { margin: .6rem 0 0; color: #4a434e; font-size: .86rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-btn-danger { flex: 0 0 auto; color: #a85f69; border-color: rgba(168,95,105,.4); }
.admin-btn-danger:hover { background: #fbeae7; }
.admin-empty { margin: 0; padding: 1.6rem 0; color: var(--muted); font-size: .86rem; }

/* ---------- Audit log ---------- */
.audit-item { align-items: flex-start; }
.audit-target { display: block; margin-top: .25rem; color: var(--plum); font-size: .85rem; font-weight: 600; }
.audit-details { display: block; margin-top: .15rem; color: var(--muted); font-size: .75rem; }
.audit-when { flex: 0 0 auto; text-align: right; line-height: 1.5; white-space: nowrap; }
.audit-item.is-alert { border-left-color: #c0392b; background: #fdf0ee; }
.audit-item.is-alert strong { color: #a3302a; }
.audit-item.is-warn { border-left-color: #d89b4a; background: #fdf6ec; }

@media (max-width: 650px) {
  .audit-when { text-align: left; }
}

@media (max-width: 900px) { .admin-columns { grid-template-columns: 1fr; } }
@media (max-width: 650px) {
  .admin-body-inner { padding: 1.8rem 6% 3rem; }
  .admin-topbar-inner { padding: .9rem 6%; }
  .admin-item { flex-direction: column; align-items: stretch; }
  .admin-item .admin-item-actions { align-self: flex-start; }
  .admin-locked { align-self: flex-start; }
}

/* ---------- 404 page ---------- */
.notfound-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.notfound-card {
  display: block; padding: 1.8rem 1.6rem;
  background: #fff; border: 1px solid #e7ded6; border-left: 4px solid var(--coral);
  text-decoration: none; color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.notfound-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(40,29,53,.4); border-left-color: var(--plum); }
.notfound-card h2 { margin: .8rem 0 .5rem; font-size: 1.5rem; }
.notfound-card p { margin: 0; color: var(--muted); font-size: .85rem; }
@media (max-width: 650px) { .notfound-links { grid-template-columns: 1fr; } }

/* ---------- Events page ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--plum); color: var(--cream); }
.page-hero-inner { max-width: 1240px; margin: auto; padding: 5.5rem 5.5% 6.5rem; }
.page-hero h1 { margin-bottom: 1.2rem; }
.page-hero h1 em { color: var(--coral); }

.events-group { padding-top: 3.2rem; }
.events-group h2 { margin-bottom: 1.8rem; font-size: clamp(1.9rem, 3vw, 2.6rem); }
.events-list { display: grid; gap: 1rem; }

.event-card {
  display: grid; grid-template-columns: 104px 1fr; gap: 1.6rem;
  padding: 1.6rem; background: #fff;
  border: 1px solid #e7ded6; border-left: 4px solid var(--coral);
  transition: transform .2s ease, box-shadow .2s ease;
}
.event-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(40,29,53,.10); }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 104px; padding: .6rem; background: #f1e7df; color: var(--plum); text-align: center; }
.event-day { font-family: var(--serif); font-size: 2rem; line-height: 1; }
.event-month { margin-top: .25rem; color: #9c7479; font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.event-year { color: #a69aa6; font-size: .58rem; letter-spacing: .1em; }
.event-badge { display: inline-block; margin-bottom: .6rem; padding: .3rem .6rem; background: #f1e4df; color: #9f6268; font-size: .58rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.event-body h3 { margin: 0 0 .55rem; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
.event-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; margin-bottom: .7rem; color: #9c7479; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.event-body p { margin: 0; color: #665e68; font-size: .9rem; }

.event-card.is-past { border-left-color: #cbbec9; background: #f7f2ec; }
.event-card.is-past .event-date { background: #ece3da; color: #8a8090; }
.event-card.is-past .event-badge { background: #e7dfd6; color: #8a8090; }
.event-card.is-past h3 { color: #6d6470; }
.event-card.is-past .event-body p { color: #8a8090; }

.events-empty { max-width: 520px; margin: 0; padding: 2.6rem 0; color: var(--muted); font-size: .92rem; }

/* ---------- Recurring events ---------- */
.event-card.is-recurring { border-left-color: var(--lilac); background: linear-gradient(180deg, #fdfbff, #fff); }
.event-card.is-recurring .event-year { letter-spacing: .18em; text-transform: uppercase; }
.event-repeat { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; margin-bottom: .6rem; }
.repeat-pill { display: inline-block; padding: .28rem .65rem; background: #efe7f5; color: #6b5183; border-radius: 999px; font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.event-when { color: var(--muted); font-size: .76rem; }

/* ---------- Admin: repeat controls ---------- */
.recurrence-field { margin: 0 0 1.1rem; padding: 1rem 1rem .2rem; border: 1px solid #e7ded6; background: #faf6f1; }
.recurrence-field legend { padding: 0 .4rem; color: var(--plum); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.recurrence-field .form-field:last-of-type { margin-bottom: .9rem; }
.field-label { display: block; margin-bottom: .4rem; color: var(--plum); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.form-field select, .form-field input[type="number"], .form-field input[type="date"] {
  width: 100%; padding: .8rem .9rem;
  background: #fff; color: var(--ink);
  border: 1px solid #ddcfc7; border-radius: 3px;
  font-family: var(--sans); font-size: .92rem;
}
.form-field select:focus, .form-field input[type="number"]:focus, .form-field input[type="date"]:focus { outline: 2px solid var(--coral); outline-offset: 1px; border-color: var(--coral); }
.form-field .muted { color: var(--muted); font-weight: 400; letter-spacing: .04em; text-transform: none; }
.day-picker { display: flex; flex-wrap: wrap; gap: .4rem; }
.day-picker label { position: relative; margin: 0; }
.day-picker input { position: absolute; opacity: 0; width: 0; height: 0; }
.day-picker span {
  display: grid; place-items: center; width: 44px; height: 38px;
  background: #fff; border: 1px solid #ddcfc7; border-radius: 3px;
  color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.day-picker label:hover span { border-color: var(--coral); color: var(--plum); }
.day-picker input:checked + span { background: var(--plum); border-color: var(--plum); color: var(--cream); }
.day-picker input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.repeat-tag { display: inline-block; margin-right: .4rem; padding: .15rem .45rem; background: #efe7f5; color: #6b5183; border-radius: 2px; font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.admin-item.is-recurring { border-left-color: var(--lilac); }
.events-status { display: flex; align-items: center; gap: .7rem; margin: 0; padding: 2.4rem 0; color: var(--muted); font-size: .9rem; }
.events-status.is-error { color: #a85f69; }
.status-dot { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* ---------- Events page: small screens ---------- */
@media (max-width: 650px) {
  .page-hero-inner { padding: 3.8rem 6% 4.8rem; }
  .event-card { grid-template-columns: 1fr; gap: 1.1rem; padding: 1.3rem; }
  .event-date { flex-direction: row; gap: .6rem; justify-content: flex-start; min-height: 0; padding: .6rem .9rem; text-align: left; }
  .event-day { font-size: 1.5rem; }
  .event-month { margin-top: 0; }
  .events-group { padding-top: 2.6rem; }
}
