.release-archive-page {
  --archive-ink: #213b32;
  --archive-paper: #f8f7f1;
  --archive-rule: #d4d4c5;
  background: var(--archive-paper);
  color: var(--archive-ink);
}
.release-archive-page :is(header, footer) { border-color: var(--archive-rule); }
.release-archive-page .brand {
  font: 700 1.6rem/1 Georgia, serif;
  letter-spacing: -.035em;
  color: var(--archive-ink);
}
.release-archive-page .brand span { color: #775c3d; font-style: italic; }
.release-archive-page h1 {
  margin: .25rem 0 .6rem;
  font: 500 clamp(2rem, 5vw, 3.25rem)/1.07 Georgia, serif;
  letter-spacing: -.047em;
}
.archive-counts {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .5rem;
  margin: 0 0 1.3rem;
}
.archive-counts span {
  padding: .15rem .5rem;
  border-radius: .3rem;
  background: #e9ede4;
  color: #354e40;
  font-size: .83rem;
}
.release-archive-page .books {
  display: grid;
  gap: .65rem;
  border: 0;
  background: transparent;
}
.release-archive-page .books li,
.release-archive-page .books li + li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "actions";
  gap: .55rem .8rem;
  align-items: start;
  padding: .75rem .8rem;
  border: 1px solid #dedfd4;
  border-radius: .55rem;
  background: #fffdf7;
}
.release-archive-page .books li:has(.archive-cover) {
  grid-template-columns: clamp(3.8rem, 17vw, 5.4rem) minmax(0, 1fr);
  grid-template-areas: "image copy" "actions actions";
}
.release-archive-page .books li > div:first-child {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.release-archive-page .books strong {
  font: 500 clamp(1.2rem, 2.2vw, 1.65rem)/1.15 Georgia, serif;
  letter-spacing: -.025em;
}
.release-archive-page .books strong a { color: inherit; text-decoration: none; }
.release-archive-page .books strong a:hover { text-decoration: underline; }
.release-archive-page .books li p { color: #434e45; margin: .25rem 0 .15rem; font-size: .85rem; line-height: 1.4; }
.release-archive-page .books li p:empty { display: none; }
.release-archive-page .books small { color: #59635a; font: .76rem/1.4 ui-monospace, monospace; }
.release-archive-page .books small time::before { content: "· "; }
.archive-subtitle { order: -1; margin-block: .15rem .25rem; color: #4b584b; font: italic .88rem/1.25 Georgia, serif; }
.release-archive-page .books strong { order: -2; }
.archive-cover {
  grid-area: image;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: .2rem;
  object-fit: contain;
  background: transparent;
}
.archive-cover[hidden] { display: none; }
.release-archive-page .books .actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: .4rem;
  width: min(100%, 23rem);
}
.release-archive-page .books .actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .25rem .35rem;
  border: 1px solid #cddbd2;
  border-radius: .4rem;
  text-align: center;
  text-decoration: none;
  font-size: .8rem;
  line-height: 1.2;
}
.release-archive-page .books .actions a:first-child {
  background: #e9f1eb;
  color: #245343;
}
.release-archive-page .books .actions a:hover { border-color: #688979; }
@media (min-width: 50rem) {
  .release-archive-page .books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.archive-edition {
  display: inline-block;
  padding: .08rem .32rem;
  border-radius: .25rem;
  background: #efeee5;
  color: #4b584b;
  font: 650 .73rem/1.25 system-ui, sans-serif;
  white-space: nowrap;
}
.archive-edition { margin-inline-start: .2rem; }
.archive-publisher-logo {
  display: block;
  width: auto;
  height: 1.25rem;
  max-width: 7.25rem;
  margin-block: .2rem .1rem;
  padding: .15rem .25rem;
  border-radius: .2rem;
  background: #253c32;
  object-fit: contain;
}

.release-archive-page .books.has-feature > li:first-child {
  grid-column: 1 / -1;
  grid-template-columns: minmax(75px, .68fr) minmax(0, 1fr);
  grid-template-areas: "image copy" "image actions";
  align-items: center;
  padding: clamp(.85rem, 3vw, 1.75rem);
  border: 0;
  border-radius: .35rem;
  margin-bottom: .35rem;
  color: #fff8ef;
  background: #3d2938;
}
.release-archive-page .books.has-feature > li:first-child:not(:has(.archive-cover:not([hidden]))) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "actions";
}
.release-archive-page .has-feature > li:first-child .archive-cover {
  max-height: 246px;
  background: transparent;
}
.release-archive-page .has-feature > li:first-child strong {
  font-size: clamp(1.4rem, 4.4vw, 2.5rem);
  text-wrap: balance;
}
.release-archive-page .has-feature > li:first-child .archive-subtitle {
  order: -1;
  margin-top: .25rem;
  color: #fcf0eb;
  font: italic 1.05rem/1.25 Georgia, serif;
}
.release-archive-page .has-feature > li:first-child .archive-imprint {
  order: -3;
  margin-bottom: .25rem;
  color: #efcebc;
  font-size: .81rem;
  font-weight: 650;
}
.archive-imprint .archive-publisher-logo { display: inline-block; margin: 0; vertical-align: middle; }
.release-archive-page .has-feature > li:first-child :is(p, small, .actions a) { color: #f1e8e8; }
.release-archive-page .has-feature > li:first-child p { font-size: .94rem; }
.release-archive-page .has-feature > li:first-child .actions {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .85rem;
}
.release-archive-page .has-feature > li:first-child .actions a {
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: start;
  text-decoration: underline;
  font-size: .9rem;
}
.release-archive-page .has-feature > li:first-child a:focus-visible { outline-color: #f0c392; }

.release-archive-page .archive-sample {
  display: block;
  min-width: 0;
  margin-top: .45rem;
  color: #35584a;
  text-decoration: none;
}
.archive-sample-label {
  display: block;
  margin-bottom: .12rem;
  font: 650 .72rem/1.3 system-ui, sans-serif;
  text-decoration: underline;
  text-underline-offset: .15em;
}
.archive-sample :is(q,.archive-summary) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  font: italic .88rem/1.4 Georgia, serif;
}
.archive-sample .archive-summary { font-style: normal; }
.release-archive-page .has-feature > li:first-child .archive-sample { color: #fff1e8; }

/* Reserve the jacket column when the ISBN image service has no cover. */
.release-archive-page .books li:has(.archive-cover[hidden]):not(.has-feature > li:first-child)::before {
  content: "Kapak görseli yok";
  grid-area: image; display:grid; place-items:center; align-self:start; text-align:center;
  aspect-ratio:2/3; padding:.4rem; border:1px solid #d7dbd3; border-radius:3px;
  background:#f2f2ed; color:#526158; font:500 .78rem/1.35 system-ui,sans-serif;
}

.release-archive-page main > h1 { margin-top: 1.25rem; }
.archive-neighbors { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: -.5rem 0 1rem; }
.archive-neighbors a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.archive-neighbors [rel="next"] { margin-inline-start: auto; }
.months a strong { line-height: 1.3; }
.months a span { flex-shrink: 0; }
