:root{
  --bg: #0b0e13;
  --paper: #ffffff;
  --ink: #0b0e13;
  --muted: rgba(11,14,19,.62);

  /* Match the logo vibe: caution yellow + hazard orange + ember red */
  --accent: #ffd400;
  --accent2: #ff6a00;
  --accent3: #ff3b30;

  --radius: 18px;
  --shadow: 0 18px 40px rgba(0,0,0,.10);
  --border: 1px solid rgba(11,14,19,.10);
  --max: 1120px;
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 12% -10%, rgba(255,212,0,.20), transparent 62%),
    radial-gradient(950px 560px at 90% -8%, rgba(255,106,0,.16), transparent 58%),
    radial-gradient(900px 520px at 50% 110%, rgba(0,0,0,.06), transparent 60%),
    #f7f7fb;
}

a{ color: inherit; }
img{ max-width:100%; height:auto; display:block; }

.container{ max-width: var(--max); margin: 0 auto; padding: 0 18px; }

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,247,251,.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11,14,19,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.07);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 240px;
}
.custom-logo{ width: 74px; height: 74px; object-fit: contain; }
.brand-text{ display:flex; flex-direction:column; gap: 2px; }
.site-title{
  font-weight: 1000;
  letter-spacing: .2px;
  text-decoration:none;
  font-size: 20px;
}
.site-tagline{ font-size: 13px; color: var(--muted); }

.nav{ }
.nav-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.nav-list a{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 999px;
  border: var(--border);
  background: rgba(255,255,255,.70);
  box-shadow: 0 8px 14px rgba(0,0,0,.05);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12px;
  position: relative;
  overflow:hidden;
}
.nav-list a::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: linear-gradient(90deg, rgba(255,212,0,.22), rgba(255,106,0,.18), rgba(255,59,48,.16));
  opacity: 0;
  transition: opacity .15s ease;
}
.nav-list a span, .nav-list a{ z-index: 1; }
.nav-list a:hover::before{ opacity: 1; }

.nav-toggle{
  display:none;
  background: transparent;
  border: 0;
  padding: 10px;
  border-radius: 12px;
}
.nav-toggle span{
  display:block;
  width: 22px;
  height: 2px;
  background: rgba(11,14,19,.88);
  margin: 4px 0;
}
.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

.site-main{ padding: 20px 0 44px; }
.layout{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items:start;
}

.content{ min-width: 0; }

.hero{
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(255,212,0,.42);
  background:
    linear-gradient(180deg, rgba(255,212,0,.14), rgba(255,106,0,.08)),
    rgba(255,255,255,.72);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 16px;
  position: relative;
  overflow:hidden;
}
.hero::after{
  content:"";
  position:absolute;
  inset: -120px -80px auto auto;
  width: 280px; height: 280px;
  background: radial-gradient(circle at 30% 30%, rgba(255,212,0,.35), transparent 60%);
  transform: rotate(15deg);
  pointer-events:none;
}
.hero-badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11,14,19,.10);
  background: rgba(255,255,255,.74);
  font-weight: 900;
  font-size: 13px;
}
.hero-title{
  margin: 12px 0 6px;
  font-size: 42px;
  letter-spacing: .2px;
  line-height: 1.06;
}
.hero-sub{ margin:0; color: rgba(11,14,19,.72); font-size: 16px; }

