/* Dark theme — warm wood + gold */
:root {
  --bg: #1a1714;
  --surface: #24201b;
  --text: #e4e0d8;
  --text-muted: #968c80;
  --accent: #c9a54a;
  --accent-hover: #dbb958;
  --border: #3a342e;
  --max-width: 920px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  position: relative;
}

/* Full-page ink wash background */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('/img/nav-bg.jpg?v=20260730') center/cover no-repeat;
  z-index: -2;
}

/* Dark overlay for text readability */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10, 8, 6, 0.68);
  z-index: -1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header / Nav ===== */
header {
  background: linear-gradient(rgba(26,23,20,0.3), rgba(26,23,20,0.0));
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  margin-bottom: 48px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.logo {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--text);
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 20px;
}

.main-nav a {
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.main-nav a:hover {
  color: var(--accent);
}

.main-nav a.nav-play {
  color: var(--accent);
  font-weight: 600;
}

.main-nav a.nav-play:hover {
  color: var(--accent-hover);
}

/* ===== Main ===== */
main.container {
  min-height: 60vh;
  padding-bottom: 140px;
}

h1 {
  font-size: 32px;
  margin-bottom: 8px;
  line-height: 1.3;
}

h2 {
  font-size: 22px;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--accent);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 8px;
  color: #c4bca8;
}

p { margin-bottom: 18px; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

.subtitle {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 32px;
}

.article-list {
  list-style: none;
  padding: 0;
}

.article-list li {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.article-list a {
  font-size: 18px;
  font-weight: 500;
}

/* ===== Article pages ===== */
article { margin-bottom: 40px; }

.article-header {
  margin-bottom: 28px;
}

.article-header h1 {
  font-size: 34px;
  margin-bottom: 4px;
}

time {
  color: var(--text-muted);
  font-size: 14px;
}

.content ul, .content ol {
  margin-bottom: 18px;
  padding-left: 24px;
}

.content li {
  margin-bottom: 6px;
}

.content strong {
  font-weight: 600;
}

.content a {
  color: var(--accent);
}

.back-link {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.back-link a {
  color: var(--text-muted);
}

.back-link a:hover {
  color: var(--accent);
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

footer a {
  color: var(--text-muted);
}

footer a:hover {
  color: var(--accent);
}

.footer-tagline {
  margin-top: 4px;
  font-size: 13px;
}

/* ===== Code blocks ===== */
code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 15px;
  color: var(--text);
}

pre {
  background: var(--surface);
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 18px;
  border: 1px solid var(--border);
}

pre code {
  background: none;
  padding: 0;
}

/* ===== Homepage ===== */
.hero {
  text-align: center;
  padding: 40px 0 32px 0;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 14px;
  color: var(--text);
}

.hero-text {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 28px auto;
}

.hero-cta {
  display: inline-block;
  padding: 14px 40px;
  font-size: 18px;
  font-weight: 700;
  color: #1a1714;
  background: var(--accent);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.hero-cta:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: #1a1714;
  transform: scale(1.03);
}

.learn-section h2 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 40px;
  margin-bottom: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.start-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.start-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

.start-card:hover {
  border-color: var(--accent);
  background: #2a2620;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1714;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.start-card strong {
  font-size: 16px;
  min-width: 160px;
}

.start-card span:last-child {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.4;
}

/* ===== All Guides section ===== */
.all-guides {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.all-guides h2 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .hero h1 { font-size: 30px; }
  .hero-text { font-size: 16px; }
  .hero-cta { padding: 12px 32px; font-size: 16px; }
  .start-card { flex-wrap: wrap; }
  .start-card strong { min-width: auto; }
}

/* ===== Board shortcode (in articles) ===== */
.board-wrapper {
  margin: 24px 0;
}

.board-wrapper.full-width-breakout {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  overflow-x: auto;
}

.board-caption {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 8px;
}
