/* AI Firsts, aifirsts.com */

:root {
  --navy: #051c2c;
  --blue: #1f4fbf;
  --ink: #1b1b1b;
  --paper: #ffffff;
  --mist: #eef3f8;
  --rule: #c9d6e3;
  --muted: #4d5a66;
  --measure: 46rem;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  line-height: 1.62;
  font-size: 1rem;
}

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.14em; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .5rem 1rem; }
.skip:focus { left: 1rem; z-index: 10; }

/* Header */
.site-header {
  border-top: 6px solid var(--navy);
  border-bottom: 1px solid var(--rule);
}
.site-header .inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.wordmark {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.wordmark span { color: var(--blue); }
.site-nav a {
  color: var(--navy);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.95rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.2em; }

/* Layout */
main { max-width: var(--measure); margin: 0 auto; padding: 2rem 1.25rem 4rem; }

/* Typography */
h1, h2, h3, h4 {
  color: var(--navy);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: 2.1rem; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.5rem; margin: 2.75rem 0 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
h3 { font-size: 1.18rem; margin: 1.75rem 0 0.5rem; }
h4 { font-size: 1.02rem; margin: 1.25rem 0 0.35rem; }
p, ul, ol, blockquote { margin: 0 0 1.05rem; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.3rem; }
strong { color: var(--navy); }
blockquote {
  margin-left: 0; padding-left: 1rem;
  border-left: 3px solid var(--blue);
  color: var(--navy);
}
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

/* Article header */
.article-header { margin-bottom: 1.5rem; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.5rem; }
.crumbs a { color: var(--muted); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--rule); }
.meta { color: var(--muted); font-size: 0.92rem; margin: 0 0 1.25rem; }
.meta time { color: var(--muted); }

/* The short answer */
.answer {
  background: var(--mist);
  border-left: 5px solid var(--navy);
  padding: 1.1rem 1.25rem 0.2rem;
  margin: 0 0 1.75rem;
}
.answer p { margin-bottom: 0.9rem; }
.answer .label {
  display: block;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

/* Contents */
.contents {
  border: 1px solid var(--rule);
  padding: 1rem 1.25rem 0.5rem;
  margin: 0 0 2rem;
  font-size: 0.95rem;
}
.contents p { margin: 0 0 0.5rem; color: var(--navy); font-weight: 600; }
.contents ol { margin: 0 0 0.5rem; padding-left: 1.4rem; columns: 2; column-gap: 2rem; }
.contents li { break-inside: avoid; margin-bottom: 0.25rem; }
.contents a { text-decoration: none; }
.contents a:hover { text-decoration: underline; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.45;
}
caption { text-align: left; color: var(--muted); font-size: 0.9rem; padding: 0 0 0.4rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--rule); }
thead th { background: var(--navy); color: #fff; font-weight: 600; border-bottom: 0; }
thead th strong { color: #fff; }
tbody th { font-weight: 600; color: var(--navy); width: 38%; }
tbody tr:nth-child(even) td, tbody tr:nth-child(even) th { background: #f7f9fc; }
.table-wrap { overflow-x: auto; }

/* Article footer */
.article-footer { margin-top: 3rem; border-top: 1px solid var(--rule); padding-top: 1.25rem; font-size: 0.95rem; color: var(--muted); }
.related h2 { border-top: 0; padding-top: 0; margin-top: 2.5rem; font-size: 1.25rem; }
.related ul { list-style: none; padding: 0; }
.related li { margin-bottom: 0.9rem; }
.related li a { font-weight: 600; }
.related li span { display: block; color: var(--muted); font-size: 0.95rem; }

/* Home */
.intro h1 { font-size: 2.4rem; margin-top: 0; }
.intro .lede { font-size: 1.15rem; color: var(--navy); }
.firsts { list-style: none; padding: 0; margin: 2rem 0; }
.firsts li { border-top: 1px solid var(--rule); padding: 1.35rem 0; }
.firsts li:last-child { border-bottom: 1px solid var(--rule); }
.firsts .q { color: var(--muted); font-size: 0.95rem; margin: 0 0 0.25rem; }
.firsts h2 { border: 0; padding: 0; margin: 0 0 0.4rem; font-size: 1.35rem; }
.firsts h2 a { text-decoration: none; }
.firsts h2 a:hover { text-decoration: underline; }
.firsts p { margin: 0; }
.upcoming { color: var(--muted); }
.upcoming h2 { border-top: 0; padding-top: 0; margin-top: 1.5rem; }
.upcoming li { margin-bottom: 0.2rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); margin-top: 2rem; }
.site-footer .inner { max-width: var(--measure); margin: 0 auto; padding: 1.5rem 1.25rem 2.5rem; font-size: 0.9rem; color: var(--muted); }
.site-footer p { margin: 0 0 0.5rem; }
.site-footer a { color: var(--muted); }

@media (max-width: 640px) {
  html { font-size: 105%; }
  h1 { font-size: 1.7rem; }
  .intro h1 { font-size: 1.9rem; }
  .contents ol { columns: 1; }
  tbody th { width: auto; }
}

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

@media print {
  .site-header, .site-footer, .contents, .related { display: none; }
  a { color: inherit; text-decoration: none; }
}
