/* ============================== */
/* BigHomieCed — Kosmo Themed CSS */
/* ============================== */

/* Palette */
:root {
  color-scheme: dark;

  --bg0: #070711;
  --bg1: #0b0b16;

  --text: #f4f4ff;
  --muted: rgba(244,244,255,.72);

  --accent1: #8b5cf6;
  --accent2: #a78bfa;
  --accent3: #22d3ee;
  --ok: #76ff7a;

  --panel: rgba(255,255,255,.06);
  --panel2: rgba(15,16,32,.60);

  --border: rgba(255,255,255,.10);
  --border2: rgba(167,139,250,.26);

  --shadow: 0 20px 70px rgba(0,0,0,.55);
  --radius: 14px;
}

/* Base reset */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; height: auto; }
body { min-height: 100vh; overflow-y: auto; }

/* Body */
body{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 18% 12%, rgba(139,92,246,.24), transparent 55%),
    radial-gradient(800px 520px at 80% 24%, rgba(34,211,238,.10), transparent 55%),
    radial-gradient(900px 700px at 52% 88%, rgba(118,255,122,.07), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 44px 16px;
}

/* ================= NAV ================= */

.top-nav{
  width: min(1120px, calc(100vw - 32px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.home-btn{
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  margin: 0;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid rgba(167,139,250,.28);
  background: rgba(139,92,246,.12);
  color: rgba(244,244,255,.92);
  text-decoration: none;
}

.home-btn:hover{
  color:#fff;
  background: rgba(139,92,246,.22);
}

.top-links{
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size:12px;
}

.top-links a{
  color: rgba(244,244,255,.75);
  text-decoration:none;
  border-bottom: none;
}

.top-links a:hover{
  color:#fff;
}

.pipe{
  color: rgba(244,244,255,.35);
}

/* ================= CARD ================= */

.card {
  margin: 0 auto;
  width: min(1120px, calc(100vw - 32px));
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  padding: 30px 30px 24px;
}

.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(600px 260px at 18% 0%, rgba(167,139,250,.22), transparent 55%),
    radial-gradient(520px 240px at 90% 16%, rgba(34,211,238,.08), transparent 55%);
  pointer-events: none;
  opacity: .55;
  filter: blur(10px);
}

/* ================= TEXT ================= */

h1 { font-size: 28px; font-weight: 700; letter-spacing: -.5px; margin: 0 0 14px; }
h2 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .10em; margin: 18px 0 8px; color: var(--muted); }
h3 { font-size: 14px; font-weight: 600; margin: 14px 0 6px; color: var(--text); }

p {
  font-size: 13px;
  line-height: 1.55;   /* was 1.7 */
  color: var(--muted);
  margin: 0 0 10px;    /* was 16px */
}


.hero-cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 8px 0 10px;
}

.hero-cta a{
  display:inline-flex;
  align-items:center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(167,139,250,.35);
  background: rgba(139,92,246,.12);
  color: rgba(244,244,255,.92);
  font-size: 12px;
  text-decoration: none;
}

.hero-cta a:hover{
  background: rgba(139,92,246,.22);
  border-color: rgba(167,139,250,.65);
}

.signal{
  font-size: 12px;
  color: rgba(244,244,255,.78);
  margin-bottom: 14px;
}

h2[id]{
  scroll-margin-top: 18px;
}

a {
  color: var(--accent2);
  text-decoration: none;
  border-bottom: 1px solid rgba(167,139,250,.18);
}

a:hover {
  color: #fff;
  border-bottom-color: rgba(167,139,250,.75);
}

/* ================= LISTS ================= */

.list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.list li { margin: 6px 0; }

/* ================= LAYOUT ================= */

.layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
  align-items: start;
  margin-top: 12px;
}

/* ================= SIDEBAR ================= */

.side {
  border-radius: var(--radius);
  background: rgba(15,16,32,.45);
  border: 1px solid rgba(255,255,255,.10);
  padding: 14px;
}

