/* The Port Ministries — proposed redesign
   Type: Bevan (display, hand-painted-sign feel) + Atkinson Hyperlegible (body).
   Atkinson Hyperlegible was designed by the Braille Institute for low-vision
   readers — a deliberate choice for an org whose clinic serves uninsured and
   older neighbors. One locked accent: bread-crust orange. */

@font-face { font-family: "Bevan"; src: url("../fonts/bevan-400.woff2") format("woff2");
  font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/AtkinsonHyperlegible-Regular.woff2") format("woff2");
  font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/AtkinsonHyperlegible-Bold.woff2") format("woff2");
  font-weight: 700; font-display: swap; }

/* Palette taken FROM THEM, not imposed on them: their logo and their
   "THIS IS WHAT ___ LOOKS LIKE" photo campaign are navy duotone with cream
   letterpress type. So: their navy + their cream, with one warm amber accent
   (bread) for actions. Their existing photography then sits native. */
:root {
  --paper: #F7F1E6;        /* the cream from their campaign type */
  --paper-2: #EDE3D2;
  --ink: #16232F;          /* the navy from their duotone shadows */
  --ink-soft: #4A5A69;
  --crust: #B4531B;        /* accent — large text, buttons */
  --crust-deep: #8A3E12;   /* accent — small text (higher contrast) */
  --crust-light: #E8A15C;  /* accent on dark */
  --board: #16232F;
  --line: #DCD0BC;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Atkinson", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}
h1, h2, h3, .display { font-family: "Bevan", Georgia, serif; font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }
img { max-width: 100%; display: block; }
a { color: var(--crust-deep); }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 22px; }
.section { padding-block: 64px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 99; }

/* ---------- preview ribbon ---------- */
.ribbon {
  background: var(--paper-2); color: var(--ink); font-size: 14px;
  padding: 10px 22px; display: flex; flex-wrap: wrap; gap: 10px 18px;
  align-items: center; justify-content: center; border-bottom: 1px solid var(--line);
}
.ribbon a, .ribbon button {
  color: var(--crust-deep); font: inherit; background: none; border: 0;
  text-decoration: underline; cursor: pointer; padding: 6px 2px; min-height: 44px;
  display: inline-flex; align-items: center;
}

