/* The gStep design system, as in extension/popup/popup.css: Paper (light) and Night (dark). */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/SchibstedGrotesk-Variable.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f6f8f7;
  --border: #dde3e0;
  --text: #1f2421;
  --muted: #5f6b65;
  --accent-strong: #137333;
  --accent-soft: #e6f4ea;
  --focus: #0d3b22;
  --font-display: "Bricolage Grotesque", "Schibsted Grotesk", system-ui, sans-serif;
  --font-sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1713;
    --surface: #18231d;
    --border: #2d3b33;
    --text: #e8ebe9;
    --muted: #a3ada7;
    --accent-strong: #a8dab5;
    --accent-soft: rgba(129, 201, 149, 0.16);
    --focus: #b8f05a;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 11px;
}

.brand span {
  font: 800 26px/1 var(--font-display);
  letter-spacing: -0.01em;
}

h1 {
  margin: 0 0 4px;
  font: 800 clamp(30px, 6vw, 40px)/1.1 var(--font-display);
  letter-spacing: -0.02em;
}

.updated {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
}

.lede {
  margin: 0 0 8px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 18px;
  font-weight: 500;
}

h2 {
  margin: 36px 0 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font: 700 21px/1.25 var(--font-display);
  letter-spacing: -0.01em;
}

h3 {
  margin: 20px 0 4px;
  font-size: 17px;
  font-weight: 700;
}

p,
ul {
  margin: 0 0 12px;
}

ul {
  padding-left: 22px;
}

li {
  margin-bottom: 4px;
}

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

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

code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface);
  font-size: 0.9em;
}

footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
