/* mexico-missionaries.com, Two Tall, October 2026 (design v4).
   Layout modelled on michaeljfox.org program pages: photo banner, white title card overlapping it,
   one centred reading column, full-width quote band, centred grids with thin dividers.
   Widths: --container (banner card, grids) and --column (all reading text). Both centred.
   Type: Fraunces (headings, lede, quotes, letters), Source Sans 3 (body, UI). Navy, white, marigold. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/fraunces-latin-full-normal.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url(/fonts/fraunces-latin-full-italic.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/fonts/source-sans-3-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 200 900; font-display: swap; src: url(/fonts/source-sans-3-latin-wght-italic.woff2) format("woff2"); }

:root {
  --paper: #ffffff;
  --mist: #eef1f5;
  --ink: #121a2e;
  --slate: #4f5b70;
  --night: #0b1630;
  --marigold: #e8a32e;
  --ochre: #8a5a00;
  --rule: #d8dde6;
  --container: 1200px;
  --column: 700px;
  --gutter: 20px;
  --space: 96px;
  --r-img: 14px;
  --r-card: 16px;
  --display: "Fraunces", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.15rem; line-height: 1.7; }
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ochre); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
a:focus-visible, .menu-toggle:focus-visible + .menu-button { outline: 3px solid var(--marigold); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-variation-settings: "SOFT" 50, "opsz" 72; color: var(--ink); line-height: 1.1; margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 1.5rem + 3vw, 4rem); }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); margin-top: 1.6em; }
h3 { font-size: 1.45rem; margin-top: 1.5em; font-variation-settings: "SOFT" 50, "opsz" 24; }
h4 { font-size: 1.2rem; margin-top: 1.4em; font-variation-settings: "SOFT" 50, "opsz" 18; }
p, ul, ol, figure { margin: 0 0 1.2em; }
figure { margin-left: 0; margin-right: 0; }
figcaption { font-size: 0.95rem; color: var(--slate); margin-top: 0.5em; }
iframe { max-width: 100%; border: 0; }

.skip { position: absolute; left: -999px; top: 0; background: var(--night); color: #fff; padding: 0.5em 1em; z-index: 10; }
.skip:focus { left: 1em; top: 1em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.column { width: min(100% - 2 * var(--gutter), var(--column)); margin-inline: auto; }

/* ---------- header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: relative; z-index: 3; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 18px 0; }
.brand { color: var(--ink); text-decoration: none; display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 36; font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; }
.brand-sub { font-size: 0.9rem; color: var(--slate); margin-top: 0.25em; }
.menu-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.menu-button { cursor: pointer; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; padding: 0.45em 1.1em; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }
.menu { display: none; width: 100%; }
.menu-toggle:checked ~ .menu { display: block; }
.menu ul { list-style: none; margin: 0; padding: 0.5em 0 0.25em; display: flex; flex-direction: column; }
.menu a { color: var(--ink); text-decoration: none; display: block; padding: 0.75em 0; min-height: 44px; border-top: 1px solid var(--rule); font-weight: 500; font-size: 1.05rem; }
.menu a[aria-current="page"], .menu a:hover { color: var(--ochre); }
@media (min-width: 1060px) {
  .site-header .wrap { flex-wrap: nowrap; }
  .menu-button { display: none; }
  .menu { display: block; width: auto; }
  .menu ul { flex-direction: row; gap: 0.1rem; padding: 0; }
  .menu a { border: 0; padding: 0.55em 0.8em; white-space: nowrap; font-size: 1rem; border-radius: 999px; }
  .menu a[aria-current="page"] { background: var(--mist); color: var(--ink); }
}

/* ---------- buttons and links */
.button { display: inline-flex; align-items: center; background: var(--marigold); color: var(--night); text-decoration: none; padding: 0.75em 1.6em; border-radius: 999px; font-weight: 700; min-height: 48px; line-height: 1.2; font-family: var(--sans); }
.button:hover { background: #f2b64a; color: var(--night); }
.text-link { font-weight: 600; color: var(--ink); text-decoration-color: var(--marigold); text-decoration-thickness: 2px; }
.text-link:hover { color: var(--ochre); }

/* ---------- banner photo + title card (every page) */
.banner { height: clamp(220px, 34vw, 460px); background: var(--night); }
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.banner-home { height: clamp(300px, 46vw, 600px); }
.title-card { position: relative; background: var(--paper); border-radius: var(--r-card); box-shadow: 0 18px 50px rgba(11,22,48,0.14); margin-top: clamp(-140px, -9vw, -60px); padding: clamp(1.75rem, 1rem + 3vw, 3.5rem) clamp(1.5rem, 1rem + 3vw, 3.5rem); }
.title-card-inner { max-width: var(--column); margin-inline: auto; }
@media (max-width: 760px) {
  .title-card { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; box-shadow: none; padding: 1.75rem var(--gutter) 0.5rem; margin-top: -40px; }
}
.title-card h1 { margin: 0; }
.title-sub { font-family: var(--display); font-variation-settings: "SOFT" 50, "opsz" 24; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); color: var(--slate); margin: 0.4em 0 0; line-height: 1.35; }
.subnav { margin-top: 1.5rem; }
.subnav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.subnav a { display: inline-flex; align-items: center; padding: 0.4em 1em; border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--mist); font-size: 1rem; min-height: 40px; font-weight: 500; }
.subnav a:hover { background: var(--rule); }
.subnav a[aria-current="page"] { background: var(--night); color: #fff; }

/* ---------- sections */
.section { padding: var(--space) 0; }
.section + .section { padding-top: 0; }
.section-mist { background: var(--mist); }
.section-mist + .section, .section + .section-mist, .band + .section, .section + .band { padding-top: var(--space); }
.section-head { text-align: center; margin: 0 auto 3rem; max-width: var(--column); }
.section-head h2 { margin: 0; }
.section-foot { text-align: center; margin: 2.5rem 0 0; }

/* lede: large serif opening paragraph with a marigold rule running in from the left edge */
.lede { position: relative; font-family: var(--display); font-variation-settings: "SOFT" 50, "opsz" 32; font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.9rem); line-height: 1.5; color: var(--night); font-weight: 400; margin-bottom: 1.4em; }
.lede::before { content: ""; position: absolute; top: 0.75em; right: calc(100% + 2rem); width: 100vw; height: 2px; background: var(--marigold); }
@media (max-width: 760px) { .lede::before { display: none; } }

