/* =========================================================================
   Forest City Dance Circle
   "Folk-art twilight" — a day↔night cycle, palette drawn from the logo.
   ========================================================================= */

:root {
  --night:       #211d2b;   /* deep green-plum twilight (base)        */
  --night-2:     #2d2541;   /* plum-tinted depth                      */
  --forest:      #3c5a42;   /* logo green                             */
  --forest-deep: #29402f;
  --moss:        #92ad75;   /* light green for text on dark           */
  --rose:        #c08ea0;   /* dusty mauve — the plum dancer          */
  --rose-deep:   #6e5364;
  --ember:       #e0a948;   /* firelight gold — moon glow / bonfire   */
  --ember-soft:  #eccb84;
  --linen:       #f4ead2;   /* cream dress / paper / daylight         */
  --linen-2:     #ece0c2;
  --ink:         #2b2733;   /* text on linen                          */
  --ink-soft:    #5d5566;

  --ring: 0 0 0 3px rgba(224,169,72,.55);
  --logo: url("assets/logo-mark.png");
  --coven: url("assets/hero-cat.svg");
  --flourish: url("assets/flourish.svg");
  --cat-sit: url("assets/cat-sit.svg");
  --cat-moon: url("assets/cat-moon.svg");
  --emblem: url("assets/emblem.png");
  --shadow-card: 0 18px 44px rgba(33,29,43,.14);
  --shadow-deep: 0 26px 60px rgba(20,16,30,.45);

  --maxw: 1180px;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* offset in-page anchors so section tops clear the sticky header */
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---- Type scale ---------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.02;
  margin: 0 0 .55em;
  letter-spacing: -.015em;
  color: var(--forest-deep);
  font-optical-sizing: auto;
}
h1 { font-size: clamp(3rem, 7vw, 5.6rem); font-weight: 600; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 600; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--body);
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--rose-deep);
  margin: 0 0 18px;
}
.eyebrow .phase { flex: 0 0 auto; color: var(--ember); }

