/* ClipEngine public site: three static pages, no scripts, no web fonts. */
:root {
  color-scheme: light dark;
  --bg: #f8fafc;
  --fg: #0f172a;
  --muted: #475569;
  --line: #cbd5e1;
  --link: #1e3a8a;
  --focus: #b45309;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --fg: #e2e8f0;
    --muted: #94a3b8;
    --line: #334155;
    --link: #93c5fd;
    --focus: #fbbf24;
  }
}

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

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

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

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  border-bottom: 1px solid var(--line);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 1rem 0;
  list-style: none;
}

nav a {
  display: inline-block;
  padding: 0.5rem 0;
}

nav a[aria-current="page"] {
  font-weight: 600;
  text-decoration: none;
}

main {
  padding: 2rem 0 3rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 2rem 0 0.5rem;
}

p,
ul {
  margin: 0 0 1rem;
}

.updated,
footer {
  color: var(--muted);
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 1rem 0 2rem;
  font-size: 0.875rem;
}
