/* rista-notes.app: one stylesheet, no fonts or images from elsewhere. */
:root {
  --bg: #fdfdfc;
  --fg: #1d1f21;
  --muted: #5d6166;
  --line: #d6d8db;
  --accent: #1f5fbf;
  --notice: #fff4d6;
  --card: #f4f5f6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17191c;
    --fg: #e8e9eb;
    --muted: #a3a8ae;
    --line: #3a3e44;
    --accent: #7aa7f0;
    --notice: #3b3320;
    --card: #1f2226;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
header, main, footer { max-width: 42rem; margin: 0 auto; padding: 0 1rem; }
header { padding-top: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; font-size: 1.375rem; color: var(--fg); text-decoration: none; }
main { padding-top: 1.5rem; padding-bottom: 2rem; }
h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 1rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.0625rem; margin: 1.5rem 0 0.25rem; }
a { color: var(--accent); }
.notice { background: var(--notice); padding: 0.75rem 1rem; border-radius: 0.375rem; }
.placeholder { background: var(--notice); }
.lang { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 0.5rem; }
footer { color: var(--muted); font-size: 0.9375rem; padding-bottom: 2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
footer a { color: var(--muted); }
code { overflow-wrap: anywhere; }

/* Landing pages (store-release design.md, decision 9). */
header .switch { float: right; margin-top: 0.3rem; font-size: 0.9375rem; }
.example {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted); border: 1px solid var(--line);
  border-radius: 0.25rem; padding: 0 0.375rem; margin-right: 0.375rem; vertical-align: 0.1em;
}

/* The path of a note: an ordered list of cards, below each other on a phone and in a row
   on a wide screen, joined by arrows drawn with borders (no images, no text). */
.path {
  list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0;
  display: grid; gap: 2rem;
}
.step {
  counter-increment: step; position: relative;
  border: 1px solid var(--line); border-radius: 0.5rem; padding: 0.75rem 1rem 1rem;
  background: var(--card);
}
.step h3 { margin-top: 0; }
.step h3::before { content: counter(step) ". "; color: var(--muted); }
.step p { margin: 0.5rem 0; }
.step img {
  display: block; margin: 0.75rem auto 0; width: 9.75rem; height: auto; border-radius: 50%;
  background: #000;
}
.step + .step::before {
  content: ""; position: absolute; left: 50%; top: -1.5rem; margin-left: -0.625rem;
  border-left: 0.625rem solid transparent; border-right: 0.625rem solid transparent;
  border-top: 0.875rem solid var(--muted);
}
@media (min-width: 64rem) {
  .path {
    grid-template-columns: repeat(5, 1fr); gap: 1.75rem;
    width: min(76rem, calc(100vw - 2rem)); margin-left: calc(50% - min(38rem, 50vw - 1rem));
  }
  .step + .step::before {
    left: -1.375rem; top: 50%; margin-left: 0; margin-top: -0.625rem;
    border-top: 0.625rem solid transparent; border-bottom: 0.625rem solid transparent;
    border-left: 0.875rem solid var(--muted); border-right: 0;
  }
}
.sample { margin: 0.5rem 0 0; padding: 0 0 0 0.75rem; border-left: 3px solid var(--line); font-style: italic; }
.flow { line-height: 2.4; }
.box {
  display: inline-block; border: 1px solid var(--accent); border-radius: 0.375rem;
  padding: 0 0.625rem; line-height: 1.8; font-weight: 600;
}
.then { color: var(--muted); margin: 0 0.25rem; }
.mail {
  margin-top: 0.75rem; border: 1px solid var(--line); border-radius: 0.375rem;
  background: var(--bg); padding: 0.5rem 0.75rem; font-size: 0.9375rem;
}
.mail-head { border-bottom: 1px solid var(--line); padding-bottom: 0.375rem; }
.mail ul { padding-left: 1.25rem; margin: 0.5rem 0; }
.mail-transcript { color: var(--muted); font-size: 0.875rem; }
