/* DevHub — root hub styles. Shared visual language with the eight tools. */
:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #047857;
  --brand-strong: #065f46;
  --accent: #d97706;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
a { color: var(--brand); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: linear-gradient(135deg, #022c22, #065f46 55%, #047857);
  color: #fff;
  padding: 18px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand-mark { font-size: 26px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 18px; letter-spacing: -0.01em; }
.brand-text small { opacity: 0.85; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; margin: 0; }
.footer-links a { color: rgba(255,255,255,0.9); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* Hero */
.hero { text-align: center; padding: 42px 0 26px; }
.hero h1 { font-size: clamp(24px, 4vw, 36px); margin: 0 0 10px; letter-spacing: -0.025em; }
.hero p { color: var(--muted); margin: 0 auto; font-size: 16px; max-width: 680px; }

/* Tool grid */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  padding: 8px 0 24px;
}
.tool-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: 0 4px 10px rgba(15,23,42,0.1), 0 12px 32px rgba(4,120,87,0.12);
}
.tool-icon {
  display: inline-block;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 4px 9px;
  margin-bottom: 12px;
}
.tool-card h2 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.tool-card p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.tool-cta { color: var(--brand); font-size: 13px; font-weight: 600; }

/* Prose */
.prose { max-width: 760px; margin: 10px auto 40px; }
.prose h2 { font-size: 22px; margin: 0 0 8px; }
.prose p { color: var(--muted); }

/* Ad slots */
.ad-slot { min-height: 1px; }
.ad-slot-side {
  position: fixed;
  top: 25%;
  width: 160px;
  max-height: 600px;
  z-index: 5;
  pointer-events: auto;
}
.ad-slot-left { left: 12px; }
.ad-slot-right { right: 12px; }
.ad-slot-bottom { max-width: 1080px; margin: 10px auto; padding: 0 20px; }
.ad-slot-inline { max-width: 760px; margin: 24px auto; padding: 0 20px; }
.dummy-ad {
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  font-size: 12px;
  overflow: hidden;
}
.dummy-ad__label { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.dummy-ad__body { display: flex; gap: 8px; align-items: center; }
.dummy-ad__thumb { width: 40px; height: 40px; flex: none; border-radius: 6px; background: linear-gradient(135deg,#d1fae5,#a7f3d0); }
.dummy-ad__title { font-weight: 600; color: var(--ink); }
.dummy-ad__blurb { color: var(--muted); font-size: 11px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 24px 0 32px; text-align: center; }
.site-footer .fineprint { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.site-footer .footer-links { justify-content: center; color: var(--muted); font-size: 13px; }
.site-footer .footer-links a { color: var(--brand); }
.footer-donate { margin: 12px 0 0; }
.btn { display: inline-block; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--brand); background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn-ko-fi { background: #ff5e5b; border-color: #ff5e5b; }

@media (max-width: 1200px) {
  .ad-slot-side { display: none; }
}
@media (max-width: 600px) {
  .header-inner { justify-content: center; text-align: center; }
  .hero { padding: 28px 0 18px; }
  .tool-grid { grid-template-columns: 1fr; }
}
