/* News section — page layout only. Chrome and tokens come from
   assets/site.css, which this must never fight. */
*{ box-sizing:border-box; }
html,body{ margin:0; background:var(--bg); color:var(--fg);
  font-family:Geist, system-ui, sans-serif; -webkit-font-smoothing:antialiased; }
a{ color:var(--berry); }
a:hover,a:focus-visible{ color:var(--orange); }
.wrap{ max-width:64rem; margin:0 auto; padding:calc(var(--bar-h) + 3.5rem) clamp(1rem,4vw,2rem) 5rem; }
/* Also worn by <h1> and <h2> on the index, so the weight is pinned: without
   it a heading would render at 500 and a <p> kicker at 400, for no reason a
   reader could see. */
.kicker{ font-family:Genos, system-ui, sans-serif; text-transform:uppercase;
  letter-spacing:.18em; font-size:1.15rem; font-weight:400; color:var(--berry);
  margin:0 0 .5rem; }
/* Every issue page opens with this, above its kicker. Issue pages are mostly
   reached from shared links and search, where the browser's back button does
   not lead to /news - so the way back has to be on the page, at the top, not
   only in the footer under a very tall PDF. */
.back{ display:inline-block; font-family:Genos, system-ui, sans-serif; text-transform:uppercase;
  letter-spacing:.16em; font-size:.95rem; color:var(--muted); text-decoration:none;
  margin:0 0 1.25rem; }
.back:hover,.back:focus-visible{ color:var(--orange); }
h1{ font-weight:500; font-size:clamp(2.2rem,6vw,3.4rem); line-height:1.02;
  letter-spacing:-.03em; margin:0 0 1rem; }
