/*
 * Shared shell for the public marketing pages (events, gallery): design
 * tokens, header/nav, page hero, the admin sign-in and admin panel chrome,
 * form controls, toast and footer.
 *
 * This lived twice as an inline <style> block, once per page. Page-specific
 * rules (the event card grid, the gallery grid) stay inline in the page that
 * owns them; anything both pages use belongs here.
 */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&display=swap');

:root{
  --jade-50:#eef5f2;
  --jade-100:#cfe4dc;
  --jade-400:#3f8770;
  --jade-600:#1f5c49;
  --jade-800:#123a2e;
  --jade-900:#0b241d;
  --brass-400:#c99a4a;
  --brass-600:#a87a2e;
  --ivory:#f7f3ea;
  --ink:#1c211f;
  --ink-soft:#3d443f;
  --line:rgba(18,58,46,0.14);
  --danger:#a13a3a;
}
*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{font-family:'Inter',sans-serif;font-size:16.5px;color:var(--ink);background:var(--ivory);line-height:1.7;}
h1,h2,h3{font-family:'Fraunces',serif;font-weight:500;letter-spacing:-0.01em;line-height:1.25;color:var(--jade-900);}
a{color:inherit;text-decoration:none;}
.wrap{max-width:1080px;margin:0 auto;padding:0 24px;}
.eyebrow{font-size:13px;letter-spacing:0.12em;text-transform:uppercase;color:var(--brass-600);font-weight:700;}

header{position:sticky;top:0;z-index:20;background:rgba(247,243,234,0.94);backdrop-filter:blur(6px);border-bottom:1px solid var(--line);}
/* Three columns, and the order of the header is fixed at every width: the logo
   with the highlighted sign-up button on the left, the links in the flexible
   middle column, and the install/log-in pair stacked at the top right —
   install first, log in directly beneath it. */
nav{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:14px 18px;padding:12px 24px;max-width:1080px;margin:0 auto;}
.nav-left{display:flex;align-items:center;gap:14px;flex:0 0 auto;order:1;}
.brand img{height:48px;width:auto;display:block;}
.navlinks{display:flex;flex:1 1 auto;min-width:0;order:2;align-self:center;justify-content:center;gap:22px;font-size:14.5px;font-weight:500;flex-wrap:wrap;}
.navlinks a:hover{color:var(--jade-600);}

/* The primary action on the site. Brass fill, a deeper brass edge and a soft
   glow set it apart from every other link in the header, and it sits beside the
   crest so the first thing read after the brand is how to join. */
