/* Text Kim — site styles.
   One family (Atkinson Hyperlegible Next), cool paper, deep ink, cobalt for the
   reader's own messages and links, and hard-hat yellow reserved for BOOK. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2?v=18b2a1a39a") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2?v=7dae0c6c66") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #fbfcfd;
  --wash: #edf1f6;
  --line: #d3dae3;
  --ink: #15202c;
  --muted: #55606e;
  --kim: #1f46c4;        /* the reader's own bubbles, links, buttons */
  --kim-strong: #17379e;
  --on-kim: #ffffff;
  --signal: #ffc21a;     /* only for BOOK */
  --on-signal: #1a1300;
  --focus: #ffc21a;

  --font: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  --step--1: 0.9375rem;
  --step-0: 1.125rem;
  --step-1: 1.375rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 2.75rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.6vw, 4.75rem);

  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --measure: 68ch;
  --radius: 1.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e141c;
    --wash: #1a2330;
    --line: #2b3746;
    --ink: #e8edf3;
    --muted: #a0abb8;
    --kim: #3b63e3;
    --kim-strong: #9db6ff;
    --on-kim: #ffffff;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-variant-numeric: lining-nums;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--kim-strong); text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
@media (prefers-color-scheme: light) { a { color: var(--kim); } }
a:hover { text-decoration-thickness: 0.14em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  z-index: 10;
}
.skip:focus { top: 0.75rem; }

h1, h2, h3 {
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: var(--step-3); font-weight: 780; }
h3 { font-size: var(--step-1); font-weight: 720; }
p { margin: 0; text-wrap: pretty; }

/* ---------- header ---------- */

.site-header { border-bottom: 1px solid var(--line); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  flex-wrap: wrap;
  padding-block: 0.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  /* The logo's file has its own margin around the lettering: pull it in line with the page edge. */
  margin-inline-start: -0.45rem;
}
/* The logo's guide: the full logo at least about 60 px tall on screen. */
.wordmark-logo { display: block; height: 4.5rem; width: auto; margin-block: -0.5rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding-block: 0.35rem;
}
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 0.14em; }
.site-nav .nav-cta {
  background: var(--kim);
  color: var(--on-kim);
  padding: 0.5rem 1rem;
  border-radius: 999px;
}
.site-nav .nav-cta:hover { background: var(--kim-strong); color: var(--on-kim); text-decoration: none; }
@media (prefers-color-scheme: dark) { .site-nav .nav-cta:hover { background: #2c51c9; } }

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

.hero { padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem); }

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  align-items: start;
}
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; }
}

.hero-copy { display: grid; gap: 1.5rem; }
.lede { font-size: var(--step-1); line-height: 1.45; max-width: 34ch; color: var(--ink); }
.hero-facts { color: var(--muted); font-size: var(--step--1); }

/* ---------- the conversation ---------- */

.thread-figure { margin: 0; }

.thread {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.msg {
  max-width: 86%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.4;
}
.msg-kim {
  align-self: flex-start;
  background: var(--wash);
  color: var(--ink);
  border-bottom-left-radius: 0.35rem;
}
.msg-me {
  align-self: flex-end;
  background: var(--kim);
  color: var(--on-kim);
  border-bottom-right-radius: 0.35rem;
}
.msg-book {
  align-self: flex-end;
  background: var(--signal);
  color: var(--on-signal);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  letter-spacing: 0.04em;
  padding: 0.55rem 1.4rem;
  border-bottom-right-radius: 0.35rem;
}
.msg-gap { margin-top: 0.75rem; }

.thread-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: var(--step--1);
}

@media (prefers-reduced-motion: no-preference) {
  .thread .msg {
    animation: arrive 0.42s cubic-bezier(.2,.7,.2,1) both;
    animation-delay: calc(0.25s + var(--i, 0) * 0.5s);
  }
  .thread .msg-book { animation-name: arrive-book; animation-duration: 0.5s; }
}
@keyframes arrive {
  from { opacity: 0; transform: translateY(0.6rem); }
  to   { opacity: 1; transform: none; }
}
@keyframes arrive-book {
  0%   { opacity: 0; transform: scale(0.85); }
  70%  { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: none; }
}

/* ---------- calls to action ---------- */