/* ---- Skip link & focus --------------------------------------------------- */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ember); color: var(--night);
  padding: 12px 18px; border-radius: 0 0 12px 0; font-weight: 700;
}
.skip:focus { left: 0; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
/* main is a skip-link target (tabindex=-1); don't ring the whole landmark */
main:focus, main:focus-visible { outline: none; box-shadow: none; }

/* ---- Layout shells ------------------------------------------------------- */
.wrap { width: min(100% - 12vw, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(70px, 9vw, 130px) 0; position: relative; }

/* day/night surfaces */
.night {
  background:
    radial-gradient(120% 80% at 78% -10%, rgba(110,83,100,.55), transparent 60%),
    radial-gradient(90% 70% at 12% 110%, rgba(60,90,66,.45), transparent 60%),
    linear-gradient(170deg, var(--night-2), var(--night) 62%);
  color: var(--linen);
}
.night h1, .night h2, .night h3 { color: var(--linen); }
.night .eyebrow { color: var(--ember-soft); }
.tint { background: linear-gradient(180deg, var(--linen), var(--linen-2)); }
.section-crown { grid-column: 1 / -1; display: grid; place-items: center; margin-bottom: clamp(18px, 3vw, 36px); }
.section-crown .flourish { width: clamp(96px, 12vw, 132px); aspect-ratio: 1; background: var(--flourish) center/contain no-repeat; opacity: .9; }

/* Scherenschnitt hill divider sitting at the top of a section */
.ridge { display: block; width: 100%; height: clamp(40px, 6vw, 80px); margin-bottom: -1px; }
.ridge + .section, .ridge + .night { padding-top: clamp(20px, 4vw, 50px); }

/* =========================================================================
   Header / navigation
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 12px clamp(18px, 6vw, 64px);
  background: rgba(33,29,43,.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(224,169,72,.16);
  color: var(--linen);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--linen); }
.brand-emblem {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%;
  background: var(--emblem) center / 82% no-repeat, #f4ead2;
  box-shadow: 0 2px 10px rgba(0,0,0,.28), inset 0 0 0 1px rgba(38,33,46,.08);
}
.brand .wordmark { font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: .95; }
.brand .wordmark small {
  display: block; font-family: var(--body); font-weight: 600;
  font-size: .64rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ember-soft); margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; padding: 9px 13px; border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--linen); opacity: .82;
  transition: opacity .2s, background .2s;
}
.nav a:hover { opacity: 1; background: rgba(244,234,210,.1); }
.nav a.active { opacity: 1; background: rgba(244,234,210,.08); box-shadow: inset 0 -2px 0 var(--ember); }
.nav .pill.active, .nav .pill.solid.active { box-shadow: none; }
.nav .pill { border: 1px solid rgba(244,234,210,.4); opacity: 1; }
.nav .pill.solid { background: var(--ember); border-color: var(--ember); color: var(--night); }
.nav .pill.solid:hover { background: var(--ember-soft); }

.nav-toggle {
  display: none; width: 46px; height: 42px; border: 1px solid rgba(244,234,210,.4);
  border-radius: 12px; background: transparent; cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; margin: 0 auto;
  background: var(--linen); border-radius: 2px; transition: transform .25s, opacity .2s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================================
   Hero
   ========================================================================= */
.hero { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 56px) 0; }
.hero .wrap {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.04fr .96fr; align-items: center;
  gap: clamp(24px, 4vw, 60px); min-height: calc(100vh - 150px);
}
.hero-copy { max-width: 620px; }
.hero h1 { margin-bottom: .2em; }
.hero h1 .swash { font-style: italic; font-weight: 400; color: var(--ember-soft); }
.lede { font-size: clamp(1.12rem, 1.6vw, 1.4rem); color: var(--linen); opacity: .9; max-width: 50ch; }
.tagline {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--ember-soft); margin-top: 6px;
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* hero stage — the coven framed by the moon */
.stage { width: 100%; display: grid; place-items: center; }
.moon-disc {
  position: relative; width: min(100%, 460px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #f8f0de, #efe3c6 78%);
  box-shadow: 0 34px 80px rgba(0,0,0,.5), 0 0 0 10px rgba(244,234,210,.05),
              inset 0 -20px 46px rgba(110,83,100,.14);
}
.moon-disc::before {
  content: ""; position: absolute; inset: -16%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(224,169,72,.16), transparent 64%);
}
.coven { position: absolute; inset: 6%; background: var(--coven) center/contain no-repeat; }
.disc-stars { position: absolute; inset: -7%; width: 114%; height: 114%; overflow: visible; }
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; gap: 18px; }
  .stage { max-width: 420px; margin-inline: auto; }
}

/* =========================================================================
   Buttons
   ========================================================================= */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--body); font-weight: 700; font-size: .98rem; text-decoration: none;
  cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); }
.button.gold  { background: var(--ember); color: var(--night); box-shadow: 0 10px 24px rgba(224,169,72,.3); }
.button.gold:hover { background: var(--ember-soft); }
.button.green { background: var(--forest); color: var(--linen); }
.button.green:hover { background: var(--forest-deep); }
.button.ghost { background: transparent; color: var(--linen); border-color: rgba(244,234,210,.45); }
.button.ghost:hover { background: rgba(244,234,210,.1); }

/* =========================================================================
   Content blocks
   ========================================================================= */
.lead { font-size: clamp(1.15rem, 1.7vw, 1.4rem); max-width: 62ch; color: var(--ink-soft); }
.night .lead { color: rgba(244,234,210,.82); }
.measure { max-width: 64ch; }

/* split two-column */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.split.wide-left { grid-template-columns: 1.1fr .9fr; }

/* folk panels (replaces floating white cards) */
.panels { display: grid; gap: 22px; margin-top: 44px; }
.panels.three { grid-template-columns: repeat(3, 1fr); }
.panel {
  position: relative; padding: 34px 30px; border-radius: 4px;
  background: var(--linen);
  border: 1px solid rgba(41,64,47,.16);
  box-shadow: var(--shadow-card);
}
.panel::before {
  content: ""; position: absolute; inset: 7px; border-radius: 2px;
  border: 1px solid rgba(41,64,47,.18); pointer-events: none;
}
.panel .mark { color: var(--ember); margin-bottom: 16px; }
.panel h3 { color: var(--forest-deep); }
.panel p { color: var(--ink-soft); margin-bottom: 0; }
.panel .more {
  display: inline-block; margin-top: 18px; font-weight: 700; color: var(--forest);
  text-decoration: none; border-bottom: 2px solid var(--ember); padding-bottom: 2px;
}
.panel .more:hover { color: var(--forest-deep); }