.navcta{
  background:linear-gradient(135deg,#d7a955 0%,var(--brass-400) 52%,#b98a3c 100%);
  color:var(--jade-900);border:1px solid var(--brass-600);
  padding:11px 20px;border-radius:3px;font-size:14.5px;font-weight:700;
  letter-spacing:0.005em;white-space:nowrap;
  box-shadow:0 1px 0 rgba(255,255,255,0.35) inset, 0 4px 14px rgba(201,154,74,0.34);
  transition:box-shadow 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}
.navcta:hover{filter:brightness(1.04);transform:translateY(-1px);box-shadow:0 1px 0 rgba(255,255,255,0.4) inset, 0 6px 18px rgba(201,154,74,0.45);}

/* Stacked, equal-width pair pinned to the top right. */
.nav-right{display:flex;flex-direction:column;align-items:stretch;gap:8px;flex:0 0 auto;order:3;}
.nav-login{font-size:14.5px;font-weight:600;color:var(--jade-800);border:1px solid var(--line);padding:9px 16px;border-radius:2px;white-space:nowrap;text-align:center;}
.nav-login:hover{background:var(--jade-50);border-color:var(--jade-400);}

/* "Install now" — brass outline so it reads as a third, distinct action next to
   the filled brass sign-up button and the faint-outlined log in. pwa.js sets the
   hidden attribute when the site is already running as an installed app, and
   the display below would otherwise beat it. */
.nav-install{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  font-family:inherit;font-size:14.5px;font-weight:600;white-space:nowrap;
  color:var(--brass-600);background:transparent;
  border:1px solid var(--brass-400);padding:9px 15px;border-radius:2px;cursor:pointer;
}
.nav-install:hover{background:rgba(201,154,74,0.12);}
.nav-install svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.nav-install[hidden]{display:none;}

/* Below 1040px the links drop to their own centred row. The logo/sign-up
   cluster and the install/log-in stack keep the top row to themselves. */
@media (max-width:1040px){
  .navlinks{order:4;flex:1 1 100%;}
}
@media (max-width:560px){
  nav{padding:10px 14px;gap:10px 12px;}
  .nav-left{flex:1 1 auto;min-width:0;gap:10px;}
  .brand img{height:38px;}
  .navcta{font-size:12.5px;padding:9px 13px;white-space:normal;line-height:1.2;text-align:center;}
  .nav-install{font-size:12px;padding:7px 11px;gap:5px;}
  .nav-install svg{width:13px;height:13px;}
  .nav-login{font-size:12px;padding:7px 11px;}
  .navlinks{font-size:13px;gap:12px 16px;}
}

.page-hero{padding:64px 24px 48px;background:linear-gradient(165deg, var(--jade-900) 0%, var(--jade-800) 100%);color:var(--ivory);text-align:center;}
.page-hero .eyebrow{color:var(--brass-400);}
.page-hero h1{color:var(--ivory);font-size:clamp(28px,4vw,40px);margin-top:12px;}
.page-hero p{max-width:56ch;margin:14px auto 0;color:rgba(247,243,234,0.85);font-size:16px;}

section{padding:56px 24px;}

.empty-state{text-align:center;color:var(--ink-soft);padding:40px 20px;border:1px dashed var(--line);border-radius:8px;}

/* Admin sign-in, shown inline on the pages the admin manages */
#adminSignIn{background:var(--jade-50);border:1px solid var(--line);border-radius:8px;padding:24px 26px;margin-bottom:40px;max-width:420px;}
#adminSignIn h2{font-size:18px;margin-bottom:4px;}
#adminSignIn p.hint{color:var(--ink-soft);font-size:13px;margin-bottom:16px;}

/* Announcements */
.announcement-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:20px 22px;margin-bottom:14px;}
.announcement-card h3{font-size:16.5px;margin-bottom:4px;}
.announcement-date{font-size:12px;color:var(--brass-600);font-weight:600;margin-bottom:8px;}
.announcement-body{font-size:14px;color:var(--ink-soft);white-space:pre-wrap;}

/* Admin panel */
#adminPanel{background:var(--jade-50);border:1px solid var(--line);border-radius:8px;padding:28px 26px;margin-bottom:40px;}
#adminPanel h2{font-size:20px;margin-bottom:4px;}
#adminPanel p.hint{color:var(--ink-soft);font-size:13.5px;margin-bottom:18px;}
.field{margin-bottom:14px;}
.field label{display:block;font-size:13px;font-weight:600;color:var(--jade-800);margin-bottom:5px;}
.field input, .field textarea{
  width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:5px;font-size:14.5px;
  font-family:inherit;background:#fff;color:var(--ink);
}
.field textarea{resize:vertical;min-height:70px;}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.btn-gold{background:var(--brass-400);color:var(--jade-900);border:none;padding:11px 20px;border-radius:4px;font-size:14.5px;font-weight:600;cursor:pointer;}
.btn-gold:hover{background:#dcae62;}
.btn-outline{background:transparent;border:1px solid var(--line);padding:11px 20px;border-radius:4px;font-size:14.5px;font-weight:500;cursor:pointer;color:var(--ink);}
.error-box{display:none;background:#fbecec;border:1px solid #e6c9c9;color:#a13a3a;padding:10px 14px;border-radius:5px;font-size:13.5px;margin-bottom:14px;}
.error-box.show{display:block;}
.toast{
  position:fixed;left:50%;bottom:28px;transform:translateX(-50%) translateY(20px);
  background:var(--jade-900);color:var(--ivory);padding:11px 20px;border-radius:6px;font-size:13.5px;
  opacity:0;pointer-events:none;transition:opacity 0.2s, transform 0.2s;z-index:50;
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0);}

footer{padding:36px 24px;text-align:center;font-size:13px;color:var(--ink-soft);border-top:1px solid var(--line);}
.footer-social{display:flex;gap:14px;justify-content:center;margin-bottom:16px;}
.footer-social a{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid var(--line);border-radius:50%;color:var(--jade-800);}
.footer-social a:hover{background:var(--jade-800);color:var(--ivory);}
.footer-social svg{width:17px;height:17px;fill:currentColor;}
.footer-links{display:flex;gap:20px;justify-content:center;margin-bottom:14px;flex-wrap:wrap;font-size:13px;}
.footer-links a:hover{color:var(--jade-600);}
