/* Jordan Protocol – site chrome (fonts, header, footer)
   Loaded on every page. Kept self-contained so it never changes how the
   embedded tools look: tokens are prefixed (--c-*), rules are scoped. */

@font-face { font-family: "Bebas Neue Pro"; src: url("/assets/fonts/BebasNeuePro-Middle.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bebas Neue Pro"; src: url("/assets/fonts/BebasNeuePro-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bebas Neue Pro"; src: url("/assets/fonts/BebasNeuePro-Book.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Marine"; src: url("/assets/fonts/Marine-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/assets/fonts/Lato-Light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/assets/fonts/Lato-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
/* Names used by the original Showit tool embeds */
@font-face { font-family: "BEBAS NEUE PRO BOLD"; src: url("/assets/fonts/BebasNeuePro-Bold.woff") format("woff"); font-display: swap; }
@font-face { font-family: "BEBAS NEUE PRO MIIDDLE"; src: url("/assets/fonts/BebasNeuePro-Middle.woff") format("woff"); font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/JetBrainsMono-Regular.woff") format("woff"); font-weight: 300 500; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/JetBrainsMono-Bold.woff") format("woff"); font-weight: 600 800; font-display: swap; }

:root {
  --c-bg: #eef1fa;
  --c-ink: #3a3e47;
  --c-muted: #6b707b;
  --c-accent: #98e704;
  --c-max: 1180px;
  --c-display: "Bebas Neue Pro", Impact, sans-serif;
  --c-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --c-ui: "Marine", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--c-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

.site-header *, .site-header *::before, .site-header *::after,
.site-footer *, .site-footer *::before, .site-footer *::after,
.site-header, .site-footer { box-sizing: border-box; }

.wrap {
  width: 100%;
  max-width: var(--c-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--c-ui);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.btn-dark { background: var(--c-ink); color: var(--c-bg); }
.btn-dark:hover { background: #2b2e35; }
.btn-accent { background: var(--c-accent); color: #1f2a05; }
.btn-accent:hover { box-shadow: 0 8px 24px rgba(152, 231, 4, 0.35); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(238, 241, 250, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(58, 62, 71, 0.06);
  font-size: 16px;
  line-height: 1.5;
}
.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.site-header .brand, .site-footer .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--c-ink);
}
.site-header .brand svg, .site-footer .brand svg { width: 44px; height: 44px; fill: var(--c-ink); flex-shrink: 0; }
.site-header .brand span, .site-footer .brand span {
  font-family: var(--c-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.06em;
  line-height: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--c-ui);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--c-ink);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--c-accent); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav-links .btn { padding: 10px 18px; font-size: 13px; }
.nav-links .btn-dark,
.nav-links .btn-dark[aria-current="page"] { color: var(--c-bg); text-decoration: none; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}
.menu-toggle svg { width: 34px; height: 34px; fill: var(--c-ink); display: block; }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--c-bg);
    border-bottom: 1px solid rgba(58, 62, 71, 0.1);
    padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 14px 0; font-size: 16px; border-bottom: 1px solid rgba(58, 62, 71, 0.08); }
  .nav-links .btn { display: flex; margin-top: 16px; justify-content: center; padding: 14px 18px; font-size: 15px; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--c-bg);
  margin-top: 96px;
  padding: 56px 0 40px;
  border-top: 1px solid rgba(58, 62, 71, 0.1);
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-ink);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.site-footer h4 {
  font-family: var(--c-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--c-muted);
}
.site-footer p { margin: 12px 0 0; max-width: 32ch; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--c-ink); text-decoration: none; font-weight: 400; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(58, 62, 71, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--c-muted);
  font-size: 13px;
}
.footer-bottom a { color: var(--c-muted); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* Tool pages: keep the tool's own spacing, just give it room under the header */
.tool-main { position: relative; z-index: 1; }

/* Labs + tools: only a small legal line instead of the footer */
.legal-mini {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 8px 0 28px;
  font: 400 12px/1.4 var(--c-body);
  color: var(--c-muted);
}
.legal-mini a { color: inherit; text-decoration: none; }
.legal-mini a:hover { text-decoration: underline; }
.legal-mini span { margin: 0 8px; }

/* Text for search engines and screen readers only */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
