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

/* Theme variables (dark default). Inserted for light/dark theme support */
:root{
  --bg: #221F1F;
  --text: #fff;
  --muted: #aaa;            /* neutral secondary text */
  --muted-2: #9f9a98;      /* used for post-meta */
  --accent: rgb(220, 155, 35); /* apricot */
  --border: rgba(255,255,255,0.04);
  --container-max: 850px;
  --font-base: 'Poppins', sans-serif;
}

/* Body */
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  max-width: 850px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 40px;
}

header h1 a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 2rem;
}

header .site-desc {
  color: #aaa;
  font-size: 0.9rem;
  margin-top: 5px;
}

nav {
  margin-top: 15px;
}

nav a {
  color: var(--text);
  text-decoration: none;
  margin: 0 10px;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s;
}

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

/* Content */
main {
  padding: 20px 0;
}

main h1, main h2, main h3 {
  color: var(--accent);
  margin-top: 20px;
}

main p {
  margin: 10px 0;
  font-size: 1.0rem;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #aaa;
  font-size: 0.85rem;
}

/* post list */
.post-list { list-style: none; padding: 0; margin: 18px 0; }
.post-list-item { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.post-list-item a { color: var(--accent); text-decoration: none; font-size:0.95rem; }
.post-excerpt { color: #dcd7d5; margin-top:6px; }
.post-meta { color: #9f9a98; font-size:0.9rem; margin-top:6px; }

/* theme toggle button */
.theme-toggle{
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 10px;
  font-size: .95rem;
}
html[data-theme="light"] .theme-toggle { border-color: rgba(0,0,0,0.08); color: var(--text); }


/* ---------------------------
   Light theme overrides (minimal)
   --------------------------- */
html[data-theme="light"] {
  --bg: #ffffff;
  --text: #222222;
  --muted: #6b6b6b;
  --muted-2: #7a7a7a;
  --accent: rgb(220,155,35); /* keep accent */
  --border: rgba(0,0,0,0.06);
}

/* Small tweaks so elements that used dark backgrounds look OK */
html[data-theme="light"] body {
  background-color: var(--bg);
  color: var(--text);
}

/* links and accents already use var(--accent) */
html[data-theme="light"] a { color: var(--accent); }
html[data-theme="light"] footer { color: var(--muted); border-top-color: var(--border); }
html[data-theme="light"] header .site-desc { color: var(--muted); }

.post-image {
  width: 60%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
}
@media (max-width: 768px) {
  .post-image {
    width: 100%;
    margin: 10px 0;
  }
}