.cta { display: grid; gap: 0.9rem; max-width: 38rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  justify-self: start;
  background: var(--kim);
  color: var(--on-kim);
  text-decoration: none;
  font-weight: 750;
  font-size: var(--step-1);
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
}
.btn:hover { background: var(--kim-strong); color: var(--on-kim); }
@media (prefers-color-scheme: dark) { .btn:hover { background: #2c51c9; } }
.btn-number { font-variant-numeric: tabular-nums; white-space: nowrap; }

.soon {
  border: 2px dashed var(--line);
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  display: grid;
  gap: 0.35rem;
}
.soon strong { font-size: var(--step-1); }

.consent {
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.55;
  max-width: 60ch;
}
.consent a { font-weight: 650; }

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

.section { padding-block: clamp(3rem, 2.4rem + 3vw, 5rem); border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 0.75rem; max-width: var(--measure); margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.45; }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem 3rem;
}
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: 1rem;
  row-gap: 0.4rem;
  align-items: baseline;
  align-content: start;
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1;
  color: var(--kim-strong);
}
@media (prefers-color-scheme: light) { .steps li::before { color: var(--kim); } }
.steps h3 { font-size: var(--step-1); }
.steps p { color: var(--ink); max-width: 46ch; }

.promises {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 54rem;
}
.promises li {
  display: grid;
  gap: 0.35rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 52rem) {
  .promises li { grid-template-columns: 17rem 1fr; gap: 2rem; }
}
.promises li:last-child { border-bottom: 1px solid var(--line); }
.promises strong { font-size: var(--step-1); line-height: 1.3; }

.split { display: grid; gap: 2.5rem; }
@media (min-width: 52rem) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; } }
.split h3 { margin-bottom: 0.75rem; }
.plain-list { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; }

.cta-band { background: var(--wash); border-top: 0; }
.cta-band .cta { max-width: 44rem; }

/* ---------- inner pages and policies ---------- */

.page-head { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) 2rem; }
.page-head .wrap { display: grid; gap: 1rem; }
.page-head h1 { font-size: var(--step-3); max-width: 22ch; }
.page-head p { font-size: var(--step-1); line-height: 1.45; color: var(--muted); max-width: 46ch; }

.prose {
  max-width: var(--measure);
  padding-bottom: clamp(3rem, 2.4rem + 3vw, 5rem);
}
.prose > * + * { margin-top: 1rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.75rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.4rem; }
.prose .updated { color: var(--muted); font-size: var(--step--1); }
.prose .callout {
  border-left: 4px solid var(--kim);
  background: var(--wash);
  padding: 1rem 1.2rem;
  border-radius: 0 0.75rem 0.75rem 0;
}

.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: 0.65rem 0.75rem 0.65rem 0; border-bottom: 1px solid var(--line); }
th { font-weight: 720; }
kbd {
  font-family: inherit;
  font-weight: 800;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 0.05rem 0.4rem;
  white-space: nowrap;
}
kbd.book { background: var(--signal); color: var(--on-signal); border-color: transparent; }

.optin { display: grid; gap: 2.5rem; padding-bottom: clamp(3rem, 2.4rem + 3vw, 5rem); }
@media (min-width: 60rem) { .optin { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.optin-box {
  border: 2px solid var(--kim);
  border-radius: 1.5rem;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  display: grid;
  gap: 1rem;
  align-content: start;
  align-self: start;
}
.optin-box h2 { font-size: var(--step-2); }
.optin-box .cta { max-width: none; }
.prose > h2:first-child { margin-top: 0; }

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

.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem 2rem; font-size: 1rem; color: var(--muted); }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .footer-grid { grid-template-columns: 1fr auto; gap: 4rem; } }
.footer-about { display: grid; gap: 0.5rem; max-width: 46ch; }
.footer-brand { font-weight: 800; color: var(--ink); font-size: 1.125rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-content: start; }
.footer-links a { color: var(--ink); }
.footer-fine { margin-top: 1.75rem; font-size: var(--step--1); }

/* ---------- 404 ---------- */

.not-found { padding-block: clamp(3rem, 2rem + 6vw, 7rem); }
.not-found .wrap { display: grid; gap: 1.25rem; justify-items: start; }
.not-found p { max-width: 46ch; font-size: var(--step-1); line-height: 1.45; }
