/* Cards */
.rail-card,
.card,
.detail,
.addon {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(18, 22, 28, .55);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
}

.rail-card {
  padding: 14px;
}

.card {
  padding: 16px;
  transition: transform .12s ease, border-color .12s ease;
}

.card:hover {
  transform: translateY(-1px);
  border-color: rgba(78, 161, 255, .35);
}

/* Card featured image */
.card-featured-image {
  width: 300px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
  display: block;
  float: left;
  margin-right: 1rem;
}

/* Content images */
.detail img,
.addon img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 16px 0;
}

/* Avatar and headline */
.headline-with-avatar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.avatar {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  border: 1px solid rgba(78, 161, 255, .18);
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.brand>div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.brand strong {
  font-family: var(--h);
  letter-spacing: -.02em;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  display: flex;
  align-items: center;
  opacity: 0.6;
  transition: opacity 0.2s;
  font-size: 18px;
}

.social-icons a:hover {
  opacity: 1;
}

/* Footer */
.footer .footer-content {
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.footer-links a {
  color: var(--muted);
  font-size: 12px;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-links .sep {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.nav a.active {
  color: var(--text);
  background: rgba(78, 161, 255, .12);
  border-color: rgba(78, 161, 255, .25);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(78, 161, 255, .35);
  background: rgba(78, 161, 255, .14);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
}

.btn:hover {
  background: rgba(78, 161, 255, .2);
}

.btn-ghost {
  background: rgba(15, 19, 24, .55);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(78, 161, 255, .35);
}

/* Headings */
.rail-title {
  font-family: var(--h);
  letter-spacing: -.04em;
  font-size: 22px;
  line-height: 1.1;
  margin: 0 0 8px;
}

.title {
  font-family: var(--h);
  letter-spacing: -.03em;
  font-size: 20px;
  line-height: 1.18;
  margin: 8px 0 6px;
}

.detail-title {
  font-family: var(--h);
  letter-spacing: -.04em;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
  margin: 8px 0 10px;
}

.summary,
.lede {
  margin: 0;
  color: var(--muted);
}

.lede {
  font-size: 16px;
  max-width: 75ch;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.meta-spacer {
  margin-left: auto;
}

/* Tags / badges */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 19, 24, .55);
  font-weight: 800;
  font-size: 12px;
  text-transform: lowercase;
}

.tag-post {
  border-color: rgba(78, 161, 255, .35);
}

.tag-publication {
  border-color: rgba(147, 112, 219, .35);
}

.tag-addon {
  border-color: rgba(132, 190, 255, .25);
}

.badge {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  border: 1px solid rgba(78, 161, 255, .35);
  background: rgba(78, 161, 255, .12);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(15, 19, 24, .6);
  padding: 7px 10px;
  border-radius: 999px;
}

/* Filters */
.filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.control {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(15, 19, 24, .6);
  min-height: 42px;
}

.control-grow {
  width: 100%;
}

.control label {
  font-size: 12px;
  color: var(--muted);
}

select,
input {
  font-family: var(--b);
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  width: 100%;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  cursor: pointer;
}

select option {
  background: #1a1f28;
  color: var(--text);
}

select option:checked,
select option:hover,
select option:focus {
  background: #2a3340;
  color: var(--text);
}

.hint {
  font-size: 12px;
  color: var(--muted);
}

/* Pills */
.pillrow {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(15, 19, 24, .55);
  padding: 6px 9px;
  border-radius: 999px;
}

/* Prose */
.prose {
  max-width: 75ch;
}

.prose h2,
.prose h3 {
  font-family: var(--h);
  letter-spacing: -.02em;
  margin: 22px 0 10px;
}

.prose p {
  margin: 0 0 14px;
}

.prose ul {
  margin: 0 0 14px 18px;
}

.prose.compact p {
  margin-bottom: 10px;
}

.embed {
  margin: 14px 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(15, 19, 24, .6);
}

.embed iframe {
  display: block;
  width: 100%;
  height: 315px;
}