:root {
  color-scheme: light;
  --bg: #f7f5f3;
  --bg-soft: #ffffff;
  --panel: rgba(253, 227, 227, 0.92);
  --panel-strong: rgba(253, 227, 227, 1);
  --text: #6b0f14;
  --muted: rgba(107, 15, 20, 0.72);
  --accent: #b00b10;
  --accent-soft: rgba(214, 31, 44, 0.12);
  --border: rgba(17, 17, 17, 0.12);
  --shadow: 0 24px 70px rgba(17, 17, 17, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--accent);
  color: var(--text);
  font-family: "Segoe UI", "Trebuchet MS", "Helvetica Neue", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(17, 17, 17, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.03) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 80%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 32px;
  display: grid;
  grid-template-columns: 1fr 360px;
  grid-template-rows: auto 1fr auto;
  gap: 24px 28px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(253, 227, 227, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  grid-column: 1 / -1;
  color: var(--text);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #8f0e16);
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
}

.hero {
  grid-column: 1 / 2;
  padding: 36px;
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-copy h1,
.section-heading h2,
.contact h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 8vw, 5.6rem);
}

.section-heading h2,
.contact h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 700;
}

.lead,
.section p,
.contact p,
.hero-points,
.info-card p,
.timeline-item p,
.hero-card p {
  padding: 24px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 236, 236, 0.95), rgba(255, 241, 241, 0.9)),
    linear-gradient(135deg, rgba(214, 31, 44, 0.06), transparent 60%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text);
  margin: 22px 0 0;
  font-size: 1.08rem;
}

/* Reusable pink card, same look as the pink cards used elsewhere on the site */
.pink-card {
  padding: 24px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 236, 236, 0.95), rgba(255, 241, 241, 0.9)),
    linear-gradient(135deg, rgba(214, 31, 44, 0.06), transparent 60%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 12px;
}

.pink-card,
.pink-card * {
  color: var(--text) !important;
}

/* Footer card matches the soft pink look and dark text */
.footer-card {
  padding: 20px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 236, 236, 0.95), rgba(255, 241, 241, 0.9)),
    linear-gradient(135deg, rgba(214, 31, 44, 0.04), transparent 60%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text);
  margin-top: 18px;
}

/* Make all textual elements inside pink/hero/footer cards black for readability */
.hero-card, .hero-card *,
.footer-card, .footer-card * {
  color: var(--text) !important;
}

/* place hero-card in the right column spanning all rows (header -> footer) */
.hero-card {
  grid-column: 2 / 3;
  grid-row: 1 / -1;
  align-self: stretch;
  justify-self: stretch;
  padding: 24px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(253, 227, 227, 0.95), rgba(253, 227, 227, 0.9)),
    linear-gradient(135deg, rgba(214, 31, 44, 0.1), transparent 60%);
  border: 1px solid rgba(17, 17, 17, 0.12);
  color: var(--text);
}

.contact-page-section {
  grid-column: 1 / 2;
}

/* Stacked layout: header, then hero card, then main content, then footer,
   all in a single column instead of the two-column grid. */
.page-shell--stacked {
  grid-template-columns: 1fr;
}

.page-shell--stacked .hero-card {
  grid-column: 1;
  grid-row: auto;
  margin-bottom: 22px;
}

.page-shell--stacked .contact-page-section {
  grid-column: 1;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.photo-card {
  margin: 0;
}

.photo-frame {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255, 236, 236, 0.95), rgba(255, 241, 241, 0.9)),
    linear-gradient(135deg, rgba(214, 31, 44, 0.12), transparent 60%);
  border: 1px dashed rgba(17, 17, 17, 0.25);
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-card figcaption {
  margin-top: 10px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

@media (max-width: 640px) {
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-page-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 236, 236, 0.95), rgba(255, 241, 241, 0.9)),
    linear-gradient(135deg, rgba(214, 31, 44, 0.06), transparent 60%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow);
}

.contact-card {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 236, 236, 0.95), rgba(255, 241, 241, 0.9)),
    linear-gradient(135deg, rgba(214, 31, 44, 0.06), transparent 60%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow);
  margin-top: 24px;
  justify-content: space-between;
  align-items: center;
}

.contact-page-card > * {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

.contact-page-info {
  display: grid;
  gap: 8px;
}

.contact-page-brand,
.contact-page-built {
  margin: 0;
}

.contact-card > *,
.contact-page-card h2,
.contact-page-card p,
.contact-page-card a,
.contact-page-card strong,
.contact-page-card span,
.contact-page-info p,
.contact-page-info strong,
.contact-page-info span,
.contact-page-info div {
  color: var(--text) !important;
}

.footer-card-contact,
.footer-contact {
  margin-top: 0;
}

/* Main textual elements on white cards: black text, buttons unaffected */
.hero h1,
.hero p,
.hero .lead,
.hero .lead-subtext,
.hero .hero-points,
.hero .hero-points li,
.section h2,
.section p,
.info-card h3,
.info-card p,
.metric-grid div strong,
.metric-grid div span,
.timeline-item h3,
.timeline-item p,
.stat strong,
.stat span,
.contact h2,
.contact p {
  color: var(--text);
}

.lead-subtext {
  margin: 10px 0 0;
  font-weight: 700;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #b00b10;
}

.button-secondary {
  background: rgba(253, 227, 227, 1);
  border-color: var(--border);
  color: var(--text);
}

.hero-points {
  margin: 24px 0 0;
  padding-left: 18px;
}

.card-header,
.metric-grid,
.timeline-item,
.stats,
.contact {
  display: flex;
}

.card-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.card-kicker,
.card-status {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-status {
  color: var(--text);
  background: var(--accent-soft);
  border: 1px solid rgba(214, 31, 44, 0.25);
  border-radius: 999px;
  padding: 7px 11px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-grid div,
.info-card,
.timeline-item,
.stat {
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.metric-grid div {
  padding: 16px;
}

.metric-grid strong,
.stat strong,
.timeline-item span {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
}

.metric-grid strong {
  font-size: 1.8rem;
}

.section {
  margin-top: 24px;
  padding: 30px;
}

.section-heading {
  margin-bottom: 22px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card {
  padding: 22px;
}

.info-card h3,
.timeline-item h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  color: var(--text);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
}

.timeline-item span {
  min-width: 46px;
  font-size: 1.2rem;
  color: var(--text);
}

.stats {
  gap: 16px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.stat {
  flex: 1 1 180px;
  padding: 20px;
}

.stat strong {
  font-size: 2rem;
  margin-bottom: 10px;
}

.stat span {
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  color: var(--panel-strong);
  font-size: 0.92rem;
}

/* Text sitting directly on the plain red background (no card behind it)
   gets a light pink so it stays readable; card text stays dark red. */
.section-heading .eyebrow,
.section-heading h2,
.section-heading .lead-subtext,
.contact-page-section .eyebrow,
.contact-page-section h2,
.contact-page-section .lead-subtext {
  color: var(--panel-strong);
}

@media (max-width: 960px) {
  .page-shell {
    display: block;
    width: 100%;
    padding: 12px 10px 28px;
  }

  .hero-card {
    grid-column: auto;
    grid-row: auto;
    margin-bottom: 18px;
  }

  .hero,
  .split,
  .card-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero,
  .section,
  .contact {
    padding: 24px;
  }

  .topbar,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 10px;
  }

  .topbar {
    top: 10px;
    padding: 14px 16px;
  }

  .nav {
    gap: 12px;
    font-size: 0.88rem;
  }

  .hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

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