/* The look of every page on the hosting site: neutral until Storya has a visual identity. */

:root {
  color-scheme: light dark;
  --background: #fafaf9;
  --surface: #f0efed;
  --on-background: #1c1c1e;
  --muted: #4a4a4f;
  --outline: #cfcdc9;
  --primary: #2f5d8a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #141416;
    --surface: #222226;
    --on-background: #e8e7e4;
    --muted: #c3c2be;
    --outline: #46464b;
    --primary: #9cc3ea;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--on-background);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.brand {
  color: var(--on-background);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

h1, h2 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.25rem; margin: 0 0 16px; }
h2 { font-size: 1.375rem; margin: 40px 0 8px; }

p, ul { margin: 0 0 16px; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 8px; }

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

.lead { font-size: 1.1875rem; color: var(--muted); }

.lang {
  font-weight: 700;
  padding: 8px 14px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.note {
  background: var(--surface);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 24px 0;
}

.note p:last-child { margin-bottom: 0; }

footer {
  margin-top: 56px;
  padding-top: 16px;
  border-top: 1px solid var(--outline);
  color: var(--muted);
  font-size: 0.9375rem;
}

footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 8px; }

.centered {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.centered .brand { font-size: 2.5rem; }
.centered footer nav { justify-content: center; }
