@font-face{font-family:BuNotza;src:url('/assets/buNotza-2.0-Regular.woff2') format('woff2');font-weight:400;font-display:swap}
:root{color-scheme:light;--green:#173d34;--cream:#f5eddf}
*{box-sizing:border-box}
body{margin:0;min-height:100svh;background:var(--cream);color:var(--green);font-family:Rubik,Arial,sans-serif;display:flex;flex-direction:column;isolation:isolate}
body::before{content:'';position:fixed;inset:0;z-index:-2;background:url('/assets/community-purple.webp') center 58% / cover no-repeat}
body::after{content:'';position:fixed;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(245,237,223,.90),rgba(245,237,223,.24) 43%,rgba(245,237,223,.56))}
a{color:inherit}
a:focus-visible,button:focus-visible{outline:3px solid #173d34;outline-offset:5px}
.skip-link{position:fixed;top:8px;right:8px;transform:translateY(-150%);padding:12px;background:white;z-index:1000}.skip-link:focus{transform:none}
.top{height:86px;display:flex;align-items:center;justify-content:space-between;padding:12px clamp(20px,4vw,56px);width:100%}
.brand{display:block;width:122px;line-height:0}.brand img{display:block;width:100%;height:auto}
.menu{font:32px/1 Rubik,Arial,sans-serif;border:0;background:transparent;color:var(--green);cursor:pointer;min-width:44px;min-height:44px}
main{flex:1;display:grid;place-items:center;padding:36px 24px 56px}
.community{width:min(920px,100%);text-align:center}
.intro{max-width:760px;margin:auto;padding:22px 26px;background:rgba(255,251,245,.72);border:1px solid rgba(255,255,255,.65);border-radius:26px}
.eyebrow{font-size:15px;letter-spacing:.025em;margin:0 0 18px;font-weight:500}
h1,h2{font-family:BuNotza,Rubik,Arial,sans-serif;font-weight:400;text-wrap:balance}
h1{font-size:clamp(44px,5.3vw,72px);line-height:1.12;margin:0 0 22px}
.lead{font-size:clamp(17px,1.6vw,20px);line-height:1.75;max-width:56ch;margin:0 auto;text-wrap:pretty}
.communities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:44px}
.community-card{padding:30px 24px 24px;background:rgba(255,251,245,.70);border:1px solid rgba(255,255,255,.85);border-radius:26px;box-shadow:0 12px 40px #35294014;display:flex;flex-direction:column;align-items:center}
h2{font-size:38px;line-height:1.15;margin:0 0 10px}
.community-card p{font-size:17px;line-height:1.5;margin:0 0 26px;text-wrap:pretty}
.join{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:52px;padding:14px 18px;margin-top:auto;border-radius:99px;background:var(--green);color:#fff;text-decoration:none;font-weight:500;line-height:1.4;transition:background .15s}
.join:hover{background:#295b4d}.join-note{font-size:13px;margin:22px 0 0}
.card-invitation{margin:26px auto 0;padding:18px 22px;max-width:480px;border-radius:23px;background:rgba(255,251,245,.70);border:1px solid rgba(255,255,255,.65)}
.card-invitation p{margin:0 0 10px;font-size:16px;line-height:1.6;text-wrap:pretty}
.card-invitation-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 24px;border:1px solid currentColor;border-radius:99px;text-decoration:none;font-size:15px;font-weight:500}
.card-invitation-link:hover{background:rgba(255,251,245,.5)}
footer{display:flex;justify-content:center;gap:24px;flex-wrap:wrap;padding:10px 20px 22px;font-size:13px}footer a{display:inline-flex;align-items:center;min-height:44px;text-underline-offset:4px}
body .site-menu{position:fixed;inset:0;z-index:999;visibility:hidden;opacity:0;background:rgba(19,44,38,.22);transition:opacity .2s ease,visibility .2s ease}
body .site-menu.open{visibility:visible;opacity:1}
body .site-menu-panel{position:absolute;left:0;top:0;height:100%;width:min(82vw,340px);padding:72px 26px;background:#f7efe2;display:flex;flex-direction:column;transform:translateX(-102%);transition:transform .25s ease;overflow:auto}
body .site-menu.open .site-menu-panel{transform:none}
body .site-menu-close{position:absolute;top:15px;left:18px;border:0;background:none;color:#173d34;font-size:34px;cursor:pointer}
body .site-menu-panel>a,body .site-menu-panel>.policy-menu-links>a{display:block;padding:11px 8px;color:#173d34;text-decoration:none;border-bottom:1px solid rgba(23,61,52,.09)}
body.menu-open{overflow:hidden}
@media(max-width:600px){.top{height:68px;padding:10px 20px}.brand{width:92px}main{padding:26px 20px 28px}.eyebrow{font-size:13px;margin-bottom:16px}h1{font-size:44px;line-height:1.13;margin-bottom:18px}.lead{font-size:17px;line-height:1.65;max-width:32ch}.communities{grid-template-columns:1fr;gap:16px;margin-top:28px}.community-card{padding:22px 20px 20px;border-radius:23px}h2{font-size:34px}.community-card p{font-size:16px;margin-bottom:18px}.join-note{margin-top:18px}body::before{background-size:auto 100%;background-position:center center}footer{padding-bottom:16px}}
@media(prefers-reduced-motion:reduce){.join,body .site-menu,body .site-menu-panel{transition:none}}

/* Compact community landing page on phones; desktop remains unchanged. */
@media(max-width:600px){
  body.community-page{min-height:100svh;min-height:100dvh}
  .top{height:54px;min-height:54px;padding:4px 16px}
  .brand{width:88px}
  .menu{font-size:27px}
  main{display:block;flex:1 0 auto;padding:4px 14px 8px}
  .community{width:100%;max-width:460px;margin:0 auto}
  .intro{padding:10px 14px 12px;border-radius:19px}
  .eyebrow{font-size:12px;margin:0 0 4px}
  h1{font-size:clamp(29px,8.4vw,36px);line-height:1.03;margin:0 0 6px}
  .lead{font-size:13px;line-height:1.32;max-width:36ch}
  .communities{grid-template-columns:1fr;gap:9px;margin-top:10px}
  .community-card{padding:9px 12px 10px;border-radius:18px}
  h2{font-size:clamp(25px,7.4vw,31px);line-height:1.04;margin:0 0 3px}
  .community-card p{font-size:12px;line-height:1.3;margin:0 0 7px}
  .join{min-height:42px;padding:7px 12px;font-size:14px;line-height:1.2}
  .join-note{font-size:11px;margin:7px 0 0}
  .card-invitation{margin:9px auto 0;padding:8px 12px;border-radius:16px}
  .card-invitation p{font-size:12px;line-height:1.3;margin:0 0 4px}
  .card-invitation-link{min-height:36px;padding:6px 18px;font-size:12px}
  footer{padding:0 12px 4px;gap:16px;font-size:11px}
  footer a{min-height:30px}
}
@media(max-width:600px) and (max-height:720px){
  .top{height:48px;min-height:48px}
  .intro{padding:7px 12px}
  h1{font-size:clamp(27px,7.7vw,32px)}
  .lead{font-size:12px;line-height:1.24}
  .communities{gap:7px;margin-top:7px}
  .community-card{padding:7px 10px}
  h2{font-size:25px}
  .community-card p{margin-bottom:5px}
  .join{min-height:38px}
  .card-invitation{margin-top:6px;padding:6px 10px}
  .card-invitation-link{min-height:32px}
  footer a{min-height:26px}
}

/* Airier mobile composition: text on artwork, two clear cards, centered footer. */
@media(max-width:600px){
  body.community-page{min-height:100svh;min-height:100dvh}
  main{display:flex;align-items:center;justify-content:center;padding:12px 18px 12px}
  .community{max-width:440px}
  .intro{background:transparent;border:0;border-radius:0;padding:8px 8px 14px}
  .eyebrow{font-size:13px;margin-bottom:8px}
  h1{font-size:clamp(32px,8.8vw,40px);line-height:1.09;margin-bottom:12px}
  .lead{font-size:14px;line-height:1.48;max-width:31ch}
  .communities{gap:16px;margin-top:18px}
  .community-card{padding:16px 16px 15px;border-radius:22px}
  h2{font-size:clamp(29px,8vw,35px);line-height:1.1;margin-bottom:7px}
  .community-card p{font-size:13px;line-height:1.4;margin-bottom:12px}
  .join{min-height:46px;font-size:15px}
  .join-note{margin:12px 0 0;font-size:12px}
  .card-invitation{background:transparent;border:0;box-shadow:none;border-radius:0;margin:16px auto 0;padding:6px 8px}
  .card-invitation p{font-size:13px;line-height:1.4;margin-bottom:10px}
  .card-invitation-link{min-height:40px;padding:8px 25px;font-size:13px;background:rgba(255,251,245,.4)}
  footer{justify-content:center;gap:22px;padding:10px 12px 14px;font-size:12px}
  footer a{min-height:36px}
}
@media(max-width:600px) and (max-height:720px){
  main{padding:5px 14px}
  .intro{padding:2px 8px 8px}
  .eyebrow{margin-bottom:3px}
  h1{font-size:clamp(29px,8vw,35px);margin-bottom:6px}
  .lead{font-size:12px;line-height:1.35}
  .communities{gap:9px;margin-top:10px}
  .community-card{padding:10px 12px}
  h2{font-size:28px;margin-bottom:4px}
  .community-card p{margin-bottom:7px}
  .join{min-height:42px}
  .join-note{margin-top:6px}
  .card-invitation{margin-top:7px;padding:2px 6px}
  .card-invitation p{margin-bottom:5px}
  footer{padding:4px 10px 7px}
}

/* Improve legibility of bottom copy over the illustrated background, mobile only. */
@media(max-width:600px){
 .join-note,.card-invitation p,footer a{color:#102e27;font-weight:600;text-shadow:0 1px 5px rgba(255,251,245,.98),0 0 12px rgba(255,251,245,.94)}
 .card-invitation-link{background:rgba(255,251,245,.78);border-color:#173d34;color:#102e27;font-weight:600;text-shadow:none}
 footer a{text-decoration-thickness:1.5px;text-underline-offset:4px}
}

/* Place bottom navigation on the clear lower part of the artwork on mobile. */
@media(max-width:600px){
  body.community-page{min-height:100dvh}
  main{flex:1 0 auto}
  footer{margin-top:auto;min-height:110px;display:flex;align-items:flex-end;justify-content:center;padding:0 12px max(22px,env(safe-area-inset-bottom));gap:22px}
  footer a{color:#102e27}
}
@media(max-width:600px) and (max-height:720px){
  footer{min-height:70px;padding-bottom:max(10px,env(safe-area-inset-bottom))}
}