/* on-night list (tradition) */
.scroll-list { display: grid; gap: 14px; }
.scroll-list article {
  padding: 24px 26px; border-radius: 4px;
  background: rgba(244,234,210,.06);
  border: 1px solid rgba(244,234,210,.16);
}
.scroll-list h3 { color: var(--ember-soft); margin-bottom: 6px; }
.scroll-list p { color: rgba(244,234,210,.78); margin-bottom: 0; }

/* impact strip */
.impact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 44px; border-radius: 6px; overflow: hidden; }
.impact div { padding: 38px 32px; background: var(--forest); color: var(--linen); }
.impact div:nth-child(2) { background: var(--forest-deep); }
.impact strong { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--ember-soft); margin-bottom: 10px; }
.impact span { color: rgba(244,234,210,.82); font-size: .98rem; }

/* checklist */
.checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.checklist li { position: relative; padding-left: 30px; margin: 12px 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 13px; height: 13px;
  border-radius: 50%; background: radial-gradient(circle at 32% 32%, var(--ember-soft), var(--ember));
  box-shadow: 0 0 0 4px rgba(224,169,72,.18);
}
.night .checklist li { color: rgba(244,234,210,.86); }

/* events */
.events-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 40px; }
.event {
  padding: 30px; border-radius: 4px; background: var(--linen);
  border: 1px solid rgba(41,64,47,.16); box-shadow: var(--shadow-card);
  display: grid; gap: 8px;
}
.event time, .event .when {
  font-family: var(--body); font-weight: 700; font-size: .76rem;
  text-transform: uppercase; letter-spacing: .16em; color: var(--rose-deep);
}
.event h3 { margin: 0; color: var(--forest-deep); }
.event p { margin: 0; color: var(--ink-soft); }

/* support card */
.support-card {
  padding: 36px; border-radius: 6px; display: grid; gap: 12px; align-content: center;
  background: rgba(244,234,210,.07); border: 1px solid rgba(244,234,210,.18);
}
.support-card h3 { color: var(--ember-soft); }
.support-card .button { width: 100%; }
.notice {
  border-left: 3px solid var(--ember); padding: 4px 0 4px 18px;
  color: rgba(244,234,210,.74); font-size: .95rem;
}

/* =========================================================================
   Forms
   ========================================================================= */
.form {
  display: grid; gap: 16px; padding: 34px; border-radius: 6px;
  background: var(--linen); border: 1px solid rgba(41,64,47,.16); box-shadow: var(--shadow-card);
}
.form.on-night { background: rgba(244,234,210,.96); }
.form h3 { margin-bottom: 4px; color: var(--forest-deep); }
.field { display: grid; gap: 7px; }
.field label { font-weight: 700; font-size: .92rem; color: var(--forest-deep); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink);
  padding: 13px 15px; border-radius: 10px;
  background: #fffdf7; border: 1px solid rgba(41,64,47,.28);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(224,169,72,.22);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .err { color: #a23a3a; font-size: .82rem; min-height: 1em; font-weight: 600; }
.form-note { font-size: .86rem; color: var(--ink-soft); margin: 0; }
.form-status {
  display: none; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 10px;
  background: rgba(60,90,66,.12); border: 1px solid rgba(60,90,66,.3);
  color: var(--forest-deep); font-weight: 600;
}
.form-status.show { display: flex; }
.contact-form { max-width: 760px; margin: 36px auto 0; text-align: left; }

