/* anotemy SEO pages — laid out like an Anthropic research post (centred title, one centred
   column, a label | value side panel on hairlines), in anotemy's landing colours and navbar. */
:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --ink: #242522;
  --muted: #6b7074;
  --line: #e8ebed;
  --blue: #1a6dbf;
  --blue-soft: #e7f3fc;
  --serif: "Iowan Old Style", Charter, Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --nav-h: 60px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* navbar: the landing's (landing.css + granola.css) — full width on top, a floating pill once scrolled */
.nav {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 50;
  width: 100%;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 clamp(16px, 4vw, 56px);
  transform: translateX(-50%);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  transition: top 0.35s, width 0.35s, height 0.35s, border-radius 0.35s, border-color 0.35s, box-shadow 0.35s, background 0.35s;
}
.nav.pill {
  top: 10px;
  width: min(860px, calc(100% - 32px));
  height: 52px;
  padding: 0 8px 0 20px;
  border-color: var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, #fff 82%, transparent);
  box-shadow: 0 10px 30px -16px rgb(40 30 10 / 0.3);
}
.nav a { text-decoration: none; }
.logo { display: flex; align-items: center; gap: 8px; font: 600 20px/1 var(--sans); letter-spacing: -0.02em; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { width: 26px; height: 26px; }
.links { display: flex; gap: 28px; margin: 0 auto; color: var(--muted); font-size: 15px; }
.links a:hover { color: var(--ink); }
.btn, .button { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 999px; font: 500 15px/1 var(--sans); white-space: nowrap; text-decoration: none; }
.btn.ghost { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn.primary, .button { background: var(--blue); color: #fff; }
.btn.primary:hover, .button:hover { background: #176ac0; color: #fff; }
@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }

/* page: centred title, one centred column, the side panel on the right */
main { padding: calc(var(--nav-h) + 64px) clamp(20px, 4vw, 56px) 120px; }
.crumbs { max-width: 1280px; margin: 0 auto 20px; font: 500 12px/1.4 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.crumbs ol { display: flex; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.45; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.paper {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(0, 640px) 1fr;
  column-gap: clamp(24px, 4vw, 72px);
}
.paper > * { grid-column: 2; min-width: 0; }
.paper > header { grid-column: 1 / -1; margin-bottom: 64px; }
/* sticky travels the whole .paper; nothing else lives in column 3, so it never covers anything */
.meta { grid-column: 3; grid-row: 2 / span 30; align-self: start; justify-self: end; width: min(100%, 240px); position: sticky; top: 96px; }

h1 {
  max-width: 720px;
  margin: 0 auto;
  font: 700 clamp(2rem, 4vw, 2.75rem)/1.12 var(--sans);
  letter-spacing: -0.025em;
  text-align: center;
  text-wrap: balance;
}
h2 { font: 600 1.45rem/1.25 var(--sans); letter-spacing: -0.015em; margin: 3.5rem 0 1rem; }
h3 { font: 600 1.05rem/1.35 var(--sans); margin: 0; }
p, section li { font: 1.125rem/1.6 var(--serif); color: var(--ink); }
p { margin: 0 0 1.4rem; }
strong { font-weight: 600; }
section ul, section ol { padding-left: 1.4rem; margin: 0 0 1.4rem; }
section li { margin-bottom: 0.6rem; }
section li::marker { color: var(--muted); font-family: var(--sans); font-size: 0.9em; }

/* side panel rows: label | value on hairlines */
.meta .row { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--muted); }
.meta .label { color: var(--ink); font-weight: 500; }
.meta a { color: var(--muted); text-decoration: none; }
.meta a:hover { color: var(--blue); }
.meta ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.meta nav.row { grid-template-columns: 1fr; gap: 8px; }

/* figures */
figure { margin: 2.5rem 0; }
.hero { margin: 0 0 3rem; }
img { display: block; width: 100%; height: auto; border-radius: 8px; background: #f3f1ec; }
figcaption { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.figures { margin: 1rem 0; }

/* hero → the app's 3D viewer */
.to-3d { position: relative; display: block; border-radius: 8px; overflow: hidden; text-decoration: none; }
.to-3d img { transition: transform 0.4s ease, filter 0.4s ease; }
.to-3d:hover img { transform: scale(1.015); filter: brightness(0.97); }
.badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, #fff 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px -14px rgb(40 30 10 / 0.35);
  color: var(--ink);
  font: 600 14px/1 var(--sans);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.badge svg { color: var(--blue); }
.badge small { font-size: 13px; font-weight: 400; color: var(--muted); }
.badge b { font-weight: 500; color: var(--blue); transition: transform 0.2s; }
.to-3d:hover .badge, .to-3d:focus-visible .badge { background: var(--blue); border-color: var(--blue); color: #fff; }
.to-3d:hover .badge svg, .to-3d:hover .badge small, .to-3d:hover .badge b,
.to-3d:focus-visible .badge svg, .to-3d:focus-visible .badge small, .to-3d:focus-visible .badge b { color: #fff; }
.to-3d:hover .badge b { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .to-3d img, .badge, .badge b { transition: none; } }

.answer p { font-size: 1.25rem; line-height: 1.55; }

/* tables: hairlines, sans headers */
table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 2rem; font: 15px/1.45 var(--sans); }
/* guide pages (build-guides.mjs): wide comparison tables scroll sideways on a phone instead of squeezing */
.table-wrap { overflow-x: auto; margin: 0.5rem 0 2rem; }
.table-wrap table { margin: 0; min-width: 560px; }
.answer .disclosure { font-size: 0.95rem; color: var(--muted); }
.paper > .fineprint { margin-top: 3rem; font-size: 0.9rem; line-height: 1.6; color: var(--muted); }
.paper > .fineprint a { color: var(--muted); }
caption { caption-side: top; text-align: left; padding-bottom: 8px; font-size: 13px; color: var(--muted); }
th, td { text-align: left; vertical-align: top; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--line); }
thead th { font-weight: 600; border-bottom: 1px solid var(--ink); }
.key-facts { border-top: 1px solid var(--line); }
.key-facts caption { display: none; }
.key-facts th { width: 150px; font-weight: 500; }
.key-facts td { color: var(--muted); }

/* mnemonic */
#mnemonic .note { margin: 0 0 1.4rem; padding: 4px 0 4px 20px; border-left: 3px solid var(--blue); }
#mnemonic .note strong:first-child { display: block; font: 600 1.5rem/1.3 var(--sans); letter-spacing: -0.015em; margin-bottom: 4px; }

/* quiz: hairline rows, answers behind a click */
#quiz ol { list-style: none; padding: 0; counter-reset: q; border-top: 1px solid var(--line); }
#quiz li { counter-increment: q; display: grid; grid-template-columns: 40px 1fr; padding: 16px 0; margin: 0; border-bottom: 1px solid var(--line); }
#quiz li::before { content: "Q" counter(q); font: 600 13px/1.9 var(--sans); color: var(--blue); }
#quiz li > * { grid-column: 2; }
#quiz .q { margin: 0 0 6px; }
#quiz details p { margin: 8px 0 0; }
summary { cursor: pointer; list-style: none; font: 500 14px/1.5 var(--sans); color: var(--blue); }
summary::-webkit-details-marker { display: none; }
#quiz details[open] summary { color: var(--muted); }

/* FAQ accordion */
#faq details { border-bottom: 1px solid var(--line); }
#faq details:first-of-type { border-top: 1px solid var(--line); }
#faq summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; color: var(--ink); }
#faq summary::after { content: "+"; font-size: 1.25rem; color: var(--blue); }
#faq details[open] summary::after { content: "−"; }
#faq details p { margin: -2px 0 18px; }

/* the end */
#sources li, #credits li { font: 14px/1.55 var(--sans); color: var(--muted); }
#credits h2, #related h2 { font-size: 1.1rem; margin-top: 2.5rem; }
#credits p { font-size: 1rem; }
.small { font: 13px/1.55 var(--sans) !important; color: var(--muted) !important; }
.hub-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.hub-list li { display: flex; align-items: baseline; gap: 14px; padding: 13px 0; margin: 0; border-bottom: 1px solid var(--line); font: 15px/1.45 var(--sans); }
.hub-list a { font-weight: 600; text-decoration: none; }
.hub-list span { color: var(--muted); }
#related .hub-list li::after { content: "→"; margin-left: auto; color: var(--blue); }
.paper > .note { margin-top: 4rem; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.paper > .note h2 { margin: 0 0 8px; }
.paper > .note p { color: var(--muted); }
.paper > .note p:last-child { margin: 20px 0 0; }
footer { margin-top: 3rem; padding-top: 18px; border-top: 1px solid var(--line); font: 13px/1.6 var(--sans); color: var(--muted); }
footer p { font: inherit; color: inherit; margin: 0 0 8px; }

/* hubs */
.eyebrow { margin: 0 0 12px; font: 500 12px/1.4 var(--sans) !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted) !important; text-align: center; }
.paper > h1 { margin-bottom: 32px; }
.paper > .hub-list li { display: block; padding: 18px 0; }
.paper > .hub-list a { font: 600 1.15rem/1.3 var(--sans); }
.paper > .hub-list p { margin: 4px 0 0; font-size: 1rem; color: var(--muted); }

@media (max-width: 1100px) {
  .paper { grid-template-columns: minmax(0, 640px); justify-content: center; }
  .paper > *, .paper > header, .meta { grid-column: 1; }
  .meta { grid-row: 3; position: static; justify-self: stretch; width: auto; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
  .meta .row { grid-template-columns: 96px 1fr; }
  .meta nav.row { grid-template-columns: 96px 1fr; gap: 12px; }
  .meta ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .hero { margin-bottom: 32px; }
  .paper > header { margin-bottom: 40px; }
}
@media (max-width: 860px) {
  .links, .nav .ghost { display: none; }
  .nav .primary { margin-left: auto; }
  .nav { padding-inline: 16px; }
  .nav.pill { top: 8px; }
}
@media (max-width: 640px) {
  main { padding: calc(var(--nav-h) + 36px) 20px 72px; }
  .crumbs ol { justify-content: flex-start; }
  h1 { text-align: left; }
  .eyebrow { text-align: left; }
  p, section li { font-size: 1.0625rem; }
  .answer p { font-size: 1.15rem; }
  .key-facts th { width: 110px; }
  .paper > .note { padding: 24px; }
}
