/* Slate's site: the app's own warm neutrals and amber accent, system fonts
   only (nothing is fetched from anywhere), light and dark from the device. */
:root {
  color-scheme: light dark;
  --bg: #fafaf9;
  --surface: #ffffff;
  --border: #e7e5e4;
  --text: #1c1917;
  --text-2: #57534e;
  --text-3: #78716c;
  --accent: #a85005;
  --accent-wash: #fdf3e6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16151a;
    --surface: #1e1d22;
    --border: #35333b;
    --text: #f5f4f2;
    --text-2: #a8a29e;
    --text-3: #9a938d;
    --accent: #f59e0b;
    --accent-wash: #2a2117;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

header.site {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  flex-wrap: wrap;
}

header.site a { color: var(--text-2); text-decoration: none; font-size: 0.95rem; }
header.site a.home { color: var(--text); font-weight: 650; font-size: 1.1rem; margin-right: auto; }
header.site a:hover, header.site a:focus-visible { color: var(--accent); }

h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.5rem;
}

p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin: 0.3rem 0; }

a { color: var(--accent); text-underline-offset: 0.18em; }

.lede { font-size: 1.2rem; color: var(--text-2); margin-bottom: 2rem; }
.meta { color: var(--text-3); font-size: 0.95rem; }

.badge {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 0.75rem;
  background: var(--accent-wash);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 2rem;
}

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

.card p:last-child, .card ul:last-child, .card ol:last-child { margin-bottom: 0; }

.links { list-style: none; padding: 0; }
.links li { margin: 0.5rem 0; }

dl.permissions dt { font-weight: 600; margin-top: 0.9rem; }
dl.permissions dd { margin: 0.2rem 0 0; color: var(--text-2); }
code { font-size: 0.85em; color: var(--text-3); overflow-wrap: anywhere; }

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