:root {
  --ink: #1c2331;
  --ink-soft: #4d5667;
  --paper: #f7f6f1;
  --white: #ffffff;
  --plum: #81304f;
  --plum-dark: #5e2138;
  --teal: #176d6b;
  --sage: #8aa378;
  --gold: #d7a643;
  --line: #ded8ce;
  --shadow: 0 24px 70px rgba(28, 35, 49, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 109, 107, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(129, 48, 79, 0.06) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

section[id] {
  scroll-margin-top: 92px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 12px 44px;
  background: rgba(247, 246, 241, 0.92);
  border-bottom: 1px solid rgba(28, 35, 49, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
}

.brand img {
  width: 170px;
  height: 42px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(28, 35, 49, 0.1);
}

.brand span {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 13px;
  font-weight: 700;
}

.site-nav a {
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(23, 109, 107, 0.1);
  color: var(--ink);
  outline: none;
}

.nav-toggle,
.nav-button {
  display: none;
}

.hero {
  min-height: 76svh;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 96px 44px 80px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(18, 28, 40, 0.92), rgba(18, 28, 40, 0.68), rgba(18, 28, 40, 0.38)),
    url("assets/hero-quilt-extracted.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18px;
  background:
    linear-gradient(45deg, var(--plum) 25%, transparent 25% 75%, var(--plum) 75%) 0 0 / 36px 36px,
    linear-gradient(45deg, var(--gold) 25%, transparent 25% 75%, var(--gold) 75%) 18px 0 / 36px 36px,
    var(--teal);
  z-index: -1;
}

.hero-copy {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: 68px;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 42px;
  line-height: 1.07;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.hero-actions,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--gold);
  color: #211707;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button.slim {
  min-height: 40px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(28, 35, 49, 0.18);
  outline: none;
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-info div {
  min-height: 106px;
  padding: 26px 34px;
  background: var(--white);
}

.label,
.resource-type {
  display: block;
  margin-bottom: 7px;
  color: var(--plum);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-info strong {
  font-size: 18px;
}

.section,
.feature-band,
.site-footer {
  padding: 88px 44px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 36px;
}

.section-heading.compact {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.section-heading h2 {
  margin-bottom: 0;
}

.intro-grid,
.resource-grid,
.about-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.panel,
.resource-card,
.event-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(28, 35, 49, 0.07);
}

.panel,
.resource-card {
  padding: 30px;
}

.panel p,
.resource-card p,
.charity-copy p,
.library-copy p,
.feature-copy p {
  color: var(--ink-soft);
  font-size: 17px;
}

.meeting-panel {
  border-top: 6px solid var(--teal);
}

.mission-panel {
  border-top: 6px solid var(--plum);
}

blockquote {
  margin: 28px 0 0;
  padding-left: 18px;
  border-left: 4px solid var(--gold);
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
}

cite {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.text-link {
  color: var(--teal);
  font-weight: 850;
  text-decoration-color: rgba(23, 109, 107, 0.35);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--plum-dark);
  outline: none;
}

.calendar-section {
  background: #ecf3ee;
}

.notices-section {
  background: #fffefa;
}

.notice-list,
.quilt-gallery {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.notice-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notice-card {
  min-height: 196px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--teal);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(28, 35, 49, 0.07);
}

.notice-card.important {
  border-top-color: var(--gold);
}

.notice-card p {
  color: var(--ink-soft);
  font-size: 17px;
}

.empty-state {
  padding: 24px;
  border: 1px dashed #cfc8bd;
  border-radius: 8px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.event-list {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.event-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px;
}

.event-item time {
  color: var(--plum-dark);
  font-size: 20px;
  font-weight: 900;
}

.event-item h3,
.event-item p {
  margin-bottom: 4px;
}

.event-item.muted {
  background: rgba(255, 255, 255, 0.7);
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 46px;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(94, 33, 56, 0.96), rgba(28, 35, 49, 0.96)),
    linear-gradient(45deg, transparent 46%, rgba(215, 166, 67, 0.2) 46% 54%, transparent 54%);
}

.feature-copy {
  max-width: 700px;
}

.feature-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.feature-band .button.secondary {
  color: var(--white);
}

.poster {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.poster img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: var(--white);
  border-radius: 4px;
}

.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-card {
  min-height: 234px;
  display: flex;
  flex-direction: column;
}

.resource-card .text-link {
  margin-top: auto;
}

.charity-section {
  background: var(--white);
}

.charity-layout,
.library-section {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: start;
}

.charity-copy {
  position: sticky;
  top: 104px;
}

.charity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.charity-list li {
  min-height: 76px;
  display: flex;
  align-items: center;
  padding: 18px;
  border-left: 5px solid var(--sage);
  border-radius: 8px;
  background: var(--paper);
  font-weight: 800;
}

.about-section {
  background: #f5efe9;
}

.gallery-section {
  background: #eef5f5;
}

.quilt-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quilt-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(28, 35, 49, 0.07);
}

.quilt-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ebe6dd;
}

.quilt-card div {
  padding: 22px;
}

.quilt-card p {
  color: var(--ink-soft);
}

.image-panel {
  margin: 0;
  min-height: 470px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
}

.officer-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.officer-list div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.officer-list dt {
  color: var(--ink-soft);
  font-weight: 800;
}

.officer-list dd {
  margin: 0;
  font-weight: 850;
}

.library-section {
  align-items: center;
}

.library-image {
  margin: 0;
  justify-self: end;
  width: min(320px, 100%);
  padding: 22px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.library-image img {
  width: 100%;
  image-rendering: auto;
}

.member-section {
  padding-top: 0;
  background: var(--paper);
}

.member-callout {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 34px;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(94, 33, 56, 0.94), rgba(28, 35, 49, 0.94)),
    url("assets/hero-quilt-extracted.png") center / cover no-repeat;
}

.member-callout h2,
.member-callout p {
  margin-bottom: 8px;
}

.member-callout p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.subpage {
  min-height: 100vh;
}

.member-page {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(28, 35, 49, 0.94), rgba(94, 33, 56, 0.9)),
    url("assets/hero-quilt-extracted.png") center / cover fixed no-repeat;
}

.member-login-section {
  min-height: calc(100vh - 76px);
}

.member-shell {
  max-width: 840px;
  margin: 0 auto 30px;
}

.member-shell h1 {
  font-size: 52px;
}

.login-panel {
  max-width: 520px;
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.login-panel label {
  font-weight: 850;
}

.login-panel input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
}

.member-status {
  min-height: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.member-dashboard {
  max-width: 1180px;
  margin: 0 auto;
}

.member-resource-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--white);
  background: rgba(28, 35, 49, 0.88);
  box-shadow: var(--shadow);
}

