/* ============================================================
   DamnedX — Dev Log
   Layered on top of styles.css; uses the same tokens.
   ============================================================ */

.dl-hero {
  padding: clamp(120px, 16vw, 170px) 0 clamp(24px, 4vw, 40px);
  text-align: center;
  position: relative;
}

.dl-hero .section-lead {
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

.dl-hero .section-lead a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dl-hero .section-lead a:hover {
  color: var(--teal-bright);
}

.dl-hero-cta {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- index list ---------- */

.dl-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: clamp(60px, 9vw, 120px);
  max-width: 820px;
}

.dl-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.dl-card--img {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 2.5vw, 26px);
}

.dl-card-body {
  min-width: 0; /* let the summary wrap instead of stretching the flex row */
}

.dl-card-thumb {
  flex: 0 0 auto;
  width: clamp(72px, 11vw, 104px);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 480px) {
  .dl-card-thumb {
    display: none; /* below this the art squeezes the summary into a column of single words */
  }
}

.dl-card-thumb img {
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.55));
}

.dl-card:hover {
  border-color: rgba(65, 212, 226, 0.35);
  transform: translateY(-2px);
}

.dl-card-date {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 10px;
}

.dl-card-count {
  color: var(--muted);
  letter-spacing: 1px;
}

.dl-card-count::before {
  content: "·";
  margin-right: 10px;
}

.dl-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.25;
  margin: 0 0 12px;
}

.dl-card-title a {
  color: var(--ink);
  text-decoration: none;
}

.dl-card-title a:hover {
  color: var(--teal-bright);
}

.dl-card-summary {
  color: var(--ink-soft);
  margin: 0 0 16px;
  line-height: 1.65;
}

.dl-card-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0;
  font-size: 0.9rem;
}

.dl-read {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.dl-read:hover {
  color: var(--teal-bright);
}

.dl-thread {
  color: var(--muted);
  text-decoration: none;
}

.dl-thread:hover {
  color: var(--ink-soft);
}

.dl-archive-note {
  margin: 14px 0 0;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

/* ---------- single entry ---------- */

.dl-single {
  max-width: 760px;
  padding-top: clamp(110px, 15vw, 150px);
  padding-bottom: clamp(60px, 9vw, 110px);
}

.dl-back {
  margin: 0 0 26px;
  font-size: 0.88rem;
}

.dl-back a {
  color: var(--muted);
  text-decoration: none;
}

.dl-back a:hover {
  color: var(--teal);
}

.dl-head {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
}

.dl-head-text {
  min-width: 0;
  flex: 1 1 auto;
}

.dl-head-img {
  flex: 0 0 auto;
  width: clamp(90px, 16vw, 150px);
  height: auto;
  max-height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.6));
}

@media (max-width: 560px) {
  .dl-head-img {
    display: none; /* the title needs the full width more than the art does */
  }
}

.dl-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  line-height: 1.15;
  margin: 10px 0 14px;
  color: var(--ink);
}

.dl-meta {
  color: var(--teal);
  font-size: 0.82rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin: 0 0 34px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.dl-body {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.75;
}

/* ---------- the note (the only prose on the page) ---------- */

.dl-note {
  border-left: 3px solid var(--teal-deep);
  padding-left: clamp(16px, 2.5vw, 22px);
  margin-bottom: 42px;
}

.dl-note p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 14px;
}

.dl-note p:last-child {
  margin-bottom: 0;
}

/* ---------- categorised changes ---------- */

.dl-group {
  margin-bottom: 34px;
}

.dl-group-title {
  margin: 0 0 14px;
  font-size: 1rem;
}

.dl-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.dl-tag--added { color: #4ade80; }
.dl-tag--fixed { color: var(--teal); }
.dl-tag--changed { color: var(--gold); }
.dl-tag--removed { color: #f87171; }
.dl-tag--behind-the-scenes { color: var(--muted); }

.dl-changes {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dl-changes li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
}

.dl-changes li:last-child {
  border-bottom: 0;
}

.dl-changes li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-deep);
}

.dl-refs {
  white-space: nowrap;
}

.dl-refs a,
.dl-refs span {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.76rem;
  color: var(--muted);
  text-decoration: none;
  opacity: 0.75;
}

.dl-refs a:hover {
  color: var(--teal);
  opacity: 1;
}

.dl-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
  color: var(--ink);
  margin: 42px 0 14px;
}

.dl-body h3 {
  font-size: 1.08rem;
  color: var(--gold);
  margin: 32px 0 10px;
  letter-spacing: 0.3px;
}

.dl-body h2:first-child,
.dl-body h3:first-child {
  margin-top: 0;
}

.dl-body p {
  margin: 0 0 18px;
}

.dl-body strong {
  color: var(--ink);
}

.dl-body a {
  color: var(--teal);
}

.dl-body a:hover {
  color: var(--teal-bright);
}

.dl-body ul,
.dl-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.dl-body li {
  margin-bottom: 9px;
}

.dl-body li::marker {
  color: var(--teal-deep);
}

.dl-body code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}

.dl-body blockquote {
  margin: 0 0 20px;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--gold-deep);
  color: var(--muted);
}

.dl-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 34px 0;
}

.dl-prs {
  margin: 38px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 2;
}

.dl-prs-label {
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-size: 0.74rem;
  margin-right: 6px;
}

.dl-prs a,
.dl-prs span:not(.dl-prs-label) {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 8px;
  margin-right: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.dl-prs a:hover {
  color: var(--teal);
  border-color: rgba(65, 212, 226, 0.35);
}

.dl-discuss {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- feature posts (long-form, kind: feature) ---------- */

.dl-card-feature {
  color: var(--gold);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 1px 9px;
}

.dl-feature p,
.dl-feature li {
  line-height: 1.75;
}

.dl-feature h2 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  margin: 44px 0 14px;
}

.dl-feature h3 {
  color: var(--ink);
  font-size: 1.08rem;
  margin: 30px 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dl-feature ul {
  padding-left: 20px;
}

.dl-feature blockquote {
  border-left: 3px solid var(--gold);
  margin: 22px 0;
  padding: 4px 0 4px 18px;
  color: var(--ink);
}

.dl-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
  vertical-align: middle;
  flex: 0 0 auto;
}

.dl-figure {
  margin: 24px 0;
  text-align: center;
}

.dl-figure img {
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.dl-figure figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
}
