/* ===========================
   GLOBAL THEME
   =========================== */

:root {
  --font-base: system-ui, Segoe UI, Inter, sans-serif;

  --bg: #fafafa;
  --text: #222;
  --accent: #0077ff;
  --accent-light: #e0f0ff;
  --border: #ddd;

  --radius: 10px;
  --max-width: 820px;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

/* improve text readability */
p {
  margin: 1rem 0;
  font-size: 1.05rem;
}

/* headings */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 2.2rem;
  margin-top: 1.5rem;
}

h2 {
  margin-top: 2rem;
  font-size: 1.6rem;
}

main {
  max-width: var(--max-width);
  margin: auto;
  padding: 1.5rem;
}

/* ===========================
   NAVIGATION
   =========================== */

header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  font-size: 1.05rem;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}

/* underline animation */
nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

nav a:hover::after {
  width: 100%;
}

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

/* ===========================
   LINKS & BUTTONS
   =========================== */

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

a:hover {
  text-decoration: underline;
}

/* Generic button styling (if needed) */
button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover {
  background: #005fcc;
}

/* ===========================
   BASELAYOUT STYLING
   =========================== */

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #555;
}


/* ===========================
   BLOG POST CONTENT
   =========================== */

article.post-content img {
  max-width: 100%;
  border-radius: var(--radius);
}

article.post-content code {
  background: #f2f2f2;
  padding: 3px 5px;
  border-radius: 4px;
  font-size: 0.95rem;
}

article.post-content pre {
  background: #f2f2f2;
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
}

article.post-content h2 {
  margin-top: 2rem;
}

article.post-content h3 {
  margin-top: 1.5rem;
}


/* Center h1 and card previews on the blog page */
.blog-page {
  text-align: center;
}

.blog-page .card {
  margin-left: auto;
  margin-right: auto;
}

.post-centered {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
}

/* Optional: tweak line spacing / font size */
.post-centered p {
  margin: 0.75rem 0;
}

/* If you have lists or other elements */
.post-centered li {
  text-align: center;
}


.about-centered {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  padding: 1rem;
}

.about-centered p {
  line-height: 1.7;
  font-size: 1.05rem;
}