:root {
  --navy:      #1B3A5C;
  --navy-dark: #142E4A;
  --cyan:      #00B4D8;
  --accent:    #0090B0;
  --steel:     #4A5568;
  --white:     #1B3A5C;
  --border:    rgba(0, 180, 216, 0.2);
  --card-border: rgba(0, 0, 0, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #FFFFFF; color: var(--white); font-family: Georgia, serif; min-height: 100vh; display: flex; flex-direction: column; }

/* ── Navigation ──────────────────────────────────────────────────────────── */
nav { background: var(--navy-dark); padding: 28px 40px; display: flex; justify-content: space-between; align-items: center; border-bottom: 0.5px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-brand { color: var(--cyan); font-size: 18px; letter-spacing: 3px; text-decoration: none; font-family: Arial, sans-serif; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: #B0C4DE; font-size: 11px; font-family: Arial, sans-serif; letter-spacing: 1px; text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--cyan); }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container { max-width: 960px; margin: 0 auto; padding: 0 40px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer { background: var(--navy-dark); border-top: 0.5px solid var(--border); padding: 24px 40px; display: flex; gap: 24px; align-items: center; margin-top: auto; position: relative; }
.footer-label { color: #B0C4DE; font-size: 10px; font-family: Arial, sans-serif; letter-spacing: 2px; }
footer a { color: var(--cyan); font-size: 12px; font-family: Arial, sans-serif; letter-spacing: 1px; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-domain { position: absolute; left: 50%; transform: translateX(-50%); color: #B0C4DE; font-size: 11px; font-family: Arial, sans-serif; letter-spacing: 1px; }
.footer-copy { margin-left: auto; color: #B0C4DE; font-size: 10px; font-family: Arial, sans-serif; opacity: 0.6; }

/* ── Shared labels & dividers ─────────────────────────────────────────────── */
.label { color: var(--accent); font-size: 10px; font-family: Arial, sans-serif; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; }
hr { border: none; border-top: 0.5px solid var(--card-border); margin: 40px 0; }

/* ── Blog listing cards ───────────────────────────────────────────────────── */
.post-card { border-bottom: 0.5px solid var(--card-border); padding: 24px 0; }
.post-card:last-child { border-bottom: none; }
.post-card h2 { color: var(--white); font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.post-card h2 a { color: var(--white); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); }
.post-meta { color: var(--steel); font-size: 11px; font-family: Arial, sans-serif; margin-bottom: 8px; }
.post-excerpt { color: var(--steel); font-size: 14px; line-height: 1.7; }
.read-more { color: var(--accent); font-size: 11px; font-family: Arial, sans-serif; letter-spacing: 1px; text-decoration: none; display: inline-block; margin-top: 10px; }

/* ── Blog post body ───────────────────────────────────────────────────────── */
.post-page { padding-top: 60px; padding-bottom: 60px; }
.post-back { color: var(--accent); font-size: 10px; font-family: Arial, sans-serif; letter-spacing: 3px; margin-bottom: 16px; }
.post-back a { color: var(--accent); text-decoration: none; }
.post-date { margin: 16px 0 32px; }
.post-body { max-width: 680px; margin: 0 auto; }
.post-body h1 { color: var(--white); font-size: 28px; font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
.post-body h2 { color: var(--white); font-size: 20px; font-weight: 700; margin: 36px 0 12px; }
.post-body h3 { color: var(--accent); font-size: 14px; font-family: Arial, sans-serif; letter-spacing: 2px; text-transform: uppercase; margin: 28px 0 10px; }
.post-body p { color: var(--steel); font-size: 16px; line-height: 1.8; margin-bottom: 20px; }
.post-body strong { color: var(--white); }
.post-body em { color: var(--steel); font-style: italic; }
.post-body code { background: #F1F5F9; color: var(--navy); padding: 2px 6px; border-radius: 3px; font-size: 13px; font-family: monospace; }
.post-body pre { background: #F1F5F9; border: 0.5px solid var(--card-border); border-radius: 6px; padding: 20px; overflow-x: auto; margin: 24px 0; }
.post-body pre code { background: none; padding: 0; font-size: 13px; color: var(--steel); line-height: 1.6; }
.post-body ul, .post-body ol { color: var(--steel); font-size: 16px; line-height: 1.8; margin: 0 0 20px 24px; }
.post-body blockquote { border-left: 2px solid var(--accent); padding-left: 20px; margin: 24px 0; color: var(--steel); font-style: italic; }

/* ── Blog index header ────────────────────────────────────────────────────── */
.blog-header { background: #FAFAF8; padding: 48px 40px 40px; border-bottom: 1px solid #e0e4e8; }
.blog-header-intro { color: #4A5568; font-size: 14px; line-height: 1.75; max-width: 640px; margin-top: 12px; font-family: Georgia, serif; }
.blog-list { padding-top: 40px; }

/* ── Book page ────────────────────────────────────────────────────────────── */
.book-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: start; padding-top: 60px; padding-bottom: 60px; }
.book-cover { text-decoration: none; display: block; background: #1B3A5C; border-radius: 4px; padding: 48px 32px; text-align: center; transition: opacity 0.2s; }
.book-cover:hover { opacity: 0.9; }
.book-cover-title { color: #FFFFFF; font-size: 48px; font-weight: 900; letter-spacing: -1px; line-height: 1; margin-bottom: 0; font-family: Georgia, serif; }
.book-cover-sub { color: #00B4D8; font-size: 18px; font-weight: 400; letter-spacing: 6px; margin-bottom: 28px; font-family: Arial, sans-serif; }
.book-cover-divider { border: none; border-top: 1px solid rgba(255,255,255,0.25); margin-bottom: 24px; }
.book-cover-desc { color: #FFFFFF; font-size: 12px; line-height: 1.7; margin-bottom: 6px; font-family: Georgia, serif; }
.book-cover-sub2 { color: #B0C4DE; font-size: 12px; line-height: 1.7; margin-bottom: 40px; font-family: Georgia, serif; font-style: italic; }
.book-cover-divider2 { border: none; border-top: 1px solid rgba(255,255,255,0.15); margin-bottom: 28px; }
.book-cover-author { color: #B0C4DE; font-size: 11px; letter-spacing: 4px; font-family: Arial, sans-serif; }
.book-about-title { color: var(--white); font-size: 28px; font-weight: 700; line-height: 1.3; margin-bottom: 20px; }
.book-about-text { color: var(--steel); font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.book-cta-btn { display: inline-block; background: var(--cyan); color: var(--navy-dark); font-family: Arial, sans-serif; font-size: 12px; letter-spacing: 2px; padding: 12px 28px; text-decoration: none; border-radius: 4px; }

/* ── Connect page ─────────────────────────────────────────────────────────── */
.connect-container { padding-top: 36px; padding-bottom: 40px; }
.connect-name { color: var(--white); font-size: 22px; font-weight: 700; letter-spacing: 2px; line-height: 1.1; margin-bottom: 8px; }
.connect-subtitle { color: var(--accent); font-size: 10px; font-family: Arial, sans-serif; letter-spacing: 2px; margin-bottom: 16px; }
.connect-text { color: var(--steel); font-size: 14px; line-height: 1.7; max-width: 560px; }
.connect-cards { display: flex; flex-direction: column; gap: 12px; max-width: 480px; }
.connect-card { display: flex; align-items: center; gap: 20px; padding: 14px 20px; background: #F8FAFC; border: 0.5px solid var(--card-border); border-radius: 6px; text-decoration: none; transition: border-color 0.2s; }
.connect-card:hover { border-color: var(--accent); }
.connect-card-name { color: var(--navy); font-size: 14px; font-family: Arial, sans-serif; font-weight: 600; margin-bottom: 2px; }
.connect-card-handle { color: var(--steel); font-size: 12px; font-family: Arial, sans-serif; }

/* ── Cusdis comments ──────────────────────────────────────────────────────── */
#cusdis_thread label { font-weight: 700 !important; color: var(--white) !important; }
#cusdis_thread input,
#cusdis_thread textarea { border: 1.5px solid #1B3A5C !important; border-radius: 4px !important; }
#cusdis_thread input:focus,
#cusdis_thread textarea:focus { border-color: var(--accent) !important; outline: none !important; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  nav { padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
  .nav-brand { font-size: 10px; letter-spacing: 1.5px; }
  .nav-links { gap: 16px; flex-wrap: wrap; }
  .nav-links a { font-size: 10px; }
  .container { padding: 0 20px; }
  footer { padding: 20px; flex-wrap: wrap; gap: 14px; }
  .book-grid { grid-template-columns: 1fr; padding-top: 40px; }
  .blog-header { padding: 32px 20px; }
}
