
:root {
  --bg: #f7f1e7;
  --paper: #fffaf2;
  --ink: #1d1b18;
  --muted: #6d6258;
  --line: #dfd1c0;
  --accent: #7a3f1d;
  --accent-2: #23384d;
  --gold: #b88a31;
  --soft: #efe1d0;
  --ok: #2f6f5e;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: radial-gradient(circle at top left, #fff8ed 0, var(--bg) 45%, #efe3d5 100%);
  color: var(--ink);
  line-height: 1.65;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 242, .94);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.compass {
  width: 42px; height: 42px; border: 2px solid var(--accent); border-radius: 50%;
  display: grid; place-items: center; color: var(--accent); font-size: 22px; font-weight: 700;
}
.brand-title { font-size: 18px; line-height: 1.15; letter-spacing: .03em; text-transform: uppercase; }
.brand-subtitle { font-size: 12px; color: var(--muted); font-family: system-ui, -apple-system, Segoe UI, sans-serif; }
nav { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; font-family: system-ui, -apple-system, Segoe UI, sans-serif; font-size: 14px; }
nav a { color: var(--accent-2); }
.main { max-width: 1120px; margin: 0 auto; padding: 46px 22px 70px; }
.hero {
  background: linear-gradient(135deg, rgba(255,250,242,.96), rgba(239,225,208,.82));
  border: 1px solid var(--line); border-radius: 28px; padding: 46px;
  box-shadow: 0 22px 60px rgba(56, 41, 25, .08);
}
.eyebrow { font-family: system-ui, -apple-system, Segoe UI, sans-serif; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); font-weight: 700; font-size: 12px; }
h1, h2, h3 { line-height: 1.15; }
h1 { margin: 12px 0 14px; font-size: clamp(38px, 6vw, 64px); font-weight: 500; }
h2 { margin: 38px 0 12px; font-size: 30px; font-weight: 500; }
h3 { margin: 28px 0 8px; font-size: 20px; }
p.lead { font-size: 21px; color: #3c332b; max-width: 780px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.card {
  background: rgba(255,250,242,.88); border: 1px solid var(--line); border-radius: 20px; padding: 22px;
}
.card p { margin-bottom: 0; color: var(--muted); }
.search-box { margin: 28px 0 20px; display: flex; gap: 12px; }
.search-box input {
  width: 100%; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper);
  font-size: 16px; font-family: system-ui, -apple-system, Segoe UI, sans-serif; color: var(--ink);
}
.concept-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.concept-item {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 18px;
  background: rgba(255,250,242,.84); color: var(--ink);
}
.concept-item:hover { text-decoration: none; border-color: var(--accent); box-shadow: 0 10px 26px rgba(56, 41, 25, .07); }
.num { min-width: 38px; color: var(--accent); font-family: system-ui, -apple-system, Segoe UI, sans-serif; font-weight: 800; }
.concept-title { font-size: 18px; font-weight: 700; }
.summary { color: var(--muted); font-size: 14px; font-family: system-ui, -apple-system, Segoe UI, sans-serif; line-height: 1.45; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 10px; font-family: system-ui, -apple-system, Segoe UI, sans-serif; font-size: 13px; font-weight: 700; background: #f6e7c8; color: #6b4310; }
.page-shell { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 28px; align-items: start; }
.article {
  background: rgba(255,250,242,.94); border: 1px solid var(--line); border-radius: 28px; padding: 42px; box-shadow: 0 20px 48px rgba(56, 41, 25, .08);
}
.article h1 { font-size: clamp(34px, 5vw, 56px); }
.article .concept-meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 28px; }
.meta-pill { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; color: var(--muted); font-family: system-ui, -apple-system, Segoe UI, sans-serif; font-size: 13px; }
.block { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 30px; }
.video-card { background: #1f1a16; color: #fff8ed; border-radius: 22px; padding: 26px; margin-top: 20px; }
.video-placeholder { border: 1px dashed rgba(255,255,255,.36); border-radius: 18px; min-height: 220px; display: grid; place-items: center; text-align: center; padding: 24px; background: rgba(255,255,255,.04); }
.video-placeholder strong { display: block; font-size: 22px; margin-bottom: 6px; }
.note { background: #f1e3ce; border-left: 4px solid var(--gold); padding: 16px 18px; border-radius: 12px; color: #3a2b1e; }
.sidebar { position: sticky; top: 94px; }
.side-card { background: rgba(255,250,242,.94); border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin-bottom: 18px; }
.qr { width: 190px; height: 190px; display: block; margin: 12px auto; image-rendering: pixelated; }
.related-list { padding-left: 18px; margin-bottom: 0; }
.nextprev { display: flex; gap: 12px; margin-top: 34px; }
.nextprev a { flex: 1; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: #fffaf2; }
.footer { border-top: 1px solid var(--line); background: rgba(255,250,242,.82); color: var(--muted); font-family: system-ui, -apple-system, Segoe UI, sans-serif; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 26px 22px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.button { display: inline-block; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: #fffaf2; font-family: system-ui, -apple-system, Segoe UI, sans-serif; font-weight: 700; }
.button:hover { text-decoration: none; background: #623116; }
.button.secondary { background: transparent; color: var(--accent); }
.status-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.status { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 15px; font-family: system-ui, -apple-system, Segoe UI, sans-serif; }
.status b { display: block; font-size: 22px; color: var(--accent-2); }
@media (max-width: 900px) {
  .page-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .card-grid, .concept-list, .status-row { grid-template-columns: 1fr; }
  .hero, .article { padding: 28px; border-radius: 22px; }
  .header-inner { align-items: flex-start; flex-direction: column; }
  nav { justify-content: flex-start; }
}
@media print {
  .site-header, .footer, .nextprev, .button { display: none; }
  body { background: white; }
  .main { padding: 0; }
  .article, .side-card, .hero { box-shadow: none; border: 1px solid #ccc; }
  .page-shell { grid-template-columns: 1fr; }
}
