/* Sticker Anything policy site. One file, no build step, system fonts only. */

:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --ink: #10193f;
  --muted: #646b80;
  --rule: #d9dbe3;
  --surface: #ebecf1;
  --accent: #db0a40; /* passes AA as text on the light page */
  --measure: 40rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10193f;
    --ink: #f5f5f7;
    --muted: #9fa6ba;
    --rule: #2e395b;
    --surface: #1d274c;
    --accent: #ffcc00; /* red fails AA on navy, so links turn yellow in dark mode */
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap {
  max-width: calc(var(--measure) + 32px);
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  padding: 1.5rem 0 0;
}

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

nav.site {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.9375rem;
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
}

nav.site a:hover,
nav.site a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

main.wrap {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.3125rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.5rem;
  scroll-margin-top: 1rem;
}

h3 {
  font-size: 1.0625rem;
  margin: 1.5rem 0 0.25rem;
}

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

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.35rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

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

strong {
  font-weight: 650;
}

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

.lead {
  font-size: 1.1875rem;
}

.summary {
  background: var(--surface);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 0;
}

.summary h2 {
  margin-top: 0;
  font-size: 1.0625rem;
}

.summary ul {
  margin-bottom: 0;
}

.toc {
  margin: 1.5rem 0 0;
  font-size: 0.9375rem;
}

.toc ol {
  columns: 2 14rem;
  column-gap: 1.5rem;
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin: 0 0 1rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--rule);
}

th {
  font-weight: 650;
}

.table-scroll {
  overflow-x: auto;
}

footer.site {
  border-top: 1px solid var(--rule);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}

footer.site p {
  margin: 0 0 0.25rem;
}

footer.site a {
  color: var(--muted);
}
