/* Groton Business Association */
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600&family=Zilla+Slab:wght@500;600;700&display=swap');

:root {
  --pine: #1F3D33;
  --pine-deep: #16302A;
  --paper: #FAFAF7;
  --white: #FFFFFF;
  --ink: #1C2420;
  --granite: #4E5A63;
  --line: #D9DDD8;
  --sky: #E6EDEF;
  --orchard: #A8322D;
  --orchard-dark: #8C2722;
  --focus: #2F6FB0;
  --radius-s: 4px;
  --radius-m: 10px;
  --wrap: 1120px;
  --text: 40rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Public Sans", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--orchard); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 {
  font-family: "Zilla Slab", Georgia, serif;
  color: var(--pine);
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.625rem, 3vw, 2.125rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: var(--text); }
.lede { font-size: 1.2rem; color: var(--granite); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { background: var(--pine); color: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { color: var(--white); text-decoration: none; font-family: "Zilla Slab", Georgia, serif; font-weight: 700; font-size: 1.35rem; line-height: 1.1; }
.brand small { display: block; font-family: "Public Sans", sans-serif; font-weight: 400; font-size: .8rem; opacity: .8; letter-spacing: .02em; }
.brand:hover { color: var(--white); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.5); color: var(--white); border-radius: var(--radius-s); padding: 6px 12px; font: inherit; cursor: pointer; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { display: block; color: var(--white); text-decoration: none; padding: 8px 12px; border-radius: var(--radius-s); font-weight: 500; font-size: .98rem; }
.site-nav a:hover { background: var(--pine-deep); color: var(--white); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--white); }
.site-nav .nav-join { background: var(--orchard); }
.site-nav .nav-join:hover { background: var(--orchard-dark); }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; padding-bottom: 12px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
}

/* Sections */
main { display: block; }
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-tint { background: var(--sky); }
.page-head { padding: 48px 0 24px; }
.page-head p { color: var(--granite); }

/* Home hero */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; gap: 40px; align-items: end; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.4fr 1fr; } }
.hero h1 { max-width: 14ch; }
.table-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--orchard);
  border-radius: var(--radius-m);
  padding: 24px;
}
.table-card h2 { font-size: 1.4rem; margin-bottom: .75em; }
.table-card dl { margin: 0 0 16px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.table-card dt { color: var(--granite); }
.table-card dd { margin: 0; font-weight: 600; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 12px 20px; border-radius: var(--radius-s); border: 2px solid var(--orchard);
  background: var(--orchard); color: var(--white); font: 600 1rem/1.2 "Public Sans", sans-serif; cursor: pointer;
}
.btn:hover { background: var(--orchard-dark); border-color: var(--orchard-dark); color: var(--white); }
.btn-quiet { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn-quiet:hover { background: var(--pine); color: var(--white); border-color: var(--pine); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* Columns and lists */
.cols { display: grid; gap: 32px; }
@media (min-width: 760px) { .cols-2 { grid-template-columns: 1fr 1fr; } .cols-3 { grid-template-columns: repeat(3, 1fr); } }
.plain-list { padding-left: 1.2em; max-width: var(--text); }
.plain-list li { margin-bottom: .4em; }
.festivals { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .festivals { grid-template-columns: repeat(4, 1fr); } }
.festivals a { display: block; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--white); text-decoration: none; font-family: "Zilla Slab", Georgia, serif; font-weight: 600; font-size: 1.15rem; }
.festivals a:hover { border-color: var(--pine); }
.festivals span { display: block; font-family: "Public Sans", sans-serif; font-weight: 400; font-size: .9rem; color: var(--granite); }

.people { list-style: none; padding: 0; margin: 0 0 24px; }
.people li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: var(--text); }
.people strong { font-weight: 600; }
.people span { color: var(--granite); }

/* Calendar */
.cal-frame { width: 100%; height: 720px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); }
@media (max-width: 640px) { .cal-frame { height: 600px; } }

