:root {
  --teal: #1E4A4F;
  --teal-dark: #163A3E;
  --rust: #B24C1F;
  --ivory: #FBF8F2;
  --stripe: #EEF3F1;
  --text: #26302E;
  --text-soft: #55625E;
  --border: #D8D2C4;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Hero */

.hero {
  background: var(--teal);
  color: var(--ivory);
  padding: 48px 0 0;
}

.hero .wrap.hero-photos { padding-top: 32px; }

.eyebrow {
  margin: 0 0 6px;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #BFD6D3;
}

.hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 3rem;
  margin: 0;
  line-height: 1.05;
}

.hero .subtitle {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  margin: 10px 0 32px;
  color: #DCEAE8;
}

.hero-photos {
  display: flex;
  gap: 4px;
  padding-bottom: 0;
}

.hero-photos img {
  width: 50%;
  height: 260px;
  object-fit: cover;
  display: block;
  background: #0F2F32;
}

/* At a glance */

.glance {
  margin-top: -1px;
  background: var(--teal-dark);
}

.glance-grid {
  max-width: 700px;
  margin: 0 auto;
  padding: 28px 24px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 12px;
}

.glance-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ivory);
}

.glance-number {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: #fff;
}

.glance-label {
  font-size: 0.82rem;
  color: #A9C4C0;
  line-height: 1.3;
}

.glance-total {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.18);
}

.glance-total .glance-number {
  font-size: 2rem;
  color: var(--rust);
}

/* Prose sections */

.prose, .banking {
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}

main .prose:last-of-type { border-bottom: none; }

h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  font-size: 1.6rem;
  margin: 0 0 18px;
  color: var(--teal);
}

h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin: 32px 0 10px;
  color: var(--teal);
}

.prose h3:first-of-type { margin-top: 8px; }

p {
  margin: 0 0 16px;
  max-width: 62ch;
  color: var(--text);
}

.prose p:last-child { margin-bottom: 0; }

/* Photos within sections */

.photo-pair {
  display: flex;
  gap: 4px;
  margin: 20px 0 24px;
}

.photo-pair img {
  width: 50%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  background: var(--stripe);
}

/* Tables */

.table-scroll {
  overflow-x: auto;
  margin: 0 0 8px;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
  font-size: 0.96rem;
}

table.tiers { min-width: 560px; }

thead th {
  background: var(--teal);
  color: var(--ivory);
  text-align: left;
  font-weight: 600;
  padding: 11px 14px;
}

tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

tbody tr:nth-child(even) {
  background: var(--stripe);
}

tfoot td {
  padding: 12px 14px;
  font-weight: 700;
  color: var(--teal);
  border-top: 2px solid var(--teal);
}

table td:last-child,
table th:last-child {
  text-align: right;
}

table.tiers td:last-child,
table.tiers th:last-child {
  text-align: left;
}

.unit {
  display: block;
  font-size: 0.82rem;
  color: var(--text-soft);
  font-weight: 400;
}

/* Banking */

.banking dl {
  margin: 0;
}

.banking-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.banking-row:last-child { border-bottom: none; }

.banking-row dt {
  flex: 0 0 150px;
  font-weight: 600;
  color: var(--teal);
}

.banking-row dd {
  flex: 1 1 300px;
  margin: 0;
  max-width: 46ch;
}

.banking-row a {
  color: var(--rust);
}

/* Funds raised progress */

.progress {
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}

.progress-stats {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.progress-amount {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--teal);
}

.progress-of {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-soft);
}

.progress-percent {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--rust);
}

.progress-bar {
  width: 100%;
  height: 14px;
  background: var(--stripe);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress-fill {
  height: 100%;
  background: var(--rust);
  border-radius: 999px 0 0 999px;
}

.progress-updated {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}


/* Footer */

.thanks {
  background: var(--teal-dark);
  color: var(--ivory);
  text-align: center;
  padding: 40px 24px 48px;
}

.thanks p {
  max-width: none;
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #E4EFED;
}

/* Responsive */

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 36px; }
  .hero h1 { font-size: 2.3rem; }
  .hero .subtitle { font-size: 1.05rem; margin-bottom: 24px; }
  .hero-photos img { height: 170px; }
  .glance-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 24px 24px 28px;
  }
  .glance-total { grid-column: 1 / -1; }
  .photo-pair img { height: 140px; }
  .prose, .banking { padding: 34px 0; }
  h2 { font-size: 1.35rem; }
  .banking-row dt { flex-basis: 100%; }

  table {
    min-width: 0;
    font-size: 0.86rem;
  }

  table.tiers { min-width: 0; }

  thead th,
  tbody td,
  tfoot td {
    padding: 8px 8px;
  }

  .unit {
    font-size: 0.75rem;
  }
}
