:root {
  --bg: #fbfaf7;
  --fg: #1c2330;
  --muted: #5b6577;
  --accent: #1f3a5f;
  --line: #e4e1d9;
  --card: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161d;
    --fg: #e8eaee;
    --muted: #9aa4b5;
    --accent: #8fb4e6;
    --line: #262d39;
    --card: #181d26;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

header,
main,
footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}

nav a {
  margin-left: 20px;
  color: var(--muted);
  text-decoration: none;
}

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

nav a:hover {
  color: var(--fg);
}

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

section {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.hero {
  border-top: 0;
  padding: 48px 0 56px;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 20px;
  text-wrap: balance;
}

h2 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  margin: 0 0 6px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.apps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.apps p {
  margin: 0 0 10px;
  color: var(--muted);
}

.apps a {
  font-size: 0.9rem;
}

.principles li {
  margin-bottom: 12px;
}

footer {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.soon {
  font-size: 0.9rem;
  color: var(--muted);
}

.prose {
  padding-bottom: 40px;
}

.prose h1 {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.prose h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg);
  margin: 36px 0 10px;
}

.prose ul {
  list-style: disc;
  padding-left: 22px;
}

footer p {
  margin: 0 0 6px;
}