/* Directory */
.dir-tools { display: grid; gap: 12px; margin-bottom: 24px; }
@media (min-width: 720px) { .dir-tools { grid-template-columns: 2fr 1fr; } }
.dir-count { color: var(--granite); margin: 0 0 16px; }
.dir-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 760px) { .dir-list { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.member { padding: 18px 0; border-bottom: 1px solid var(--line); }
.member h3 { margin: 0 0 4px; font-size: 1.2rem; }
.member h3 a { text-decoration: none; }
.member h3 a:hover { text-decoration: underline; }
.member .cat { color: var(--granite); font-size: .92rem; margin: 0 0 6px; }
.member .desc { font-size: .98rem; margin: 0 0 6px; }
.member .contact { font-size: .92rem; margin: 0; display: flex; gap: 14px; flex-wrap: wrap; }
.dir-empty { padding: 24px; background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius-m); }

/* Forms */
.form { max-width: 40rem; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; }
.field .hint { color: var(--granite); font-size: .92rem; font-weight: 400; }
.req { color: var(--orchard); }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #A9B1AC; border-radius: var(--radius-s); padding: 10px 12px;
}
textarea { min-height: 120px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.choice input { margin-top: .35em; width: 18px; height: 18px; accent-color: var(--pine); }
.hidden { position: absolute; left: -9999px; }
.note { background: var(--white); border-left: 4px solid var(--pine); padding: 16px 20px; border-radius: 0 var(--radius-s) var(--radius-s) 0; max-width: 40rem; }
.note p:last-child { margin-bottom: 0; }
address { font-style: normal; }

/* Footer */
.site-footer { background: var(--pine-deep); color: #DCE5E1; padding: 40px 0; margin-top: 56px; font-size: .95rem; }
.site-footer a { color: var(--white); }
.site-footer h2 { color: var(--white); font-size: 1.15rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .fine { margin-top: 24px; opacity: .75; font-size: .85rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
.mt-s { margin-top: 12px; }
.mt-m { margin-top: 28px; }
textarea.short { min-height: 80px; }
.hint { color: var(--granite); font-size: .92rem; }
/* Home banner: the GBA's illustrated logo art */
.banner { display: block; background: #FFFFFF; }
.banner img { width: 100%; max-width: 1260px; margin: 0 auto; }
/* Member logos */
.member { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; }
.member-logo { width: 64px; height: 64px; border-radius: var(--radius-s); object-fit: contain; background: var(--white); border: 1px solid var(--line); }
.member-initials { display: flex; align-items: center; justify-content: center; background: var(--sky); color: var(--pine); font-family: "Zilla Slab", Georgia, serif; font-weight: 700; font-size: 1.35rem; border-color: transparent; }
.member-body { min-width: 0; }
input[type=file] { font: inherit; }
/* Calendar list, modeled on the old GBA calendar page */
.cal-list { max-width: 44rem; }
.cal-day { margin: 0 0 28px; }
.cal-date { display: inline-block; margin: 0; padding: 6px 12px; background: var(--pine); color: var(--white); font-size: 1.05rem; font-weight: 600; border-radius: var(--radius-s) var(--radius-s) 0 0; }
.cal-day > .cal-date { box-shadow: none; }
.cal-day { border-top: 0; }
.cal-day .cal-event:first-of-type { border-top: 2px solid var(--pine); }
.cal-event { padding: 14px 14px 16px; border-bottom: 1px solid var(--line); }
.cal-title { font-size: 1.15rem; margin: 0 0 6px; }
.cal-when { margin: 0; font-weight: 500; }
.cal-where { margin: 2px 0 0; color: var(--granite); }
.cal-desc { margin: 8px 0 0; font-size: .97rem; }
/* Directory with category filter */
.dir-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .dir-layout { grid-template-columns: 300px 1fr; } .dir-results .dir-list { grid-template-columns: 1fr; } }
@media (min-width: 1100px) { .dir-results .dir-list { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.dir-filters { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px; }
@media (min-width: 900px) { .dir-filters { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; } }
.cat-panel summary { font-family: "Zilla Slab", Georgia, serif; font-weight: 600; font-size: 1.2rem; color: var(--pine); cursor: pointer; }
.cat-panel .hint { margin: 8px 0; }
.cat-list, .cat-sub { list-style: none; margin: 0; padding: 0; }
.cat-sub { padding-left: 22px; }
.cat-item label { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; cursor: pointer; font-size: .95rem; line-height: 1.35; }
.cat-item.depth-0 > label { font-weight: 600; }
.cat-item input { width: 16px; height: 16px; accent-color: var(--pine); flex: none; transform: translateY(2px); }
.cat-n { color: var(--granite); font-weight: 400; font-size: .85rem; }
.cat-chosen { color: var(--pine); font-weight: 500; margin: 12px 0 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--orchard); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
/* Home: old-site content with member links */
.home-grid { display: grid; gap: 40px; padding-top: 16px; padding-bottom: 24px; }
@media (min-width: 960px) { .home-grid { grid-template-columns: 1fr 300px; } }
.home-block { padding: 28px 0; border-top: 1px solid var(--line); }
.home-block:first-child { border-top: 0; padding-top: 8px; }
.home-block .festivals { margin-top: 16px; }
@media (min-width: 640px) { .home-block .festivals { grid-template-columns: repeat(2, 1fr); } }
.benefits { padding-left: 1.2em; max-width: var(--text); }
.benefits li { margin-bottom: .7em; }
.home-side { background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--pine); border-radius: var(--radius-m); padding: 20px; align-self: start; }
.home-side h2 { font-size: 1.35rem; }
.member-links { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.member-links li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.member-links li:last-child { border-bottom: 0; }
.member-links a { text-decoration: none; }
.member-links a:hover { text-decoration: underline; }
