/* AI Free List — single stylesheet, mobile-first, system fonts only.
   No framework, no external fonts, no external requests. */

:root {
  --ink: #1a1a1a;
  --muted: #555;
  --line: #ddd;
  --bg: #fff;
  --soft: #f4f4f2;
  --accent: #0b5fff;
  --accent-dark: #0848c2;
  --badge-bg: #e6f0e6;
  --badge-ink: #1e6b1e;
  --radius: 8px;
  --max: 1080px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--accent); }
a:hover, a:focus { color: var(--accent-dark); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0.6em 0 0.4em; }
h2 { font-size: 1.45rem; line-height: 1.3; margin: 1.6em 0 0.5em; }
h3 { font-size: 1.15rem; margin: 1.2em 0 0.4em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: 0.35em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 10;
}
.skip-link:focus { left: 0; color: #fff; }

/* Header + nav */
.site-header { background: var(--ink); color: #fff; }
.header-inner { padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand {
  color: #fff; font-size: 1.5rem; font-weight: 800;
  text-decoration: none; letter-spacing: -0.02em;
}
.brand:hover, .brand:focus { color: #fff; text-decoration: underline; }
.tagline { color: #cfcfcf; margin: 0 0 0.7rem; font-size: 0.95rem; }
.site-header nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem;
}
.site-header nav a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 0.2rem 0;
}
.site-header nav a:hover, .site-header nav a:focus { text-decoration: underline; color: #fff; }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* Breadcrumb */
.breadcrumb { font-size: 0.92rem; color: var(--muted); margin: 1rem 0 0; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: #999; }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Hero */
.hero { padding: 1.2rem 0 0.4rem; }
.hero h1 { font-size: 2.1rem; }
.lede { font-size: 1.15rem; color: #333; }

/* Cards */
.card-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
  margin: 1rem 0;
}
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; background: var(--bg);
}
.card h3 { margin-top: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover, .card h3 a:focus { color: var(--accent); text-decoration: underline; }
.card p { margin-bottom: 0.6rem; }
.card .meta { font-size: 0.92rem; color: var(--muted); margin-bottom: 0.4rem; }

.badge {
  display: inline-block; background: var(--badge-bg); color: var(--badge-ink);
  font-weight: 700; font-size: 0.85rem; padding: 0.15rem 0.6rem;
  border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em;
}
.verified { font-size: 0.92rem; color: var(--muted); }

/* Tool page facts */
.facts { margin: 0 0 1em; }
.facts div {
  display: grid; grid-template-columns: 1fr; gap: 0;
  padding: 0.6rem 0; border-bottom: 1px solid var(--line);
}
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }

/* Pros / cons */
.two-col { display: grid; gap: 0 2rem; grid-template-columns: 1fr; }
.two-col h3 { margin-top: 0.4em; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 0.98rem; }
th, td { text-align: left; padding: 0.6rem; border: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); }
.table-wrap { overflow-x: auto; }

/* FAQ */
.faq-item { margin-bottom: 1.1rem; }
.faq-item h3 { margin-bottom: 0.25rem; }
.faq-item p { margin-bottom: 0; }

/* Buttons / CTA */
.button {
  display: inline-block; background: var(--accent); color: #fff;
  font-weight: 700; text-decoration: none;
  padding: 0.7rem 1.4rem; border-radius: var(--radius);
}
.button:hover, .button:focus { background: var(--accent-dark); color: #fff; }
.cta { margin-top: 1.6rem; }

.note { font-size: 0.92rem; color: var(--muted); }
.check-list li { margin-bottom: 0.7rem; }

/* Footer */
.site-footer {
  margin-top: 3rem; padding: 1.6rem 0 2rem;
  background: var(--soft); border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-bottom: 0.8rem; }
.site-footer nav a { color: var(--ink); font-weight: 600; }
.disclaimer { color: var(--muted); }
.copyright { color: var(--muted); margin-bottom: 0; }

/* Legal pages */
.legal h1 { margin-top: 0.8em; }
.legal section { margin-bottom: 1.6rem; }

/* Wider screens */
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .facts div { grid-template-columns: 220px 1fr; gap: 1rem; }
  h1 { font-size: 2.2rem; }
}

@media (min-width: 900px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}

/* Tool hero image (WebP, responsive). Intrinsic 1000x1500, displayed <=500px. */
.tool-image { max-width: 500px; margin: 1.5rem 0; }
.tool-image img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 8px; }
.tool-image figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 0.5rem; }

/* GitHub article cover: landscape 1000x563, displayed <=800px. */
.article-image { max-width: 800px; }

/* GitHub article slide video: 720p, poster is the cover image, no autoplay. */
.article-video { max-width: 800px; margin: 1.5rem 0; }
.article-video video { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 8px; background: #000; }
.article-video figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 0.5rem; }
