@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@300;400;500;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-dark: #1a1a2e;
  --bg-card: #1e2a4a;
  --accent: #e2b96f;
  --accent2: #c9956b;
  --text-light: #e8e8e8;
  --text-muted: #8899aa;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  background-image: radial-gradient(ellipse at 20% 50%, #1e2a4a 0%, transparent 50%),
                    radial-gradient(ellipse at 80% 20%, #2a1e3e 0%, transparent 50%);
  color: var(--text-light);
  min-height: 100vh;
  line-height: 1.75;
  padding: 30px 20px;
}

.container { max-width: 760px; margin: 0 auto; }

nav.crumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
}
nav.crumbs a { color: var(--text-muted); text-decoration: none; }
nav.crumbs a:hover { color: var(--accent); }
nav.crumbs .sep { margin: 0 6px; opacity: 0.5; }

.brand-link {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--accent) !important;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.2;
}

.meta {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.lead {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 28px;
  font-weight: 500;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--accent);
  margin-top: 40px;
  margin-bottom: 14px;
  line-height: 1.3;
}

h3 {
  font-size: 18px;
  color: var(--text-light);
  margin-top: 22px;
  margin-bottom: 8px;
  font-weight: 600;
}

p { margin-bottom: 16px; font-size: 16px; }
ul, ol { margin-bottom: 18px; padding-left: 22px; }
li { margin-bottom: 6px; }
strong { color: var(--accent); font-weight: 600; }
a { color: var(--accent); }

.toc {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 18px 24px;
  margin-bottom: 30px;
}
.toc h4 {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.toc ol { padding-left: 22px; margin: 0; }
.toc li { margin-bottom: 4px; font-size: 14px; }
.toc a { color: var(--text-light); text-decoration: none; }
.toc a:hover { color: var(--accent); }

.box {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 14px 18px;
  margin: 14px 0 22px;
}
.box .glyph {
  font-size: 30px;
  margin-right: 8px;
  vertical-align: middle;
  color: var(--accent);
}
.box .label {
  font-weight: 600;
  font-size: 17px;
  display: inline-block;
  vertical-align: middle;
}
.box p { margin: 8px 0 0 0; font-size: 15px; }
.box small {
  display: block;
  color: var(--text-muted);
  margin-top: 6px;
  font-size: 12px;
}

.tip {
  background: rgba(226,185,111,0.08);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 6px;
  margin: 18px 0;
  font-size: 15px;
}
.tip strong { color: var(--accent); }

.warning {
  background: rgba(255,107,107,0.08);
  border-left: 3px solid #ff6b6b;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 18px 0;
  font-size: 15px;
}

.cta {
  background: linear-gradient(135deg, rgba(226,185,111,0.15), rgba(201,149,107,0.1));
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 28px 26px;
  text-align: center;
  margin: 36px 0;
}
.cta h3 {
  color: var(--accent);
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 8px;
  margin-top: 0;
}
.cta p { margin: 0; }
.cta-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 12px 30px;
  background: var(--accent);
  color: var(--bg-dark);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.15s;
}
.cta-btn:hover { background: var(--accent2); }

.related {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 20px 24px;
  margin-top: 36px;
}
.related h4 {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin-bottom: 8px; font-size: 14px; }
.related a { color: var(--text-light); text-decoration: none; }
.related a:hover { color: var(--accent); }

footer.site {
  text-align: center;
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
  color: var(--text-muted);
}
footer.site a { color: var(--text-muted); text-decoration: none; margin: 0 8px; }
footer.site a:hover { color: var(--accent); }

table.openings {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 22px;
  font-size: 14px;
}
table.openings th, table.openings td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
table.openings th {
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
table.openings td.moves { font-family: monospace; color: var(--text-muted); }

@media (max-width: 600px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  p { font-size: 15px; }
  .container { padding: 0 4px; }
  table.openings { font-size: 12px; }
  table.openings th, table.openings td { padding: 6px 8px; }
}
