/* Bytebutler.cc minimal styles */
:root {
  --bg: #0b0c0e;
  --bg-alt: #101217;
  --text: #e6e8ea;
  --muted: #a3a8ae;
  --accent: #5ac8fa;
  --card: #151922;
  --border: #232733;
  --brand: #ffffff;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-alt: #f7f8fa;
    --text: #0f141a;
    --muted: #48505a;
    --accent: #0066ff;
    --card: #ffffff;
    --border: #e5e9f0;
    --brand: #000000;
  }
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(180%) blur(8px);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-text .dot { color: var(--accent); }

.nav a {
  color: var(--text);
  opacity: 0.9;
  text-decoration: none;
  margin-left: 18px;
}

.nav a:hover { opacity: 1; }

.hero {
  padding: 64px 0 36px;
  text-align: left;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.1;
}

.lead { color: var(--muted); margin: 0 0 20px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.section {
  padding: 28px 0 24px;
}

.section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0 0 10px; color: var(--muted); }
.link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  opacity: 0.9;
}
.link[aria-disabled="true"] { pointer-events: none; opacity: 0.6; }
.tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 20%, var(--bg) 80%);
  color: var(--text);
  border: 1px solid var(--border);
  margin-left: 6px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 18px 0 28px;
  text-align: center;
  color: var(--muted);
}
.site-footer a { color: inherit; }
.sep { opacity: 0.6; padding: 0 8px; }


/* ---- Layout fixes: proportions + sticky footer ---- */
html { height: 100%; }
body {
  min-height: 100svh;            /* support mobile safe viewport */
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }         /* push footer to bottom when content is short */
.site-footer { flex-shrink: 0; }

/* Tighter vertical rhythm */
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.section { padding: clamp(20px, 4vw, 36px) 0; }
h1 { font-size: clamp(26px, 4.5vw, 38px); }
h2 { font-size: clamp(18px, 2.2vw, 22px); }
.card h3 { font-size: 17px; }

/* Container width more balanced on large displays */
.container { width: min(1000px, 92%); }

/* Grid that scales smoother */
.grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

/* Cards proportion: less padding, smoother borders */
.card { padding: 14px; border-radius: 12px; }

/* Buttons more compact */
.btn { padding: 9px 12px; border-radius: 9px; }

/* Header backdrop slightly stronger to separate from hero */
.site-header {
  background: color-mix(in oklab, var(--bg) 86%, transparent);
}

/* Respect manual theme attribute for contrasts */
:root[data-theme="dark"] {
  color-scheme: dark;
}
:root[data-theme="light"] {
  color-scheme: light;
}