.contact { text-align: center; }
.contact .eyebrow { justify-content: center; }
.center-measure { max-width: 60ch; margin-inline: auto; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { text-align: center; padding: clamp(56px, 7vw, 84px) 0; }
.site-footer .logo-badge {
  width: 156px; height: 156px; border-radius: 50%; margin: 0 auto 24px;
  display: grid; place-items: center; background: var(--linen);
  box-shadow: 0 18px 34px rgba(0,0,0,.4), 0 0 0 8px rgba(244,234,210,.08);
}
.site-footer .logo-badge .footer-emblem { width: 122px; height: 122px;
  background: var(--logo) center/contain no-repeat; }
.site-footer .belong { font-family: var(--display); font-style: italic; font-size: 1.5rem; color: var(--ember-soft); margin-top: 18px; }
.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin-top: 22px; font-size: .9rem; }
.site-footer .foot-links a { color: rgba(244,234,210,.8); text-decoration: none; }
.site-footer .foot-links a:hover { color: var(--ember-soft); }

/* social icon row */
.site-footer .socials { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.site-footer .socials a {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  color: var(--linen); border: 1px solid rgba(244,234,210,.28); background: rgba(244,234,210,.04);
  transition: color .2s, background .2s, border-color .2s, transform .15s;
}
.site-footer .socials a:hover,
.site-footer .socials a:focus-visible {
  color: var(--night); background: var(--ember); border-color: var(--ember); transform: translateY(-2px);
}
.site-footer .socials svg { width: 19px; height: 19px; fill: currentColor; display: block; }
.site-footer .fine { color: rgba(244,234,210,.62); font-size: .82rem; margin-top: 22px; }

/* black-cat familiars (from the witchy SVG set) */
.familiar {
  position: absolute; right: 5%; bottom: 0; z-index: 1; pointer-events: none;
  width: clamp(96px, 11vw, 150px); aspect-ratio: 1;
  background: var(--cat-sit) bottom center / contain no-repeat;
  opacity: .92; transform: scaleX(-1);   /* face inward */
}
.foot-cat {
  display: block; width: 78px; height: 78px; margin: 26px auto 0;
  background: var(--cat-moon) center / contain no-repeat; opacity: .85;
}
@media (max-width: 760px) { .familiar { display: none; } }

/* =========================================================================
   Motion — the dance
   ========================================================================= */
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes drift   { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.starring { transform-box: fill-box; transform-origin: center; animation: drift 120s linear infinite; }
.twinkle  { animation: twinkle 3.4s ease-in-out infinite; }
.twinkle.t2 { animation-delay: -1.1s; } .twinkle.t3 { animation-delay: -2.2s; }
.twinkle.t4 { animation-delay: -.7s; }  .twinkle.t5 { animation-delay: -1.8s; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 6px;
    padding: 18px clamp(18px, 6vw, 64px) 26px;
    background: rgba(33,29,43,.97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(224,169,72,.2);
    transform: translateY(-130%); visibility: hidden;
    transition: transform .3s ease, visibility .3s ease; box-shadow: var(--shadow-deep);
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav a { padding: 13px 14px; font-size: 1rem; opacity: 1; }
  .nav .pill { text-align: center; }
  .nav-toggle { display: block; }
  .split, .panels.three, .impact, .events-list { grid-template-columns: 1fr; }
  .impact { gap: 10px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .panel, .form, .event { padding: 24px; }
  .actions .button { flex: 1 1 100%; }
}

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

/* =========================================================================
   UX audit additions — mobile-menu scrim, events empty state
   ========================================================================= */

/* Dim + block the page behind the open mobile menu so content beneath the
   dropdown can't be mis-tapped and the page can't scroll under it. */
.nav-scrim { display: none; }
@media (max-width: 900px) {
  .nav-scrim {
    position: fixed; inset: 0; z-index: 35; display: block;
    background: rgba(20,16,30,.55);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
  }
  .nav-scrim.open { opacity: 1; visibility: visible; }
}

/* Events: intentional empty state spans the full row and gets a CTA link */
.event-empty { grid-column: 1 / -1; }
.event .more {
  display: inline-block; margin-top: 8px; justify-self: start; font-weight: 700;
  color: var(--forest); text-decoration: none;
  border-bottom: 2px solid var(--ember); padding-bottom: 2px;
}
.event .more:hover { color: var(--forest-deep); }
