/* The app's own palette (Features/Sources/DesignSystem/Tokens.swift): dark only, like the app. */
:root {
  --ground: #0e0d0c;
  --surface: #1a1917;
  --line: #2e2b28;
  --bone: #f4f0e9;
  --stone: #a39c91;
  --sage: #8fa97f;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 20px;
  background: var(--ground);
  color: var(--bone);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 0 72px;
}

h1, h2, .serif {
  font-family: "New York", ui-serif, "Iowan Old Style", Georgia, serif;
  font-weight: 400;
}

h1 {
  font-size: clamp(34px, 7vw, 44px);
  line-height: 1.15;
  margin: 0 0 8px;
}

h2 {
  font-size: 24px;
  line-height: 1.3;
  margin: 40px 0 8px;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 4px;
}

p, ul { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }

.muted, .updated { color: var(--stone); }
.updated { font-size: 15px; margin-bottom: 32px; }

a { color: var(--sage); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

strong { font-weight: 600; }

.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 24px 0;
}
.card p:last-child { margin-bottom: 0; }

nav {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 0 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 15px;
}
nav a { color: var(--stone); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--bone); }
nav .home { color: var(--bone); margin-right: auto; }

footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--stone);
  font-size: 14px;
}
