/*
 * kesherfamily.com
 *
 * Navy and brass are the logo's own two strands. The page is plain white so
 * the one bold thing - the hero, a single message wiring out to four people -
 * can be navy. Brass is only ever a wire or an underline: the thing that
 * connects. Newsreader carries the headings (a reading face, for people who
 * read); Public Sans carries everything else.
 */

:root {
  --navy: #1f3b57;
  --navy-deep: #162b40;
  --brass: #c9a24b;
  --brass-soft: #e9d7a8;
  --text: #2c3440;
  --muted: #5d6876;
  --rule: #e2e5ea;
  --tint: #f2f5f8;
  --white: #ffffff;
  --measure: 38rem;
  --wide: 72rem;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--navy); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.15; margin: 0 0 1rem; }
h3 { font-size: 1.3rem; line-height: 1.25; margin: 0 0 .4rem; }
p { margin: 0 0 1rem; max-width: var(--measure); }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--text); }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 10; }

/* ── header ─────────────────────────────────────────────────────────────── */
.site-head { border-bottom: 1px solid var(--rule); background: var(--white); }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 5.5rem; }
/* The woven K with its four channel discs: the logo the family app uses. It
   needs about 60px before the phone, text, WhatsApp and email glyphs read. */
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); font: 600 1.6rem/1 var(--serif); }
.brand img { height: 60px; width: auto; }
.nav { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--text); font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); text-decoration: underline; text-decoration-color: var(--brass); }
.btn {
  display: inline-block; border-radius: 999px; padding: .7rem 1.35rem;
  font: 600 1rem/1 var(--sans); text-decoration: none; border: 2px solid transparent;
}
.btn-primary { background: var(--brass); color: var(--navy-deep); }
.btn-primary:hover { background: #d6b264; }
.btn-quiet { border-color: currentColor; color: inherit; }
.nav .btn { padding: .55rem 1.1rem; font-size: .95rem; }
.nav .btn-primary { color: var(--navy-deep); }
.menu-toggle { display: none; }

@media (max-width: 760px) {
  .menu-toggle {
    display: block; margin-left: auto; background: none; border: 1px solid var(--rule);
    border-radius: 999px; padding: .45rem .9rem; font: 500 .95rem var(--sans); color: var(--navy);
  }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 5.5rem; background: var(--white);
    flex-direction: column; align-items: flex-start; padding: 1rem 1.5rem 1.5rem; gap: 1rem;
    border-bottom: 1px solid var(--rule); z-index: 5; }
  .nav.open { display: flex; }
  .site-head { position: relative; }
}

