/* sentlet.com (docs/M2.md, M2.8 part 4). The app's colours and fonts
   (mobile/app/src/theme/tokens.ts, docs/DESIGN_BRIEF.md), light and dark. */

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/DMSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/DMSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/Newsreader-Display.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --background: #f6f3ec;
  --surface: #fffefa;
  --surface-raised: #efede5;
  --text: #242721;
  --muted: #656d65;
  --accent: #b83a32;
  --accent-fill: #c34238;
  --accent-soft: #f4e7df;
  --divider: #e6e0d6;
  --on-accent: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #171918;
    --surface: #222523;
    --surface-raised: #2b2e2b;
    --text: #f4f2ed;
    --muted: #abb2aa;
    --accent: #ff5a55;
    --accent-fill: #d63a3d;
    --accent-soft: #352724;
    --divider: #373b37;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 400 1.0625rem/1.6 "DM Sans", system-ui, sans-serif;
}

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

header a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

header img {
  width: 2.25rem;
  height: 2.25rem;
}

h1 {
  font: 400 2.4rem/1.15 "Newsreader", Georgia, serif;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2.25rem 0 0.5rem;
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

a {
  color: var(--accent);
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.card > :first-child {
  margin-top: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 1rem;
  padding: 1.25rem 1.25rem 0.25rem;
  margin: 1.5rem 0;
}

.points {
  list-style: none;
  padding: 0;
}

.points li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--divider);
  margin: 0;
}

.points li:last-child {
  border-bottom: 0;
}

.points strong {
  display: block;
}

.who {
  display: inline-block;
  background: var(--accent-soft);
  border-radius: 0.5rem;
  padding: 0.1rem 0.5rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

button {
  font: inherit;
  font-weight: 600;
  color: var(--on-accent);
  background: var(--accent-fill);
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.steps {
  padding-left: 1.4rem;
}

/* Commands and fingerprints (web/): they wrap rather than widen the page. */
code,
pre {
  font: 0.9rem/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace;
  overflow-wrap: anywhere;
}
pre {
  background: var(--surface-raised);
  border-radius: 0.6rem;
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
  white-space: pre-wrap;
}

footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--divider);
  font-size: 0.95rem;
  color: var(--muted);
}

footer a {
  color: var(--muted);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.5rem;
}

/* The heading's font has one weight; don't fake a bolder one. */
h1 .who {
  font-weight: inherit;
}
