/* Mercy Works Outreach — one stylesheet for every page. Plain CSS, no build step.
   Colors and fonts follow the brand guide (MercyWorksOutreach_BrandKit, v1). */

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --mercy-blue: #2A5599;  /* primary: logo, headings, links */
  --deep-blue:  #1D3F75;  /* headlines, hover */
  --water-blue: #7FA3D6;  /* thin rules and accents only, not text */
  --slate:      #5B6472;  /* secondary text */
  --mist:       #EEF3F9;  /* light section backgrounds */
  --white:      #FFFFFF;
  --ink:        #1F2430;  /* body text */
  --hairline:   rgba(127, 163, 214, 0.5);  /* Water Blue at half strength, for quiet rules */

  --font-heading: "EB Garamond", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  /* One plain band of Mercy Blue. Keep it a single solid band: no stripes
     (see the brand guide's note on the Missionaries of Charity sari border). */
  border-top: 6px solid var(--mercy-blue);
}

::selection { background: var(--mist); color: var(--deep-blue); }

/* For headings that screen readers need but the page doesn't show */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.page {
  flex: 1 0 auto;
  width: 100%;
  max-width: 684px;
  margin: 0 auto;
  padding: 52px 24px 72px;
}

a { color: var(--mercy-blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--deep-blue); text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--mercy-blue); outline-offset: 3px; border-radius: 2px; }

p { margin: 0 0 1em; text-wrap: pretty; }

strong, b { font-weight: 600; }

/* Masthead */

.masthead { text-align: center; }
.masthead .logo { margin: 0; line-height: 0; }
.masthead .logo img { display: block; margin: 0 auto; width: 230px; max-width: 100%; height: auto; }
.masthead .logo a { display: inline-block; }

.masthead .tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px 0 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.32rem;
  line-height: 1.3;
  letter-spacing: 0.015em;
  color: var(--slate);
}
.masthead .tagline::before,
.masthead .tagline::after {
  content: "";
  flex: 0 0 34px;
  height: 1px;
  background: var(--water-blue);
}

.masthead nav {
  margin: 30px 0 52px;
  padding: 11px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.masthead nav a {
  display: inline-block;
  margin: 0 16px;
  padding: 4px 0;
  color: var(--slate);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.masthead nav a:hover { color: var(--deep-blue); }
.masthead nav a[aria-current] { color: var(--mercy-blue); border-bottom-color: var(--water-blue); }

/* The Support tab is set apart from the others as a solid blue pill */
.masthead nav a.support {
  margin-left: 10px;
  padding: 5px 16px 5px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--mercy-blue);
  color: var(--white);
}
.masthead nav a.support:hover,
.masthead nav a.support[aria-current] { background: var(--deep-blue); color: var(--white); }

/* Text */

h1.title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--deep-blue);
  margin: 0 0 26px;
}

h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--deep-blue);
  margin: 68px 0 16px;
}
h1.title + h2 { margin-top: 36px; }
/* A short accent rule above each section heading */
h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-bottom: 18px;
  background: var(--water-blue);
}

/* The home page's opening statement, in a centered Mist panel like the prayer */
.lede {
  margin: 0;
  padding: 34px 30px 32px;
  background: var(--mist);
  border-radius: 10px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.38;
  color: var(--deep-blue);
  text-wrap: balance;
}

/* The "new and still forming" notice */

.notice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
  padding: 18px 22px;
  background: var(--mist);
  border: 1px solid var(--hairline);
  border-left: 5px solid var(--mercy-blue);
  border-radius: 10px;
}
.notice p { margin: 0; }
.notice strong { color: var(--deep-blue); }
.notice-icon { flex: 0 0 auto; margin-top: 1px; }

/* The vision statement in "What we do" */

.vision {
  margin: 1.5em 0;
  padding: 2px 0 2px 24px;
  border-left: 2px solid var(--water-blue);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.42rem;
  line-height: 1.42;
  color: var(--deep-blue);
}

/* The five tenets */

