/* zodiakk — blog post expand + brutalist pagination */

/* Open state on a .posts.list .row */
.posts.list .row {
  cursor: pointer;
  user-select: none;
}
.posts.list .row.open {
  background: #121315;
  padding-left: 12px;
  border-bottom: 1px solid #34383d;
}
.posts.list .row.open .title { color: #f2f2ef; }
.posts.list .row .idx { transition: color 160ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.posts.list .row.open .idx { color: #f2f2ef; }

/* Grid-layout open state */
.posts.grid .row.open {
  background: #121315;
  outline: 1px solid #34383d;
  outline-offset: -1px;
}

/* Expanded detail block */
.post-detail {
  border-top: 1px solid #23262a;
  border-bottom: 1px solid #23262a;
  background: #0b0c0d;
  padding: 40px 0 32px;
  margin: 0 0 -1px;
  animation: pd-in 420ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
@keyframes pd-in {
  from { opacity: 0; transform: translateY(-6px); max-height: 0; }
  to   { opacity: 1; transform: translateY(0);    max-height: 2400px; }
}

.pd-meta {
  display: flex;
  gap: 24px;
  padding: 0 0 24px;
  border-bottom: 1px solid #23262a;
  margin-bottom: 32px;
  font-family: "VCR OSD Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7a7f85;
}
.pd-meta span:last-child { color: #c9422b; margin-left: auto; }

.pd-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  padding-bottom: 40px;
}
.pd-copy p {
  font-family: "Inter Tight", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: #d8d9db;
  margin: 0 0 20px;
  max-width: 62ch;
  text-wrap: pretty;
}
.pd-copy p:first-child::first-letter {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 2.4em;
  line-height: 0.9;
  float: left;
  padding: 2px 10px 0 0;
  color: #f2f2ef;
  font-weight: 300;
}

.pd-aside {
  border-left: 1px solid #23262a;
  padding-left: 32px;
}
.pd-lab {
  font-family: "VCR OSD Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a7f85;
  margin-bottom: 16px;
}
.pd-quote {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.25;
  color: #f2f2ef;
  font-weight: 300;
  letter-spacing: -0.015em;
  margin: 0;
}
.pd-tags {
  display: flex;
  gap: 10px;
  font-family: "VCR OSD Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a6abb0;
}

.pd-strip {
  padding-top: 32px;
  border-top: 1px solid #23262a;
}
.pd-imgs {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #23262a;
  border: 1px solid #23262a;
}
.pd-fig {
  margin: 0;
  background: #0b0c0d;
  position: relative;
  overflow: hidden;
}
.pd-img {
  aspect-ratio: 4 / 5;
  filter: grayscale(0.9) contrast(1.08) brightness(0.65);
  transition: filter 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.pd-fig:hover .pd-img { filter: grayscale(0) contrast(1.08) brightness(0.85); }
.pd-fig figcaption {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  display: flex; justify-content: space-between;
  font-family: "VCR OSD Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f2f2ef;
  mix-blend-mode: difference;
}

.pd-foot {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #23262a;
  display: flex;
  gap: 24px;
  font-family: "VCR OSD Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7a7f85;
}
.pd-foot a { color: #a6abb0; }
.pd-foot a:hover { color: #f2f2ef; }
.pd-foot a:last-child { margin-left: auto; }


/* ------- BRUTALIST PAGINATION -------
   Edge buttons: big, chunky, labeled. Cells: numbered squares, 
   one inverted. Hairline everywhere. No rounded corners. */
.pager {
  margin-top: 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  gap: 1px;
  background: #23262a;
  border: 1px solid #23262a;
  font-family: "VCR OSD Mono", ui-monospace, monospace;
}
.pg-edge {
  background: #0b0c0d;
  border: 0;
  padding: 18px 28px;
  color: #d8d9db;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: inherit;
  cursor: pointer;
  transition: background 220ms cubic-bezier(0.2, 0.7, 0.2, 1),
              color    220ms cubic-bezier(0.2, 0.7, 0.2, 1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  min-width: 160px;
}
.pg-edge:hover:not(:disabled) { background: #121315; color: #f2f2ef; }
.pg-edge:disabled { color: #34383d; cursor: not-allowed; }
.pg-edge.right { justify-content: flex-end; }
.pg-arrow {
  font-size: 20px;
  line-height: 1;
  color: inherit;
}
.pg-edge-label {
  display: flex; flex-direction: column; gap: 6px;
  text-align: left;
}
.pg-edge.right .pg-edge-label { text-align: right; }
.pg-lab { font-size: 9px; color: #7a7f85; letter-spacing: 0.22em; }
.pg-num { font-size: 14px; color: inherit; letter-spacing: 0.1em; }
.pg-edge:disabled .pg-lab,
.pg-edge:disabled .pg-num { color: #34383d; }

.pg-cells {
  list-style: none; margin: 0; padding: 0;
  display: flex;
  gap: 1px;
  background: #23262a;
}
.pg-cells li { display: flex; }
.pg-cell {
  background: #0b0c0d;
  border: 0;
  color: #7a7f85;
  padding: 0;
  width: 64px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 180ms cubic-bezier(0.2, 0.7, 0.2, 1),
              color 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative;
  align-self: stretch;
}
.pg-cell:hover { background: #121315; color: #f2f2ef; }
.pg-cell.on {
  background: #f2f2ef;
  color: #0b0c0d;
  font-weight: 400;
}
.pg-cell.on::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; bottom: 8px;
  height: 1px;
  background: #0b0c0d;
}
