/* BI2RDY Site Styles */
:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-hover: #161616;
  --text: #d4d4d4;
  --text-dim: #888888;
  --accent: #00d4aa;
  --accent-dim: #00a884;
  --border: #222222;
  --font-mono: 'SFMono-Regular', 'Fira Code', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

/* Nav */
nav {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: rgba(10,10,10,0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.nav-brand {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.nav-brand span { color: var(--text-dim); font-weight: 400; }
.nav-links { display: flex; gap: 1.8rem; list-style: none; flex-wrap: wrap; }
.nav-links a { color: var(--text-dim); font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* Main & Footer */
main { flex: 1; max-width: 780px; width: 100%; margin: 0 auto; padding: 3rem 2rem; }
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

/* Home Hero */
.hero { text-align: center; padding: 5rem 0 3rem; }
.hero h1 {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}
.hero .subtitle { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 1.5rem; }
.hero .meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 3rem;
  letter-spacing: 0.02em;
}

.btn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto;
}
.btn-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.3rem 1rem;
  text-align: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  color: var(--text);
}
.btn-card:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
  text-decoration: none;
  transform: translateY(-2px);
}
.btn-card .label { font-weight: 500; margin-bottom: 0.3rem; font-size: 0.95rem; }
.btn-card .desc { font-size: 0.75rem; color: var(--text-dim); font-family: var(--font-mono); }

/* Page Header */
.page-header { margin-bottom: 2.5rem; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
.page-header h1 { font-size: 1.6rem; margin-bottom: 0.4rem; color: var(--accent); font-family: var(--font-mono); letter-spacing: 0.04em; }
.page-header p { color: var(--text-dim); font-size: 0.95rem; }

/* Card List */
.card-list { display: flex; flex-direction: column; gap: 1rem; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--accent-dim); }
.card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--text); font-weight: 500; }
.card .meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dim); margin-bottom: 0.5rem; }
.card p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.5; }
.card a { color: var(--accent); }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
th, td { padding: 0.7rem 0.6rem; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--accent); font-weight: 500; font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
td { color: var(--text-dim); }
tr:hover td { color: var(--text); }

/* Content typography */
.content h2 { font-size: 1.2rem; color: var(--accent); margin: 2rem 0 0.8rem; font-family: var(--font-mono); letter-spacing: 0.02em; }
.content h3 { font-size: 1rem; color: var(--text); margin: 1.5rem 0 0.6rem; font-weight: 600; }
.content p { margin-bottom: 1rem; color: var(--text-dim); }
.content ul, .content ol { margin: 1rem 0 1rem 1.5rem; color: var(--text-dim); }
.content li { margin-bottom: 0.4rem; }
.content code {
  background: var(--bg-hover);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent);
}
.content pre {
  background: var(--bg-hover);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
  border: 1px solid var(--border);
  margin: 1rem 0;
}
.content pre code { background: none; padding: 0; color: var(--text-dim); }
.content hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* Tags */
.tag {
  display: inline-block;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-right: 0.4rem;
}

/* Responsive */
@media (max-width: 640px) {
  main { padding: 2rem 1.2rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero { padding: 3rem 0 2rem; }
  nav { padding: 1rem; }
  .nav-links { gap: 1rem; width: 100%; justify-content: center; }
}
