/* Palette sampled from the logo assets so the site and the mark match exactly.
   Deliberately not GenieAI's: warm paper ground rather than white, clay rather than blue.

   Type: Fredoka for headings, Inter for body, both self-hosted rather than pulled from
   Google's CDN so the page makes no third-party request. Headings sit at 500, not 700:
   Fredoka is a heavy face and the bold weights are hard to read at heading sizes. */

@font-face {
  font-family: 'Fredoka';
  src: url('/fonts/fredoka-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Fredoka';
  src: url('/fonts/fredoka-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #f5f2ea;
  --paper-raised: #fbf9f4;
  --ink: #24211d;
  --muted: #6d645a;
  --clay: #9e5a34;
  --clay-dark: #7f4526;
  --line: #e0d8ca;
  --max: 44rem;

  --font-display: 'Fredoka', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 17px/1.7 var(--font-body);
  letter-spacing: -0.003em;
  color: var(--ink);
  background: var(--paper);
}
main { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem 4rem; }

header.site, footer.site {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}
header.site { border-bottom: 1px solid var(--line); margin-bottom: 2.25rem; }
footer.site {
  border-top: 1px solid var(--line);
  margin-top: 3.5rem;
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}
footer.site p { margin: 0.4rem 0; }

.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); }
.brand img { height: 26px; width: auto; display: block; border-radius: 4px; }
.brand span {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--clay-dark);
}
nav a { margin-left: 1.1rem; font-size: 0.88rem; color: var(--muted); text-decoration: none; }
nav a:first-child { margin-left: 0; }
nav a:hover, a:hover { text-decoration: underline; }
a { color: var(--clay); }

/* Headings at 500. Fredoka's heavier weights are difficult to read at size. */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: 0; }
h1 { font-size: 2.05rem; line-height: 1.22; margin: 0 0 0.55rem; }
h2 {
  font-size: 1.32rem;
  margin: 2.9rem 0 0.85rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}
h3 { font-size: 1.08rem; margin: 2.1rem 0 0.5rem; }
p, li { margin: 0.7rem 0; }
ul { padding-left: 1.15rem; }
strong { font-weight: 600; }

.meta { color: var(--muted); font-size: 0.87rem; margin-top: 0; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 38rem; }
.disclosure { color: var(--muted); font-size: 0.87rem; border-left: 2px solid var(--line); padding-left: 0.8rem; }

/* Answer-first block. 7 of 12 measured citation winners lead with one. */
.quick-answer {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--clay);
  border-radius: 5px;
  padding: 0.95rem 1.15rem;
  margin: 1.6rem 0 2.2rem;
}
.quick-answer p { margin: 0; }

/* Comparison table. Present in 10 of 12 winners; scrolls rather than breaking the layout. */
.table-wrap { overflow-x: auto; margin: 1rem 0 2rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.91rem; min-width: 32rem; background: var(--paper-raised); }
th, td { text-align: left; padding: 0.62rem 0.72rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--clay-dark);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }

ul.guides { list-style: none; padding: 0; }
ul.guides li {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
ul.guides a { font-weight: 500; text-decoration: none; }
ul.guides span { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }

/* Cross-links between guides. Reference works cross-reference; brochures do not. */
.related { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.related h2 { border: 0; margin: 0 0 0.5rem; font-size: 1.02rem; padding: 0; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin: 0.35rem 0; }

@media (max-width: 34rem) {
  h1 { font-size: 1.68rem; }
  body { font-size: 16px; }
  header.site nav { width: 100%; }
  nav a { margin-left: 0; margin-right: 1rem; }
}