.rule{ border:0; border-top:1px solid #2a2a2a; margin:3rem 0; }
/* A strand is one list on the index: Jellyfish issues, or everything else.
   They are deliberately identical, so a third strand needs markup only. */
.strand{ margin-top:2.5rem; }

/* Heading line. */
.strand-head{ display:flex; align-items:center; justify-content:space-between;
  gap:1rem; }

/* ---------------------------------------------------------------- rails */
/* A strand scrolls SIDEWAYS instead of growing downwards, so a hundred
   Jellyfish issues cost exactly as much page as one.

   A horizontal scroller inside a vertically scrolling page is safe in a way
   two side-by-side VERTICAL scrollers would not be: the axes never compete,
   so nothing traps the wheel, and a phone swipes it natively. Native overflow
   does the work - no library, and it keeps working if rail.js never loads. */
.rail{ list-style:none; margin:0; padding:0 0 1rem;
  display:flex; gap:clamp(1rem,3vw,1.75rem);
  overflow-x:auto; overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;
  scrollbar-width:thin; scrollbar-color:#3a3a3a transparent; }

/* Card width is deliberately NOT a round fraction of the rail: the next card
   must sit half-visible at the edge or nobody discovers the row scrolls. */
.rail > li{ flex:0 0 clamp(13rem,62vw,17rem); scroll-snap-align:start; }

/* The rail is a scrollable region, so it must be reachable by keyboard -
   tabindex in the markup, and a focus ring that survives the photography. */
.rail:focus-visible{ outline:2px solid var(--orange); outline-offset:4px; }

/* Arrows either side of the pictures, centred on them (rail.js sets --arrow-y).
   Outside the rail where the page margin has room for them, so they never
   cover the artwork; over the picture edges, on a dark backing, where not. */
.rail-frame{ position:relative; }
.rail-frame > .rail-arrow{ position:absolute; z-index:1; top:var(--arrow-y,40%);
  transform:translateY(-50%); background:rgba(17,17,17,.85); }
.rail-frame > .rail-prev{ left:.4rem; }
.rail-frame > .rail-next{ right:.4rem; }
.rail-frame > .rail-arrow[hidden]{ display:none; }
@media (min-width:68rem){
  .rail-frame > .rail-arrow{ background:none; }
  .rail-frame > .rail-prev{ left:-2.6rem; }
  .rail-frame > .rail-next{ right:-2.6rem; }
}
.rail-arrow{ width:2rem; height:2rem; display:grid; place-items:center;
  background:none; color:var(--berry); border:1px solid var(--berry);
  cursor:pointer; font:inherit; line-height:1; padding:0; }
.rail-arrow:hover:not(:disabled),.rail-arrow:focus-visible{ color:var(--bg);
  background:var(--orange); border-color:var(--orange); }
.rail-arrow:disabled{ opacity:.3; cursor:default; }
.rail-arrow svg{ width:1rem; height:1rem; }

/* ---------------------------------------------------------------- cards */
/* One card, for BOTH a Jellyfish issue and any other article. It was called
   .issue when Jellyfish was the only thing here; a press announcement is not
   an issue of anything. Vertical now, because it lives in a rail. */
.entry{ display:block; }

/* Covers are portrait and photographs are landscape, so the frame is squared
   and the image cropped to fill it - otherwise every card in a row would be a
   different height. Nudge a bad crop per entry with
   style="object-position:top" (or left/right/a percentage). */
.entry img{ width:100%; aspect-ratio:1/1; object-fit:cover; display:block;
  border:1px solid #2a2a2a; }
.entry h3{ font-weight:500; font-size:1.25rem; letter-spacing:-.02em;
  margin:.9rem 0 .3rem; }
.entry h3 a{ text-decoration:none; }
.entry .date{ font-family:Genos, system-ui, sans-serif; text-transform:uppercase;
  letter-spacing:.16em; font-size:.95rem; color:var(--muted); margin:0 0 .7rem; }
.entry p{ line-height:1.55; font-size:.95rem; color:#cfcfcf; }
.entry .btn{ margin-top:1rem; font-size:1rem; padding:.45rem .9rem; }

.btn{ display:inline-block; font-family:Genos, system-ui, sans-serif; text-transform:uppercase;
  letter-spacing:.12em; font-size:1.1rem; text-decoration:none; color:var(--berry);
  border:1px solid var(--berry); padding:.55rem 1.1rem; margin:1.25rem .6rem 0 0; }
.btn:hover,.btn:focus-visible{ color:var(--bg); background:var(--orange); border-color:var(--orange); }
/* An issue is its PDF's pages as images, stacked: every phone and browser
   shows a picture, where an embedded PDF viewer fails outright on Android.
   Made by Newsletter/issue-pages.py. The PDF itself is the button above. */
.pages{ margin-top:2rem; display:grid; gap:1.25rem; }
.pages img{ display:block; width:100%; height:auto; border:1px solid #2a2a2a;
  background:#1a1a1a; }
.foot{ font-size:.9rem; color:var(--muted); line-height:1.6; margin-top:3rem; }

/* Subscribe block. Deliberately AFTER the issues, not before them: someone who
   has just read something is a far better ask than someone who has not. Sits
   inside the Jellyfish strand rather than at the foot of the page, because it
   asks for Jellyfish specifically, not for the page.

   The box IS the button. It used to be a heading with a button under it that
   said the same thing twice, so the heading became the label and the <aside>
   became the <a>. Fires the same RECEIVE modal as the top bar — one signup
   path, one backend. */
.signup{ display:block; text-align:center; text-decoration:none;
  font-size:1.5rem; font-weight:500; letter-spacing:-.02em; color:var(--berry);
  border:1px solid var(--berry); background:#151515;
  padding:clamp(1.4rem,3vw,2rem); margin:3rem 0 0; }
.signup:hover,.signup:focus-visible{ color:var(--bg); background:var(--orange);
  border-color:var(--orange); }

/* ------------------------------------------------------------- articles */
/* A story extracted word for word from a Jellyfish issue, or any other
   article that lives on this site. One photo, body text, an optional pull
   quote, then a line linking back to the issue it came from. */
.article figure{ margin:1.5rem 0 2rem; }
.article figure img{ display:block; width:100%; height:auto; border:1px solid #2a2a2a; }
.article figcaption{ font-size:.9rem; color:var(--muted); margin-top:.6rem; line-height:1.5; }
.article .body{ max-width:42rem; }
.article .body p{ font-size:1.08rem; line-height:1.7; color:#dcdcdc; margin:0 0 1.2rem; }
.article .pull{ margin:2rem 0; padding:0 0 0 1.25rem; border-left:2px solid var(--berry); }
.article .pull p{ font-size:1.3rem; line-height:1.5; color:var(--fg); margin:0 0 .8rem; }
.article .pull footer{ font-family:Genos, system-ui, sans-serif; text-transform:uppercase;
  letter-spacing:.12em; font-size:.95rem; color:var(--muted); }
.article .source{ font-family:Genos, system-ui, sans-serif; text-transform:uppercase;
  letter-spacing:.14em; font-size:1rem; color:var(--muted); margin:2.5rem 0 0; }
