/* ECHO - Emergency Christian Homeless Outreach
   Version 2.2. One stylesheet for the four pages.

   Warm red, used with weight: oxblood where something has to land (the
   promise, the closing ask), cream for the reading surface, ember for small
   marks. A large serif carries the voice; small letterspaced caps carry the
   section labels. The palette also follows the phone's dark setting, because
   someone may be reading this at night. */

:root {
  --ink: #2a1614;
  --ink-soft: #5c423d;
  --paper: #fbf5f0;
  --tint: #f5e8e1;
  --card: #fffdfb;
  --line: #e6d3c9;
  --oxblood: #5a0f12;
  --oxblood-deep: #3d090b;
  --red: #a81c1c;
  --red-hover: #8a1414;
  --ember: #e0a03c;
  --cream: #fbf5f0;
  --max: 64rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.68 -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
}

img, svg { max-width: 100%; }

h1, h2, h3 { text-wrap: balance; }

.serif {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

p { margin: 0 0 1em; }

a { color: var(--red); text-underline-offset: .18em; }
a:hover { color: var(--red-hover); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- header ---------- */

.site-head {
  background: var(--paper);
  border-bottom: 3px solid var(--red);
}

.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-right: auto;
  text-decoration: none;
  color: var(--oxblood);
}

.brand:hover { color: var(--oxblood); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  color: var(--cream);
  background: var(--red);
}

.brand-mark svg { display: block; }

.brand-text b {
  display: block;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: .3em;
  line-height: 1;
  font-weight: 600;
}

.brand-text span {
  display: block;
  margin-top: .3rem;
  font-size: .72rem;
  letter-spacing: .02em;
  color: var(--ink-soft);
}

.site-nav { display: flex; flex-wrap: wrap; gap: .15rem; }

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .45rem .85rem;
  border-radius: .2rem;
  color: var(--ink);
  text-decoration: none;
  font-size: .95rem;
}

.site-nav a:hover { background: var(--tint); color: var(--oxblood); }

