/* Global layout & typography */

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #fafafa;
}

a {
  color: #0054a3;
}

a:hover {
  text-decoration: underline;
}

/* Top navigation */

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #ddd;
  background: #fff;
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
  padding: 0.15rem 0.25rem;
}

/* Main content container */

.container {
  max-width: 960px;
  margin: 1.5rem auto 3.5rem;
  padding: 0 1.25rem 2.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Headings & text */

h1, h2, h3 {
  font-weight: 600;
  color: #111;
}

h1 {
  font-size: 1.9rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 1.4rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  border-left: 3px solid #0054a3;
  padding-left: 0.5rem;
}

h3 {
  font-size: 1.1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
}

p {
  margin: 0.45rem 0;
}

ul {
  margin: 0.4rem 0 0.4rem;
  padding-left: 1.25rem;
}

li {
  margin: 0.25rem 0;
}
.hero-img {
  width: 100%;        /* force it to span the whole container */
  display: block;
  margin: 1rem 0 1.75rem;
}

/* Generic image styling */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* About / Creator headshot */

.about-img {
  max-width: 220px;
  border-radius: 8px;
  margin: 1rem auto 1.5rem;
}

/* Buttons (whitepapers list, etc.) */

.button {
  display: inline-block;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid #0054a3;
  background: #0054a3;
  color: #fff;
}

.button:hover {
  background: #003f7e;
  border-color: #003f7e;
}

/* Utility links */

.back-link {
  font-size: 0.9rem;
  margin: 1rem 0 0.5rem;
}

.back-link a {
  text-decoration: none;
}

.back-link a:hover {
  text-decoration: underline;
}

.subtitle {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  opacity: 0.85;
}

/* Whitepaper helpers */

.flow-diagram {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: rgba(0, 0, 0, 0.03);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  white-space: pre-wrap;
}

.label-pill {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #eef4ff;
  color: #0054a3;
  margin-right: 0.25rem;
}

/* Core Factory Team cards (for when we box them up) */

.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.agent-card {
  background: #f7f9ff;
  border-radius: 8px;
  padding: 0.9rem 0.9rem 0.85rem;
  border: 1px solid #e1e6ff;
}

.agent-card-muted {
  background: #f5f5f5;
  border-color: #e0e0e0;
}

.agent-card h3 {
  margin-top: 0;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.agent-card p {
  margin: 0.25rem 0;
  font-size: 0.92rem;
}

.agent-link a {
  font-size: 0.85rem;
  text-decoration: none;
}

.agent-link a:hover {
  text-decoration: underline;
}

/* Footer */

footer,
.site-footer {
  max-width: 960px;
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
  font-size: 0.85rem;
  color: #777;
}

/* Responsive tweaks */

@media (max-width: 720px) {
  .container {
    margin: 1rem auto 2.5rem;
    border-radius: 0;
  }

  h1 {
    font-size: 1.6rem;
  }
}

