:root {
  color-scheme: dark;
  --navy: #061325;
  --cream: #faf0dc;
  --hero-navy: #041933;
  --teal: #52cbc9;
  --amber: #ffb638;
  --line: #28455b;
  font: 100%/1.6 "Atkinson Hyperlegible Next", "Segoe UI", sans-serif;
  color: var(--cream);
  background: var(--navy);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid var(--teal); outline-offset: 5px; }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 1; background: var(--navy); padding: .75rem; }
.skip:focus { top: 1rem; }
.site-header, .site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem 2rem; padding-block: 1.15rem; }
.brand { font-weight: 750; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }
nav a { text-decoration: none; }
nav a:hover { color: var(--teal); text-decoration: underline; }
.hero { background: var(--hero-navy); color: var(--cream); }
.hero-layout { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(3.5rem, 8vw, 7rem); }
h1, h2 { font-family: "DM Sans", "Segoe UI", sans-serif; line-height: 1.05; font-weight: 700; margin: 0; }
h1 { font-size: clamp(2.65rem, 6.2vw, 5.75rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 3rem); letter-spacing: -.03em; }
p { margin: 0 0 1rem; }
.intro { max-width: 35rem; margin: 1.4rem 0 1.75rem; font-size: 1.15rem; }
.button { display: inline-flex; align-items: baseline; gap: .7rem; padding: .7rem 1rem; border-radius: .25rem; background: var(--amber); color: var(--navy); font-weight: 700; text-decoration: none; }
.button:hover { background: #ffcc70; }
h2 { color: var(--teal); }
.hero-logo { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 1rem; }
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.25rem 3rem; }
#membership { border-top: 1px solid var(--line); }
.about p { max-width: 42rem; }
.about p:last-child { margin-bottom: 0; }
.site-footer { border-top: 1px solid var(--line); font-size: .95rem; }
.site-footer .admin-link { color: #a9b8c6; font-size: .85rem; text-decoration: none; }
.site-footer .admin-link:hover { color: var(--teal); text-decoration: underline; }
@media (max-width: 700px) {
  .hero-layout, .about { grid-template-columns: 1fr; }
  .hero-logo { width: min(100%, 21rem); }
}
@media (max-width: 490px) {
  .wrap { width: calc(100% - 2rem); }
}

nav a[aria-current="page"] { color: var(--teal); text-decoration: underline; }
.event-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 48rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: var(--hero-navy);
  border: 1px solid var(--line);
  border-radius: .75rem;
}
.event-filters[hidden] { display: none; }
.event-filters label { display: grid; gap: .35rem; font-weight: 650; }
.event-filters input, .clear-filters {
  font: inherit;
  color: inherit;
  background: var(--navy);
  border: 1px solid #6c8197;
  border-radius: .25rem;
  padding: .6rem .75rem;
}
.event-filters input { width: 100%; min-width: 0; font-weight: 400; }
.event-filters select { width: 100%; min-width: 0; padding: .6rem .75rem; color: inherit; background: var(--navy); border: 1px solid #6c8197; border-radius: .25rem; font: inherit; }
.event-filters select:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.event-filters input:focus-visible, .clear-filters:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.clear-filters { justify-self: start; color: var(--amber); cursor: pointer; }
.clear-filters:hover { border-color: var(--amber); }
.event-status { margin-block: 1.5rem .75rem; }
.event-list { list-style: none; padding: 0; max-width: 48rem; }
.event-list li { padding-block: 1.15rem; border-top: 1px solid var(--line); }
.event-list h2 { font-size: 1.4rem; margin-bottom: .5rem; }
.event-list p:last-child { margin-bottom: 0; }
@media (max-width: 540px) {
  .event-filters { grid-template-columns: minmax(0, 1fr); }
}

.admin-form { margin-top: 1.25rem; }
#dashboard h2 { margin-top: 1.5rem; font-size: 1.6rem; }
.admin-form .button { justify-self: start; font: inherit; font-weight: 700; border: 0; cursor: pointer; }
.admin-form .button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.admin-form textarea {
  width: 100%;
  min-width: 0;
  padding: .6rem .75rem;
  border: 1px solid #6c8197;
  border-radius: .25rem;
  background: var(--navy);
  color: inherit;
  font: inherit;
  resize: vertical;
}
#admin-status { margin-top: 1rem; }
.admin-panel { margin-block: 1rem; padding-block: .65rem; border-bottom: 1px solid var(--line); }
.admin-panel summary { color: var(--teal); font-size: 1.15rem; font-weight: 700; cursor: pointer; }
.admin-panel summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.admin-panel form { grid-template-columns: minmax(0, 1fr); margin-bottom: 1rem; }
.admin-panel fieldset { min-width: 0; margin: 0; padding: .75rem; border: 1px solid var(--line); }
.admin-panel fieldset label + label { margin-top: .75rem; }
.form-status { margin: 0; }
.form-status:empty, .extra-content[hidden], [data-content="membershipNote"]:empty { display: none; }
[data-content] { white-space: pre-line; overflow-wrap: anywhere; }
.extra-content { border-top: 1px solid var(--line); }
.page-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.content-page .page-copy { max-width: 46rem; }
#page-choice {
  margin-left: .5rem;
  max-width: min(75%, 28rem);
  padding: .45rem .6rem;
  font: inherit;
  color: inherit;
  background: var(--navy);
  border: 1px solid #6c8197;
  border-radius: .25rem;
}
#page-address[hidden] { display: none; }

