@charset "utf-8";

/* /home/headajyj/public_html/headsntail/assets/css/content.css
   Shared content styles: articles, legal pages, latest posts, 404.
   Loaded on every page by header.php. */

:root{
  --hc-bg:#020617;
  --hc-surface:#0b1220;
  --hc-surface-2:#111827;
  --hc-line:rgba(255,255,255,.09);
  --hc-text:#e5e7eb;
  --hc-head:#f8fafc;
  --hc-muted:#94a3b8;
  --hc-accent:#38bdf8;
  --hc-accent-2:#a78bfa;
  --hc-read:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --hc-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
}

/* ---------- Page shell (legal, article, 404) ---------- */

.hc-page{
  width:100%;
  min-height:70vh;
  padding:128px 0 72px;
  background:
    radial-gradient(circle at top right, rgba(56,189,248,.07), transparent 25%),
    linear-gradient(180deg,#020617 0%,#081120 100%);
}

.hc-wrap{
  width:min(820px, calc(100% - 32px));
  margin:0 auto;
}

.hc-wrap--wide{
  width:min(1200px, calc(100% - 32px));
}

.hc-crumbs{
  font-family:var(--hc-read);
  font-size:14px;
  color:var(--hc-muted);
  margin-bottom:18px;
}
.hc-crumbs a{ color:var(--hc-accent); }
.hc-crumbs a:hover{ text-decoration:underline; }

.hc-title{
  font-family:'Orbitron',var(--hc-read);
  color:var(--hc-head);
  font-size:clamp(26px,4.2vw,40px);
  line-height:1.2;
  letter-spacing:.01em;
  margin-bottom:14px;
}

.hc-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
  font-family:var(--hc-read);
  font-size:14px;
  color:var(--hc-muted);
  margin-bottom:26px;
}

.hc-cover{
  width:100%;
  max-height:440px;
  object-fit:cover;
  border-radius:18px;
  border:1px solid var(--hc-line);
  margin-bottom:30px;
}

/* ---------- Readable prose ---------- */

.hc-prose{
  font-family:var(--hc-read);
  font-size:17px;
  line-height:1.8;
  color:var(--hc-text);
  overflow-wrap:break-word;
}

.hc-prose > * + *{ margin-top:1.05em; }

.hc-prose h2,
.hc-prose h3,
.hc-prose h4{
  font-family:var(--hc-read);
  color:var(--hc-head);
  line-height:1.3;
  margin-top:1.8em;
}
.hc-prose h2{ font-size:1.55em; }
.hc-prose h3{ font-size:1.25em; }
.hc-prose h4{ font-size:1.08em; }

.hc-prose a{
  color:var(--hc-accent);
  text-decoration:underline;
  text-underline-offset:3px;
}

.hc-prose strong{ color:var(--hc-head); }

.hc-prose ul,
.hc-prose ol{ padding-left:1.4em; }
.hc-prose li + li{ margin-top:.4em; }
.hc-prose ul{ list-style:disc; }
.hc-prose ol{ list-style:decimal; }

.hc-prose blockquote{
  border-left:3px solid var(--hc-accent-2);
  padding:4px 0 4px 18px;
  color:var(--hc-muted);
}

.hc-prose code{
  font-family:var(--hc-mono);
  font-size:.88em;
  background:rgba(255,255,255,.07);
  border:1px solid var(--hc-line);
  border-radius:6px;
  padding:.1em .38em;
}

.hc-prose pre{
  background:#030712;
  border:1px solid var(--hc-line);
  border-radius:12px;
  padding:16px 18px;
  overflow-x:auto;
  line-height:1.6;
}
.hc-prose pre code{
  background:none;
  border:0;
  padding:0;
  font-size:14px;
}

.hc-prose img{
  border-radius:12px;
  margin:1.4em auto;
}

.hc-prose table{
  width:100%;
  border-collapse:collapse;
  font-size:.94em;
  display:block;
  overflow-x:auto;
}
.hc-prose th,
.hc-prose td{
  border:1px solid var(--hc-line);
  padding:8px 12px;
  text-align:left;
}
.hc-prose th{ background:rgba(255,255,255,.05); color:var(--hc-head); }

.hc-prose hr{
  border:0;
  border-top:1px solid var(--hc-line);
  margin:2em 0;
}

/* ---------- Article footer: author + related ---------- */

.hc-author{
  display:flex;
  gap:16px;
  align-items:center;
  margin-top:44px;
  padding:20px;
  border:1px solid var(--hc-line);
  border-radius:16px;
  background:var(--hc-surface);
  font-family:var(--hc-read);
}
.hc-author img{
  width:56px;
  height:56px;
  border-radius:50%;
  object-fit:contain;
  background:#000;
  flex-shrink:0;
}
.hc-author strong{ color:var(--hc-head); display:block; margin-bottom:2px; }
.hc-author p{ color:var(--hc-muted); font-size:14px; line-height:1.55; }

.hc-section-title{
  font-family:'Orbitron',var(--hc-read);
  color:var(--hc-head);
  font-size:clamp(20px,2.6vw,26px);
  margin:52px 0 20px;
}

/* ---------- Post cards grid (home + related) ---------- */

.hc-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:20px;
}

.hc-card{
  display:flex;
  flex-direction:column;
  border:1px solid var(--hc-line);
  border-radius:16px;
  overflow:hidden;
  background:var(--hc-surface);
  transition:transform .2s ease,border-color .2s ease;
}
.hc-card:hover{
  transform:translateY(-3px);
  border-color:rgba(56,189,248,.35);
}
.hc-card img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  background:#000;
}
.hc-card__body{
  padding:16px 18px 20px;
  font-family:var(--hc-read);
}
.hc-card__date{
  font-size:13px;
  color:var(--hc-muted);
  margin-bottom:6px;
}
.hc-card__title{
  color:var(--hc-head);
  font-size:17px;
  line-height:1.4;
  margin-bottom:8px;
}
.hc-card__text{
  color:var(--hc-muted);
  font-size:14px;
  line-height:1.6;
}

/* ---------- Home: latest posts section ---------- */

.hc-latest{
  padding:80px 0;
  background:linear-gradient(180deg,#050a16 0%,#020617 100%);
}
.hc-latest__head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:26px;
}
.hc-latest__head h2{
  font-family:'Orbitron',var(--hc-read);
  color:var(--hc-head);
  font-size:clamp(22px,3vw,32px);
}
.hc-latest__head p{
  font-family:var(--hc-read);
  color:var(--hc-muted);
  margin-top:6px;
}

.hc-btn{
  display:inline-block;
  font-family:var(--hc-read);
  font-weight:600;
  font-size:15px;
  padding:11px 20px;
  border-radius:999px;
  border:1px solid rgba(56,189,248,.45);
  color:var(--hc-head);
  background:rgba(56,189,248,.10);
  transition:background .2s ease;
}
.hc-btn:hover{ background:rgba(56,189,248,.22); }

.hc-empty{
  font-family:var(--hc-read);
  color:var(--hc-muted);
  border:1px dashed var(--hc-line);
  border-radius:16px;
  padding:28px;
  text-align:center;
}

/* ---------- Mobile ---------- */

@media (max-width:640px){
  .hc-page{ padding:104px 0 56px; }
  .hc-prose{ font-size:16px; }
  .hc-author{ flex-direction:column; align-items:flex-start; }
}
