/* Shared styles for interior pages (/cfxrun/, /privacy/).
   The home page keeps its own inlined copy — it is synced from the Claude
   Design project and must stay self-contained. Keep tokens here in step with
   the home page if the palette changes. */

:root {
  --primary: #2a6c92;
  --primary-deep: #1f5878;
  --primary-subdued: #e2edf3;
  --on-primary: #ffffff;
  --ink: #16262f;
  --ink-2: #33474f;
  --ink-mute: #5c6f77;
  --canvas: #fbfaf7;
  --canvas-soft: #f2f1eb;
  --hairline: #e4e0d7;
  --warn-bg: #fdf3e3;
  --warn-border: #e6c68a;
  --mesh-1: #cfe1ec;
  --mesh-2: #f7efdf;
  --mesh-3: #f3d49b;
  --mesh-4: #9cc7de;
  --mesh-5: #4d8dae;
  --mesh-opacity: .8;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #86bede;
    --primary-deep: #a8d3ea;
    --primary-subdued: #1b2c36;
    --on-primary: #0c1215;
    --ink: #eef2f2;
    --ink-2: #c4cdd0;
    --ink-mute: #97a4a9;
    --canvas: #0e1417;
    --canvas-soft: #121a1e;
    --hairline: #232d32;
    --warn-bg: #241d12;
    --warn-border: #5c4726;
    --mesh-1: #4a7f9c;
    --mesh-2: #d9b98a;
    --mesh-3: #e0c79c;
    --mesh-4: #6aa8c8;
    --mesh-5: #2f7092;
    --mesh-opacity: .42;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
a { color: var(--primary); }
a:hover { color: var(--primary-deep); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.shell { max-width: 46rem; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* Header — the home page's nav and mesh, reused so interior pages belong to
   the same site rather than looking like a bare document. */
.hero { position: relative; overflow: hidden; margin-bottom: 8px; }
.mesh {
  position: absolute;
  top: -60px;
  left: -10%;
  width: 120%;
  height: 420px;
  opacity: var(--mesh-opacity);
  pointer-events: none;
  z-index: 0;
}
.hero > .shell { position: relative; z-index: 1; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -.01em;
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.avatar { display: block; width: 30px; height: 30px; border-radius: 9999px; object-fit: cover; box-shadow: 0 0 0 1px rgba(20,45,60,.14); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-deep); color: var(--on-primary); }
.btn-secondary { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-secondary:hover { background: var(--primary-subdued); color: var(--primary-deep); border-color: var(--primary-deep); }

.page-head { padding: clamp(28px, 5vw, 44px) 0 clamp(20px, 3vw, 28px); }
h1 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(34px, 5.5vw, 50px);
  font-weight: 300;
  letter-spacing: -.026em;
  line-height: 1.06;
}
.lead { margin: 0; max-width: 46ch; color: var(--ink); font-size: 19px; line-height: 1.5; }
.updated { margin: 10px 0 0; color: var(--ink-mute); font-size: 14px; }

main { padding-bottom: 8px; }
h2 {
  margin: 40px 0 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -.015em;
}
ul { padding-left: 20px; }
li { margin-bottom: 6px; }
code { background: var(--canvas-soft); padding: 1px 5px; border-radius: 4px; font-family: var(--mono); font-size: 14px; }
pre {
  overflow-x: auto;
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--canvas-soft);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
}
pre code { background: none; padding: 0; font-size: inherit; }

.links { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.warn {
  margin: 20px 0;
  padding: 14px 16px;
  border: 1px solid var(--warn-border);
  border-radius: 8px;
  background: var(--warn-bg);
  font-size: 15px;
}
.warn p { margin: 0; }
.warn strong { color: var(--ink); font-weight: 500; }
.pair { display: grid; gap: 16px; margin: 16px 0 0; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pair div { padding: 18px 20px; border: 1px solid var(--hairline); border-radius: 10px; }
.pair h3 { margin: 0 0 6px; color: var(--ink); font-size: 17px; font-weight: 400; }
.pair p { margin: 0; font-size: 15px; }

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: top; }
th { color: var(--ink); font-weight: 500; }

footer { margin: 56px 0 64px; padding-top: 24px; border-top: 1px solid var(--hairline); color: var(--ink-mute); font-size: 14px; }
footer p { margin: 0 0 8px; }
footer p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