.event-list { max-width: 64rem; }
.event-card { display: grid; grid-template-columns: 11rem minmax(0, 1fr); align-items: start; gap: 1.5rem; }
.event-tile { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: .5rem; background: var(--hero-navy); }
.event-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.event-placeholder { display: grid; place-items: center; color: var(--cream); background: var(--hero-navy); border: 1px solid var(--line); font-weight: 750; font-size: 2rem; }
.event-card h2 { line-height: 1.25; }
.event-card h2 a { text-decoration: none; }
.event-card h2 a:hover { text-decoration: underline; }
.event-detail { display: grid; grid-template-columns: minmax(12rem, 20rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2rem; }
.event-detail h1 { font-size: clamp(2rem, 4vw, 3.5rem); overflow-wrap: anywhere; }
.event-detail-image { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .5rem; }
.admin-image-preview { width: 10rem; height: 10rem; object-fit: cover; border-radius: .4rem; }
.admin-image-preview[hidden] { display: none; }
.event-filters input[type="checkbox"] { width: auto; justify-self: start; }
@media (max-width: 620px) {
  .event-detail { grid-template-columns: minmax(0, 1fr); }
  .event-detail-image { max-width: 20rem; }
  .event-card { grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; }
}

.events-layout { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; align-items: start; gap: 1.5rem; }
.events-layout .event-search { grid-template-columns: minmax(0, 1fr); }
.events-layout .event-status { margin-top: 0; }
.events-layout .event-list { margin-top: .75rem; }
.search-heading { font-size: 1.3rem; margin-bottom: 1rem; }
@media (max-width: 700px) {
  .events-layout { grid-template-columns: minmax(0, 1fr); }
  .events-layout aside { margin-top: 1rem; }
}

.events-layout .event-card { grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; }
.mobile-search-link { display: none; }
#event-search { scroll-margin-top: 1rem; }
@media (max-width: 700px) {
  .mobile-search-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 1.5rem; }
}


.event-card > div > a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 480px) {
  .site-header nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .events-layout .event-card { grid-template-columns: 6rem minmax(0, 1fr); }
  .event-detail-image { max-width: 12rem; }
  .event-detail { gap: 1.5rem; }
  .event-card h2 { font-size: 1.2rem; overflow-wrap: anywhere; }
}
