:root {
  --bg: #111111;
  --text: #b8b8b8;
  --accent: #b1e74f;
  --accent-soft: rgba(177, 231, 79, 0.18);

  --muted: #e0e0e0;
  --text-secondary: #cbd5f5;
  --card-bg: radial-gradient(circle at top left, rgba(177, 231, 79, 0.06), transparent 55%),
    linear-gradient(to bottom right, #0a0f1e, #0a0f1e 40%, #0f1419 100%);
  --border-subtle: rgba(148, 163, 184, 0.18);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.65);
  --radius-lg: 16px;
  --content-max: 708px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

main {
  display: flex;
  justify-content: center;
  padding: 0;
}

.page-shell {
  width: 100%;
  max-width: 1200px;
  padding: 0;
}

.page-inner {
  margin: 0 150px;
  padding: 80px 96px 247px;
}

.page-header {
  margin-bottom: 2rem;
}

.page-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.0rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 640px) {
  .page-kicker {
    flex-wrap: wrap;
    gap: 0.5rem 0.8rem;
  }

  .back-link {
    width: 100%;
    margin-bottom: 0.5rem;
    border: none;
    padding-left: 0;
    color: var(--accent);
  }

  /* Hide the first separator dot since link is on its own line */
  .page-kicker > span:nth-of-type(1) {
    display: none;
  }
}

.back-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 99px;
  transition: all 0.2s ease;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  height: fit-content;
}

.back-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.article-image img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  background: var(--card-bg);
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 0.5rem 0;
}

.article-body p {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  color: var(--accent);
}

.page-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}

h2 {
  margin: 2rem 0 0.5rem;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--accent);
}

h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--accent);
}

h4 {
  margin: 1.2rem 0 0.4rem;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--accent);
}

p {
  margin: 0;
  color: var(--text);
}

ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (max-width: 1024px) {
  .page-inner {
    margin: 0;
    padding: 64px 32px 200px;
  }
}

@media (max-width: 640px) {
  .page-inner {
    padding: 56px 20px 180px;
  }
}

li {
  color: var(--text);
}

strong {
  color: #e8f0d5; /* Gentle lime-grey accent */
  font-weight: 600;
}

code {
  background-color: rgba(110, 118, 129, 0.4);
  padding: 0.2em 0.4em;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 85%;
}

pre {
  background-color: rgba(110, 118, 129, 0.4);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 0.9em;
  color: inherit;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th {
  text-align: left;
  padding: 0.6rem 1rem;
  border-bottom: 2px solid var(--border-subtle);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text);
}

tr:last-child td {
  border-bottom: none;
}

a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

.page-content ul li strong {
  color: var(--text);
}

.page-content ul li strong a {
  color: #b0b0b0;
}

.page-content ul li strong a:hover {
  color: var(--text);
}

/* Navbar */
.navbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
}

.navbar-inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 2rem;
  margin: 0 auto;
  gap: 6rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--text);
}

.navbar-brand img {
  height: 32px;
  width: auto;
}

.brand-suffix {
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 2px;
}

.navbar nav {
  display: flex;
  gap: 2rem;
}

.navbar nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.0rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.15s;
}

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

@media (max-width: 768px) {
  .navbar-inner {
    gap: 1.5rem;
    padding: 0 1.5rem;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }

  .navbar nav {
    gap: 1rem;
  }

  .navbar nav a {
    font-size: 0.9rem;
  }
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.7);
  border-color: rgba(177, 231, 79, 0.3);
}

.card-image {
  padding: 1.25rem 1.25rem 0;
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.card-content {
  padding: 1.5rem;
}

.card-content h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.card-content h2 a {
  text-decoration: none;
  color: var(--text);
}

.card-content h2 a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.card-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-bottom: 0.8rem;
}

.card-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}



