/* Keel: support + privacy pages. Plain CSS, no external assets.
   Palette = the app's KeelTheme tokens (dark-first; light follows the
   reader's system setting). Identity = the This Year rail: a hairline date
   rail with ringed nodes, one accent per module, and a heavier "today"
   anchor (here: the effective date). */

:root {
  color-scheme: dark light;
  --canvas: #0D0E12;
  --raised: #15171C;
  --ink: #EDEDE8;
  --ink-2: #8F949E;
  --hairline: #2E303B;
  --equity: #4DD1B0;
  --retirement: #B099FA;
  --deadline: #F5B04D;
}

@media (prefers-color-scheme: light) {
  :root {
    --canvas: #F8F7F4;
    --raised: #FFFFFF;
    --ink: #1A1A1F;
    --ink-2: #6B6B75;
    --hairline: #D6D4CC;
    --equity: #0A8C73;
    --retirement: #6B52CC;
    --deadline: #C2780D;
  }
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 40rem) {
  .page { padding: 0 24px; }
}

/* Skip link: visible only when focused. */
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
}
.skip:focus {
  left: 16px;
  z-index: 1;
  padding: 0.5rem 0.75rem;
  background: var(--raised);
  color: var(--ink);
}

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

/* Masthead: wordmark + two quiet links. */
.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.wordmark span {
  color: var(--ink-2);
  font-weight: 400;
}

.masthead ul {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.masthead a:not(.wordmark) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration: none;
}
.masthead a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* Editorial type scale, after KeelType. */
h1 {
  margin: 2.5rem 0 0.75rem;
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
}

h3 {
  margin: 1.25rem 0 0.375rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

p { margin: 0 0 0.75rem; }

ul.plain { margin: 0 0 0.75rem; padding-left: 1.15rem; }
ul.plain li { margin-bottom: 0.375rem; }
ul.plain li::marker { color: var(--ink-2); }

.lead {
  margin: 0 0 1.5rem;
  color: var(--ink-2);
  font-size: 1.125rem;
}

.quiet { color: var(--ink-2); }

.ui { font-weight: 600; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--ink-2);
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }

/* The anchor: a filled dot, a label, then a hairline running out to the
   edge (the app's Today marker). */
.anchor {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 2rem 0 1.5rem;
}
.anchor::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin: 0 9.5px;
  border-radius: 50%;
  background: var(--ink);
}
.anchor::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.anchor strong { font-weight: 600; }
.anchor span { color: var(--ink-2); }

/* The rail: every section is a node on one continuous hairline. */
.rail {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rail > li {
  position: relative;
  padding: 0 0 2rem 2.75rem;
}
.rail > li::before {
  content: "";
  position: absolute;
  left: 13.5px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--hairline);
}
.rail > li:last-child::before { bottom: auto; height: 0.4rem; }
.rail > li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.25rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--canvas);
  border: 1.5px solid var(--node, var(--ink-2));
}

/* A heading's top margin would collapse out of the li and break the rail. */
.rail h2, .rail h3 { margin-top: 0; }
.rail h3 { font-size: 1.125rem; line-height: 1.35; }

.n-equity { --node: var(--equity); }
.n-retirement { --node: var(--retirement); }
.n-deadline { --node: var(--deadline); }

/* A raised note for the one thing a reader must not miss. */
.note {
  margin: 0 0 2rem;
  padding: 1rem 1.125rem;
  background: var(--raised);
  border-radius: 10px;
}
.note p:last-child { margin-bottom: 0; }

.site-footer {
  margin-top: 1rem;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--hairline);
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.site-footer p { margin: 0 0 0.5rem; }
