/* shepherdpsalm.org — swiss-grid-modular
   Palette: signal-red-and-cool-grey. Ornament: geometric rules.
   Site-specific stylesheet; no rule is shared with any other directory.

   FACES. Matrix row: Archivo Black (display) over Public Sans (text),
   self-hosted and subset. Font binaries are withheld from this build —
   redistribution/subsetting licences for concrete artifacts are not yet
   verified, which is a recorded pre-deployment item — so no @font-face is
   declared and the grid speaks through heavy system grotesques meanwhile.

   BADGES. This is the fleet's EN store-badge site. Official Apple and
   Google Play badge artwork is likewise a pre-deployment asset; until it
   clears, the store links render as typographic keys (.store-key), not as
   images. */

:root {
  --paper: #f4f5f6;
  --coolgrey: #c9cdd1;
  --steel: #55595e;
  --carbon: #17181a;
  --signal: #d82916;
  --grot-black: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --grot-text: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--carbon);
  font-family: var(--grot-text);
  font-size: clamp(0.98rem, 0.92rem + 0.3vw, 1.1rem);
  line-height: 1.55;
}

/* the plat: everything on this site lives in ruled modules */
.plat {
  max-width: 72rem;
  margin: 0 auto;
  border-left: 2px solid var(--carbon);
  border-right: 2px solid var(--carbon);
}
.mod {
  border-bottom: 2px solid var(--carbon);
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
}
.mod--halves {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 0;
  padding: 0;
}
.mod--halves > div {
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  border-top: 6px solid var(--signal);
}
.mod--halves > div + div { border-left: 2px solid var(--carbon); }

.masthead h1 {
  font-family: var(--grot-black);
  font-size: clamp(1.9rem, 1.2rem + 4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
  text-transform: uppercase;
}
.masthead h1 .signalword { color: var(--signal); }
.masthead .brief { max-width: 58ch; margin: 0; color: var(--steel); font-size: 1.05rem; }

.gridline-nav {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--carbon);
}
.gridline-nav a {
  flex: 1 1 auto;
  text-align: center;
  padding: 0.7rem 1rem;
  font-family: var(--grot-black);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--carbon);
  border-left: 2px solid var(--carbon);
}
.gridline-nav a:first-child { border-left: 0; }
.gridline-nav a:hover, .gridline-nav a:focus { background: var(--coolgrey); }
.gridline-nav [aria-current="page"] { background: var(--signal); color: #fff; }

.mod h2 {
  font-family: var(--grot-black);
  font-size: clamp(1.15rem, 1rem + 1vw, 1.7rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--signal);
  display: inline-block;
}
.mod h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 1.4rem 0 0.3rem;
  color: var(--steel);
}
.mod p { margin: 0 0 1rem; max-width: 62ch; }
.mod p:last-child { margin-bottom: 0; }
.mod q::before, .mod q::after { color: var(--signal); font-weight: 700; }

.versefield {
  margin: 1.25rem 0 0;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 2px solid var(--carbon);
  box-shadow: 0.4rem 0.4rem 0 var(--coolgrey);
  max-width: 40rem;
}
.versefield .coordinates {
  display: block;
  font-family: var(--grot-black);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 0.4rem;
}

/* the hinge map: the diagram that opens the site, drawn in rules not pixels */
.hinge-map { padding: 0; display: grid; grid-template-columns: 1fr; }
.hinge-map .field {
  padding: clamp(1.25rem, 3.5vw, 2rem);
}
.hinge-map .field.turn {
  border-top: 8px solid var(--signal);
}
.hinge-map .fieldname {
  font-family: var(--grot-black);
  font-size: 1.3rem;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}
.hinge-map .span { color: var(--signal); font-family: var(--grot-black); }
.hinge-map ul { margin: 0; padding-left: 1.1rem; }
.hinge-map li { margin: 0.15rem 0; }
@media (min-width: 46rem) {
  .hinge-map { grid-template-columns: 1fr 1fr; }
  .hinge-map .field.turn { border-top: 0; border-left: 8px solid var(--signal); }
}

.qa-mod dt {
  font-weight: 700;
  margin: 1.3rem 0 0.25rem;
}
.qa-mod dt::before { content: "— "; color: var(--signal); }
.qa-mod dd { margin: 0; max-width: 62ch; }

/* the funnel module: typographic store keys until badge art clears */
.app-mod { background: var(--carbon); color: var(--paper); }
.app-mod p { color: var(--coolgrey); }
.app-mod a.textline { color: #fff; }
.store-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 0.9rem 0 0.9rem; }
.store-key {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border: 2px solid var(--paper);
  font-family: var(--grot-black);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: transparent;
}
.store-key:hover, .store-key:focus { background: var(--signal); border-color: var(--signal); color: #fff; }

.baseplate {
  padding: clamp(1.25rem, 3.5vw, 2rem);
  font-size: 0.82rem;
  color: var(--steel);
  border-bottom: 2px solid var(--carbon);
}
.baseplate p { max-width: 70ch; margin: 0 0 0.5rem; }
