
:root{
  --bg:#f7f4ee;
  --bg-soft:#fbf9f5;
  --panel:#ffffff;
  --panel-soft:#fffdf8;
  --border:#e7dfd1;
  --text:#1e1b16;
  --muted:#6e6558;
  --accent:#b67a21;
  --accent-strong:#8f5d10;
  --accent-soft:#f1e3c8;
  --success:#1f7a4d;
  --shadow:0 18px 48px rgba(36,26,11,.08);
  --radius-xl:28px;
  --radius-lg:22px;
  --radius-md:16px;
  --site-width:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top right, rgba(237,202,141,.22), transparent 28%),
    radial-gradient(circle at top left, rgba(255,255,255,.75), transparent 26%),
    var(--bg);
}
img{max-width:100%;height:auto}
a{color:var(--accent-strong);text-decoration:none}
a:hover{text-decoration:underline}
button,input,select{font:inherit}
.skip-link{
  position:absolute;left:-9999px;top:auto;
}
.skip-link:focus{
  left:16px;top:16px;background:#111;color:#fff;padding:10px 14px;border-radius:12px;z-index:1000;
}
.site-header{
  position:sticky;top:0;z-index:20;
  backdrop-filter:blur(12px);
  background:rgba(247,244,238,.9);
  border-bottom:1px solid rgba(231,223,209,.75);
}
.header-inner,.footer-inner,.page{
  max-width:var(--site-width);
  margin:0 auto;
  padding-left:20px;
  padding-right:20px;
}
.header-inner{
  min-height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}
.logo{
  display:inline-flex;
  align-items:center;
  gap:12px;
  color:var(--text);
  font-weight:800;
  letter-spacing:-.03em;
  font-size:1.12rem;
}
.logo-mark{
  width:40px;height:40px;border-radius:14px;
  background:linear-gradient(135deg,#f8edd8,#efd39f);
  border:1px solid rgba(182,122,33,.25);
  display:grid;place-items:center;
  box-shadow:0 8px 22px rgba(182,122,33,.15);
  color:var(--accent-strong);
  font-weight:900;
}
.nav{
  display:flex;
  gap:10px 12px;
  flex-wrap:wrap;
}
.nav a{
  padding:10px 12px;
  border-radius:999px;
  font-weight:600;
  color:var(--muted);
}
.nav a:hover,.nav a.active{
  color:var(--text);
  background:rgba(255,255,255,.8);
  text-decoration:none;
}
.page{
  padding-top:32px;
  padding-bottom:56px;
}
.hero{
  margin-bottom:28px;
}
.hero-card,
.card{
  background:linear-gradient(180deg,var(--panel),var(--panel-soft));
  border:1px solid var(--border);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow);
}
.hero-card{padding:28px}
.hero--home{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(290px,.75fr);
  gap:24px;
  align-items:stretch;
}
.hero-copy{
  padding:34px 36px;
  background:linear-gradient(135deg, rgba(255,255,255,.92), rgba(249,244,234,.95));
  border:1px solid var(--border);
  border-radius:32px;
  box-shadow:var(--shadow);
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:var(--accent-soft);
  color:var(--accent-strong);
  font-weight:700;
  letter-spacing:.02em;
  font-size:.9rem;
}
.hero h1, .section-title-lg{
  margin:14px 0 12px;
  font-size:clamp(2.2rem,4.3vw,4.25rem);
  line-height:.98;
  letter-spacing:-.05em;
}
.hero .sub{
  margin:0;
  max-width:820px;
  font-size:1.08rem;
  line-height:1.8;
  color:#372f24;
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:24px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:16px;
  padding:13px 18px;
  font-weight:700;
  border:1px solid transparent;
}
.btn-primary{background:var(--text);color:#fff}
.btn-secondary{background:#fff;color:var(--text);border-color:var(--border)}
.hero-points,
.note-list,
.prose ul{
  margin:18px 0 0;
  padding-left:20px;
}
.hero-points li,
.note-list li,
.prose li{
  line-height:1.8;
  color:#453b2d;
}
.metric-grid,
.feature-grid,
.step-grid,
.info-grid,
.example-grid,
.compare-grid,
.related-grid{
  display:grid;
  gap:18px;
}
.metric-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  margin-top:18px;
}
.metric{
  padding:18px;
  border-radius:18px;
  background:rgba(255,250,241,.95);
  border:1px solid rgba(231,223,209,.9);
}
.metric strong{
  display:block;
  margin-bottom:6px;
  font-size:1.45rem;
  letter-spacing:-.03em;
}
.metric span{
  color:var(--muted);
  line-height:1.55;
  font-size:.95rem;
}
.section{
  margin-top:34px;
}
.section-head{
  margin-bottom:18px;
}
.section-head h2{
  margin:10px 0 8px;
  font-size:clamp(1.8rem,3vw,2.5rem);
  letter-spacing:-.04em;
}
.section-head p{
  margin:0;
  max-width:760px;
  color:var(--muted);
  line-height:1.75;
}
.card{
  padding:24px;
}
.card h2,.card h3{
  letter-spacing:-.03em;
}
.tool-layout{
  display:grid;
  grid-template-columns:360px minmax(0,1fr);
  gap:24px;
  align-items:start;
}
.control-panel{
  position:sticky;
  top:96px;
}
.panel-group + .panel-group{
  margin-top:22px;
  padding-top:20px;
  border-top:1px solid var(--border);
}
.section-label{
  margin:0 0 14px;
  font-size:.76rem;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:var(--muted);
  font-weight:800;
}
.field{margin-bottom:16px}
.field label{
  display:block;
  margin-bottom:8px;
  font-size:.95rem;
  font-weight:700;
  color:#352e24;
}
input[type="file"],input[type="range"],input[type="color"],select{
  width:100%;
}
input[type="file"],select{
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px 14px;
  background:#fff;
  color:var(--text);
}
input[type="color"]{
  height:52px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
  padding:4px;
}
.range-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--bg-soft);
  color:var(--muted);
  font-size:.86rem;
  white-space:nowrap;
}
.check{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
  margin-bottom:10px;
}
.check input{
  width:18px;height:18px;accent-color:var(--accent-strong);
}
.buttons{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
}
button{
  border:none;
  border-radius:16px;
  padding:13px 16px;
  font-weight:700;
  cursor:pointer;
  transition:transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}
