/* The journals page: the home page's journals screen, grown into a page.
 *
 * A petrol band with the mesh carries the way back and the title; a thin steel-blue line; then the quiet light ground and the
 * covers, four
 * to a row, the first row standing on the line. Under each cover only its
 * name and its White List category; a cover leads to its journal's page.
 * --jband is measured by static/js/stand.js.
 */

.jpage {
  --jb: var(--jband, 26rem);
  --stand-light: color-mix(in srgb, var(--brand-mist) 90%, var(--brand));
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-bottom: var(--space-3xl);
  background: var(--stand-light);
}
.jpage__band {
  position: absolute;
  inset: 0 0 auto;
  height: calc(var(--jb) + 4px);
  z-index: 0;
  border-bottom: 4px solid transparent;
  background:
    radial-gradient(120% 90% at 85% 0%, var(--brand-deep-2), transparent 65%),
    var(--brand-deep);
}
/* less mesh than on the home page: sparser, fainter, only towards the right
   (the home page has it all; a journal's own page just a trace) */
.jpage__band-mesh {
  height: var(--jb);
  opacity: 0.7;
  -webkit-mask-image: linear-gradient(100deg, transparent 38%, #000 82%);
  mask-image: linear-gradient(100deg, transparent 38%, #000 82%);
}
.jpage__inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: calc(var(--space-xl) + var(--space-md)); padding-top: var(--space-lg); }

/* the way back, quiet, on the band */

.jpage__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); margin-top: calc(-1 * var(--space-xl)); }
.jpage__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.5rem);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #fff;
}

/* the wall: four big covers to a row (three, then two on smaller screens) */
.jstand.jstand--wall { --cols: 2; --gap-x: var(--space-lg); --gap-y: var(--space-xl); max-width: none; }
@media (min-width: 40rem) { .jstand.jstand--wall { --cols: 3; --gap-x: var(--space-xl); } }
@media (min-width: 62rem) { .jstand.jstand--wall { --cols: 4; --gap-x: clamp(2rem, 3vw, 3rem); --gap-y: var(--space-2xl); } }
.jstand--wall .jstand__link { display: grid; gap: var(--space-sm); align-content: start; }

/* under each cover: the name, and its White List category with the white dot */
/* a caption to the picture, not a heading: small, from the cover's left edge, lines broken as in plain text */
.jwall__title { text-align: left; font-family: var(--font-display); font-size: 0.9375rem; font-weight: 700; line-height: 1.3; color: var(--color-ink); text-wrap: pretty; transition: color 0.2s ease; }
.jstand--wall .jstand__link:hover .jwall__title { color: color-mix(in srgb, var(--jc) 55%, var(--color-ink)); }


.jpage__empty { padding: var(--space-xl) 0; color: var(--color-ink-2); }

/* the editorial fee: a dark panel at the foot, the figures in the text set
   strong, and the way on to the authors' page */
.jfee {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md) var(--space-2xl);
  align-items: center;
  margin-top: var(--space-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(100% 140% at 100% 0%, var(--brand-deep-2), transparent 60%),
    var(--brand-deep);
  box-shadow: 0 30px 60px -34px rgb(6 30 38 / 0.7);
}
@media (min-width: 62rem) { .jfee { grid-template-columns: 14rem minmax(0, 1fr) auto; } }
.jfee__title { margin: 0; font-family: var(--font-display); font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem); font-weight: 650; line-height: 1.15; }
.jfee__body { color: var(--on-brand-2); }
.jfee__body p { margin: 0 0 0.5rem; }
.jfee__body p:last-child { margin-bottom: 0; }
.jfee__body strong { font-weight: 500; color: #fff; }
.jfee__more { justify-self: start; display: inline-flex; align-items: center; }

/* the light ground runs straight into the footer */
body:has(.jpage) .site-footer { margin-top: 0; }

