/* Kindred, kindredapp.ca
 *
 * Shared by the landing page and the policy pages.
 *
 * No webfonts and nothing loaded from anyone else's server. A product
 * whose pitch is "nobody is tracking you" should not hand every visitor's
 * IP address to a font CDN, so the type is a system stack.
 *
 * The palette is taken from the app itself: deep magenta and warm cream,
 * used at full strength. An earlier version leaned on big blurred pastel
 * washes and they read as muddy rather than soft, so shapes here are
 * crisp and colour is either on or off.
 */

:root {
  --cream: #FCF6F3;
  --cream-deep: #F6EBE5;
  --ground: var(--cream);
  --surface: #FFFFFF;
  --ink: #150F12;
  --ink-2: #453A3E;
  --muted: #7A6C71;
  --rule: #E9DCD6;

  --plum: #4A0A27;          /* inverted sections */
  --magenta: #B4155C;
  --magenta-deep: #8E0F47;
  --magenta-wash: #FCE9F1;
  --teal: #14776B;
  --teal-wash: #E2F0ED;

  --on-plum: #F7E9EF;
  --on-plum-dim: #C79EB2;

  --display: "Helvetica Neue", Helvetica, "Segoe UI", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --prose: 60ch;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream: #14100F;
    --cream-deep: #1C1615;
    --ground: var(--cream);
    --surface: #1E1719;
    --ink: #F6EFF1;
    --ink-2: #DCCFD4;
    --muted: #A2939A;
    --rule: #332628;

    --plum: #2B0616;
    --magenta: #FF6FA5;
    --magenta-deep: #FF8FB8;
    --magenta-wash: #2E1220;
    --teal: #5FC4B2;
    --teal-wash: #10231F;

    --on-plum: #F7E9EF;
    --on-plum-dim: #C79EB2;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 26px; }
.prose { max-width: var(--prose); }

a { color: var(--magenta); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 3px; }

/* ---------------------------------------------------------- nav */

.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 15px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.wordmark {
  font-family: var(--display);
  font-weight: 800; font-size: 22px; letter-spacing: -.04em;
  color: var(--ink); text-decoration: none;
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  font-size: 15.5px; color: var(--muted); text-decoration: none; font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
@media (max-width: 680px) { .nav-links a.hide-sm { display: none; } }

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

h1, h2, h3, h4, .ui { font-family: var(--display); }

h1 {
  font-weight: 800;
  font-size: clamp(46px, 8vw, 92px);
  line-height: .95;
  letter-spacing: -.045em;
  margin: 0 0 24px;
  text-wrap: balance;
}

h2 {
  font-weight: 800;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: -.038em;
  margin: 0 0 20px;
  max-width: 18ch;
  text-wrap: balance;
}

h3 {
  font-weight: 700; font-size: 21px; letter-spacing: -.02em;
  margin: 0 0 8px;
}

p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 40ch;
}

.big { font-size: 19.5px; color: var(--ink-2); }

.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--magenta); margin: 0 0 14px;
}

code {
  font-family: var(--mono); font-size: .88em;
  background: var(--cream-deep); border: 1px solid var(--rule);
  border-radius: 4px; padding: .1em .35em;
}

/* ---------------------------------------------------------- sections */

