/* /community-events. The letterboard is the page's own piece: live text set like the changeable sign outside a local business. Everything else uses the site's tokens, type and shared components. */

/* Hero: the illustration fills the section and is anchored bottom right, so the copy sits on its calm navy sky. */
.ce-hero{position:relative;overflow:hidden;isolation:isolate;display:flex;align-items:center;min-height:clamp(640px,92svh,880px);background:var(--navy)}
.ce-hero__art{position:absolute;inset:0;z-index:0}
.ce-hero__art img{width:100%;height:100%;object-fit:cover;object-position:100% 100%}
.ce-hero:before{content:'';position:absolute;z-index:1;inset:0;background:linear-gradient(90deg,#07122be6,#07122bb3 34%,#07122b00 60%);pointer-events:none}
.ce-hero:after{content:'';position:absolute;z-index:1;inset:auto 0 0;height:90px;background:linear-gradient(#07122b00,var(--navy));pointer-events:none}
.ce-hero__inner{position:relative;z-index:2;width:100%;padding-top:130px;padding-bottom:150px}
.ce-hero__copy{max-width:620px}
.ce-hero h1{font-size:clamp(42px,4.5vw,64px);line-height:1;margin-bottom:20px}
.ce-hero .lead{max-width:500px;font-size:18px;color:#d8e0f2}

/* The sign: a brand cap over a lit board, like the changeable sign at the road. */
.ce-upcoming{padding-top:40px}
.ce-board{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr);gap:clamp(36px,6vw,80px);align-items:center;scroll-margin-top:110px}
.ce-sign{--tile:clamp(30px,3.7vw,46px);--row:calc(var(--tile)*1.24);--rail:#c7b28a;position:relative;padding:14px;border-radius:10px;background:#16264f;box-shadow:0 0 0 2px #0b1238,0 0 0 3px #adceea2e,0 34px 60px -30px #000000d9,0 0 70px -24px #f4a05a80}
.ce-sign:before,.ce-sign:after{content:'';position:absolute;top:50%;width:6px;height:6px;margin-top:-3px;border-radius:50%;background:#5f76ad}
.ce-sign:before{left:4px}.ce-sign:after{right:4px}
.ce-sign__board{padding:16px 14px;border-radius:4px;background:repeating-linear-gradient(180deg,#0000 0 calc(var(--row) - 3px),var(--rail) calc(var(--row) - 3px) var(--row)) content-box,linear-gradient(180deg,#fff8e8,#ffefcc);box-shadow:inset 0 0 26px #f4a05a59}
.ce-sign__logo{display:block;width:auto;height:clamp(58px,6vw,78px);margin:0 auto 12px}
.ce-sign__line{display:flex;flex-wrap:wrap;justify-content:center;column-gap:calc(var(--tile)*.42);margin:0}
.ce-word{display:inline-flex}
.ce-tile{display:inline-grid;place-items:center;height:var(--row);min-width:.5em;padding:0 .045em;font:800 var(--tile)/1 Bricolage,Space,sans-serif;color:#0b1238}
/* Hand-set letters never sit quite straight. */
.ce-tile:nth-child(3n){transform:rotate(-1.4deg)}
.ce-tile:nth-child(4n+1){transform:translateY(1px) rotate(1deg)}
.ce-tile:nth-child(7n+2){transform:translateY(-1px)}

.ce-board__copy .eyebrow{color:var(--gold)}
.ce-board__copy h2{font-size:clamp(32px,3.4vw,46px);text-wrap:balance}
.ce-board__copy .lead{font-size:18px;margin:16px 0 22px;color:#c9d4ea}
.ce-follow{display:flex;flex-wrap:wrap;gap:12px}

/* Event list */
.ce-events{list-style:none;display:grid;gap:14px;margin:clamp(44px,6vw,72px) 0 0;padding:0}
.ce-event{display:grid;grid-template-columns:92px minmax(0,1fr);gap:clamp(18px,3vw,30px);align-items:start;padding:clamp(18px,2.6vw,26px);border:1px solid #adceea2e;border-radius:16px;background:#0d1d4099;scroll-margin-top:110px}
.ce-date{display:grid;justify-items:center;padding:10px 6px 11px;border-radius:6px;background:linear-gradient(180deg,#fff8e8,#ffefcc);color:#0b1238;line-height:1.1}
.ce-date__weekday,.ce-date__month{font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.ce-date__day{font:800 38px/1.05 Bricolage,Space,sans-serif}
.ce-event h3{font-size:clamp(23px,2.4vw,28px)}
.ce-event__when{margin:7px 0 10px;color:var(--gold);font-size:14.5px;font-weight:700}
.ce-event__copy>p:last-of-type{margin-bottom:0;color:#c9d4ea}
.ce-event__link{display:inline-block;margin-top:12px;color:#6ee7f9;font-weight:700}

.ce-host{padding-top:30px}

/* Below this width the copy would reach the canopy, so it moves above the picture instead of over it. */
@media(max-width:1180px){
  .ce-hero{flex-direction:column;align-items:stretch;min-height:0}
  .ce-hero__art{position:relative;order:2;height:clamp(280px,44vw,480px)}
  .ce-hero:before{display:none}
  .ce-hero__inner{order:1;padding-top:120px;padding-bottom:30px}
  .ce-hero__copy{max-width:none}
  .ce-hero h1{font-size:clamp(33px,9.4vw,60px)}
  .ce-hero .lead{max-width:640px}
}
@media(max-width:900px){
  .ce-board{grid-template-columns:1fr}
  .ce-sign{--tile:clamp(28px,8vw,44px)}
}
@media(max-width:430px){
  .ce-event{grid-template-columns:74px minmax(0,1fr)}
  .ce-date__day{font-size:30px}
  .ce-follow .button{flex:1 1 100%}
}
@media(prefers-reduced-motion:no-preference){
  .ce-tile{animation:ce-slide .6s cubic-bezier(.2,.8,.2,1) both}
  .ce-tile:nth-child(3n){animation-delay:.08s}
  .ce-tile:nth-child(3n+1){animation-delay:.16s}
  .ce-sign__line+.ce-sign__line .ce-tile{animation-duration:.75s}
  @keyframes ce-slide{from{opacity:0;translate:18px 0}to{opacity:1;translate:0 0}}
}