.site-nav a[aria-current="page"] {
  color: var(--cream);
  background: var(--red);
  font-weight: 600;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  color: var(--cream);
  background:
    radial-gradient(115% 85% at 8% -20%, rgba(224, 160, 60, .22), transparent 58%),
    radial-gradient(90% 80% at 100% 0%, rgba(168, 28, 28, .55), transparent 60%),
    var(--oxblood);
  padding: clamp(2.75rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.eyebrow {
  margin: 0 0 1.1rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #f0cfa8;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(2.6rem, 8.5vw, 4.5rem);
  line-height: .98;
  letter-spacing: -.025em;
  font-weight: 600;
  max-width: 16ch;
}

.lede {
  max-width: 46ch;
  margin: 0 0 1.9rem;
  font-size: 1.16rem;
  color: rgba(251, 245, 240, .88);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* A lit doorway beside the words - the mark in the header, drawn large.
   Purely decorative, so it is hidden on narrow screens. */
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }

.hero-door {
  display: none;
  position: relative;
  width: 100%;
  max-width: 19rem;
  aspect-ratio: 3 / 4;
  justify-self: end;
  border: 3px solid rgba(251, 245, 240, .78);
  border-radius: 50% 50% 0 0 / 36% 36% 0 0;
  overflow: hidden;
  background: linear-gradient(180deg,
    rgba(251, 245, 240, .05) 0%,
    rgba(224, 160, 60, .3) 52%,
    rgba(247, 200, 130, .92) 100%);
}

/* An inner arch line, so the shape reads as drawn, not as a missing image. */
.hero-door::before {
  content: "";
  position: absolute;
  inset: .75rem .75rem 0;
  border: 1px solid rgba(251, 245, 240, .34);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 36% 36% 0 0;
}

.hero-door::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(66% 54% at 50% 98%,
      rgba(247, 196, 120, .95),
      rgba(224, 160, 60, .45) 46%,
      transparent 80%);
  mix-blend-mode: screen;
}

@media (min-width: 52rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
  .hero-door { display: block; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.9rem;
  padding: .6rem 1.4rem;
  border: 2px solid var(--red);
  background: var(--red);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: .2rem;
}

.btn:hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; }

.btn-ghost { background: transparent; border-color: rgba(251, 245, 240, .55); color: var(--cream); }
.btn-ghost:hover { background: rgba(251, 245, 240, .14); border-color: var(--cream); color: var(--cream); }

.btn-onred { background: var(--cream); border-color: var(--cream); color: var(--oxblood); }
.btn-onred:hover { background: var(--ember); border-color: var(--ember); color: var(--oxblood-deep); }

/* ---------- sections ---------- */

.band { padding: clamp(2.25rem, 5.5vw, 4rem) 0; }
.band-tint {
  background: var(--tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.label {
  margin: 0 0 .9rem;
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}

.label::before {
  content: "";
  display: block;
  width: 2.1rem;
  height: 2px;
  margin-bottom: .75rem;
  background: var(--red);
}

.section-title {
  margin: 0 0 1.4rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(1.65rem, 4.2vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -.018em;
  font-weight: 600;
  max-width: 24ch;
}

.prose { max-width: 60ch; }
.prose p { margin-bottom: 1.05rem; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- the three reasons ---------- */

.reasons { list-style: none; margin: 0; padding: 0; }

.reason {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.reason:last-child { border-bottom: 1px solid var(--line); }

.reason h3 {
  margin: 0 0 .3rem;
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.01em;
}

.reason p { margin: 0; color: var(--ink-soft); max-width: 54ch; }

.aside-note { margin: 1.5rem 0 0; color: var(--ink-soft); font-size: .97rem; }
.aside-note a { font-weight: 600; text-decoration-thickness: 2px; }

/* ---------- the admission / hotel stay rule list ---------- */

.rule-list {
  list-style: none;
  max-width: 60ch;
  margin: 0;
  padding: 0;
}

.rule-list li {
  position: relative;
  padding: .8rem 0 .8rem 1.7rem;
  border-bottom: 1px solid var(--line);
}

.rule-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.55rem;
  width: .85rem;
  height: 2px;
  background: var(--red);
}

.rule-list li:last-child { border-bottom: 0; }

/* ---------- contact facts ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 1px;
  margin: 0 0 1.5rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: .2rem;
  overflow: hidden;
}

.fact { background: var(--card); padding: 1.2rem 1.3rem; }

.fact dt {
  margin-bottom: .5rem;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.fact dd {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.3;
}

/* A status word, not a link and not a form field: plain, muted, unfinished. */
.pending {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: .72em;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--ink-soft);
}

/* ---------- two-column band + the "still to come" card ---------- */

.split { display: grid; gap: 2rem; }

.call-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: .2rem;
  padding: 1.35rem 1.4rem;
}

.todo-list { list-style: none; margin: 0 0 1rem; padding: 0; }

.todo-list li {
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.todo-list li:last-child { border-bottom: 0; }

.call-card-note { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.call-card-action { margin: 1.1rem 0 0; }

@media (min-width: 52rem) {
  .split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
    gap: 2.5rem;
  }
}

/* ---------- closing band ---------- */

.call {
  background: var(--oxblood);
  color: var(--cream);
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.call h2 {
  margin: 0 0 .8rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(1.7rem, 4.4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 600;
}

.call p {
  max-width: 44ch;
  margin: 0 auto 1.7rem;
  color: rgba(251, 245, 240, .87);
  font-size: 1.08rem;
}

/* ---------- footer ---------- */

.site-foot {
  background: var(--oxblood-deep);
  color: rgba(251, 245, 240, .72);
  padding: 2.1rem 0 2.4rem;
  font-size: .92rem;
}

.site-foot a { color: var(--cream); }
.site-foot a:hover { color: var(--ember); }
.site-foot p { margin: 0 0 .55rem; }

.foot-nav { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; margin-bottom: 1.1rem; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 2.25rem; }
.foot-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }
.foot-mission { color: #f0cfa8; }
.draft { color: #e6cba4; font-size: .89rem; }

/* ---------- phone ---------- */

@media (max-width: 34rem) {
  .site-head .wrap { padding-top: .45rem; padding-bottom: .4rem; gap: .3rem; }
  .brand-mark { width: 2.15rem; height: 2.15rem; }
  .brand-text b { font-size: 1.3rem; letter-spacing: .24em; }
  .brand-text span { display: none; }
  .site-nav { width: 100%; gap: .4rem; }
  .site-nav a {
    flex: 1 1 0;
    justify-content: center;
    min-height: 3rem;
    padding: .4rem .25rem;
    border: 1px solid var(--line);
    border-radius: .15rem;
    font-size: .84rem;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
  }
  .site-nav a[aria-current="page"] { border-color: var(--red); }
  .foot-nav { gap: .2rem 1.1rem; }
}

/* ---------- night mode ---------- */

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f6ede8;
    --ink-soft: #cdb6ae;
    --paper: #171011;
    --tint: #201517;
    --card: #1f1416;
    --line: #3a2729;
    --oxblood: #2a0b0d;
    --oxblood-deep: #140708;
    --red: #e8776f;
    --red-hover: #f0918a;
    --ember: #e8a94a;
    --cream: #f6ede8;
  }

  .site-head { background: var(--paper); }
  .brand, .brand:hover { color: #f6ede8; }
  .brand-mark { background: #b3241f; color: #fff; }
  .site-nav a { color: var(--ink); }
  .site-nav a:hover { background: var(--tint); color: var(--ink); }
  .site-nav a[aria-current="page"] { background: #b3241f; color: #fff; }
  .draft { color: #e6cba4; }
  .pending { color: #cdb6ae; }
  .btn { background: #b3241f; border-color: #b3241f; color: #fff; }
  .btn:hover { background: #cf332c; border-color: #cf332c; }
  .btn-ghost { background: transparent; border-color: rgba(246, 237, 232, .5); color: #f6ede8; }
  .btn-ghost:hover { background: rgba(246, 237, 232, .14); }
  .fact { background: var(--card); }
}