/* ---------- header ---------- */
.header { background: var(--board); color: #fff; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; min-height: 44px; }
/* their real wordmark, knocked out to cream so it reads on the navy bar
   (the source PNG is navy-on-transparent and vanished against the header) */
.brand img { width: 186px; height: auto; filter: brightness(0) invert(1); }
.brand-name { position: absolute; left: -9999px; }
.brand-sub { display: block; padding-left: 2px; font-family: "Atkinson", sans-serif; font-size: 11px; letter-spacing: .11em;
  text-transform: uppercase; color: var(--crust-light); margin-top: 3px; }

.nav-desktop { display: none; gap: 22px; align-items: center; }
.nav-desktop a { color: #fff; text-decoration: none; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.nav-desktop a:hover { color: var(--crust-light); }
.lang-link { border: 1px solid rgba(255,255,255,.45); border-radius: 4px; padding: 0 12px; }

.nav-mobile summary {
  list-style: none; cursor: pointer; color: #fff; font-weight: 700; font-size: 15px;
  min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: flex-end;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-drop { position: absolute; left: 0; right: 0; background: var(--board);
  border-top: 1px solid rgba(255,255,255,.16); padding: 6px 22px 16px; z-index: 20; }
.nav-drop a { display: block; color: #fff; text-decoration: none; padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.12); min-height: 44px; }

/* ---------- hero ---------- */
.hero { background: var(--paper); padding-block: 44px 8px; }
.kicker { font-size: 12.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--crust-deep); font-weight: 700; margin: 0 0 14px; }
.hero h1 { font-size: clamp(34px, 6.4vw, 62px); margin: 0 0 16px; max-width: 15ch; }
.hero-lede { font-size: clamp(17px, 2.1vw, 21px); color: var(--ink-soft); max-width: 46ch; margin: 0 0 26px; }

/* ---------- THE BOARD (signature artifact) ---------- */
.board {
  background: var(--board); color: #fff; border-radius: 6px;
  padding: 26px 22px 22px; box-shadow: 0 14px 34px rgba(36,26,18,.20);
  border: 3px solid var(--board); outline: 2px solid var(--crust); outline-offset: -11px;
}
.board-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-bottom: 6px; }
.board-title { font-family: "Bevan", Georgia, serif; font-size: clamp(20px, 3vw, 26px); margin: 0; }
.board-note { font-size: 13.5px; color: var(--crust-light); }
.board-list { list-style: none; margin: 18px 0 0; padding: 0; }
.board-row { display: grid; grid-template-columns: 1fr; gap: 2px;
  padding: 15px 0; border-top: 1px solid rgba(255,255,255,.17); }
.board-row:first-child { border-top: 0; padding-top: 4px; }
.board-what { font-family: "Bevan", Georgia, serif; font-size: 19px; }
.board-when { font-size: 19px; font-weight: 700; color: var(--crust-light); }
.board-extra { font-size: 14.5px; color: #D9CCBD; }
.board-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.17);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.board-addr { font-size: 15px; color: #E6DACB; }
.board-addr strong { color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 4px; font-weight: 700;
  text-decoration: none; font-size: 16px; white-space: nowrap;
}
.btn-primary { background: var(--crust); color: #fff; }
.btn-primary:hover { background: var(--crust-deep); }
.btn-ghost { border: 2px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-on-dark { background: var(--crust); color: #fff; }

/* ---------- numbers ---------- */
.numbers { background: var(--paper-2); }
.num-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.num-big { font-family: "Bevan", Georgia, serif; font-size: clamp(38px, 7vw, 60px); line-height: 1; color: var(--crust-deep); }
.num-label { font-size: 15.5px; color: var(--ink-soft); margin-top: 6px; max-width: 26ch; }

/* ---------- programs ---------- */
.prog { display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 30px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
/* square: their campaign images are 1:1 with type + emblem baked in;
   any other ratio crops their own headline off */
.card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.card-body { padding: 20px 20px 24px; }
.card h3 { font-size: 22px; margin: 0 0 4px; }
.card-when { font-weight: 700; color: var(--crust-deep); font-size: 16px; margin: 0 0 10px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ---------- funding band ---------- */
.funding { background: var(--board); color: #fff; }
.funding h2 { font-size: clamp(26px, 4.4vw, 42px); margin: 0 0 16px; max-width: 20ch; }
.funding p { color: #E2D6C7; max-width: 56ch; font-size: 17.5px; }
.funding .kicker { color: var(--crust-light); }
.give-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.give-note { font-size: 15px; color: #C9BBAA; margin-top: 16px; }

/* ---------- volunteer / contact ---------- */
.two { display: grid; grid-template-columns: 1fr; gap: 34px; }
.form-mock { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 22px; }
.form-mock label { display: block; font-weight: 700; font-size: 14.5px; margin: 14px 0 5px; }
.form-mock input, .form-mock select {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit;
  border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink);
}
.form-mock .btn { width: 100%; margin-top: 18px; }
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }

.contact-list { list-style: none; padding: 0; margin: 18px 0 0; font-size: 17px; }
.contact-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }

/* ---------- footer ---------- */
.footer { background: var(--board); color: #E2D6C7; padding-block: 40px; font-size: 15px; }
.footer a { color: var(--crust-light); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.footer-brand { font-family: "Bevan", Georgia, serif; color: #fff; font-size: 18px; }

/* sticky call bar — BOTTOM pinned on mobile only */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--crust); display: flex;
}
.callbar a { flex: 1; text-align: center; color: #fff; text-decoration: none; font-weight: 700;
  padding: 14px 10px; min-height: 52px; display: flex; align-items: center; justify-content: center; }
.callbar a + a { border-left: 1px solid rgba(255,255,255,.35); }
body { padding-bottom: 56px; }

@media (min-width: 760px) {
  .num-grid { grid-template-columns: repeat(4, 1fr); }
  .prog { grid-template-columns: repeat(2, 1fr); }
  .two { grid-template-columns: 1.05fr .95fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .board-row { grid-template-columns: 1.05fr 1.15fr; align-items: baseline; gap: 4px 18px; }
  .board-extra { grid-column: 1 / -1; }
  .section { padding-block: 78px; }
}
@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .nav-mobile { display: none; }
  .callbar { display: none; }
  body { padding-bottom: 0; }
  .hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
  .hero { padding-block: 62px 10px; }
}

/* the subline wrapped to 3 lines beside the wordmark on phones and crowded it;
   the hero kicker already states the neighborhoods */
@media (max-width: 620px) {
  .brand-sub { display: none; }
  .brand img { width: 168px; }
}
