/*
 * Linkety-split website — shared styles.
 *
 * No external resources of any kind. The server sends a CSP with
 * `font-src 'self'` and `default-src 'self'`, so webfonts and any other
 * third-party asset would be blocked. System font stack only.
 */

:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --text: #1c1c1e;
  --muted: #6e6e73;
  --link: #0a6cff;
  --border: #e3e3e8;

  --measure: 34rem;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --surface: #17171a;
    --text: #f2f2f7;
    --muted: #9a9aa0;
    --link: #4c9bff;
    --border: #2a2a2e;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 2rem 1.25rem;
}

/* Landing page centres its single block; text pages flow from the top. */
body.centered {
  align-items: center;
  justify-content: center;
  text-align: center;
}

main {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  flex: 1;
}

.logo {
  width: 160px;
  height: 160px;
  max-width: 60vw;
  max-height: 60vw;
  margin: 0 auto 1.5rem;
  display: block;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 2.25rem 0 0.5rem;
}

h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
  margin: 1.5rem 0 0.375rem;
}

p,
ul {
  margin-bottom: 1rem;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.35rem;
}

.tagline {
  color: var(--muted);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.updated {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

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

a:hover {
  text-decoration: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1em 0.35em;
}

.callout {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

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

footer {
  width: 100%;
  max-width: var(--measure);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}

body.centered footer {
  border-top: none;
  text-align: center;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
}

body.centered footer nav {
  justify-content: center;
}
