/* ============================= */
/* BASE / BRAND SYSTEM */
/* ============================= */

:root {
  --bg: #191b20;
  --panel: #24272e;
  --panel-2: #2b2f37;
  --border: #3a3f4a;
  --text: #ececf1;
  --text-soft: #c8cad3;
  --muted: #9ea4b2;
  --accent: #b48cff;
  --accent-soft: rgba(180, 140, 255, 0.12);
  --nav-bg: #20232a;
  --footer-bg: #20232a;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
  font-size: 16px;
}

body > nav,
body > h1,
body > h2,
body > h3,
body > p,
body > ul,
body > ol,
body > footer,
.blog-section,
.tool-card,
.image-row,
form,
.blog-post {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ============================= */
/* LIST FIX */
/* ============================= */

ul,
ol {
  margin: 14px 0 22px;
  padding-left: 0;
  list-style-position: outside;
}

li {
  margin-left: 1.4em;
  margin-bottom: 8px;
}

ul ul,
ol ol,
ul ol,
ol ul {
  margin-top: 8px;
  margin-bottom: 8px;
}

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

nav {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  margin-bottom: 36px;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

nav a {
  color: var(--text-soft);
  text-decoration: none;
  margin-right: 18px;
  font-family: inherit;
  font-weight: 500;
}

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

/* ============================= */
/* HEADINGS */
/* ============================= */

h1 {
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.04em;
  font-size: 2.2rem;
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: 700;

  /* subtle color lift */
  color: #f3f0ff;

  /* soft glow (VERY subtle) */
  text-shadow: 0 0 12px rgba(180, 140, 255, 0.15);
}

h2 {
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;

  color: var(--accent);
  
  margin-top: 42px;
  margin-bottom: 14px;

  position: relative;
  padding-left: 14px;
}

/* accent bar */
h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 14px;
  background: var(--accent);
  border-radius: 2px;
}

h3 {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
}
/* ============================= */
/* LINKS */
/* ============================= */

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

a:hover {
  color: #ccb2ff;
}

/* ============================= */
/* BUTTONS */
/* ============================= */

.button {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  text-decoration: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px; /* pill look = more inviting */
  transition: all 0.15s ease;
}

.button:hover {
  background: rgba(180, 140, 255, 0.25);
  border-color: var(--accent);
  color: #fff;
}
.button-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-soft);
  border-radius: 999px;
}

.button-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: #fff;
}

/* ============================= */
/* PANELS / CARDS */
/* ============================= */

.tool-card,
.blog-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 24px;
  margin: 24px auto;
  transition: border-color 0.15s ease, background 0.15s ease;
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.02);
}

.tool-card:hover,
.blog-card:hover {
  border-color: var(--accent);
  background: var(--panel-2);
}

/* ============================= */
/* BLOG */
/* ============================= */

.blog-section {
  margin-top: 40px;
}

.blog-card-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
}

.blog-card-title a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.blog-card-title a:hover {
  color: var(--accent);
}

.blog-card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}

.blog-card-excerpt {
  font-size: 1rem;
  color: var(--text-soft);
  margin-top: 10px;
}

/* BLOG IMAGES WIDTH */

.blog-post img {
  max-width: 500px;
  width: 100%;
  display: block;
  margin: 24px auto;
  border: 1px solid var(--border);
  border-radius: 8px;

}

.blog-figure {
  text-align: center;
}

.blog-figure figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

/* ============================= */
/* TOOLKIT HEADER */
/* ============================= */

.tool-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.tool-header h2 {
  margin: 0 0 0 10px;
  border: none;
  padding-bottom: 0;
}

.tool-icon {
  width: 28px;
  height: 28px;
  fill: var(--accent);
}

/* ============================= */
/* TIMER */
/* ============================= */

.timer-label {
  font-size: 1.05rem;
  color: var(--text-soft);
  margin-top: 10px;
}

.timer-display {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 5px;
  color: #fff;
}

/* ============================= */
/* IMAGES */
/* ============================= */

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

.image-row img {
  width: 30%;
  max-width: 200px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.post-header {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.post-header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11,11,13,0.65); /* matches your dark theme */

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  padding: 16px;
}

.post-header h1 {
  margin: 0;
  font-size: 1.6rem;
  color: #b48cff;
}

.post-meta {
  font-size: 0.85rem;
  color: #ccc;
  margin-top: 6px;
}
.post-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 16px 0 20px;
  border-radius: 8px;
}
.site-image {
  max-width: 500px;
  width: 100%;
  height: auto;
  display: block;
  margin: 24px auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}
/* ============================= */
/* FOOTER */
/* ============================= */

footer {
  margin-top: 60px;
  padding: 28px 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--footer-bg);
}

footer a {
  color: var(--text-soft);
  text-decoration: none;
}

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

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 600px) {
  .tool-card,
  .blog-card {
    padding: 18px;
  }

  .timer-display {
    font-size: 1.6rem;
  }

  .tool-icon {
    width: 22px;
    height: 22px;
  }

  h1 {
    font-size: 1.7rem;
  }

  nav a {
    display: inline-block;
    margin-bottom: 8px;
  }
}

/* ============================= */
/* Blog Filters */
/* ============================= */

.blog-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
