
:root{
  --bg:#f7f4ee;
  --paper:#fffdf8;
  --ink:#222;
  --muted:#6b6b6b;
  --line:#d9d2c3;
  --accent:#7a5c2e;
  --accent-2:#b08a4a;
  --soft:#efe7d8;
  --shadow:0 10px 30px rgba(0,0,0,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: "Georgia", "Times New Roman", serif;
  background:linear-gradient(180deg,#f4efe6 0%, #fbf8f2 100%);
  color:var(--ink);
}
.topbar{
  position:sticky; top:0; z-index:20;
  background:rgba(255,253,248,.92);
  backdrop-filter: blur(8px);
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  max-width:1180px; margin:0 auto; padding:14px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.brand{
  font-weight:700; letter-spacing:.4px; color:var(--accent);
}
.container{
  max-width:1180px; margin:0 auto; padding:28px 20px 60px;
}
.hero{
  background:linear-gradient(135deg,#fffdf8,#f0e8d8);
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:34px;
}
.kicker{
  text-transform:uppercase; letter-spacing:1.6px; font-size:.8rem; color:var(--accent);
}
h1,h2,h3{margin:0 0 12px}
h1{font-size:clamp(2rem,5vw,3.4rem); line-height:1.05}
h2{
  font-size:1.8rem; padding-bottom:10px; border-bottom:2px solid var(--soft);
  margin-top:34px;
}
.lead{font-size:1.08rem; color:#3a3a3a; line-height:1.7; max-width:850px}
.grid{
  display:grid; gap:18px;
}
.grid.modules{
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  margin-top:26px;
}
.card{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:18px;
  padding:20px;
  box-shadow:var(--shadow);
}
.card h3{font-size:1.1rem; display:flex; align-items:center; gap:10px}
.icon{
  width:42px; height:42px; border-radius:12px;
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--soft); border:1px solid var(--line); font-size:1.3rem;
}
.btn, .module-link{
  display:inline-block; text-decoration:none; color:#fff;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  padding:11px 16px; border-radius:12px; border:none; cursor:pointer;
  font-weight:700; box-shadow:var(--shadow);
}
.module-link{margin-top:10px}
.btn.secondary{
  background:#fff; color:var(--accent); border:1px solid var(--line);
}
.actions{display:flex; gap:10px; flex-wrap:wrap}
.note, .formula, .tip{
  border-left:5px solid var(--accent-2);
  background:#fff9ed;
  padding:14px 16px; border-radius:10px; margin:16px 0;
}
.tip{background:#f6f1e6}
.formula{font-family:"Cambria Math", Georgia, serif}
.two-col{
  display:grid; grid-template-columns:1.2fr .8fr; gap:20px;
}
table{
  width:100%; border-collapse:collapse; background:var(--paper);
  border-radius:14px; overflow:hidden; box-shadow:var(--shadow); border:1px solid var(--line);
}
th,td{padding:12px 14px; border-bottom:1px solid #e9e2d4; text-align:left}
th{background:#f2eadb}
ul,ol{line-height:1.75}
.footer{
  text-align:center; color:var(--muted); margin-top:40px; padding-top:20px;
  border-top:1px solid var(--line); font-size:.95rem;
}
.breadcrumbs{
  color:var(--muted); margin-bottom:18px; font-size:.95rem;
}
.breadcrumbs a{color:var(--accent); text-decoration:none}
.print-only{display:none}
@media (max-width:860px){
  .two-col{grid-template-columns:1fr}
  .topbar-inner{flex-direction:column; align-items:flex-start}
}
@media print{
  body{background:#fff}
  .topbar,.no-print{display:none!important}
  .container{max-width:none; padding:0}
  .hero,.card,table{box-shadow:none}
  .hero,.card,table{border-color:#bdb7aa}
  .print-only{display:block}
  a{text-decoration:none; color:#000}
}