.member-resource-panel h2 {
  margin-bottom: 8px;
  font-size: 30px;
}

.member-resource-panel p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
}

.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.member-pdf-frame {
  width: 100%;
  height: min(760px, 74vh);
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.directory-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.directory-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
}

.directory-card h2 {
  margin-bottom: 14px;
  font-size: 26px;
}

.directory-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.directory-card div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
}

.directory-card dt {
  color: var(--ink-soft);
  font-weight: 850;
}

.directory-card dd {
  margin: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  color: var(--white);
  background: var(--ink);
}

.site-footer h2 {
  font-size: 28px;
}

.site-footer p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 24px;
  align-content: start;
  font-weight: 800;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--gold);
  outline: none;
}

@media (max-width: 980px) {
  .site-header {
    padding: 12px 22px;
  }

  .brand span {
    display: none;
  }

  h1 {
    font-size: 50px;
  }

  h2 {
    font-size: 34px;
  }

  .quick-info,
  .intro-grid,
  .resource-grid,
  .about-grid,
  .notice-list,
  .quilt-gallery,
  .feature-band,
  .charity-layout,
  .library-section,
  .section-heading,
  .section-heading.compact {
    grid-template-columns: 1fr;
  }

  .charity-copy {
    position: static;
  }

  .feature-band {
    padding-top: 72px;
  }

  .poster {
    max-width: 420px;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: center;
  }

  .brand img {
    width: 148px;
    height: 38px;
  }

  .nav-button {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
  }

  .nav-button span {
    height: 2px;
    background: var(--ink);
  }

  .site-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 68px;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-toggle:checked ~ .site-nav {
    display: grid;
  }

  .hero {
    min-height: 78svh;
    padding: 80px 22px 62px;
    background:
      linear-gradient(90deg, rgba(18, 28, 40, 0.94), rgba(18, 28, 40, 0.7)),
      url("assets/hero-quilt-extracted.png") center / cover no-repeat;
  }

  .hero-copy {
    width: 100%;
    max-width: 346px;
  }

  h1 {
    max-width: 12ch;
    font-size: 36px;
  }

  h2 {
    font-size: 29px;
  }

  .hero-lede {
    font-size: 18px;
  }

  .section,
  .feature-band,
  .site-footer {
    padding: 62px 22px;
  }

  .section-heading {
    gap: 16px;
    margin-bottom: 26px;
  }

  .quick-info div {
    min-height: 94px;
    padding: 22px;
  }

  .event-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .charity-list {
    grid-template-columns: 1fr;
  }

  .officer-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .image-panel,
  .image-panel img {
    min-height: 330px;
  }

  .site-footer {
    flex-direction: column;
  }

  .member-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .member-resource-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .member-actions {
    justify-content: flex-start;
  }

  .member-pdf-frame {
    height: 68vh;
  }

  .directory-grid {
    grid-template-columns: 1fr;
  }

  .member-shell h1 {
    max-width: 10ch;
    font-size: 38px;
  }

  .member-page .hero-lede {
    max-width: 28ch;
  }

  .directory-card div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .site-footer nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .hero-actions,
  .link-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .site-nav {
    grid-template-columns: 1fr;
  }
}
