* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100vh; }
body {
  background: #F6F8FC;
  font-family: 'Hanken Grotesk', -apple-system, sans-serif;
  color: #161D2B;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

.h-nav {
  background: rgba(246, 248, 252, .95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(22, 29, 43, .08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.h-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.h-logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.h-back {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(22, 29, 43, .1); background: #fff;
  display: flex; align-items: center; justify-content: center; color: #161D2B;
}
.h-gap { flex: 1; }
.h-user { display: flex; align-items: center; gap: 8px; }
.h-av {
  width: 32px; height: 32px; border-radius: 50%;
  font: 600 12px 'Hanken Grotesk';
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0; background: #D7E4F8; color: #1d52a8;
}
.h-av img { width: 100%; height: 100%; object-fit: cover; }
.h-uname { font: 600 13px 'Hanken Grotesk'; color: #161D2B; }
.h-logout {
  background: none; border: 1px solid rgba(22, 29, 43, .1);
  border-radius: 8px; padding: 5px 10px;
  font: 500 12px 'Hanken Grotesk'; color: #7d8593;
}
.p-btn {
  border: 1px solid rgba(22, 29, 43, .15); background: #fff;
  border-radius: 11px; padding: 8px 14px;
  font: 600 12.5px 'Hanken Grotesk'; color: #3d4452;
}

.jn-page { max-width: 1100px; margin: 0 auto; padding: 28px 24px 60px; }
.jn-head { margin-bottom: 20px; }
.jn-head h1 {
  font: 600 30px 'Newsreader', serif;
  color: #161D2B;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.jn-head p { font: 400 15px/1.55 'Hanken Grotesk'; color: #5c6470; max-width: 560px; }

.jn-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 4px;
}
.jn-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(22, 29, 43, .12);
  background: #fff;
  font: 600 12.5px 'Hanken Grotesk';
  color: #5c6470;
  white-space: nowrap;
  transition: .15s;
}
.jn-pill:hover {
  border-color: #2C6FD6;
  color: #2C6FD6;
}
.jn-pill.on {
  background: #2C6FD6;
  border-color: #2C6FD6;
  color: #fff;
}

.jn-feed { min-width: 0; }

.jn-card {
  background: #fff; border: 1px solid rgba(22, 29, 43, .08);
  border-radius: 16px; overflow: hidden; margin-bottom: 20px;
  transition: transform .18s, box-shadow .18s;
}
.jn-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(22, 29, 43, .08); }
.jn-card-body { padding: 20px 22px 18px; }
.jn-card-title {
  font: 600 20px/1.3 'Newsreader', serif; color: #161D2B; margin-bottom: 10px;
}
.jn-card-title:hover { color: #2C6FD6; }
.jn-card-excerpt {
  font: 400 14px/1.6 'Hanken Grotesk'; color: #5c6470; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.jn-card-img {
  display: block; width: 100%; max-height: 360px; object-fit: cover;
  background: #E8EDF5;
}
.jn-card-ph, .jn-cover-ph {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #E8EDF5 0%, #D7E4F8 100%);
  color: #7d94b8;
}
.jn-card-ph { min-height: 200px; }
.jn-cover-ph { width: 100%; min-height: 280px; border-radius: 16px; margin-bottom: 24px; }
.jn-card-meta {
  display: flex; align-items: center; gap: 6px;
  font: 500 12px 'JetBrains Mono', monospace; color: #95a0ae;
  text-transform: uppercase; letter-spacing: .04em;
}
.jn-section-title {
  font: 600 22px 'Newsreader', serif; color: #161D2B;
  margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 2px solid rgba(44, 111, 214, .25);
}

.jn-article { max-width: 760px; margin: 0 auto; }
.jn-crumb { font: 500 13px 'Hanken Grotesk'; color: #7d8593; margin-bottom: 18px; }
.jn-crumb a { color: #2C6FD6; }
.jn-crumb a:hover { text-decoration: underline; }
.jn-title {
  font: 600 36px/1.15 'Newsreader', serif; color: #161D2B;
  letter-spacing: -.02em; margin-bottom: 16px;
}
.jn-lead { font: 400 18px/1.6 'Hanken Grotesk'; color: #3d4452; margin-bottom: 22px; }
.jn-cover {
  width: 100%; max-height: 520px; object-fit: cover;
  border-radius: 16px; margin-bottom: 24px; background: #E8EDF5;
}
.jn-author {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.jn-author-av {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  background: #D7E4F8;
}
.jn-author-name { font: 600 14px 'Hanken Grotesk'; color: #161D2B; }
.jn-stats {
  display: flex; gap: 18px; font: 500 12px 'JetBrains Mono', monospace;
  color: #95a0ae; text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 32px;
}
.jn-block { margin-bottom: 28px; }
.jn-block p { font: 400 17px/1.75 'Hanken Grotesk'; color: #303744; margin-bottom: 16px; }
.jn-block img {
  width: 100%; border-radius: 12px; margin: 12px 0 20px;
  box-shadow: 0 8px 24px rgba(22, 29, 43, .08);
}
.jn-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.jn-tag {
  padding: 6px 12px; border-radius: 999px; background: #EEF2F8;
  font: 600 12px 'Hanken Grotesk'; color: #5c6470;
}
.jn-tag:hover { background: rgba(44, 111, 214, .12); color: #2C6FD6; }

.jn-comments { margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(22, 29, 43, .08); }
.jn-comments h2 { font: 600 22px 'Newsreader', serif; margin-bottom: 18px; }
.jn-comment-form textarea {
  width: 100%; min-height: 110px; padding: 14px 16px;
  border: 1px solid rgba(22, 29, 43, .12); border-radius: 12px;
  font: 400 15px 'Hanken Grotesk'; resize: vertical; outline: none;
}
.jn-comment-form textarea:focus { border-color: #2C6FD6; }
.jn-comment-submit {
  margin-top: 12px; background: #2C6FD6; color: #fff; border: none;
  border-radius: 10px; padding: 11px 18px; font: 600 13px 'Hanken Grotesk';
}
.jn-comment-submit:hover { background: #1f5fc4; }
.jn-comment {
  display: flex; gap: 14px; padding: 18px 0;
  border-bottom: 1px solid rgba(22, 29, 43, .06);
}
.jn-comment-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #D7E4F8; flex-shrink: 0; }
.jn-comment-author { font: 600 14px 'Hanken Grotesk'; margin-bottom: 4px; }
.jn-comment-text { font: 400 14px/1.6 'Hanken Grotesk'; color: #5c6470; }
.jn-login-prompt { font: 400 14px 'Hanken Grotesk'; color: #5c6470; }
.jn-login-prompt a { color: #2C6FD6; font-weight: 600; }

.jn-related { margin-top: 48px; }
.jn-related h2 { font: 600 22px 'Newsreader', serif; margin-bottom: 16px; }
.jn-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.jn-related-card {
  background: #fff; border: 1px solid rgba(22, 29, 43, .08);
  border-radius: 12px; overflow: hidden; transition: transform .15s;
}
.jn-related-card:hover { transform: translateY(-2px); }
.jn-related-img { width: 100%; height: 140px; object-fit: cover; background: #E8EDF5; }
.jn-related-title {
  padding: 12px 14px; font: 600 13px/1.35 'Hanken Grotesk';
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.s-foot { border-top: 1px solid rgba(22, 29, 43, .08); padding: 20px 40px; background: #F6F8FC; }
.s-foot-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.s-foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.s-foot-links a { font: 500 12.5px 'Hanken Grotesk'; color: #7d8593; }
.s-foot-links a:hover { color: #161D2B; }
.s-foot-copy { font: 400 12px 'Hanken Grotesk'; color: #aab4c1; }

@media (min-width: 768px) { .h-nav { display: none; } }
@media (max-width: 767px) {
  .app-body { padding-bottom: 84px; }
  .jn-page { padding: 20px 16px 32px; }
  .jn-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .jn-pills::-webkit-scrollbar { display: none; }
  .jn-title { font-size: 28px; }
}