.tenets { list-style: none; margin: 26px 0 0; padding: 0; counter-reset: tenet; }
.tenets li {
  counter-increment: tenet;
  position: relative;
  padding: 0 0 24px 58px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--hairline);
}
.tenets li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.tenets li::before {
  content: counter(tenet);
  position: absolute;
  left: 2px;
  top: -0.14em;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 2.7rem;
  line-height: 1;
  color: var(--water-blue);
}
.tenets h3 {
  font-family: var(--font-heading);
  font-size: 1.42rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--deep-blue);
  margin: 0 0 6px;
}
.tenets p { margin: 0; }

/* Prayer */

.prayer {
  margin: 32px 0 0;
  padding: 38px 24px 34px;
  background: var(--mist);
  border-radius: 10px;
  text-align: center;
}
.prayer p {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.36rem;
  line-height: 1.5;
  color: var(--deep-blue);
}
.prayer .by {
  margin: 22px 0 0;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
}
.prayer .by::before {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  margin: 0 auto 16px;
  background: var(--water-blue);
}

/* Document list */

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.rows li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 20px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--hairline);
}
.rows a { font-weight: 600; }
.rows .pending { color: var(--slate); }
/* Board page: a director's name in the heading face, with the title under it in the tagline's face */
.rows .name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.42rem;
  line-height: 1.25;
  color: var(--deep-blue);
}
.rows .role {
  display: block;
  margin-top: 2px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: 0.015em;
  color: var(--slate);
}
.rows .meta {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
}

/* Contact page */

.contact-ways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  margin: 34px 0 0;
}
.contact-ways p, .contact-ways address { margin: 0; font-style: normal; font-size: 1.08rem; }
h2.label {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mercy-blue);
}
h2.label::before { display: none; }

.map { margin: 36px 0 0; }
.map img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hairline);
  border-radius: 10px;
}
.map figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--slate);
}

/* Small print under a list */

.note {
  margin: 16px 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--slate);
}
.note strong { color: var(--ink); }

/* Support page: the "coming soon" panel and the video placeholder */

.soon {
  padding: 30px 26px 28px;
  background: var(--mist);
  border-radius: 10px;
  text-align: center;
}
.soon p { margin: 0; }
.soon .soon-label {
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.9rem;
  line-height: 1.2;
  color: var(--deep-blue);
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  aspect-ratio: 16 / 9;
  background: var(--mist);
  border: 1px dashed var(--water-blue);
  border-radius: 10px;
}
.video-placeholder p {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
}

/* Footer */

.site-footer {
  flex: 0 0 auto;
  padding: 30px 24px 34px;
  background: var(--mist);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--slate);
  text-align: center;
}
.site-footer p { margin: 0 0 3px; }
.site-footer .org {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--deep-blue);
  margin-bottom: 6px;
}

@media (max-width: 480px) {
  body { font-size: 17px; }
  .page { padding: 38px 20px 56px; }
  .masthead .logo img { width: 200px; }
  .masthead .tagline { font-size: 1.2rem; gap: 12px; }
  .masthead .tagline::before, .masthead .tagline::after { flex-basis: 22px; }
  .masthead nav { margin-bottom: 40px; }
  .masthead nav { letter-spacing: 0.13em; }
  .masthead nav a { margin: 0 7px; }
  .masthead nav a.support { margin-left: 6px; padding: 5px 11px 5px 13px; }
  .lede { font-size: 1.42rem; padding: 26px 18px 24px; }
  h1.title { font-size: 2.1rem; }
  h2 { font-size: 1.75rem; margin-top: 56px; }
  .vision { font-size: 1.3rem; padding-left: 18px; }
  .tenets li { padding-left: 46px; }
  .tenets li::before { font-size: 2.3rem; }
  .prayer { padding: 30px 14px 28px; }
  .contact-ways { grid-template-columns: 1fr; }
  .prayer p { font-size: 1.24rem; }
}

@media print {
  body { border-top: 0; }
  .masthead nav { display: none; }
}
