/* Organic tokens, matching SaxSchool/DesignSystem/Theme.swift so the pages the
   App Store links to look like the app they describe. */
:root {
  --bg: #f5ead8;
  --surface: #ebddc5;
  --text: #201e1d;
  --accent: #c67139;
  --accent-700: #8c491a;
  --divider: rgba(32, 30, 29, 0.16);
  --muted: rgba(32, 30, 29, 0.66);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1.25rem 5rem;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main { max-width: 46rem; margin: 0 auto; }

header {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 2rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.wordmark img {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  display: block;
}

.wordmark strong { font-size: 1.6rem; letter-spacing: -0.01em; }
.wordmark span { color: var(--muted); font-size: 0.95rem; display: block; }

h1 { font-size: 2rem; line-height: 1.2; margin: 2.5rem 0 0.5rem; }
h2 { font-size: 1.25rem; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.75rem 0 0.4rem; color: var(--accent-700); }

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

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

ul { padding-left: 1.2rem; }
li { margin: 0.4rem 0; }

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

.panel h2 { margin-top: 0; }

code {
  background: rgba(32, 30, 29, 0.07);
  padding: 0.1em 0.35em;
  border-radius: 5px;
  font-size: 0.9em;
}

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

nav a { margin-right: 1.25rem; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #201e1d;
    --surface: #2e2b25;
    --text: #f9f4ed;
    --accent-700: #f6a06b;
    --divider: rgba(249, 244, 237, 0.18);
    --muted: rgba(249, 244, 237, 0.68);
  }
  code { background: rgba(249, 244, 237, 0.1); }
}
