.page-shell {
  min-height: 70vh;
  padding: 68px 0 88px;
}

.archive-hero,
.entry-header {
  margin-bottom: 35px;
  padding: 35px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 15%, rgba(121, 231, 255, .15), transparent 25%),
    linear-gradient(145deg, rgba(17, 27, 66, .95), rgba(8, 12, 31, .98));
  box-shadow: var(--shadow);
}

.archive-hero h1,
.entry-header h1 {
  max-width: 950px;
  margin: 10px 0 0;
  font-family: Orbitron, Inter, sans-serif;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.1;
  letter-spacing: -.045em;
}

.archive-description {
  max-width: 760px;
  margin-top: 12px;
  color: var(--muted);
}

.archive-description p {
  margin: 0;
}

.archive-grid {
  margin-top: 25px;
}

.content-container {
  width: min(calc(100% - 36px), 880px);
}

.single-entry {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(17, 27, 66, .92), rgba(8, 12, 31, .98));
  box-shadow: var(--shadow);
}

.single-entry .entry-header {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.entry-meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.entry-meta a {
  color: var(--accent);
}

.entry-featured {
  border-bottom: 1px solid var(--line);
}

.entry-featured img {
  width: 100%;
  max-height: 650px;
  object-fit: cover;
}

.entry-content {
  padding: clamp(24px, 5vw, 48px);
  color: #cad2ef;
  font-size: 16px;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 1.7em;
  margin-bottom: .55em;
  color: #fff;
  font-family: Orbitron, Inter, sans-serif;
  line-height: 1.28;
}

.entry-content h2 {
  font-size: clamp(25px, 4vw, 36px);
}

.entry-content h3 {
  font-size: clamp(20px, 3vw, 28px);
}

.entry-content p,
.entry-content li {
  color: #c6cfea;
}

.entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: rgba(121, 231, 255, .06);
  color: #eef2ff;
}

.entry-content pre,
.entry-content code {
  font-family: Consolas, Monaco, monospace;
}

.entry-content pre {
  overflow-x: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #050816;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.entry-content th {
  background: rgba(75, 124, 255, .14);
  color: #fff;
}

.entry-content figure {
  margin: 28px 0;
}

.entry-content figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.entry-content img {
  border-radius: 15px;
}

.entry-footer {
  padding: 0 clamp(24px, 5vw, 48px) 38px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list a {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(75, 124, 255, .08);
  color: var(--accent);
  font-size: 11px;
}

.post-navigation-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
}

.post-navigation-links > div {
  min-height: 60px;
  display: flex;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
}

.post-navigation-links > div:last-child {
  justify-content: flex-end;
  text-align: right;
}

.comments-area {
  margin-top: 35px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.comments-title,
.comment-reply-title {
  font-family: Orbitron, Inter, sans-serif;
}

.comment-list {
  padding-left: 22px;
}

.comment-list .comment {
  margin-bottom: 18px;
}

.comment-body {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(5, 8, 22, .5);
}

.comment-meta {
  font-size: 12px;
}

.comment-content {
  color: #c5ceed;
}

.comment-form label {
  display: block;
  margin-bottom: 5px;
  color: #dce3ff;
  font-weight: 700;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-field {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: #070b1d;
  color: #fff;
}

.comment-form input:focus,
.comment-form textarea:focus,
.search-field:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(121, 231, 255, .08);
}

.form-submit input,
.search-submit {
  min-height: 43px;
  padding: 0 19px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-form label {
  flex: 1;
}

.no-results,
.error-card {
  padding: clamp(35px, 7vw, 80px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 15%, rgba(139, 61, 255, .18), transparent 25%),
    var(--panel);
  box-shadow: var(--shadow);
  text-align: center;
}

.no-results h2,
.error-card h1 {
  margin: 10px 0;
  font-family: Orbitron, Inter, sans-serif;
  font-size: clamp(30px, 5vw, 50px);
}

.no-results p,
.error-card p {
  color: var(--muted);
}

.no-results .search-form,
.error-card .search-form {
  max-width: 520px;
  margin: 24px auto 0;
}

.error-page {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: 65px 0;
}

.error-code {
  display: block;
  background: linear-gradient(90deg, #fff, var(--accent), #b994ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: Orbitron, sans-serif;
  font-size: clamp(90px, 20vw, 190px);
  font-weight: 900;
  line-height: .9;
}

.error-actions {
  margin-top: 25px;
}

.error-actions .search-form {
  margin-top: 15px;
}

@media (max-width: 700px) {
  .page-shell {
    padding: 45px 0 65px;
  }

  .content-container {
    width: min(calc(100% - 22px), 880px);
  }

  .archive-hero,
  .entry-header {
    padding: 24px;
  }

  .post-navigation-links {
    grid-template-columns: 1fr;
  }

  .post-navigation-links > div:last-child {
    justify-content: flex-start;
    text-align: left;
  }

  .search-form {
    flex-direction: column;
  }

  .search-submit {
    width: 100%;
  }
}
