:root {
  --color-brand: #334752;
  --color-body: #1A202C;
  --color-bg-main: #FFFFFF;
  --color-bg-alt: #F8F9FA;
  --color-card-bg: #F1F5F9;
  --color-border: #D1D5DB;
  --color-accent: #64748B;
  --color-accent-hover: #47506b;
  --color-meta: #6B7280;
}

body {
  font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif;
  background: var(--color-bg-alt);
  color: var(--color-body);
  margin: 0;
  padding: 0;
  line-height: 1.7;
  font-size: 1.08rem;
  min-height: 100vh;
}

header {
  width: 100%;
  background: var(--color-bg-main);
  box-shadow: 0 2px 8px rgba(100,116,139,0.07); /* accent as shadow tint */
  padding: 2.2em 0 1.2em 0;
  margin-bottom: 2em;
  border-bottom: 1px solid var(--color-border);
}
.site-header {
  background: var(--color-bg-main);
  border-bottom: 1px solid var(--color-border);
  padding: 1.2em 0 1.2em 0;
  width: 100%;
  position: relative;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2em;
}
.logo-link {
  display: flex;
  align-items: center;
}
.site-logo {
  display: block;
  max-width: 120px;
  max-height: 50px;
  margin-left: 0;
  margin-right: 1.5em;
  padding: 0;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2em;
}
.main-nav a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.3em 0.7em;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-card-bg);
  color: var(--color-brand);
}
.page-title-area {
  text-align: center;
  margin: 2.5em 0 2em 0;
  background: var(--color-bg-main);
  padding: 1em;
}
.page-title, .blog-hero .page-title {
  font-family: 'Inter', 'Roboto', Arial, sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-brand);
  margin: 0 0 0.3em 0;
  letter-spacing: -1px;
}
.subtitle {
  font-size: 1.2rem;
  color: var(--color-meta);
  margin: 0;
  font-style: italic;
}
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.2em;
  margin: 0 auto 3em auto;
  padding: 0 1em;
  background: var(--color-bg-alt);
}
.post-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(100,116,139,0.04); /* accent shadow */
  padding: 2.1em 1.6em 1.6em 1.6em;
  transition: box-shadow 0.18s, border 0.18s, transform 0.18s;
  display: flex;
  flex-direction: column;
  gap: 1.1em;
}

.post-header {
  margin-bottom: 1.2em;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.7em;
}
.post-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-brand);
  margin: 0 0 0.2em 0;
  line-height: 1.2;
}

.post-card h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-brand);
  margin: 0 0 0.2em 0;
  line-height: 1.2;
}
.post-desc {
  color: var(--color-body);
  font-size: 1.08rem;
  margin-bottom: 0.7em;
}
.post-meta {
  color: var(--color-meta);
  font-size: 0.98rem;
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: 0.01em;
  margin-bottom: 0.3em;
}

.post-card:hover {
  box-shadow: 0 6px 24px 0 rgba(100,116,139,0.10); /* accent shadow */
  border: 1.5px solid var(--color-accent);
  transform: translateY(-3px) scale(1.012);
}
.post-card h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-brand);
  margin: 0 0 0.2em 0;
  line-height: 1.2;
}
.post-meta {
  color: var(--color-meta);
  font-size: 0.98rem;
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: 0.01em;
  margin-bottom: 0.3em;
}
.post-desc {
  color: var(--color-body);
  font-size: 1.08rem;
  margin-bottom: 0.7em;
}
.read-more {
  align-self: flex-start;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  padding: 0.52em 1.2em;
  border-radius: 8px;
  font-size: 1.06rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  box-shadow: 0 1px 4px 0 rgba(36, 46, 66, 0.08);
  border: none;
  outline: none;
  margin-top: 0.8em;
}
.read-more:hover,
.read-more:focus {
  background: var(--color-accent-hover);
  color: #fff;
}

/* Ensure card title links and buttons use palette */
.post-card h2 a {
  color: #334752;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.15s;
}
.post-card h2 a:hover,
.post-card h2 a:focus {
  color: #64748B;
  text-decoration: underline;
}

footer {
  width: 100%;
  background: var(--color-card-bg);
  border-top: 1px solid var(--color-border);
  text-align: center;
  padding: 2em 0 1em 0;
  margin-top: 4em;
  font-size: 1.05rem;
  color: var(--color-meta);
}
footer .footer-links {
  margin-bottom: 0.8em;
}
footer .footer-links a {
  color: #2563eb;
  margin: 0 0.7em;
  text-decoration: none;
  font-weight: 500;
}
footer .footer-links a:hover {
  text-decoration: underline;
  color: #1e40af;
}

.logo-link {
  display: inline-block;
  text-align: center;
}

