/* ==========================================================
   PIXBOB DOCUMENTATION HUB — style.css
   ----------------------------------------------------------
   Lightweight stylesheet for docs.pixbob.com (the hub
   homepage only). Tokens are copied from PixBob Font Studio's
   own docs stylesheet (fontstudio/style.css) so this page
   feels like the same ecosystem without importing any of the
   sidebar/search/content-section machinery that page needs
   and this one doesn't.
   ========================================================== */

/* ==========================================================
   CUSTOM PIXBOB SANS FONTS
   Same faces as Font Studio docs, pointed at this page's own
   assets/fonts/ folder.
   ========================================================== */
@font-face {
  font-family: 'PixBob Sans';
  src: url('assets/Pixbob_Sans-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PixBob Sans Bold';
  src: url('assets/Pixbob_Sans-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PixBob Icons';
  src: url('assets/fonts/PixBob_Icons.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  /* Fonts */
  --font-mono: 'IBM Plex Mono', 'Courier New', Courier, monospace;
  --font-sans: 'PixBob Sans', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'PixBob Sans Bold', 'PixBob Sans', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Surfaces — same values as the Font Studio docs */
  --bg-app: #18181c;
  --bg-elevated: #1e1e23;
  --bg-panel: #222228;
  --bg-inset: #101012;

  --border-color: #303038;
  --border-soft: #26262c;

  --text-bright: #ffffff;
  --text-main: #a0a0ac;
  --text-muted: #63636e;

  /* Brand accent */
  --accent: #d47028;
  --accent-hover: #ff9e3b;

  --shadow-card: 0 4px 0px #08080a;
  --radius: 6px;

  --topbar-h: 56px;
}

/* ==========================================================
   RESET & BASE
   ========================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scrollbar-width: thin;
  scrollbar-color: #3a3a44 #101012;
  scroll-behavior: smooth;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #101012; }
::-webkit-scrollbar-thumb { background: #3a3a44; border-radius: 5px; border: 2px solid #101012; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }

body {
  background: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

.icon-font {
  font-family: 'PixBob Icons', sans-serif;
  speak: never;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================
   TOP BAR
   ========================================================== */
.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-color);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-weight: 600;
}
.topbar-brand:hover { text-decoration: none; }

.topbar-logo { display: block; height: 22px; width: auto; }

.topbar-brand-text {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.75rem;
}

.topbar-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.topbar-links a { color: var(--text-muted); }
.topbar-links a:hover { color: var(--accent-hover); text-decoration: none; }

/* ==========================================================
   PAGE / MAIN
   ========================================================== */
main { flex: 1; }

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border-soft);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 10px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-bright);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.hero p {
  font-size: 0.9375rem;
  color: var(--text-main);
  line-height: 1.7;
  max-width: 560px;
}
.hero p + p { margin-top: 8px; }

/* ==========================================================
   DOCUMENTATION CARDS
   ========================================================== */
.docs-section { padding: 40px 0; }

.section-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.doc-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px;
  color: inherit;
}

a.doc-card:hover {
  text-decoration: none;
  border-color: var(--accent);
}

.doc-card-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--text-bright);
  font-weight: 700;
  margin-bottom: 8px;
}

.doc-card-desc {
  font-size: 0.8125rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  background: var(--bg-inset);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  align-self: flex-start;
  background: var(--accent);
  color: var(--text-bright);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8125rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 9px 16px;
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  text-decoration: none;
}

/* Placeholder card for future products */
.doc-card-placeholder {
  align-items: center;
  justify-content: center;
  text-align: center;
  border-style: dashed;
  border-width: 1.5px;
  box-shadow: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  min-height: 100%;
}

/* ==========================================================
   QUICK LINKS
   ========================================================== */
.quick-links {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border-soft);
}

.quick-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.quick-links a {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-main);
}
.quick-links a:hover { color: var(--accent-hover); }

/* ==========================================================
   FOOTER
   ========================================================== */
footer {
  border-top: 1px solid var(--border-color);
  padding: 20px 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}
footer p + p { margin-top: 4px; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 640px) {
  .topbar { padding: 0 16px; }
  .topbar-brand-text { display: none; }
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 1.5rem; }
  .doc-grid { grid-template-columns: 1fr; }
}
