/* ==========
   BASE
   ========== */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    sans-serif;
  background: radial-gradient(circle at top, #f6f6f6, #ffffff 55%);
  color: #111111;
  -webkit-font-smoothing: antialiased;
}

/* ==========
   TOP BAR
   ========== */

.top-bar {
  padding: 10px 20px;
}

.top-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.top-link {
  font-size: 13px;
  color: #555555;
  text-decoration: none;
}

.top-link:hover {
  color: #000000;
}

/* ==========
   LAYOUT
   ========== */

.page {
  min-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 16px;
}

.post-card {
  width: 100%;
  max-width: 780px;
  background: #ffffff;
  border-radius: 32px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.08);
  padding: 30px 28px 26px;
}

/* Pill */

.pill-row {
  margin-bottom: 14px;
}

.pill {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
}

/* Headline & meta */

.post-title {
  font-size: clamp(30px, 4.4vw, 42px);
  margin: 0 0 8px;
  line-height: 1.1;
}

.post-meta {
  font-size: 13px;
  color: #777777;
  margin-bottom: 12px;
}

.post-summary {
  margin: 0 0 18px;
  font-size: 18px;
  color: #555555;
  line-height: 1.6;
}

.post-divider {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 10px 0 18px;
}

/* ==========
   POST BODY – typewriter style
   ========== */

.post-body {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 500;
  color: #222222;
}

.post-body p {
  margin: 0 0 14px;
}

.post-body ul {
  margin: 0 0 16px 1.2em;
  padding: 0;
}

.post-body li {
  margin-bottom: 6px;
}

/* Links inside the post */

.post-body a {
  color: #555555;           /* grey links */
  text-decoration: none;    /* no underline */
  font-weight: 700;
}

.post-body a:hover {
  color: #000000;
}

/* ==========
   POST FOOTER NAV
   ========== */

.post-footer {
  border-top: 1px solid #f5f5f5;
  margin-top: 18px;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-nav {
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  color: #555555;
  text-decoration: none;
}

.post-nav:hover {
  color: #000000;
}

/* ==========
   FOOTER
   ========== */

.footer {
  width: 100%;
  margin-top: 18px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #888888;
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer-links a {
  color: #666666;
  text-decoration: none;
}

.footer-links a:hover {
  color: #111111;
}

/* Blog post images */

.post-image {
  margin: 22px 0;
  text-align: center;
}

.post-image img {
  width: 100%;
  max-width: 680px;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.post-image-caption {
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  color: #666666;
  margin-top: 8px;
  text-align: center;
}

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

@media (max-width: 640px) {
  .post-card {
    border-radius: 24px;
    padding: 22px 18px 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
}