/* Minimal stylesheet for the /docs Jekyll site */

:root {
  --maxw: 900px;
  --pad: 16px;
  --bg: #ffffff;
  --fg: #002855;
  --muted: #666666;
  --border: #e6e6e6;
  --accent: #0072ce;
  --footer-bg: #002855;
  --footer-fg: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Optional local fonts (kept minimal + safe fallbacks) */
/* Optional local fonts (safe fallbacks if missing) */
@font-face {
  font-family: "Visby";
  src: url("fonts/VisbyCF/VisbyCF-Thin.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Visby";
  src: url("fonts/VisbyCF/VisbyCF-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Visby";
  src: url("fonts/VisbyCF/VisbyCF-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Visby";
  src: url("fonts/VisbyCF/VisbyCF-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Visby";
  src: url("fonts/VisbyCF/VisbyCF-DemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Visby";
  src: url("fonts/VisbyCF/VisbyCF-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Visby";
  src: url("fonts/VisbyCF/VisbyCF-ExtraBold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Visby";
  src: url("fonts/VisbyCF/VisbyCF-Heavy.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Visby";
  src: url("fonts/VisbyCF/VisbyCF-ThinOblique.otf") format("opentype");
  font-weight: 100;
  font-style: oblique;
  font-display: swap;
}
@font-face {
  font-family: "Visby";
  src: url("fonts/VisbyCF/VisbyCF-LightOblique.otf") format("opentype");
  font-weight: 300;
  font-style: oblique;
  font-display: swap;
}
@font-face {
  font-family: "Visby";
  src: url("fonts/VisbyCF/VisbyCF-RegularOblique.otf") format("opentype");
  font-weight: 400;
  font-style: oblique;
  font-display: swap;
}
@font-face {
  font-family: "Visby";
  src: url("fonts/VisbyCF/VisbyCF-MediumOblique.otf") format("opentype");
  font-weight: 500;
  font-style: oblique;
  font-display: swap;
}
@font-face {
  font-family: "Visby";
  src: url("fonts/VisbyCF/VisbyCF-DemiBoldOblique.otf") format("opentype");
  font-weight: 600;
  font-style: oblique;
  font-display: swap;
}
@font-face {
  font-family: "Visby";
  src: url("fonts/VisbyCF/VisbyCF-BoldOblique.otf") format("opentype");
  font-weight: 700;
  font-style: oblique;
  font-display: swap;
}
@font-face {
  font-family: "Visby";
  src: url("fonts/VisbyCF/VisbyCF-ExtraBoldOblique.otf") format("opentype");
  font-weight: 800;
  font-style: oblique;
  font-display: swap;
}
@font-face {
  font-family: "Visby";
  src: url("fonts/VisbyCF/VisbyCF-HeavyOblique.otf") format("opentype");
  font-weight: 900;
  font-style: oblique;
  font-display: swap;
}

@font-face {
  font-family: "Visby Slab";
  src: url("fonts/VisbySlab/VisbySlabCF-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Visby", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

/* Hero banner */
.hero { width: 100%; overflow: hidden; }
.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Top nav */
.main-nav {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.main-nav ul {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px var(--pad);
  list-style: none;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 10px;
  display: inline-block;
}

.main-nav a:hover { 
  background: #f5f5f5;
  color: var(--accent);
  font-weight: 700;
}

.nav-spacer{ flex: 1; }

.nav-lang{
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-sep{
  color: #f5f5f5;
  font-weight: 600;
}

.nav-lang a.active{
  color: var(--accent);
}

/* Page content */
.page-content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px var(--pad);
}

h1, h2, h3 {
  font-family: "Visby Slab", "Visby", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.2;
  margin: 0.9em 0 0.35em;
}

p { margin: 0.6em 0; }

strong, b {
  font-weight: 800;
}

a { color: inherit; }

.page-content img { max-width: 100%; height: auto; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  height: 80px;
  width: 100%;
  margin-top: 32px;
}

/* Small screens */
@media (max-width: 640px) {
  :root { --pad: 16px; }
}