footer {
  width: 100%;
  background: #fff;
  border-top: 1px solid #e3e8ee;
  color: #8b96a5;
  font-size: 1rem;
  text-align: center;
  padding: 2em 0 1em 0;
  margin-top: 3em;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.2em;
}
main {
  max-width: 960px;
  margin: 2.8em auto 2em auto;
  padding: 2.5em 2em 2em 2em;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 32px rgba(37,99,235,0.04);
}
.blog-hero {
  text-align: center;
  margin-bottom: 2.8em;
}
.blog-hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.3em;
  letter-spacing: -1px;
  color: #2563eb;
}
.blog-hero .subtitle {
  color: #6c7a89;
  font-size: 1.18rem;
  margin-bottom: 0;
}
.post-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.3em;
}

/* Make single post page post-card full width */
/* --- About Page Link Styling --- */
.about-content a {
  color: var(--color-brand, #23272f);
  font-weight: inherit;
  text-decoration: underline;
  transition: color 0.2s;
}
.about-content a:hover {
  color: #1a1d22;
  text-decoration: underline;
}

/* --- Unified Post Header Styles --- */
.post-header.unified {
  text-align: center;
  margin-bottom: 2.5em;
  background: var(--color-bg-main);
  padding: 2.2em 1.2em 1.2em 1.2em;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(100,116,139,0.04);
}
.post-header.unified .post-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--color-brand);
  margin: 0 0 0.3em 0;
}
.post-header.unified .post-meta {
  color: var(--color-meta);
  font-size: 1.08rem;
  margin-bottom: 0.7em;
  font-family: 'Roboto', Arial, sans-serif;
}
.post-header.unified .post-desc {
  color: #6c7a89;
  font-size: 1.18rem;
  font-style: italic;
  margin: 0 0 0.2em 0;
}

.post-content {
  margin: 0 auto;
  max-width: 700px;
  font-size: 1.09rem;
  color: var(--color-body);
  background: none;
  box-shadow: none;
  padding: 0;
}

/* Remove legacy single-post card/list tweaks */
.post-list.single-post,
.post-list.single-post .post-card {
  all: unset;
}

@media (max-width: 900px) {
  main {
    padding: 1.2em 0.5em;
  }
  .post-list {
    grid-template-columns: 1fr;
    gap: 1.5em;
  }
}

.blog-hero {
  text-align: center;
  margin-bottom: 2.5em;
}
.blog-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.2em;
  letter-spacing: -1px;
}
.blog-hero .subtitle {
  color: #6c7a89;
  font-size: 1.2rem;
  margin-bottom: 0;
}
.post-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
}
@media (max-width: 700px) {
  .post-list {
    grid-template-columns: 1fr;
  }
}
.post-card {
  background: #f7faff;
  border-radius: 12px;
  border: 1.5px solid #e3e8ee;
  box-shadow: 0 2px 10px rgba(37,99,235,0.05);
  padding: 2em 1.5em 1.4em 1.5em;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, border-color 0.18s;
  margin-bottom: 0.5em;
}
.post-card:hover {
  box-shadow: 0 8px 28px rgba(37,99,235,0.11);
  border-color: #c7d2fe;
}

/* Remove hover effect for single post */
.post-list.single-post .post-card:hover {
  box-shadow: none;
  border-color: inherit;
  cursor: default;
}
.post-card h2 {
  margin: 0 0 0.2em 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-body);
}
.post-meta {
  color: #6b7280;
  font-size: 0.98rem;
  margin-bottom: 0.6em;
  font-family: 'Roboto', Arial, sans-serif;
}
.post-desc {
  color: #374151;
  margin-bottom: 1.2em;
  font-size: 1.08rem;
}
.read-more {
  align-self: flex-start;
  color: #fff;
  background: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.04rem;
  padding: 0.5em 1.2em;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(100,116,139,0.10); /* accent shadow */
  transition: background 0.14s, box-shadow 0.14s;
  border: none;
  margin-top: 0.2em;
  letter-spacing: 0.01em;
}
.read-more:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 2px 8px rgba(100,116,139,0.16); /* accent shadow */
}
blockquote {
  border-left: 4px solid #2563eb;
  background: #f0f4fa;
  color: #374151;
  margin: 1.5em 0;
  padding: 0.7em 1.2em;
  font-style: italic;
  border-radius: 6px;
}
code, pre {
  font-family: 'Roboto Mono', 'Fira Mono', 'Consolas', monospace;
  background: #23272f10;
  color: #1e293b;
  border-radius: 4px;
  padding: 0.18em 0.4em;
  font-size: 0.98em;
}
pre {
  display: block;
  padding: 1em;
  overflow-x: auto;
  margin: 1.2em 0;
  background: #f3f6fa;
  color: var(--color-body);
  border-radius: 8px;
}
img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(37,99,235,0.06);
  margin: 1.2em 0;
}

h1, h2, h3 {
  font-weight: 700;
}
a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover {
  text-decoration: underline;
  color: #1e40af;
}
ul {
  padding-left: 1.2em;
}
img {
  max-width: 100%;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  margin: 0.5em 0;
}
footer {
  color: #a0a5b1;
  font-size: 0.95rem;
}