.post-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card{
  border-radius: var(--radius);
  border: var(--border);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card .thumb{
  display:block;
  background: rgba(11,14,19,.04);
}
.thumb-placeholder{
  height: 190px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap: 6px;
  background:
    repeating-linear-gradient(135deg, rgba(255,212,0,.20) 0, rgba(255,212,0,.20) 12px, rgba(255,255,255,.0) 12px, rgba(255,255,255,.0) 24px);
  color: rgba(11,14,19,.70);
  font-weight: 900;
}
.card-body{ padding: 14px 14px 16px; }
.meta{
  display:flex;
  align-items:center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.dot{ opacity:.5; }
.card-title{
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.22;
}
.card-title a{ text-decoration:none; }
.card-title a:hover{ text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.card-excerpt{ margin:0 0 10px; color: rgba(11,14,19,.74); font-size: 14px; line-height: 1.45; }

.readmore{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(11,14,19,.12);
  background: rgba(255,255,255,.80);
  font-weight: 1000;
  text-decoration:none;
}
.readmore:hover{
  border-color: rgba(255,212,0,.60);
  box-shadow: 0 14px 24px rgba(255,106,0,.14);
  background: rgba(255,212,0,.10);
}

.pager{ margin-top: 16px; }
.pager .page-numbers{
  display:inline-flex;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(11,14,19,.12);
  margin-right: 6px;
  text-decoration:none;
  background: rgba(255,255,255,.78);
}
.pager .current{ background: rgba(255,212,0,.16); border-color: rgba(255,212,0,.55); }

.sidebar{
  position: sticky;
  top: 92px;
}
.widget{
  border-radius: var(--radius);
  border: var(--border);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 14px;
}
.widget-title{
  margin:0 0 10px;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .9px;
  opacity: .86;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(11,14,19,.04);
  border: 1px solid rgba(11,14,19,.06);
}
.search-form{
  display:flex;
  gap: 10px;
}
.search-field{
  flex: 1;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(11,14,19,.14);
  background: rgba(255,255,255,.90);
}
.search-submit{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(11,14,19,.14);
  background: rgba(255,212,0,.16);
  font-weight: 1000;
  cursor:pointer;
}

.widget ul{ list-style:none; padding-left: 0; margin: 0; }
.widget li{ margin: 0 0 10px; }
.widget a{ text-decoration:none; }
.widget a:hover{ text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.widget_categories ul{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
.widget_categories li{ margin:0; }
.widget_categories a{
  display:inline-flex;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px dashed rgba(11,14,19,.22);
  background: rgba(255,255,255,.78);
  font-weight: 900;
  font-size: 12px;
}
.widget_categories a:hover{
  border-color: rgba(255,212,0,.75);
  background: rgba(255,212,0,.10);
}

.single{
  border-radius: calc(var(--radius) + 6px);
  border: var(--border);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow);
  padding: 18px;
}
.single-title{ margin: 10px 0 0; font-size: 34px; line-height: 1.1; }
.single-thumb{ margin-top: 14px; border-radius: var(--radius); overflow:hidden; border: 1px solid rgba(11,14,19,.10); }
.single-body{ margin-top: 14px; line-height: 1.7; font-size: 16px; }
.single-body h2, .single-body h3{ margin-top: 24px; }
.single-body a{ color: #0b3aa9; }
.single-body a:hover{ color: #000; }

.site-footer{
  border-top: 1px solid rgba(11,14,19,.10);
  background: rgba(247,247,251,.92);
  backdrop-filter: blur(10px);
  padding: 16px 0;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(11,14,19,.70);
  font-size: 13px;
}
.footer-menu{ list-style:none; display:flex; gap: 10px; padding:0; margin:0; }
.footer-menu a{
  text-decoration:none;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(11,14,19,.10);
  background: rgba(255,255,255,.74);
}
.footer-menu a:hover{ border-color: rgba(255,212,0,.55); background: rgba(255,212,0,.10); }

/* Responsive */
@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }
  .sidebar{ position: static; }
  .post-grid{ grid-template-columns: 1fr; }
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }
  .nav{ display:none; width: 100%; }
  .nav.is-open{ display:block; }
  .nav-list{ justify-content:flex-start; overflow-x:auto; flex-wrap: nowrap; padding-bottom: 6px; scrollbar-width:none; }
  .nav-list::-webkit-scrollbar{ display:none; }
  .nav-list a{ white-space: nowrap; }
  .hero-title{ font-size: 36px; }
}
@media (max-width: 420px){
  .custom-logo{ width: 60px; height: 60px; }
  .hero-title{ font-size: 32px; }
}


/* --- Patch v1.0.2: mobile menu must never "cloud" by default --- */
@media (max-width: 980px){
  /* Force-hide nav until user opens it */
  .site-header .nav{ display:none !important; }
  .site-header .nav.is-open{ display:block !important; }
  .site-header .nav-toggle{ display:inline-flex !important; }

  /* When opened: make it horizontal scroll "chips" */
  .site-header .nav .nav-list{
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important;
    padding: 6px 2px 10px !important;
    gap: 10px !important;
    scrollbar-width: none;
    list-style: none !important;
  }
  .site-header .nav .nav-list::-webkit-scrollbar{ display:none; }
  .site-header .nav .nav-list li{ flex: 0 0 auto !important; list-style:none !important; }
  .site-header .nav .nav-list a{ white-space: nowrap !important; }
}
/* Safety: never show bullets */
.nav-list, .nav-list li{ list-style:none !important; }
