:root {
  --bg-start: #eef3f6;
  --bg-end: #e6ebee;
  --surface: #ffffff;
  --text: #111111;
  --text-muted: #3d4a57;
  --accent: #289cd7;
  --accent-dark: #2b4093;
  --accent-gradient: linear-gradient(135deg, #2b4093, #289cd7);
  --header-bg: #d4e4f6;
  --footer-bg: #d4e4f6;
  --border: #c5d4e0;
  --shadow: 0 8px 24px rgba(43, 64, 147, 0.10);
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-end);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent-dark); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

header {
  background: var(--header-bg);
  color: var(--text);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(43, 64, 147, 0.08);
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand img { height: 58px; width: auto; display: block; background: transparent; }

.logo-text {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  font-size: 1.15rem;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 55px 24px 48px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.08;
  color: #111;
  text-shadow: 0 2px 0 rgba(255,255,255,0.4);
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(135deg, #1e7bb8, #289cd7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  font-size: 1.28rem;
  display: inline-block;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  color: #fff;
  padding: 13px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(40,156,215,0.35);
  transition: transform .25s ease, box-shadow .25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(40,156,215,0.45);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--accent);
  box-shadow: none;
}

.btn-ghost:hover { background: #e7f4fb; color: var(--accent-dark); }

.btn-secondary {
  background: #fff;
  color: var(--accent-dark);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-secondary:hover { background: var(--surface); color: var(--accent-dark); }

.btn-sm { padding: 9px 16px; font-size: 0.92rem; }

.section { padding: 72px 0; }

h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 40px;
}

.lede {
  text-align: center;
  color: var(--text-muted);
  max-width: 680px;
  margin: -18px auto 36px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.cover {
  width: 100%;
  max-width: 210px;
  height: 310px;
  margin: 0 auto 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-weight: 700;
  padding: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}

.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #0e1a2b;
  display: block;
  z-index: 1;
}

.cover span { position: relative; z-index: 0; padding: 16px; }

.cover-a { background: linear-gradient(160deg, #2b4093, #289cd7); }
.cover-b { background: linear-gradient(160deg, #16324f, #289cd7); }

.book-card { text-align: center; }
.book-card h3 { margin-bottom: 10px; }
.book-card p { color: var(--text-muted); margin-bottom: 18px; }

.buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.page-header {
  padding: 56px 0 12px;
  text-align: center;
}

.page-header h1 { font-size: 2.6rem; margin-bottom: 10px; }
.page-header h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 12px auto 0;
  background: #289CD7;
  border-radius: 2px;
}

.center-card { text-align: center; }
.center-card .lede { margin-left: auto; margin-right: auto; }
.center-card .buy-row { justify-content: center; }

.connect {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.feeds-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.feed-heading {
  text-align: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.x-embed {
  background: var(--surface);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
  min-height: 200px;
}

.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.post-card a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.post-card a:hover { color: var(--accent-dark); }

.post-date {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.portrait {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  background: linear-gradient(160deg, #1e2a40, #289cd7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  overflow: hidden;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tag-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

footer {
  background: var(--footer-bg);
  color: var(--text);
  padding: 48px 0 28px;
  text-align: center;
}

.footer-logo { height: 52px; margin-bottom: 14px; background: transparent; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  justify-content: center;
  margin: 14px 0 8px;
}

.footer-links a { color: var(--accent-dark); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

.fine { font-size: 0.85rem; opacity: 0.8; }

@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--header-bg);
    padding: 16px 24px 20px;
    gap: 14px;
  }
  .nav-toggle { display: block; }
  .about-grid { grid-template-columns: 1fr; }
  .feeds-grid { grid-template-columns: 1fr; }
}