/* What every page shares (site/_layout/, stamped in by build.rs): the nav, the footer and the status line. Its own
   fonts and colours, so pages on other type still match. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Geist+Mono:wght@400;500&family=Libre+Baskerville&display=swap");

.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; box-sizing: border-box; width: 100%; max-width: 1120px; margin: 0 auto; padding: 20px 24px; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
.nav .brand { display: flex; align-items: center; gap: 10px; font-size: 17px; line-height: 29px; font-weight: 500; letter-spacing: -0.01em; color: #202020; text-decoration: none; }
.nav .brand svg { display: block; flex: 0 0 auto; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-link { font-size: 14px; color: #424242; text-decoration: none; transition: color .2s ease-out; }
.nav-link:hover, .nav-link[aria-current] { color: #a8541f; }
.nav .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: #ffffff; color: #202020; font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1; text-decoration: none; box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 0 0 1px rgb(0 0 0 / 0.04); cursor: pointer; }
.nav .menu-btn { display: none; }
@media (max-width: 860px) {
  .nav .menu-btn { display: inline-flex; width: 32px; padding: 0; }
}
@media (max-width: 640px) {
  .nav { padding: 16px; }
  .nav-link { display: none; }
}

.statusline { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); box-sizing: border-box; z-index: 50; display: flex; align-items: center; gap: 14px; height: 30px; padding: 0 12px 0 0; border-radius: 8px; background: #f0f0f0; box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); font-family: "Geist Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: #424242; white-space: nowrap; overflow: hidden; }
.statusline .mode { display: inline-flex; align-items: center; height: 100%; padding: 0 12px; background: #a8541f; color: #ffffff; font-weight: 500; letter-spacing: 0.04em; transition: background 160ms; }
.statusline .name { color: #202020; }
.statusline .file { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.statusline .gap { flex: 1; }
.statusline a { color: #a8541f; }
.statusline .hint { color: #6e6e6e; }
.statusline .pct { min-width: 34px; text-align: right; color: #202020; }
.statusline .hint:empty, .statusline .pct:empty { display: none; }
@media (max-width: 860px) {
  .statusline .file, .statusline .hint { display: none; }
}

.colophon { width: 100%; max-width: 1120px; margin: 0 auto; padding: 40px 24px 120px; box-sizing: border-box; display: flex; flex-direction: column; gap: 48px; text-align: left; }
.colophon .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.colophon .row.top { gap: 20px 40px; }
.colophon .row.bottom { gap: 24px 40px; }
.colophon a { color: #424242; text-decoration: none; transition: color .2s ease-out; }
.colophon a:hover { color: #a8541f; }
.colophon .brand { display: flex; align-items: center; gap: 12px; font-family: "Geist Mono", ui-monospace, Menlo, monospace; font-size: 14px; color: #202020; }
.colophon .brand svg { display: block; flex: 0 0 auto; }
.colophon nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-family: "Geist Mono", ui-monospace, Menlo, monospace; font-size: 13px; }
.colophon .left { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 100%; }
.colophon .badge { margin-left: -4px; max-width: 100%; line-height: 0; }
.colophon .copy { font-family: "Geist Mono", ui-monospace, Menlo, monospace; font-size: 12px; color: #6e6e6e; }
.colophon .right { display: flex; align-items: center; gap: 12px; }
.colophon .credit { display: flex; flex-direction: column; gap: 2px; text-align: right; font-family: "Libre Baskerville", Georgia, serif; font-style: normal; font-size: 15px; line-height: 1.5; }
.colophon .credit span:first-child { color: #424242; }
.colophon .credit span:last-child { color: #6e6e6e; }
.colophon .credit a.lh, .colophon .credit a.lh:hover { color: #f43f5e; }
.colophon .logo { flex: 0 0 auto; }
.colophon .logo svg { display: block; }
@media (max-width: 760px) { .colophon .credit { text-align: left; } }
@media (max-width: 440px) { .colophon .badge { overflow: hidden; } }
