/* Reading room inside the fullhouse.sh frame. Loaded after the generator's
   spec.css. Tokens follow the landing page: paper, ink, red, Archivo. */

@font-face {
  font-family: Archivo;
  src: url("/fonts/archivo-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --paper: #f5f4f2;
  --bg: #f5f4f2;
  --surface: #f5f4f2;
  --fg: #201e1d;
  --ink: #201e1d;
  --muted: #6b6765;
  --rule: #d8d5d3;
  --line: #d8d5d3;
  --accent: #a52b17;
  --red: #a52b17;
  --link: #a52b17;
  --code-bg: #eeedeb;
  --focus: #a52b17;
  --header-height: 86px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #f5f4f2;
    --surface: #f5f4f2;
    --fg: #201e1d;
    --ink: #201e1d;
    --muted: #6b6765;
    --rule: #d8d5d3;
    --accent: #a52b17;
    --link: #a52b17;
    --code-bg: #eeedeb;
    --focus: #a52b17;
  }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #f5f4f2f5;
  border-bottom: 1px solid #deddd5;
  backdrop-filter: blur(12px);
}

.site-header .site-nav {
  min-height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 80px);
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-weight: 400;
  letter-spacing: 0;
}

.site-header .brand-wordmark {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
}

.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 550;
  letter-spacing: -0.025em;
}

.site-header a,
.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.site-header .nav-links a:hover,
.site-footer a:hover {
  text-decoration: none;
  color: var(--red);
}

.site-header .button {
  display: inline-flex;
  align-items: center;
  padding: 12px 15px;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0;
}

.site-header .button:hover {
  background: #d23117;
  color: #fff;
}

.site-header .build {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

.shell {
  padding-top: 1.75rem;
}

nav.docs,
nav.toc {
  top: calc(var(--header-height) + 16px);
  max-height: calc(100vh - var(--header-height) - 32px);
}

h1, h2, h3, h4 {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.agents {
  margin-top: 2.5rem;
  padding-top: 0.25rem;
  max-width: var(--measure);
}

.agents code {
  font-size: 0.9em;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: 30px clamp(24px, 5vw, 80px) 32px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.site-footer .brand-wordmark {
  display: block;
  width: 150px;
  height: auto;
}

.site-footer .footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

@media (max-width: 800px) {
  :root { --header-height: 72px; }
  .site-header .site-nav { min-height: 72px; }
  .site-header .nav-links a:not(.button) { display: none; }
  .site-header .build { display: none; }
  .site-header .brand-wordmark { width: 164px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
