.article-header {
  padding-top: 4rem;
  margin-bottom: 3rem;
}

.article-tag-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.25rem;
}

.article-headline {
  font-family: var(--mono);
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

.reading-time {
  color: var(--text-muted);
}

.article-divider {
  width: 32px;
  height: 1px;
  background: var(--red);
  margin: 2rem 0;
}

.article-body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.85;
  color: color-mix(in srgb, var(--text) 82%, var(--bg));
}

.article-body p {
  margin-bottom: 1.75rem;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
  border-top: 0.5px solid var(--border);
  padding-top: 1rem;
}

.article-nav a {
  display: block;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  min-height: 68px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--surface) 60%, transparent), transparent);
  transition: border-color 0.15s, transform 0.15s, background-color 0.15s;
}

.article-nav a:hover {
  border-color: var(--red);
  transform: translateY(-1px);
  background: linear-gradient(140deg, var(--red-soft), transparent 70%);
}

.article-nav-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.article-nav-label::before {
  content: attr(data-arrow);
  margin-right: 0.25rem;
  color: var(--red);
}

.article-nav-title {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.article-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.15s;
}

.back-link:hover {
  color: var(--text);
}

.article-share-button {
  position: relative;
  min-height: 34px;
  padding: 0 0.6rem;
  border-radius: 999px;
  border: 0.5px solid var(--border);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, transform 0.15s;
  flex-shrink: 0;
}

.article-share-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.article-share-button svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.article-share-button:hover {
  border-color: var(--red-soft);
  background: color-mix(in srgb, var(--red) 12%, var(--surface));
  transform: translateY(-1px);
}

.article-share-button:focus-visible {
  outline: 1px solid var(--red);
  outline-offset: 2px;
}

.article-share-button::after {
  content: attr(data-feedback);
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-soft) 90%, var(--bg));
  border: 0.5px solid var(--border);
  border-radius: 6px;
  padding: 0.2rem 0.4rem;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.15s, transform 0.15s;
  pointer-events: none;
  white-space: nowrap;
}

.article-share-button.is-feedback-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.article-share-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 700px) {
  .article-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .article-header {
    padding-top: 3rem;
    margin-bottom: 2.25rem;
  }

  .article-body {
    font-size: 16px;
    line-height: 1.75;
  }

  .back-link {
    letter-spacing: 0.08em;
  }

  .article-footer-row {
    margin-top: 1.6rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 380px) {
  .article-headline {
    font-size: clamp(23px, 7vw, 30px);
  }

  .article-meta {
    font-size: 11px;
    gap: 0.35rem;
  }
}
