/* The Dominion look, carried to New Life's own pages. A study: this file is
   served only by lab/dominion-look/server.mjs and is not part of the live
   site. Andrew, Nov 11 2026: "I love the font and look of the dominion page,
   Could we change the font and look to match?"

   What comes across from the Dominion page, value for value:
     the ground   #151714 charcoal, panels #1d201b and #232720
     the type     #eee8da bone, #b8bfb0 for quieter lines
     the face     Neue Haas Display Black, in capitals, set tight
     the paper    the same grain, at the same strength
     the buttons  full pills in the display face
   No green anywhere on the church's pages: Andrew asked for the font and
   the look, and green is the conference's own colour. The footer stays
   light, exactly as it already is under the Dominion page. */
@font-face { font-family: "Neue Haas Display"; src: url("/assets/fonts/neue-haas-display-black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Neue Haas Display"; src: url("/assets/fonts/neue-haas-display-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Neue Haas Display"; src: url("/assets/fonts/neue-haas-display-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

body[data-look="dominion"] {
  --bone: #151714;
  --bone-2: #1d201b;
  --ink: #eee8da;
  --ink-soft: #b8bfb0;
  --line: rgba(238, 232, 218, 0.14);
  --wash: #1d201b;
  --wash-edge: #232720;
  --focus-ring: #b8bfb0;
  --display: "Neue Haas Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
body[data-look] ::selection { background: var(--ink); color: var(--bone); }

/* The grain from the flyer, under everything, over the ground. */
body[data-look]::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.09; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- the face ---------- */
body[data-look] :is(.beats, .fw, .say-head, .life-title, .home-head, .week-head, .pastor-head, .come-head, .phero h1, .stack h2, .conference-type h2, .prose h2) {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.024em;
  word-spacing: 0.05em;
  line-height: 0.94;
  text-wrap: balance;
}
body[data-look] .say-head { font-size: clamp(2.3rem, 6vw, 5.6rem); max-width: 14ch; }
body[data-look] .life-title { font-size: clamp(1.4rem, 2.6vw, 2.2rem); letter-spacing: -0.02em; }
body[data-look] :is(.home-head, .week-head) { font-size: clamp(1.9rem, 3.8vw, 3.4rem); }
body[data-look] .pastor-head { font-size: clamp(1.8rem, 3.5vw, 3.1rem); }
body[data-look] .phero h1 { font-size: clamp(2.4rem, 6.4vw, 5.4rem); letter-spacing: -0.035em; line-height: 0.9; }
body[data-look][data-page="statement-of-faith"] .phero h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
body[data-look] .stack h2 { font-size: clamp(1.9rem, 4vw, 3.3rem); }
body[data-look] .conference-type h2 { font-size: clamp(2.2rem, 4.6vw, 4.4rem); letter-spacing: -0.035em; line-height: 0.9; }
body[data-look] .prose h2 { font-size: clamp(1.3rem, 2.1vw, 1.7rem); letter-spacing: -0.015em; line-height: 1; }
body[data-look] .come-head { font-size: clamp(2.1rem, 5.2vw, 4.6rem); max-width: none; }
body[data-look][data-page] .come-compact .come-head { font-size: clamp(1.9rem, 3.4vw, 3.2rem); }

/* The opening lines roll inside a window one line tall. Capitals have no
   descenders to clear, so the window, the line and the roll all drop from
   1.22em to 1em together. */
body[data-look] .beats { line-height: 1; letter-spacing: -0.035em; }
body[data-look] :is(.beat-mask, .beat-line) { height: 1em; }
body[data-look] .beat-mask + .beat-mask { margin-top: -0.06em; }
body[data-look] .beat-track { transform: translateY(calc(var(--swap, 0) * -1em)); }
body[data-look] .fw { letter-spacing: -0.035em; line-height: 0.9; }

/* Names of people and of things: the bold cut, the way the speakers and the
   schedule are set on the Dominion page. */
body[data-look] :is(.items h3, .latest-title, .wl-time, .history-year, .poster .facts span, .poster .facts a) {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.012em;
}
body[data-look] .wl-time { font-size: clamp(1.4rem, 2.1vw, 1.85rem); }
body[data-look] .staff-grid h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.005em; font-size: 1rem; }
body[data-look][data-page] :is(.ministry-directory .items h3, .campus-section .items h3, .story-section .items li:nth-child(2) h3, .giving-options .items li:first-child h3) {
  font-weight: 900; text-transform: uppercase; letter-spacing: -0.025em; line-height: 0.96;
}
body[data-look] :is(.wl-day, .foot-label, .lf figcaption, .pastor-pair figcaption) { font-family: var(--display); font-weight: 500; letter-spacing: 0.01em; }

/* Opening paragraphs take the light weight Dominion's do. */
body[data-look] :is(.say-body, .home-line, .pastor-body, .phero .lead, .come-body, .ask .ask-lead, .conference-type > p:not(.conference-date)) { font-weight: 300; }

/* ---------- the nav on the dark ground ---------- */
body[data-look] .nav.solid { background: rgba(21, 23, 20, 0.86); }
body[data-look] .nav.solid .nav-mark img, body[data-look].in-portal .nav-mark img { filter: none; }

/* ---------- buttons: Dominion's pills ---------- */
body[data-look] .btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  background: var(--ink); color: var(--bone);
  font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: 0.005em;
}
body[data-look] .btn:hover { background: #fff; }
body[data-look] .btn:active { transform: translateY(0) scale(0.98); }
body[data-look] .btn.ghost { background: transparent; color: var(--ink); border: 0; box-shadow: inset 0 0 0 1.5px rgba(238, 232, 218, 0.4); }
body[data-look] .btn.ghost:hover { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
body[data-look][data-page] .come-compact .btn { background: transparent; color: var(--ink); font-size: 1rem; box-shadow: none; }
body[data-look] .text-link { font-family: var(--display); font-weight: 700; }

/* ---------- forms: Dominion's fields ---------- */
body[data-look] .rsvp-form label { font-family: var(--display); font-weight: 500; letter-spacing: 0.01em; color: var(--ink); }
body[data-look] .rsvp-form input:not([name="website"]), body[data-look] .rsvp-form textarea {
  background: var(--bone); border-color: rgba(238, 232, 218, 0.22); color: var(--ink); border-radius: 10px; font-family: var(--font); font-weight: 400;
}
body[data-look] .rsvp-form :is(input, textarea):hover { border-color: rgba(238, 232, 218, 0.4); }
body[data-look] .rsvp-form :is(input, textarea)::placeholder { color: #8b9184; }
body[data-look][data-page] .rsvp-done { background: var(--wash-edge); }

/* ---------- pieces that named a light colour outright ---------- */
body[data-look] .phero .mark { opacity: 0.05; }
body[data-look] .say .mark { opacity: 0.06; }
body[data-look] .pastor-film { background: #0b0b0c; }
/* Life Academy keeps its burgundy as a panel and a rule; the headline reads
   in bone, because burgundy type on charcoal cannot be read. */
body[data-look][data-page="lifeacademy"] .phero h1 { color: var(--ink); }
body[data-look][data-page] .academy-resources .items li:first-child,
body[data-look][data-page] .academy-resources .items li:first-child p { color: #f4ede4; }

body[data-look] .conference-date { font-family: var(--display); font-weight: 700; letter-spacing: 0.01em; }

/* The closing address is long in capitals: give its column the room. */
body[data-look] .come-type { max-width: 1120px; }
/* The broadcast countdown comes from their streaming provider and is white
   inside; rounded so it sits as a card on the dark ground. */
body[data-look] .player-countdown { border-radius: 10px; }

/* ---------- the footer stays as it is under the Dominion page ---------- */
body[data-look] .foot {
  --bone: #f4f1ea; --bone-2: #ebe7de; --ink: #14130f; --ink-soft: #55514a; --line: rgba(20, 19, 15, 0.13);
  color: var(--ink); color-scheme: light; position: relative;
}

@media (max-width: 760px) {
  body[data-look] .conference-type h2 { font-size: clamp(1.5rem, 5.4vw, 2.4rem); }
  body[data-look] .btn { min-height: 50px; padding: 0 24px; }
}

/* 2026-11-13: the Life headline sat flush under the faces film. Give it room. */
body[data-look] .life { padding-top: clamp(72px, 10vw, 140px); }
body[data-look] .life-title { margin-bottom: clamp(28px, 3vw, 44px); }
/* 2026-11-13: home photo 1 (two girls dancing) has a white court line in its bottom-left corner that read as a white rounded edge on the dark ground. Crop it out. */
body[data-look] .hp:nth-child(1) img { object-position: 100% 0; transform: scale(1.06); transform-origin: 100% 0; }
body[data-look] .hp:nth-child(1) { overflow: hidden; border-radius: 12px; }
