/* Footnote — myfootnot.es
   Palette values are lifted verbatim from Footnote/Palette.swift so the site and
   the app cannot drift. Light/dark pairs are the same ones the app ships.
   No webfonts, no external requests: a page documenting that the app makes no
   third-party network calls should not itself make any. */

:root {
  --paper:      #FAF8F5;
  --ink:        #2C2420;
  --warm-gray:  #8A7E72;
  --muted-gray: #B0A59A;
  --connector:  #CDC5B9;
  --green:      #7A9A6E;
  --terra:      #D49059;
  --mark-terra: #C9946B; /* the mark's dots never recolor */

  --font-content: 'New York', 'Iowan Old Style', Palatino, Georgia, serif;
  --font-utility: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;

  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #1A1714;
    --ink:        #E8E0D4;
    --warm-gray:  #8A7E72;
    --muted-gray: #6B6056;
    --connector:  #3D3630;
    --green:      #8FAD7E;
    --terra:      #E0A574;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 1.5rem 6rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-utility);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
}

/* ---- masthead ---- */

header.masthead {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--connector);
  margin-bottom: 2.5rem;
}

.lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.mark { width: 30px; height: auto; display: block; }
.mark-dark { display: none; }

@media (prefers-color-scheme: dark) {
  .mark-light { display: none; }
  .mark-dark  { display: block; }
}

.wordmark {
  font-family: var(--font-content);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-family: var(--font-content);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  margin: 1.75rem 0 0.4rem;
}

.updated {
  font-family: var(--font-utility);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin: 0;
}

/* ---- body copy ---- */

h2 {
  font-family: var(--font-content);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin: 3rem 0 0.75rem;
}

h3 {
  font-family: var(--font-utility);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin: 2rem 0 0.5rem;
}

p, li { color: var(--ink); }
p { margin: 0 0 1rem; }

ul { padding-left: 1.15rem; margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }

strong { font-weight: 600; }

a {
  color: var(--ink);
  text-decoration-color: var(--terra);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
a:hover { text-decoration-color: var(--ink); }

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--warm-gray);
}

.lede {
  font-family: var(--font-content);
  font-size: 18px;
  line-height: 1.55;
  margin-bottom: 2rem;
}

/* A quiet aside — used for the honest caveats rather than hiding them */
.note {
  border-left: 2px solid var(--connector);
  padding: 0.1rem 0 0.1rem 1rem;
  margin: 0 0 1.25rem;
  color: var(--muted-gray);
  font-size: 15px;
}
.note strong { color: var(--ink); }

.plain-list { list-style: none; padding: 0; }
.plain-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--connector);
}
.plain-list li:last-child { border-bottom: 0; }

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

.cards { display: grid; gap: 0.75rem; margin-top: 2rem; }

.card {
  display: block;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--connector);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
}
.card:hover { border-color: var(--warm-gray); }

.card-title {
  font-family: var(--font-content);
  font-size: 17px;
  font-weight: 600;
  display: block;
}
.card-sub {
  font-size: 14px;
  color: var(--muted-gray);
  display: block;
  margin-top: 0.15rem;
}

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

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--connector);
  font-size: 13px;
  color: var(--muted-gray);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}
footer a { color: var(--muted-gray); }

/* The live-tracking green is the app's most brand-loaded colour; used here only
   as the small dot beside the wordmark on the index, nowhere else. */
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.45rem;
}