/* ---------- reading column */
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose img { border-radius: var(--r-img); }
.prose figure { max-width: 440px; }
.prose figure img { width: 100%; }
.prose figure.lead-photo { max-width: none; margin: 0 0 2.5rem; }
.lead-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 25%; border-radius: var(--r-img); }
.prose::after { content: ""; display: table; clear: both; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 2.5rem 0 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: var(--r-img); }
.cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }

/* ---------- quote band (home) */
.band { background: var(--night); color: #fff; padding: var(--space) 0; }
.quote { display: grid; gap: 2rem; align-items: center; max-width: 960px; margin-inline: auto; }
.quote img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; object-position: center 30%; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--display); font-variation-settings: "SOFT" 80, "opsz" 72; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.3; font-weight: 500; margin: 0 0 0.6em; }
.quote cite { font-style: normal; color: var(--marigold); font-size: 1.1rem; font-weight: 600; }
@media (min-width: 760px) { .quote { grid-template-columns: 180px minmax(0, 1fr); gap: 3rem; } }

/* ---------- ministry grid: centred columns split by thin rules */
.pillars { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; }
.pillars li { text-align: center; padding: 1.5rem 1.5rem; border-top: 1px solid var(--rule); }
.pillars li:first-child { border-top: 0; }
.pillars strong { display: block; font-family: var(--display); font-variation-settings: "SOFT" 50, "opsz" 48; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 600; color: var(--night); line-height: 1.15; }
.pillars span { display: block; font-size: 1.15rem; color: var(--slate); margin-top: 0.3em; }
@media (min-width: 900px) {
  .pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pillars li { border-top: 0; border-left: 1px solid var(--rule); padding: 0.5rem 1.5rem; }
  .pillars li:first-child { border-left: 0; }
}

/* ---------- photos */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-img); }
@media (max-width: 640px) { .strip { grid-template-columns: 1fr; } }
.gallery { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-img); }
.gallery figcaption { text-align: center; }

/* ---------- products (Mary's books and music) */
.products { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.product { background: var(--mist); border-radius: var(--r-card); padding: 1.75rem; display: grid; gap: 1.5rem; grid-template-columns: 150px minmax(0, 1fr); align-items: start; }
.product figure { margin: 0; }
.product figure img { border-radius: 8px; max-height: 250px; width: auto; }
.product figcaption { font-size: 0.85rem; }
.product-text h3 { margin-top: 0; font-size: 1.35rem; }
.product-text p { margin-bottom: 0.6em; font-size: 1.05rem; }
.product-text p:last-child { margin-bottom: 0; }
.product-text .button { padding: 0.5em 1.2em; min-height: 40px; font-size: 1rem; }
.products-intro { margin-bottom: 3rem; }

/* ---------- prayer letters list */
.years { display: grid; gap: 3rem 3.5rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.year h2 { margin: 0 0 0.5em; font-size: 1.7rem; }
.letter-list { list-style: none; padding: 0; margin: 0; }
.letter-list li { padding: 0.65em 0; border-top: 1px solid var(--rule); line-height: 1.4; }
.letter-list a { font-weight: 600; text-decoration: none; color: var(--ink); }
.letter-list a:hover { color: var(--ochre); }
.letter-list .period { color: var(--slate); font-size: 0.95rem; display: block; }

/* ---------- a letter */
.letter-body { font-family: var(--display); font-variation-settings: "SOFT" 50, "opsz" 16; font-size: 1.25rem; line-height: 1.8; }
.letter-body p { margin-bottom: 1.3em; }
.pager { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; border-top: 1px solid var(--rule); padding-top: 1.25rem; margin-top: 3rem; }
.pager a { font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); }
.pager a:hover { color: var(--ochre); }

/* ---------- footer */
.site-footer { background: var(--night); color: rgba(255,255,255,0.82); padding: var(--space) 0 2rem; font-size: 1rem; line-height: 1.6; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand .brand-name { color: #fff; font-size: 2rem; display: block; }
.footer-brand .brand-sub { color: rgba(255,255,255,0.75); display: block; margin: 0.3em 0 1.5em; }
.footer-letter { margin: 0 0 1.25rem; }
.footer-letter a { font-family: var(--display); font-size: 1.25rem; text-decoration-color: var(--marigold); text-decoration-thickness: 2px; }
.footer-heading { color: #fff; font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 0 0 0.6em; letter-spacing: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.18); margin-top: 3rem; padding-top: 1.25rem; font-size: 0.95rem; }
.footer-bottom p { margin: 0; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 3rem; } }

@media (max-width: 520px) {
  :root { --space: 60px; }
  .product { grid-template-columns: 96px minmax(0, 1fr); padding: 1.2rem; }
}
