/* Dith base theme and components */
:root {
  --bg: #0b0d10;
  --panel: #12151a;
  --text: #e6eaf2;
  --muted: #98a2b3;
  --brand: #5eead4;
  --brand-2: #60a5fa;
  --border: #1f242b;
  --code: #0f1720;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;

  --shadow-1: 0 1px 2px rgba(0,0,0,0.25);
  --shadow-2: 0 6px 20px rgba(0,0,0,0.35);

  --focus: 0 0 0 3px rgba(96,165,250,0.35);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.45;
}

img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  left: 12px; top: 12px; width: auto; height: auto; padding: 8px 10px;
  background: #0a0c0f; color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm);
}

/* === HEADER ONLY === */
.site-header { 
  background: transparent;  /* no full-bleed box */
  border: 0;
  margin: 0;
  padding: 0;
}

.site-header > .container {
  /* same width as other containers, compact vertical rhythm */
  padding-top: 22px;
  padding-bottom: 16px;
}

.site-title {
  /* match the updated header look */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--border-color); /* the thin rule in the screenshot */
  color: var(--accent-color);
  font-weight: 700;
  font-size: 3rem;
  letter-spacing: -0.02em;
  text-align: center; /* keeps the span centered with the logo */
}

/* logo styling scoped to the header only */
.site-title .logo {
  width: 200px;
  height: auto;
  margin-right: 15px;
  border-radius: 35%;
  mask-image: radial-gradient(
    circle at center,
    black 30%,
    rgba(0,0,0,0.95) 35%,
    rgba(0,0,0,0.9) 40%,
    rgba(0,0,0,0.75) 45%,
    rgba(0,0,0,0.5) 50%,
    rgba(0,0,0,0.3) 60%,
    rgba(0,0,0,0.1) 70%,
    rgba(0,0,0,0.01) 80%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    circle at center,
    black 30%,
    rgba(0,0,0,0.95) 35%,
    rgba(0,0,0,0.9) 40%,
    rgba(0,0,0,0.75) 45%,
    rgba(0,0,0,0.5) 50%,
    rgba(0,0,0,0.3) 60%,
    rgba(0,0,0,0.1) 70%,
    rgba(0,0,0,0.01) 80%,
    transparent 100%
  );
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.3));
  transition: all 0.3s ease;
}

/* responsive header only */
@media (max-width: 768px) {
  .site-title { font-size: 2rem; }
  .site-title .logo {
    width: 75px;
    mask-image: radial-gradient(
      circle at center,
      black 45%,
      rgba(0,0,0,0.8) 55%,
      rgba(0,0,0,0.6) 65%,
      rgba(0,0,0,0.3) 75%,
      transparent 100%
    );
    -webkit-mask-image: radial-gradient(
      circle at center,
      black 45%,
      rgba(0,0,0,0.8) 55%,
      rgba(0,0,0,0.6) 65%,
      rgba(0,0,0,0.3) 75%,
      transparent 100%
    );
  }
}


/* Headings */
.h2 {
  font-size: 28px;
  line-height: 1.15;
  margin: 6px 0 10px;
  letter-spacing: -0.01em;
}
.h3 {
  font-size: 20px;
  margin: 0 0 8px 0;
  letter-spacing: -0.005em;
}

/* Text */
.lead { color: var(--muted); font-size: 18px; margin: 0 0 14px; }
.muted { color: var(--muted); font-size: 14px; }

/* Panel / Card / Grid */
.panel {
  background: var(--panel);
  background-image: radial-gradient(1200px 600px at 0% -10%, #1a2b31 0%, transparent 60%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-top: 22px;
  box-shadow: var(--shadow-1);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 16px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.card-title { margin: 0; font-size: 18px; }
.vibe-check { background-clip: padding-box; }

/* Buttons */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(94,234,212,0.12), rgba(96,165,250,0.12));
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.btn:hover { transform: translateY(-1px); border-color: #27303a; box-shadow: var(--shadow-1); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }

/* Badge */
.badge {
  display: inline-block;
  font-size: 12px;
  color: #0b1215;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 10px;
}

/* Figure frame for images */
.image-frame {
  margin: 16px 0 0 0;
  border: 1px solid var(--border);
  background: #0a0c0f;
  border-radius: 10px;
  overflow: hidden;
}

/* QA groups */
.qa-category + .qa-category { margin-top: 26px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  padding: 18px 0 36px;
}

/* Accessibility and motion */
:focus-visible { outline: none; box-shadow: var(--focus); }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Responsive */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .site-title { grid-template-columns: 40px 1fr; font-size: 24px; }
  .logo { width: 40px; height: 40px; }
}
