/* =========================================================
   Weird History Daily – Core Styles
   ========================================================= */

/* ---------- Reset / Base ---------- */
*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  width:100%;
  overflow-x:hidden;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:#f8fafc;
  color:#1f2937;
}
img{max-width:100%;height:auto;display:block}

/* ---------- Color System ---------- */
/*
Primary accent:  #6b4eff (indigo)
Secondary:       #d97706 (antique gold)
Text dark:       #1f2937
Muted text:      #6b7280
Borders:         #e5e7eb
Soft bg:         #f8fafc
*/

/* ---------- Global Links ---------- */
a{
  color:#6b4eff;
  font-weight:600;
  text-decoration:none;
  transition:color .15s ease, text-decoration-color .15s ease;
}
a:hover{
  color:#5940e0;
  text-decoration:underline;
}
a:visited{
  color:#7c6cff;
}

/* ---------- Header ---------- */
.whd-header{
  background:#ffffff;
  border-bottom:1px solid #e5e7eb;
}
.whd-container{
  max-width:1100px;
  margin:0 auto;
  padding:20px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  position:relative;
}

.whd-brand{
  display:flex;
  align-items:center;
  gap:16px;
  text-decoration:none;
  color:#1f2937;
  min-width:0;
}
.whd-logo{
  height:120px;          /* BIG */
  width:auto;
  max-width:420px;
  object-fit:contain;
  flex:0 0 auto;
}
@media (max-width:1024px){
  .whd-logo{
    height:130px;
  }
}

@media (max-width:600px){
  .whd-logo{
    height:96px;
  }
}
.whd-title{
  font-weight:900;
  font-size:1.2rem;
  line-height:1.1;
}
.whd-tagline{
  font-size:.85rem;
  color:#6b7280;
  margin-top:4px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:55vw;
}

/* ---------- Navigation ---------- */
.whd-nav{
  display:flex;
  align-items:center;
  gap:10px;
}
.whd-nav a{
  color:#1f2937;
  font-weight:700;
  padding:8px 14px;
  border-radius:999px;
}
.whd-nav a:hover{
  background:#eef2ff;
  color:#6b4eff;
}
.whd-nav a.is-active{
  background:#6b4eff;
  color:#ffffff;
}

/* Mobile menu */
.whd-navtoggle{display:none}
.whd-burger{
  display:none;
  width:44px;
  height:44px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  align-items:center;
  justify-content:center;
  gap:5px;
  cursor:pointer;
  background:#ffffff;
}
.whd-burger span{
  display:block;
  width:18px;
  height:2px;
  background:#1f2937;
  border-radius:2px;
}

@media (max-width:820px){
  .whd-burger{display:flex}
  .whd-nav{
    display:none;
    position:absolute;
    right:16px;
    top:92px;
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:12px;
    flex-direction:column;
    align-items:stretch;
    min-width:200px;
    box-shadow:0 12px 30px rgba(0,0,0,.08);
    z-index:50;
  }
  .whd-navtoggle:checked ~ .whd-nav{display:flex}
}

/* Smaller logo on very small screens */
@media (max-width:520px){
  .whd-logo{height:64px}
  .whd-tagline{display:none}
}

/* ---------- Layout ---------- */
.page-wrap{
  max-width:1100px;
  margin:0 auto;
  padding:16px;
}
.layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,320px);
  gap:16px;
}
@media(max-width:980px){
  .layout{grid-template-columns:1fr}
}

/* ---------- Cards ---------- */
.card{
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:16px;
}

/* ---------- Buttons ---------- */
/* Primary CTA */
.btn{
  display:inline-block;
  background:#6b4eff;
  color:#ffffff;
  border:none;
  border-radius:14px;
  padding:12px 18px;
  font-weight:800;
  text-decoration:none;
  transition:background .15s ease, transform .05s ease;
}
.btn:hover{
  background:#5940e0;
  transform:translateY(-1px);
}
.btn:active{
  transform:translateY(0);
}

/* Secondary */
.btn2{
  display:inline-block;
  background:#f1f5f9;
  color:#1f2937;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:10px 16px;
  font-weight:700;
  text-decoration:none;
}
.btn2:hover{
  background:#e5e7eb;
}

/* ---------- Ads (placeholders) ---------- */
.ad{
  border:1px dashed #cbd5e1;
  border-radius:16px;
  padding:12px;
  text-align:center;
  color:#6b7280;
  background:#f8fafc;
  max-width:100%;
}

/* ---------- Article Content ---------- */
article{
  line-height:1.65;
  font-size:1.02rem;
}
article a{
  color:#d97706;
  font-weight:700;
  text-decoration:underline;
}
article a:hover{
  color:#b45309;
}

/* ---------- Utilities ---------- */
.muted{color:#6b7280}
.small{font-size:.9rem;color:#6b7280}

/* ---------- Footer ---------- */
.footer{
  padding:24px 0;
  font-size:.9rem;
  color:#6b7280;
}