button.primary{background:var(--text);color:#fff}
button.secondary{background:#fff;color:var(--text);border:1px solid var(--border)}
button:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(31,27,22,.08)}
button:disabled{opacity:.55;cursor:not-allowed;transform:none;box-shadow:none}
.preview-card{min-height:680px}
.preview-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:18px;
}
.preview-head h2{
  margin:0 0 6px;
  font-size:1.45rem;
}
.status{
  color:var(--muted);
  font-size:.96rem;
  line-height:1.6;
}
.preview-tip{
  margin-top:14px;
  padding:14px 16px;
  border-radius:16px;
  background:#fff8ea;
  border:1px solid #ecd6a8;
  color:#4c3a17;
  font-size:.95rem;
  line-height:1.7;
}
.canvas-wrap{
  position:relative;
  min-height:560px;
  border-radius:26px;
  border:1px dashed #d9ccb7;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(250,246,238,.95)),
    linear-gradient(90deg, rgba(231,223,209,.35) 1px, transparent 1px),
    linear-gradient(rgba(231,223,209,.35) 1px, transparent 1px);
  background-size:auto,22px 22px,22px 22px;
  display:grid;
  place-items:center;
  overflow:hidden;
}
.canvas-wrap.dragover{
  border-color:var(--accent);
  background:
    linear-gradient(180deg, rgba(255,251,243,.98), rgba(248,239,222,.96)),
    linear-gradient(90deg, rgba(231,223,209,.35) 1px, transparent 1px),
    linear-gradient(rgba(231,223,209,.35) 1px, transparent 1px);
  background-size:auto,22px 22px,22px 22px;
}
.placeholder{
  max-width:520px;
  text-align:center;
  padding:28px;
}
.placeholder h3{
  margin:0 0 10px;
  font-size:1.35rem;
}
.placeholder p{
  margin:0;
  line-height:1.75;
  color:var(--muted);
}
.placeholder-badges{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}
.placeholder-badges span{
  padding:8px 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--border);
  color:#54493a;
  font-size:.9rem;
}
canvas{
  max-width:100%;
  max-height:76vh;
  display:none;
  background:#fff;
}
.meta-bar{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:16px;
}
.meta-pill{
  padding:9px 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--border);
  color:var(--muted);
  font-size:.92rem;
}
.feature-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.step-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.info-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.example-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.compare-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.related-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.feature-card h3,
.step-card h3,
.prose h2,
.prose h3,
.compare-card h3{
  margin-top:0;
}
.feature-card p,
.step-card p,
.compare-card p,
.related-card p,
.prose p{
  line-height:1.8;
  color:#42392c;
}
.step-number{
  width:42px;height:42px;border-radius:14px;
  background:var(--accent-soft);
  color:var(--accent-strong);
  display:grid;place-items:center;
  font-weight:800;
  margin-bottom:14px;
}
.kicker{
  display:inline-block;
  margin-bottom:10px;
  color:var(--accent-strong);
  font-weight:700;
}
.article-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:24px;
  align-items:start;
}
.article-aside{
  position:sticky;
  top:96px;
  display:grid;
  gap:18px;
}
.toc{
  margin:0;
  padding-left:18px;
}
.toc li{margin-bottom:8px;color:var(--muted)}
.cta-box{
  background:linear-gradient(135deg,#fff8ea,#f7edd9);
}
.cta-box h3,.cta-box p{margin-top:0}
.prose h2{
  font-size:1.72rem;
  margin:26px 0 10px;
}
.prose h3{
  font-size:1.18rem;
  margin:20px 0 8px;
}
.prose p + p{margin-top:14px}
.highlight-box{
  padding:18px;
  border-radius:20px;
  background:#fff8ea;
  border:1px solid #ecd6a8;
}
.compare-card{
  height:100%;
}
.compare-card ul{
  padding-left:20px;
  margin:14px 0 0;
}
.compare-card li{
  line-height:1.75;
  color:#43392c;
}
.quote{
  padding:18px 20px;
  border-left:4px solid var(--accent);
  background:#fff;
  border-radius:18px;
  margin:18px 0;
  color:#3f3628;
}
.faq-list{
  display:grid;
  gap:14px;
}
.faq-item{
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
  padding:18px 20px;
}
.faq-item summary{
  cursor:pointer;
  font-weight:700;
  list-style:none;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item p{
  margin:12px 0 0;
  line-height:1.75;
  color:#443a2c;
}
.inline-links a,.footer-inner a{color:var(--accent-strong)}
.site-footer{
  border-top:1px solid rgba(231,223,209,.85);
  background:rgba(255,255,255,.65);
}
.footer-inner{
  padding-top:26px;
  padding-bottom:42px;
  color:var(--muted);
}
.footer-grid{
  display:grid;
  grid-template-columns:1.2fr .9fr .9fr;
  gap:20px;
}
.footer-title{
  margin:0 0 10px;
  color:var(--text);
  font-size:1rem;
  font-weight:800;
}
.footer-links{
  margin:0;padding-left:18px;
}
.footer-links li{
  margin-bottom:8px;
}
.muted{color:var(--muted)}
.small{font-size:.95rem}
@media (max-width:1024px){
  .hero--home,
  .tool-layout,
  .article-layout,
  .footer-grid{
    grid-template-columns:1fr;
  }
  .control-panel,.article-aside{position:static}
  .feature-grid,.step-grid,.info-grid,.example-grid,.compare-grid,.related-grid{
    grid-template-columns:1fr 1fr;
  }
}
@media (max-width:720px){
  .header-inner,.footer-inner,.page{padding-left:16px;padding-right:16px}
  .page{padding-top:22px;padding-bottom:40px}
  .hero-copy,.hero-card,.card{padding:20px}
  .hero h1,.section-title-lg{font-size:clamp(2rem,10vw,2.8rem)}
  .hero .sub{font-size:1rem;line-height:1.7}
  .metric-grid,.feature-grid,.step-grid,.info-grid,.example-grid,.compare-grid,.related-grid{
    grid-template-columns:1fr;
  }
  .canvas-wrap{min-height:320px;border-radius:20px}
  .preview-card{min-height:auto}
  .buttons{flex-direction:column}
  .buttons button{width:100%}
  .nav{gap:8px}
  .nav a{padding:8px 10px}
}
