/* Kasa Investment Partners — site stylesheet.
   Neutrals share the letter/chart ink-and-surface tokens (letter_charts.py);
   brand colours from the Kasa colour scheme (business card, 2026-07-17). */
:root {
  --surface: #fcfcfb;
  --ink: #0b0b0b;
  --sec: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --base: #c3c2b7;
  --legal: #6f6e6a;     /* disclaimer grey — lightest ink still ≥4.5:1 on --surface */
  /* brand */
  --navy: #17396f;      /* primary — headings, links, the favicon field */
  --teal: #499daf;
  --sky: #56bbea;
  --pale-blue: #acdaef;
  --pale-aqua: #aeefef; /* the compass mark */
  --blue: var(--navy);  /* link colour */
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.06rem;
  line-height: 1.65;
}
main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 2rem;
}
h1 {
  font-size: 1.85rem;
  font-weight: normal;
  line-height: 1.25;
  margin: 0 0 1.6rem;
  color: var(--navy);
}
h2 {
  font-size: 1.25rem;
  font-weight: normal;
  margin: 2.2rem 0 0.7rem;
}
p { margin: 1rem 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
hr {
  border: none;
  border-top: 1px solid var(--grid);
  margin: 3rem 0 1.5rem;
}
hr ~ p, .smallprint {
  font-size: 0.78rem;
  color: var(--sec);
  line-height: 1.5;
}
/* The closing legal paragraph sits back from the address and the as-at note.
   Held at --legal, not --muted: --muted lands at 3.5:1 on this surface, which
   fails WCAG AA for text this size — and a required disclosure that is hard to
   read is the wrong kind of quiet. --legal measures 5.0:1. */
main hr ~ p:last-of-type {
  color: var(--legal);
}
/* The link row sits inside main, directly under the rule (S1196) — it no
   longer needs the page-foot geometry it had when it hung below <main>. */
nav.footer {
  margin: 0 0 2rem;
  font-size: 0.85rem;
}
main > p:last-child { margin-bottom: 3.5rem; }
nav.footer a { color: var(--sec); margin-right: 1.4rem; }
ul.letters { list-style: none; padding: 0; }
ul.letters li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--grid);
}
ul.letters li span.fmt { color: var(--muted); font-size: 0.85rem; margin-left: 0.6rem; }


/* Partners login (served by the Pages worker, not by the build — it links this
   stylesheet so the gate and the site can never drift apart visually). */
form.login {
  margin: 2rem 0 1.5rem;
  max-width: 20rem;
}
form.login label {
  display: block;
  font-size: 0.85rem;
  color: var(--sec);
  margin-bottom: 0.4rem;
}
form.login input[type="password"] {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.55rem 0.7rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--base);
  border-radius: 3px;
}
form.login input[type="password"]:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}
form.login button {
  margin-top: 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.5rem 1.4rem;
  color: #fff;
  background: var(--navy);
  border: none;
  border-radius: 3px;
  cursor: pointer;
}
form.login button:hover { background: var(--teal); }
p.login-error {
  color: #8c2f2f;
  font-size: 0.9rem;
  margin-bottom: 0;
}

ul.letters li span.draft-tag {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.05rem 0.45rem;
  font-size: 0.72rem;
  color: #b4632c;
  border: 1px solid #e3c9b4;
  border-radius: 2px;
  vertical-align: 0.08em;
}
