:root {
  --primary-color: #eaecf0;
  --primary-dark: #e5e6e8;
  --accent-color: #e9f0ec;
  --text-color: #000000;
  --muted-text-color: #333333;
  --section-bg: #ffffff;
  --card-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  --card-shadow-hover: 0 20px 35px rgba(15, 23, 42, 0.12);
  --transition-speed: 0.3s;
  --heading-color: #0f172a;
  --highlight-text: #1d3b75;
  --highlight-bg: rgba(37, 99, 235, 0.08);
  --card-border: rgba(37, 99, 235, 0.1);
  --footer-bg: #0f172a;
  --footer-text: rgba(148, 163, 184, 0.85);
  --mono-font: 'JetBrains Mono', 'SF Mono', 'Fira Code', Menlo, Consolas, monospace;
}

body {
  color: var(--text-color);
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  background: var(--section-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "liga" 1, "kern" 1;
}

header {
  background: var(--section-bg) !important;
  background-color: var(--section-bg) !important;
  background-image: none !important;
  color: var(--text-color);
  box-shadow: none;
}

header .light-silver {
  color: var(--text-color) !important;
}

nav {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

nav a {
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-color);
}

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

.nav-brand {
  font-weight: 600;
  transition: color var(--transition-speed) ease;
}

.nav-brand:hover {
  color: var(--muted-text-color);
}

.nav-link {
  transition: color var(--transition-speed) ease;
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 1.25rem;
  box-shadow: var(--card-shadow);
}

.hero-author-name {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: var(--heading-color);
}

.intro-section {
  padding: 3rem 0;
  background-color: var(--section-bg);
  border-radius: 1rem;
  box-shadow: var(--card-shadow);
}

.feature-card {
  background: var(--section-bg);
  border-radius: 1rem;
  padding: 1.75rem;
  margin: 1rem 0;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.social-link {
  color: var(--text-color);
  font-size: 1.5rem;
  transition: transform var(--transition-speed) ease,
    color var(--transition-speed) ease;
}

.social-link:hover {
  color: var(--muted-text-color);
  transform: translateY(-3px);
}

.hero-subtitle {
  color: var(--muted-text-color);
}

.section-wrapper {
  background: var(--section-bg);
  padding: 4rem 1.5rem;
}

.section-wrapper:nth-of-type(even) {
  background: var(--section-bg);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--heading-color);
  letter-spacing: -0.02em;
}

.section-description {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--muted-text-color);
  line-height: 1.7;
}

.cta-button {
  display: inline-block;
  background: var(--section-bg);
  color: var(--text-color);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--text-color);
  border-radius: 999px;
  transition: background var(--transition-speed) ease,
    transform var(--transition-speed) ease;
  box-shadow: none;
}

.cta-button:hover {
  background: var(--text-color);
  color: var(--section-bg);
  transform: translateY(-2px);
}

.link-accent {
  color: var(--text-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.link-accent:hover {
  color: var(--highlight-text);
  text-decoration: none;
}

.post-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2.5rem;
  text-align: center;
  color: var(--text-color);
}

.post-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--heading-color) !important;
}

.post-hero p {
  color: var(--muted-text-color) !important;
  line-height: 1.7;
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  color: var(--muted-text-color);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.content-wrapper {
  max-width: 760px;
  margin: -2rem auto 4rem;
  background: var(--section-bg);
  padding: 3rem 3.5rem;
  border-radius: 1.25rem;
  box-shadow: var(--card-shadow);
}

.content-wrapper h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--heading-color);
}

.content-wrapper h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--heading-color);
}

.content-wrapper p {
  line-height: 1.85;
  margin-bottom: 1.5rem;
  color: var(--muted-text-color);
}

.content-wrapper a {
  color: var(--highlight-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.content-wrapper a:hover {
  text-decoration-thickness: 2px;
}

.content-wrapper ul,
.content-wrapper ol {
  margin: 1.5rem 0 1.5rem 1.25rem;
  padding-left: 1rem;
  color: var(--muted-text-color);
  line-height: 1.85;
}

.content-wrapper code:not([class]) {
  font-family: var(--mono-font);
  font-size: 0.85em;
  background: var(--highlight-bg);
  color: var(--highlight-text);
  padding: 0.15em 0.45em;
  border-radius: 4px;
}

.content-wrapper blockquote {
  border-left: 3px solid var(--highlight-text);
  padding: 0.75rem 1.5rem;
  margin: 2rem 0;
  background: var(--highlight-bg);
  border-radius: 0 0.5rem 0.5rem 0;
}

.content-wrapper blockquote p {
  margin-bottom: 0;
  color: var(--muted-text-color);
}

.content-wrapper .highlight {
  margin: 1.5rem 0;
  border-radius: 0.5rem;
  overflow: hidden;
}

.content-wrapper .highlight pre {
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  font-family: var(--mono-font);
}

.highlight-box {
  border-left: 4px solid var(--highlight-text);
  padding: 1.25rem 1.5rem;
  background: var(--highlight-bg);
  border-radius: 0.75rem;
  margin: 2rem 0;
  color: var(--highlight-text);
}

footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2.5rem 1.5rem;
}

footer .footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

footer .footer-socials {
  display: flex;
  gap: 1.25rem;
}

footer .footer-socials a {
  color: var(--footer-text);
  font-size: 1.4rem;
  transition: color var(--transition-speed) ease;
}

footer .footer-socials a:hover {
  color: #ffffff;
}

.giscus-wrapper {
  max-width: 760px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .intro-section {
    margin: 0 1rem;
    padding: 2.5rem 1.75rem;
  }

  .feature-card {
    margin: 1.5rem 0;
  }

  header .flex-l {
    flex-direction: column;
    gap: 1.25rem;
  }

  nav .flex-l {
    flex-direction: column;
    gap: 1rem;
  }

  .post-hero {
    padding: 3rem 1.25rem 1.5rem;
  }

  .content-wrapper {
    margin: -1.5rem 1rem 3rem;
    padding: 2rem 1.5rem;
  }
}

.hero-badge {
  display: inline-block;
  background: rgba(15, 23, 42, 0.05);
  color: var(--muted-text-color);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
}