section { padding: 96px 0; }
section.tint { background: var(--surface); }
section.deep {
  background: var(--plum);
  color: var(--on-plum);
}
section.deep h2 { color: #fff; }
section.deep .eyebrow { color: var(--on-plum-dim); }
section.deep p { color: var(--on-plum); }
section.deep .big { color: var(--on-plum); }
section.deep a { color: #fff; }

/* ---------------------------------------------------------- cards */

.grid {
  display: grid; gap: 22px; margin-top: 44px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 30px 28px 28px;
}
section.tint .card { background: var(--cream); }
section.deep .card {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
}
.card p { color: var(--muted); font-size: 16.5px; margin: 0; }
section.deep .card p { color: var(--on-plum-dim); }

.card .mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--magenta-wash); color: var(--magenta);
  font-family: var(--display); font-weight: 800; font-size: 18px;
  margin-bottom: 16px;
}
.card.teal .mark { background: var(--teal-wash); color: var(--teal); }
section.deep .card .mark { background: rgba(255,255,255,.12); color: #fff; }

/* two-column do / do not */
.two {
  display: grid; gap: 22px; margin-top: 40px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.listcard {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 18px; padding: 28px;
}
section.tint .listcard { background: var(--cream); }
.listcard h3 { margin-bottom: 16px; }
.listcard ul { margin: 0; padding-left: 20px; }
.listcard li { margin-bottom: 11px; color: var(--ink-2); font-size: 16.5px; }
.listcard li:last-child { margin-bottom: 0; }
.listcard.no li::marker { color: var(--magenta); }
.listcard.yes li::marker { color: var(--teal); }

/* ---------------------------------------------------------- faq */

details {
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
}
details summary {
  cursor: pointer; font-weight: 600; font-size: 18px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; color: var(--magenta); font-weight: 400; font-size: 24px; line-height: 1;
}
details[open] summary::after { content: "\2212"; }
details p { margin: 14px 0 0; color: var(--ink-2); max-width: var(--prose); }

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

footer {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  padding: 56px 0 44px;
}
.foot-grid {
  display: flex; flex-wrap: wrap; gap: 32px;
  justify-content: space-between; align-items: flex-start;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 24px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 15.5px; }
.foot-links a:hover { color: var(--ink); }
.foot-note {
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--rule);
  color: var(--muted); font-size: 14.5px; max-width: 70ch;
}

/* ---------------------------------------------------------- policy pages */

.doc { padding: 56px 0 96px; }
.doc h1 {
  font-size: clamp(36px, 5.5vw, 56px); max-width: 18ch; margin-bottom: 16px;
}
.doc .meta {
  color: var(--muted); font-size: 15.5px; margin: 0 0 44px;
  padding-bottom: 24px; border-bottom: 1px solid var(--rule);
}
.doc h2 {
  font-size: clamp(23px, 3vw, 30px); margin: 48px 0 14px; max-width: 26ch;
}
.doc h3 { margin: 30px 0 8px; font-size: 19px; }
.doc p, .doc li { max-width: var(--prose); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 11px; color: var(--ink-2); }
.doc strong { color: var(--ink); }

.callout {
  background: var(--teal-wash);
  border-left: 4px solid var(--teal);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 30px 0;
  max-width: var(--prose);
}
.callout.warn { background: var(--magenta-wash); border-left-color: var(--magenta); }
.callout p { margin: 0 0 10px; }
.callout p:last-child { margin: 0; }

.back {
  display: inline-block; margin-bottom: 32px;
  font-size: 15.5px; color: var(--muted); text-decoration: none;
}
.back:hover { color: var(--ink); }

/* ---------------------------------------------------------- guides
 *
 * Every written page on the site uses these: the city pages, the couples
 * page, and everything under /guides. They started as a copy of the same
 * block inside three separate files, which is how three pages end up
 * looking like three different websites.
 */

.art { padding: 56px 0 90px; }
.art .wrap { max-width: 780px; }
.art h1 { font-size: clamp(36px, 5.6vw, 58px); margin-bottom: 18px; }
.art h2 { font-size: clamp(24px, 3.4vw, 33px); margin: 50px 0 14px; max-width: 26ch; }
.art h3 { font-size: 20px; margin: 32px 0 8px; }
.art p, .art li { max-width: 64ch; }
.art li { margin-bottom: 10px; color: var(--ink-2); }
.art strong { color: var(--ink); }
.art .lede { margin-bottom: 8px; }

.crumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 26px; font-size: 15px; color: var(--muted);
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.crumb span[aria-hidden] { opacity: .5; }

.flag {
  background: var(--teal-wash); border-left: 4px solid var(--teal);
  border-radius: 0 14px 14px 0; padding: 22px 26px; margin: 30px 0;
  max-width: 64ch;
}
.flag p:last-child { margin-bottom: 0; }
.flag strong { color: var(--teal); }

.steps-num { list-style: none; margin: 26px 0; padding: 0; }
.steps-num li {
  display: grid; grid-template-columns: 38px 1fr; gap: 16px;
  margin-bottom: 20px; align-items: start;
}
.steps-num b {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--magenta); color: #fff;
  font-family: var(--display); font-size: 16px;
}

.stat {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px; margin: 34px 0;
}
.stat div {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 16px; padding: 22px 24px;
}
.stat strong {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: 30px; letter-spacing: -.03em; color: var(--magenta);
  margin-bottom: 4px;
}
.stat span { color: var(--muted); font-size: 15.5px; }

.cta-band {
  background: var(--plum); color: var(--on-plum);
  border-radius: 22px; padding: 38px 36px; margin: 52px 0 0;
}
.cta-band h2 { color: #fff; margin: 0 0 12px; max-width: 20ch; }
.cta-band p { color: var(--on-plum-dim); }
.cta-band .wl { margin-top: 30px; max-width: 100%; }
@media (max-width: 560px) { .cta-band { padding: 28px 22px; } }

.wl-city { flex: none; width: 100%; margin-top: 10px; }

/* The hub that lists every guide. Without it these pages would only be
 * reachable from a search result, which is the difference between a set
 * of articles and a doorway farm. */

.hub { padding: 56px 0 90px; }
.hub h1 { font-size: clamp(36px, 5.6vw, 56px); margin-bottom: 16px; }
.hub h2 {
  font-size: 15px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); margin: 54px 0 20px; font-weight: 700;
  text-wrap: normal;
}
.hub-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.hub-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 16px; padding: 24px 26px;
  transition: border-color .15s ease, transform .15s ease;
}
.hub-card:hover { border-color: var(--magenta); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .hub-card:hover { transform: none; } }
.hub-card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; }
.hub-card p { margin: 0; color: var(--muted); font-size: 16px; }