/* ── hero: one message, four people ────────────────────────────────────── */
.hero { background: var(--navy); color: #e8eef5; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; padding-top: 4.5rem; padding-bottom: 4.5rem; align-items: center; }
.hero h1 { color: var(--white); }
.hero .lede { color: #d5dee8; }
.hero .actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.hero .btn-quiet { color: var(--white); }

.wire { position: relative; }
/* The wires: one brass trunk down from the message, and a branch into each
   person. Drawn in CSS so they meet each card exactly at any width. */
.people::before {
  content: ""; position: absolute; left: -1.6rem; top: -2.2rem; bottom: 1.9rem;
  border-left: 2.5px solid var(--brass); transform-origin: top;
}
.people li { position: relative; }
.people li::before {
  content: ""; position: absolute; left: -1.6rem; top: 50%; width: 1.6rem;
  border-top: 2.5px solid var(--brass); transform-origin: left;
}
.msg {
  position: relative; background: var(--white); color: var(--text); border-radius: 14px;
  padding: 1rem 1.2rem; max-width: 22rem; box-shadow: 0 10px 30px rgba(10, 24, 40, .35);
}
.msg small { display: block; color: var(--muted); font-size: .82rem; margin-bottom: .3rem; }
.msg p { margin: 0; font-size: 1.02rem; line-height: 1.45; }
.people { list-style: none; margin: 2.2rem 0 0 auto; padding: 0; display: grid; gap: .7rem; max-width: 21rem; position: relative; }
.people li {
  display: grid; grid-template-columns: 2.4rem 1fr; gap: .8rem; align-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: .65rem .85rem;
}
.people .how { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--brass); color: var(--navy-deep); }
.people .how svg { width: 1.2rem; height: 1.2rem; }
.people b { display: block; color: var(--white); font-weight: 600; font-size: .98rem; }
.people span { color: #c4d0dc; font-size: .88rem; }
.tally { margin: 1.1rem 0 0 auto; max-width: 21rem; font-size: .9rem; color: #c4d0dc; }
.tally strong { color: var(--brass-soft); font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .people::before { transform: scaleY(0); animation: grow-down .6s ease-out .3s forwards; }
  .people li::before { transform: scaleX(0); animation: grow-right .3s ease-out forwards; animation-delay: inherit; }
  .people li { opacity: 0; animation: arrive .5s ease-out forwards; }
  .people li:nth-child(1) { animation-delay: .9s; }
  .people li:nth-child(2) { animation-delay: 1.05s; }
  .people li:nth-child(3) { animation-delay: 1.2s; }
  .people li:nth-child(4) { animation-delay: 1.35s; }
  .tally { opacity: 0; animation: arrive .5s ease-out 1.7s forwards; }
}
@keyframes grow-down { to { transform: scaleY(1); } }
@keyframes grow-right { to { transform: scaleX(1); } }
@keyframes arrive { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 3rem; padding-bottom: 3rem; }
  .people { margin-left: 1.8rem; max-width: none; }
  .tally { margin-left: 1.8rem; max-width: none; }
}

/* ── sections ───────────────────────────────────────────────────────────── */
.section { padding: 4.5rem 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section.tinted { background: var(--tint); border-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.ways h3 { display: flex; align-items: center; gap: .6rem; }
.ways h3 svg { width: 1.4rem; height: 1.4rem; color: var(--brass); flex: none; }
.ways p { font-size: 1rem; color: var(--muted); }
@media (max-width: 960px) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ways { grid-template-columns: 1fr; } }

.note { font-size: .9rem; color: var(--muted); }
.soon { font: 500 .78rem/1 var(--sans); color: var(--navy); background: var(--brass-soft); border-radius: 999px; padding: .25rem .55rem; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.facts li { padding-left: 1.2rem; border-left: 3px solid var(--brass); }
.facts b { display: block; color: var(--navy); font-weight: 600; margin-bottom: .2rem; }
.facts p { margin: 0; color: var(--muted); font-size: 1rem; }

/* A real sequence, so it is numbered. */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: step; display: grid; gap: 1.1rem; max-width: 46rem; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; }
.steps > li::before {
  content: counter(step); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 2px solid var(--brass); color: var(--navy); font: 600 1.15rem/1 var(--serif);
}
.steps h3 { margin-top: .35rem; }
.steps p { color: var(--muted); }

.keys { display: grid; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.keys li { display: flex; gap: .75rem; align-items: baseline; }
.keys kbd {
  font: 600 .95rem/1 var(--sans); min-width: 2rem; text-align: center; padding: .4rem .5rem;
  border: 1px solid var(--rule); border-bottom-width: 3px; border-radius: 6px; background: var(--white); color: var(--navy);
}

.cta { background: var(--navy); color: #dfe7ef; padding: 4rem 0; }
.cta h2 { color: var(--white); }
.cta p { color: #c9d4df; }
.cta .actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.cta .btn-quiet { color: var(--white); }

/* ── reading pages: privacy, terms, texts ──────────────────────────────── */
.prose { max-width: 44rem; margin: 0 auto; padding: 3.5rem 1.5rem 4.5rem; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
.prose h2 { font-size: 1.45rem; margin-top: 2.4rem; }
.prose p, .prose li { max-width: none; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose .sub { color: var(--muted); }
.prose blockquote { margin: 1rem 0; padding: .8rem 1rem; background: var(--tint); border-left: 3px solid var(--brass); }

/* ── footer ─────────────────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--rule); padding: 2.5rem 0 3rem; font-size: .95rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: baseline; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.site-foot a { color: var(--muted); }
.site-foot .me { margin-left: auto; }
