/* Kindari inner pages: a single readable column (~62ch) under a slim brand bar.
   Light: sand paper with deep-teal ink. Dark: the homepage's teal ground. */
:root {
  --paper:  #F3EEE7;
  --ink:    #17322F;
  --muted:  #5A6F6B;
  --accent: #2E6F6A;
  --clay:   #A65A38;
  --line:   #D8CFC2;
  --panel:  #EAE3D9;

  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --utility: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:  #143B39;
    --ink:    #F2EBE3;
    --muted:  #9DB3AE;
    --accent: #7DBDB4;
    --clay:   #D98E6B;
    --line:   #2B5753;
    --panel:  #1A4744;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper:  #143B39;
  --ink:    #F2EBE3;
  --muted:  #9DB3AE;
  --accent: #7DBDB4;
  --clay:   #D98E6B;
  --line:   #2B5753;
  --panel:  #1A4744;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Brand bar ---------- */

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

.top .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 18px;
}

/* The name sits level with the logo. */
.brand {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: 19px;
  line-height: 1;
}

.brand svg { width: 30px; height: 30px; grid-column: 1; grid-row: 1; }
.brand-name { grid-column: 2; grid-row: 1; }

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 22px;
  font-family: var(--display);
  font-size: 17px;
}

.nav a { color: var(--muted); text-decoration: none; padding-block: 4px; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--clay); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--clay); }

/* ---------- Document ---------- */

.doc { padding-block: 40px 56px; }

.eyebrow {
  font-family: var(--utility);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 14px;
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  text-wrap: balance;
}

.lede {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 14px;
  max-width: 34em;
}

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.3;
  margin: 34px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-wrap: balance;
}

p, ul, ol { margin: 0 0 14px; max-width: 62ch; }

ul, ol { padding-left: 1.3em; }
li + li { margin-top: 6px; }
li::marker { color: var(--muted); }

strong { font-weight: 600; }

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay); }
a:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 2px; }

.mono { font-family: var(--utility); font-size: 0.92em; }

/* Steps: a real sequence, so the numbers carry meaning */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 30px 1fr; gap: 12px; margin: 0; }
.steps li::before {
  content: counter(step);
  font-family: var(--utility);
  font-size: 13px;
  line-height: 1;
  width: 24px;
  height: 24px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.steps li > span { min-width: 0; }

/* The two blocks set apart on purpose: safety and consent */
.notice {
  background: var(--panel);
  border-radius: 6px;
  padding: 18px 20px;
  margin: 0 0 14px;
  max-width: 62ch;
}
.notice p:last-child { margin-bottom: 0; }

.consent {
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 18px 20px;
  margin: 0 0 14px;
  max-width: 62ch;
  font-size: 14.5px;
}
.consent p { margin: 0; }


/* Security: the one block the page highlights */
.secure {
  border-left: 3px solid var(--accent);
  background: var(--panel);
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
  margin: 0 0 14px;
  max-width: 62ch;
}
.secure .tag {
  display: block;
  font-family: var(--utility);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.secure p:last-child { margin-bottom: 0; }

/* Links to the other two pages, at the very end of each page */
.pagelinks { margin-top: 40px; font-size: 14px; }

.contact { font-size: 15px; }
.contact .role { color: var(--muted); }

/* ---------- Footer ---------- */

.foot { border-top: 1px solid var(--line); }
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 26px 36px;
  font-size: 13px;
  color: var(--muted);
}
.foot em { font-family: var(--display); font-size: 14px; color: var(--accent); }
.foot .small { font-family: var(--utility); font-size: 10.5px; letter-spacing: 0.1em; }

/* Narrow screens: the menu sits under the name, starting at the same left edge, never half-wrapped beside it. */
@media (max-width: 640px) {
  .top .wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav { justify-content: flex-start; gap: 2px 14px; font-size: 15.5px; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .doc { padding-block: 28px 44px; }
  .lede { font-size: 17px; }
  h2 { font-size: 18px; margin-top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
