/* article.css — shared article styling for StellaBullo.com */

:root{
  --brand: #8e4748;
  --ink: #111827;         /* neutral-900 */
  --muted: #6b7280;       /* neutral-500 */
  --text: #374151;        /* neutral-700 */
  --bg: #ffffff;
  --panel: rgba(255,255,255,0.82);
  --border: #e7e5e4;      /* stone-200 */
  --shadow: 0 18px 55px rgba(0,0,0,0.06);
  --ring: 0 0 0 1px rgba(0,0,0,0.05);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

/* subtle background wash */
.page{
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.page::before{
  content:"";
  position:absolute;
  inset:-120px -120px auto auto;
  width: 420px;
  height: 420px;
  background: rgba(0,0,0,0.04);
  filter: blur(70px);
  border-radius: 999px;
}
.page::after{
  content:"";
  position:absolute;
  inset:auto auto -160px -160px;
  width: 520px;
  height: 520px;
  background: rgba(0,0,0,0.03);
  filter: blur(90px);
  border-radius: 999px;
}
.page > *{ position: relative; }

/* header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(10px);
}
.container{
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
}
.header-row{
  height: 64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}
.brand{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  text-decoration:none;
}
.lang{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  border-left: 1px solid #d6d3d1; /* stone-300 */
  padding-left: 14px;
}
.lang .active{ color: var(--ink); }
.lang a{
  color: #78716c; /* stone-500 */
  text-decoration:none;
}
.lang a:hover{ color: var(--brand); }

/* main */
main{
  padding: 56px 0 84px;
}
.kicker{
  font-size: 11px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
h1{
  margin: 0 0 14px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.subtitle{
  margin: 0 0 26px;
  color: #4b5563; /* neutral-600 */
  font-size: 16px;
  max-width: 70ch;
}
.meta{
  display:flex;
  flex-wrap:wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 32px;
}

/* content panel */
.article{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  box-shadow: var(--shadow), var(--ring);
  padding: 36px 34px;
}

.article h2{
  margin: 34px 0 10px;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
}
.article h3{
  margin: 24px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--ink);
}
.article p{
  margin: 0 0 16px;
}
.article ul, .article ol{
  margin: 0 0 16px;
  padding-left: 20px;
}
.article li{ margin: 6px 0; }

.article a{
  color: var(--brand);
  text-underline-offset: 4px;
}
.article a:hover{
  text-decoration-thickness: 2px;
}

.hr{
  height:1px;
  background: var(--border);
  margin: 28px 0;
}

/* callouts */
.callout{
  border: 1px solid var(--border);
  border-left: 4px solid rgba(142,71,72,0.65);
  border-radius: 18px;
  padding: 16px 16px;
  background: rgba(255,255,255,0.85);
  margin: 18px 0;
}
.callout .label{
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.callout p{ margin: 0; }

pre{
  background: rgba(17,24,39,0.04);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 14px;
  overflow:auto;
  font-size: 13px;
  line-height: 1.5;
}

/* footer */
.site-footer{
  padding: 26px 0 44px;
  color: var(--muted);
  font-size: 13px;
}
.site-footer a{
  color: var(--muted);
}
.site-footer a:hover{
  color: var(--brand);
}

/* responsive */
@media (max-width: 640px){
  main{ padding: 42px 0 64px; }
  .article{ padding: 26px 20px; border-radius: 20px; }
  .lang{ padding-left: 10px; }
}
