/* NimoTab's site: the extension's own tokens (src/index.css), light and dark, and the system font */
:root {
  --bg: #f6f8f8;
  --surface: #ffffff;
  --border: #e2e8e7;
  --fg: #142321;
  --muted: #5f6f6c;
  --accent: #0e8f86;
  --accent-soft: #e3f5f2;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1112;
    --surface: #151a1b;
    --border: #263032;
    --fg: #e6eeec;
    --muted: #8d9c99;
    --accent: #2dd4bf;
    --accent-soft: rgb(45 212 191 / 0.12);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  width: 2rem;
  height: 2rem;
}

header {
  margin-bottom: 2.5rem;
}

h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  margin: 2.5rem 0 0.6rem;
  font-size: 1.15rem;
  line-height: 1.35;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

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

/* the short version, first */
.summary {
  margin: 2rem 0 0;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: var(--accent-soft);
}

.summary p {
  margin: 0;
}

.summary ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

p,
li {
  max-width: 65ch;
}

ul {
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.35rem;
}

.card {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--surface);
}

.card p:first-child {
  margin-top: 0;
}

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

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

footer a {
  color: inherit;
}
