/* 4 The Kingdom: company site, one page. No JavaScript.
   Sections: type, color, base, buttons, nav, hero, mission, what we build, call to action, footer, small pages. */

/* ---------- type ---------- */

@font-face {
  font-family: "Kingdom Text";
  src: url("/fonts/kingdom-text-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Kingdom Text";
  src: url("/fonts/kingdom-text-bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Kingdom Text";
  src: url("/fonts/kingdom-text-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}

/* ---------- color ---------- */

:root {
  color-scheme: light;
  --wine: #4a1418;
  --accent: #d42a3c;
  --accent-dark: #b81f31;
  --blush: #fbe3e1;
  --cream: #fffaf3;
  --card: #ffffff;
  --line: #efe4d8;
  --ink: #2e2826;
  --ink-soft: #5d5350;
  --serif: "Kingdom Text", Charter, Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- base ---------- */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-synthesis: none; scroll-padding-top: 1.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
}
h1, h2, h3, p, blockquote, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.375rem); line-height: 1.2; }
h3 { font: 700 1.1875rem/1.3 var(--sans); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 74rem; margin: 0 auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.lede { color: var(--ink-soft); font-size: 1.1875rem; max-width: 40rem; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.5rem 0.75rem; background: var(--card); color: var(--wine); border-radius: 8px; }
.skip:focus { top: 1rem; }

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

.btn {
  display: inline-block;
  padding: 0.875rem 1.25rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: 800 0.9375rem/1.2 var(--sans);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-dark); }
.btn.soft { background: var(--blush); color: var(--wine); }
.btn.soft:hover { background: #f6d0cd; }
.btn.small { padding: 0.625rem 0.875rem; font-size: 0.8125rem; border-radius: 6px; }

/* ---------- nav: a white bar floating on the hero ---------- */

.top { background: var(--wine); padding-top: 0.75rem; }
.top.short { padding-bottom: 0.75rem; }
.nav {
  display: flex; align-items: center; gap: 2rem;
  max-width: 88rem; margin: 0 clamp(0.75rem, 1.2vw, 1.25rem); padding: 0.75rem 1rem 0.75rem 1.25rem;
  background: var(--card); border-radius: 14px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.18);
}
@media (min-width: 90rem) { .nav { margin-inline: auto; } }
.logo { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--wine); font: 700 1.3125rem/1 var(--serif); white-space: nowrap; }
.logo svg { height: 2.375rem; width: auto; }
.logo .four { fill: var(--accent); }
.logo .cross { fill: var(--wine); }
.nav-links { display: none; gap: 2rem; margin-right: auto; }
.nav-links a { text-decoration: none; color: var(--ink); font-size: 1rem; }
.nav-links a:hover { color: var(--accent-dark); }
.nav .btn { margin-left: auto; }
@media (max-width: 24rem) {
  .nav { gap: 0.75rem; padding: 0.625rem 0.75rem; }
  .logo { font-size: 1.0625rem; gap: 0.375rem; }
  .logo svg { height: 1.875rem; }
  .btn.small { padding: 0.5rem 0.625rem; font-size: 0.75rem; letter-spacing: 0.03em; }
}
@media (min-width: 52rem) {
  .nav-links { display: flex; }
  .nav .btn { margin-left: 0; }
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(60rem 26rem at 78% 100%, rgb(240 96 40 / 0.55), transparent 70%),
    radial-gradient(50rem 24rem at 30% 108%, rgb(212 42 60 / 0.6), transparent 70%),
    var(--wine);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.5rem, 1.1rem + 5.4vw, 4.75rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.01em;
}
.hero h1 strong { font-weight: 700; }
.hero .sub { max-width: 34rem; margin-top: 1.5rem; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.5; color: rgb(255 255 255 / 0.92); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.center .actions, .cta .actions { justify-content: center; }

/* The mark, very large, cut off by the edge of the hero: the logo used as the picture. */
.hero-mark {
  position: absolute; z-index: 0;
  right: -5rem; top: 3.5rem;
  width: 34rem; height: 34rem;
  background:
    radial-gradient(circle at center, rgb(74 20 24 / 0.55) 1.6px, transparent 2.2px) 0 0 / 11px 11px,
    linear-gradient(140deg, #ffb347 0%, #ff6a3d 38%, #d42a3c 72%, #8f1630 100%);
  -webkit-mask: url("/img/mark-four.svg") center / contain no-repeat;
  mask: url("/img/mark-four.svg") center / contain no-repeat;
  display: none;
}
/* The cross at the 4's intersection: flat and pale, so it stands apart from the 4. */
.hero-cross {
  position: absolute; z-index: 0;
  right: -5rem; top: 3.5rem;
  width: 34rem; height: 34rem;
  background: #fff8ef;
  -webkit-mask: url("/img/mark-cross.svg") center / contain no-repeat;
  mask: url("/img/mark-cross.svg") center / contain no-repeat;
  display: none;
}
@media (min-width: 68rem) { .hero-mark, .hero-cross { display: block; } }
@media (min-width: 80rem) { .hero-mark, .hero-cross { right: -4rem; top: 3rem; width: 42rem; height: 42rem; } }
@media (min-width: 100rem) { .hero-mark, .hero-cross { right: calc((100vw - 100rem) / 2 - 2rem); } }

/* The verse stands where a product shot would: a card rising out of the hero. */
.verse {
  position: relative;
  max-width: 52rem;
  text-align: center;
  margin: clamp(3rem, 7vw, 5rem) 0 0;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--card);
  color: var(--ink);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 60px rgb(0 0 0 / 0.3);
}
.verse blockquote { font: italic 400 clamp(1.375rem, 1.05rem + 1.5vw, 2.125rem)/1.35 var(--serif); color: var(--wine); text-wrap: balance; }
.verse figcaption, .gospel figcaption {
  margin-top: 1.25rem;
  font: 800 0.8125rem/1.2 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

/* ---------- ticker: a band of what we build, drifting past ---------- */

.ticker { overflow: hidden; background: var(--accent); color: #fff; }
.ticker-track { display: flex; width: max-content; }
.ticker ul { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.ticker li { display: flex; align-items: center; padding: 1.125rem 0; font: 800 1.125rem/1 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.ticker li::after { content: ""; width: 0.5rem; height: 0.5rem; margin: 0 1.75rem; background: #fff; transform: rotate(45deg); opacity: 0.85; }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: drift 38s linear infinite; }
}
@keyframes drift { to { transform: translateX(-50%); } }

/* ---------- mission ---------- */

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section.center { text-align: center; }
.section.center .lede { margin: 1rem auto 0; }
.band { background: var(--card); border-block: 1px solid var(--line); }

.gospel { max-width: 46rem; margin: 2.5rem auto 0; padding: clamp(1.75rem, 4vw, 3rem); border-radius: 24px; background: var(--blush); }
.gospel blockquote { font: italic 400 clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem)/1.45 var(--serif); color: var(--wine); }
.gospel + .gospel { margin-top: 1.25rem; }
.gospel.deep { background: var(--wine); }
.gospel.deep blockquote { color: #fff8ef; }
.gospel.deep figcaption { color: #ff9c8a; }
.after { margin: 2rem auto 0; max-width: 36rem; font-size: 1.1875rem; }

/* ---------- what we build ---------- */

.tiles { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 3rem; text-align: left; }
@media (min-width: 52rem) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { padding: 1.75rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.tile svg { width: 2.75rem; height: 2.75rem; padding: 0.625rem; border-radius: 10px; background: var(--blush); stroke: var(--wine); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { margin: 1.25rem 0 0.5rem; }
.tile p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- call to action ---------- */

.cta {
  position: relative; overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: 24px; text-align: center; color: #fff;
  background: radial-gradient(40rem 18rem at 85% 120%, rgb(240 96 40 / 0.5), transparent 70%), var(--wine);
}
.cta::before {
  content: ""; position: absolute; width: 20rem; height: 20rem; left: -6rem; top: -8rem;
  background: var(--blush); opacity: 0.16;
  -webkit-mask: url("/img/blob-dots.svg") center / contain no-repeat;
  mask: url("/img/blob-dots.svg") center / contain no-repeat;
}
.cta > * { position: relative; }
.cta p { margin: 0.875rem auto 0; max-width: 34rem; color: rgb(255 255 255 / 0.92); font-size: 1.1875rem; }
.cta .actions { margin-top: 1.75rem; align-items: center; }
.cta .mail { color: #fff; font-weight: 700; text-underline-offset: 0.2em; }

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

.foot { padding: 3.5rem 0 3rem; font-size: 0.9375rem; background: #2b0b0e; color: rgb(255 250 243 / 0.78); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-right: auto; }
.foot a { color: #fff; text-underline-offset: 0.2em; }
.foot .logo { color: #fff; }
.foot .logo .four { fill: #ff6a4a; }
.foot .logo .cross { fill: #fff8ef; }
.foot p { margin: 0; }

/* ---------- support, privacy, not found ---------- */

.plain { max-width: 44rem; padding-block: clamp(3rem, 7vw, 5rem); }
.plain h1 { font-size: clamp(2.125rem, 1.5rem + 2.8vw, 3.25rem); line-height: 1.12; color: var(--wine); }
.plain h2 { margin-top: 2.5rem; font: 700 1.25rem/1.3 var(--sans); }
.plain p, .plain ul { margin-top: 0.75rem; }
.plain h1 + p { margin-top: 1.25rem; }
.plain ul { padding-left: 1.25rem; }
.plain li + li { margin-top: 0.35rem; }
.plain a { color: var(--accent-dark); text-underline-offset: 0.2em; }

/* ---------- contact form ---------- */

.form { margin-top: 2rem; display: grid; gap: 1.25rem; }
.form p { margin: 0; }
.field label { display: block; margin-bottom: 0.375rem; font-weight: 700; }
.field input, .field textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1.5px solid #cbbdb0;
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form button { border: 0; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* a trap for automated form-fillers */

/* ---------- scripture notice ---------- */

.scripture { flex-basis: 100%; max-width: 46rem; font-size: 0.8125rem; line-height: 1.5; }
