/* ---- Brand tokens ---- */
:root{
  --brand:#663d29; --brand-ink:#3f2519; --accent:#da926e;
  --paper:#f9f4f0; --ink:#2b2622; --muted:#817568;
  --glass:rgba(255,255,255,.55); --glass-strong:rgba(255,255,255,.68);
  --glass-stroke:rgba(102,61,41,.18);
  --shadow-lg:0 18px 42px rgba(102,61,41,.16);
  --shadow-md:0 12px 26px rgba(102,61,41,.12);
  --line:rgba(102,61,41,.065);
}

/* ===== subtle page grid ===== */
html, body { height:100% }
body{
  background: var(--paper); color: var(--ink);
  font:16px/1.65 "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  position:relative;
}
body::before{
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(900px 580px at 110% 110%, rgba(102,61,41,.07), transparent 60%),
    linear-gradient(180deg, transparent 87px, var(--line) 88px, transparent 89px) 0 0/100% 88px,
    linear-gradient(90deg,  transparent 87px, var(--line) 88px, transparent 89px) 0 0/88px 100%,
    var(--paper);
}

/* ===== ARTICLE (scoped) ===== */
article[itemscope][itemtype*="Article"]{
  position:relative; max-width: 980px; margin-inline:auto;
  padding: clamp(16px, 2.4vw, 24px); border-radius: 20px; background: transparent; isolation:isolate;
}
article[itemscope][itemtype*="Article"]::before{
  content:""; position:absolute; inset:0; border-radius:20px;
  box-shadow: inset 0 0 0 1px var(--glass-stroke), 0 16px 40px rgba(102,61,41,.10);
  pointer-events:none;
}

/* ---- HERO ---- */
article[itemscope][itemtype*="Article"] > header{
  background:
    radial-gradient(560px 260px at 8% -18%, var(--glass-strong), var(--glass)),
    linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.70));
  border: 1px solid var(--glass-stroke); border-radius: 18px;
  padding: clamp(18px, 3vw, 28px);
  backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.65);
}
article[itemscope][itemtype*="Article"] h1{
  color: var(--brand-ink); font-weight: 900; line-height: 1.12; letter-spacing: .2px; margin: 0 0 .4rem;
}
article[itemscope][itemtype*="Article"] .lead{
  color:#3a322d; font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin: 0 auto .75rem; max-width: 68ch;
}
article[itemscope][itemtype*="Article"] header img{
  display:block; margin-inline:auto; width:100%; height:auto; border-radius:14px; border:1px solid #eadfd8;
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
}
article[itemscope][itemtype*="Article"] header .text-muted{ color:#6d5d50 !important; font-size:.95rem; margin-top:.85rem }

/* ---- Sections ---- */
article[itemscope][itemtype*="Article"] section{
  background:#fff; border:1px solid #eadfd8; border-radius:16px;
  padding: clamp(16px, 2.2vw, 22px); box-shadow: var(--shadow-md);
}
article[itemscope][itemtype*="Article"] section + section{ margin-top: clamp(16px, 2.2vw, 22px) }

article[itemscope][itemtype*="Article"] h2{
  color: var(--brand-ink); font-weight: 900; margin: 0 0 .6rem; position: relative;
}
article[itemscope][itemtype*="Article"] h2::after{
  content:""; display:block; height:3px; width:84px; margin-top:.45rem;
  background: linear-gradient(90deg, var(--accent), #ffddb9 70%);
  border-radius:2px; box-shadow: 0 6px 18px rgba(218,146,110,.32);
}

/* lists + steps */
article[itemscope][itemtype*="Article"] ul{ margin-left: .25rem }
article[itemscope][itemtype*="Article"] ul li{ list-style:none; position:relative; padding-left:1rem; margin:.42rem 0 }
article[itemscope][itemtype*="Article"] ul li::before{
  content:""; position:absolute; left:0; top:.72rem; width:.48rem; height:.48rem; border-radius:50%;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(218,146,110,.20);
}
article[itemscope][itemtype*="Article"] ol{ list-style:none; counter-reset:step; padding-left:0 }
article[itemscope][itemtype*="Article"] ol > li{
  counter-increment:step; position:relative; margin:.55rem 0 .55rem 2.2rem;
}
article[itemscope][itemtype*="Article"] ol > li::before{
  content: counter(step);
  position:absolute; left:-2.2rem; top:.05rem;
  width:1.6rem; height:1.6rem; display:grid; place-items:center;
  font-weight:800; font-size:.88rem; color:#fff;
  background: linear-gradient(180deg, var(--brand), #5a3526);
  border:1px solid #4f2f22; border-radius:12px;
  box-shadow: 0 10px 22px rgba(102,61,41,.20), inset 0 1px 0 rgba(255,255,255,.25);
}

/* inline + callout */
article[itemscope][itemtype*="Article"] strong{ color:var(--brand-ink) }
article[itemscope][itemtype*="Article"] em{ color:var(--brand) }
article[itemscope][itemtype*="Article"] a{ color:var(--brand); text-decoration:underline; text-underline-offset:2px }
article[itemscope][itemtype*="Article"] a:hover{ filter:brightness(1.06) }
article[itemscope][itemtype*="Article"] .callout{
  padding:1rem 1.1rem; border-left:6px solid var(--accent); border-radius:14px;
  background: linear-gradient(180deg, #fff7f2 0%, #ffffff 100%); box-shadow: var(--shadow-md);
}

/* ===== FAQ (scoped) ===== */
#faq{
  max-width:980px; margin: clamp(18px, 3vw, 28px) auto 0;
  background: radial-gradient(860px 440px at -10% -20%, rgba(218,146,110,.08), transparent 60%), #fff;
  border:1px solid #eadfd8; border-radius:16px; padding: clamp(16px, 2.2vw, 22px); box-shadow: var(--shadow-md);
}
#faq h2{ color:var(--brand-ink); font-weight:900; margin:0 0 .8rem; position:relative }
#faq h2::after{
  content:""; display:block; height:3px; width:84px; margin-top:.5rem;
  background: linear-gradient(90deg, var(--accent), #ffddb9 70%); border-radius:2px; box-shadow:0 6px 18px rgba(218,146,110,.32)
}
#faq h3{
  margin:.85rem 0 .35rem; font-weight:800; color:var(--brand-ink);
  padding:.65rem .9rem; border:1px solid #eadfd8; border-left:4px solid var(--accent);
  border-radius:12px; background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.78));
  backdrop-filter: blur(6px) saturate(130%); -webkit-backdrop-filter: blur(6px) saturate(130%);
  box-shadow: 0 10px 20px rgba(102,61,41,.10);
}
#faq h3::before{ content:"Q"; font-weight:900; color:var(--brand); margin-right:.5rem }
#faq h3 + p{
  margin:.42rem 0 1rem; padding:.6rem .9rem .7rem;
  border-left:2px solid rgba(218,146,110,.32);
  background: linear-gradient(180deg, #fff, #fffaf7);
  border-radius: 0 10px 10px 10px; color: var(--ink);
}

/* responsive */
@media (max-width: 768px){
  article[itemscope][itemtype*="Article"]{ padding:12px }
  article[itemscope][itemtype*="Article"] > header{ padding:14px }
  article[itemscope][itemtype*="Article"] h1{ font-size: clamp(1.6rem, 5.4vw, 2rem) }
  article[itemscope][itemtype*="Article"] header img{ border-radius:12px }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce){
  article[itemscope][itemtype*="Article"] *, #faq *, article[itemscope][itemtype*="Article"] *::before, article[itemscope][itemtype*="Article"] *::after{ transition:none !important }
}
