/* Colors follow the app (mobile/src/scaffold/ui/appearance.ts). */
:root {
  --bg: #FAF7F0;
  --card: #FFFFFF;
  --text: #1F1A15;
  --muted: #6B6157;
  --accent: #7A2B25;
  --border: rgba(31, 26, 21, 0.12);
  --tint: rgba(122, 43, 37, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141210;
    --card: #211E1A;
    --text: #EDE6DA;
    --muted: #A69C8F;
    --accent: #E3A296;
    --border: rgba(237, 230, 218, 0.14);
    --tint: rgba(227, 162, 150, 0.12);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.site-header, main, .site-footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  font-family: "New York", "Iowan Old Style", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

nav a { margin-left: 1.25rem; }
nav a:first-child { margin-left: 0; }

main { padding-bottom: 3rem; }

h1, h2, h3 {
  font-family: "New York", "Iowan Old Style", Georgia, serif;
  line-height: 1.25;
}

h1 { font-size: 2rem; margin: 1.5rem 0 0.5rem; }
h2 { font-size: 1.35rem; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1.1rem; margin: 1.75rem 0 0.25rem; }

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

.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0;
}

blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 1rem;
  background: var(--tint);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
}

blockquote p { margin: 0.25rem 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--border);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

code {
  font-size: 0.9em;
  background: var(--tint);
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav a { color: var(--muted); }
.site-footer p { margin: 0.75rem 0 0; }