/* ================= BLOG ================= */

.blog-header {
  margin-bottom: 18px;
}

.blog-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(34,211,238,.8);
  margin-bottom: 8px;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}

.blog-main-panel {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(15,16,32,.34);
  padding: 16px;
}

.blog-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-subtle-link {
  font-size: 12px;
  color: rgba(244,244,255,.75);
  border-bottom-color: transparent;
}

.blog-subtle-link:hover {
  color: #fff;
  border-bottom-color: rgba(167,139,250,.6);
}

.blog-grid {
  display: grid;
  gap: 12px;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15,16,32,.48);
  padding: 14px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.blog-card:hover {
  border-color: rgba(167,139,250,.6);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(5, 6, 15, .45);
}

.blog-card h3 {
  margin-top: 10px;
  font-size: 18px;
}

.blog-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.blog-read-link {
  display: inline-flex;
  margin-top: 4px;
  font-size: 12px;
}

.blog-side {
  position: sticky;
  top: 20px;
}

.blog-side-caption {
  margin-bottom: 12px;
  font-size: 12px;
}

.category-nav {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 8px;
}

.category-nav li {
  margin: 0;
}

.category-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(7,7,17,.55);
  color: rgba(244,244,255,.92);
}

.category-nav a:hover,
.category-nav a[aria-current="page"] {
  border-color: rgba(167,139,250,.7);
  background: rgba(139,92,246,.18);
  color: #fff;
}

.category-pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(167,139,250,.35);
  background: rgba(139,92,246,.12);
  font-size: 12px;
}

.article-shell {
  max-width: 960px;
}

.post-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.post-meta-item {
  border: 1px solid var(--border);
  background: rgba(15,16,32,.42);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 4px;
  font-size: 12px;
}

.post-meta-item .label {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(244,244,255,.65);
  font-size: 11px;
}

.article-body {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 16px;
}

.article-body p,
.article-body li {
  font-size: 14px;
  line-height: 1.7;
}

.blog-back-link {
  margin-top: 20px;
}

.article-body-inner p:first-child {
  margin-top: 0;
}

.post-extra {
  margin-top: 18px;
}

.post-extra h2 {
  margin-top: 0;
}

.post-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-read-link[aria-disabled="true"] {
  opacity: .7;
  cursor: not-allowed;
  border-bottom-color: transparent;
}

/* ================= FOOTER ================= */

#site-footer { width: 100%; }
#site-footer { margin-top: 24px; }
#site-footer footer { width: 100%; }

footer {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(7,7,17,.55);
}

.footerwrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 14px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.footer-left {
  justify-self: start;
  white-space: nowrap;
}

.footer-center {
  justify-self: center;
  text-align: center;
  font-size: 11px;
  letter-spacing: 1.5px;
  opacity: .4;
  white-space: nowrap;
}

.footerlinks {
  display: flex;
  gap: 10px;
  justify-self: end;
  justify-content: flex-end;
  white-space: nowrap;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-side { position: static; }
  .post-meta-grid { grid-template-columns: 1fr; }

  .footerwrap {
    width: min(1120px, 96vw);
    font-size: 11px;
  }

  .footerlinks {
    gap: 8px;
  }

  .footer-center {
    font-size: 10px;
    letter-spacing: 1.2px;
  }
}

/* ================= SECTION DIVIDER ================= */

.hr{
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(167,139,250,.35),
    transparent
  );
  margin: 14px 0;   /* was 22px */
  opacity: .8;
  }

/* ===== Mobile footer fix ===== */
@media (max-width: 700px){
  .footerwrap{
    grid-template-columns: 1fr;   /* stop 3-column layout */
    gap: 10px;
    padding: 14px 12px;
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footerlinks{
    justify-self: center;         /* prevent edge collisions */
  }

  .footerlinks{
    flex-wrap: wrap;              /* allow links to wrap nicely */
    justify-content: center;
    gap: 10px;
  }
}
