:root{
  --ivory:#fff8ef;
  --cream:#f8efe3;
  --champagne:#d8a65f;
  --gold:#c7924b;
  --soft-brown:#7a4f35;
  --dark-brown:#3f2b24;
  --muted-brown:#8d7567;
  --line:rgba(122,79,53,.14);
  --shadow:0 22px 58px rgba(80,45,20,.11);
  --card:rgba(255,248,239,.8);
}
*{box-sizing:border-box}
html{max-width:100%;overflow-x:hidden;scroll-behavior:smooth}
body{
  margin:0;
  max-width:100%;
  overflow-x:hidden;
  color:var(--dark-brown);
  font-family:Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif;
  background:
    radial-gradient(circle at 12% 7%, rgba(216,166,95,.32), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(200,117,118,.18), transparent 25%),
    linear-gradient(180deg, #f1ddc9 0%, var(--cream) 34%, var(--ivory) 100%);
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.38;
  background-image:
    radial-gradient(2px 2px at 12% 14%, rgba(255,255,255,.95), transparent 65%),
    radial-gradient(2px 2px at 35% 8%, rgba(255,255,255,.75), transparent 65%),
    radial-gradient(2px 2px at 72% 16%, rgba(255,255,255,.88), transparent 65%);
}
.page{
  position:relative;
  z-index:1;
  width:min(980px, calc(100% - 28px));
  margin:0 auto;
  padding:20px 0 56px;
}
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:18px;
  padding:13px 16px;
  border:1px solid rgba(166,128,101,.14);
  border-radius:24px;
  background:rgba(255,248,239,.62);
  backdrop-filter:blur(16px);
  box-shadow:0 14px 36px rgba(132,94,66,.08);
}
.brand,.back-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#7a4f35;
  text-decoration:none;
  font-weight:900;
}
.brand img{
  width:38px;
  height:38px;
  object-fit:contain;
  filter:sepia(1) saturate(.8) hue-rotate(340deg);
}
.brand span{
  font-family:Georgia,"Times New Roman",serif;
  line-height:1.05;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.back-link{
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.hero{
  padding:42px 34px;
  border-radius:34px;
  overflow:hidden;
  background:
    linear-gradient(115deg, rgba(82,51,36,.92), rgba(128,82,57,.68) 50%, rgba(255,238,218,.2)),
    var(--article-image) center center / cover no-repeat;
  box-shadow:var(--shadow);
}
.eyebrow{
  display:inline-flex;
  margin-bottom:14px;
  color:#f4d9b4;
  font-size:12px;
  font-weight:950;
  letter-spacing:.16em;
  text-transform:uppercase;
}
h1,h2,h3{
  font-family:Georgia,"Times New Roman",serif;
  font-weight:500;
}
h1{
  max-width:760px;
  margin:0;
  color:#fffaf3;
  font-size:clamp(42px,7vw,76px);
  line-height:.98;
  letter-spacing:-.045em;
}
.hero p{
  max-width:650px;
  margin:20px 0 0;
  color:rgba(255,250,243,.86);
  font-size:17px;
  line-height:1.72;
}
.article-shell{
  margin-top:24px;
  padding:26px;
  border:1px solid var(--line);
  border-radius:32px;
  background:var(--card);
  box-shadow:var(--shadow);
}
.progress-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
  color:#8d7567;
  font-size:13px;
  font-weight:850;
}
.progress-bar{
  height:9px;
  border-radius:999px;
  background:rgba(122,79,53,.1);
  overflow:hidden;
}
.progress-bar span{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg, var(--champagne), var(--gold));
  transition:width .28s ease;
}
.article-chapter{display:none;animation:chapterIn .28s ease both}
.article-chapter.active{display:block}
@keyframes chapterIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.article-chapter h2{
  margin:20px 0 12px;
  color:var(--soft-brown);
  font-size:clamp(32px,4vw,48px);
  line-height:1.04;
  letter-spacing:-.03em;
}
.article-chapter p{
  margin:0 0 16px;
  color:var(--muted-brown);
  font-size:17px;
  line-height:1.82;
}
.insight{
  margin:20px 0;
  padding:20px;
  border:1px solid rgba(216,166,95,.24);
  border-radius:24px;
  background:rgba(255,248,239,.72);
}
.insight strong{
  display:block;
  margin-bottom:7px;
  color:var(--soft-brown);
  font-family:Georgia,"Times New Roman",serif;
  font-size:24px;
  font-weight:500;
}
.cta-box{
  margin-top:22px;
  padding:22px;
  border-radius:26px;
  background:linear-gradient(135deg, rgba(122,79,53,.92), rgba(185,128,82,.86));
  color:#fff8ef;
}
.cta-box h3{
  margin:0 0 8px;
  color:#fff8ef;
  font-size:30px;
  line-height:1.05;
}
.cta-box p{
  color:rgba(255,248,239,.82);
}
.actions{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-top:22px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:13px 18px;
  border:1px solid rgba(216,166,95,.36);
  border-radius:999px;
  color:#6e4b33;
  background:linear-gradient(180deg, rgba(243,214,170,.84), rgba(216,166,95,.54));
  text-decoration:none;
  font-size:12px;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
}
.btn.secondary{
  background:rgba(255,248,239,.72);
  box-shadow:none;
}
.btn[disabled]{opacity:.45;cursor:not-allowed}
@media(max-width:720px){
  .page{width:min(100% - 20px, 980px);padding-top:10px}
  .topbar{border-radius:20px}
  .brand span{font-size:13px}
  .back-link{font-size:11px}
  .hero{padding:34px 20px;border-radius:28px}
  h1{font-size:clamp(40px,12vw,56px)}
  .hero p{font-size:15px}
  .article-shell{padding:20px 16px;border-radius:26px}
  .article-chapter p{font-size:15px;line-height:1.75}
  .actions .btn{width:100%}
}
