:root {
  --bg-start: #01050f;
  --bg-end: #0b1b3b;
  --surface: #0f172a;
  --text: #e5e7eb;
  --accent: #14b8a6;
  --accent-soft: #22d3ee;
  --border: #1e293b;
  --body-font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-start), var(--bg-end));
  color: var(--text);
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.7;
}

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

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

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
}

.header-inner,
.main,
.footer-inner {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 22px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.logo-main {
  height: clamp(32px, 12vw, 34px);
  width: auto;
}

/* ================================
   HERO IMAGE (center + responsive)
   ================================ */

.hero-image {
  margin: 24px 0;
  padding: 8px;  
  border-radius: 12px;
  text-align: center;
}

.hero-image img {
  display: block;
  margin: 0 auto;
  max-width: 647px;            /* desktop cap */
  width: 100%;                 /* shrink inside card on small screens */
  height: auto;
}

/* ================================ */

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
  border-color: var(--border);
  background: rgba(34, 211, 238, 0.08);
}

.main {
  flex: 1;
  width: 100%;
  padding-top: 30px;
  padding-bottom: 30px;
}

.content-card {
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
}

h1,
h2,
h3 {
  color: var(--text);
  margin-top: 0;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

h2 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

p {
  margin: 0 0 15px;
}

.meta {
  color: #94a3b8;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.post-item {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.62);
}

.post-item a {
  color: var(--accent-soft);
  font-weight: 700;
  font-size: 0.95rem;
}

.post-item .meta {
  margin: 6px 0 8px;
}

.footer {
  border-top: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.85);
}

.footer-inner {
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
}

.back-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
}

/* Responsive nav */
@media (max-width: 760px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }
}