/* goonbate: what's new (/new/). sits on style.css + releases.css + pages.css and uses their parts as they are: the mini
   disc, the tier badges, the library marks, the night headings, the hand-drawn icons, the house inversion on hover.
   the page, top to bottom: the title > just out (the newest discs) > landing next (the calendar's next few) > everything
   so far: month by month, night by night, one row a release, with the hand-written updates in among them by date.
   every row is written by the server builder from releases/data.json, so the page reads whole with no script; the script
   (js/pages.js) only adds the filters and keeps unpublished rows in step with the data.
   motion: none of its own. the months open and shut as cuts, hover is the house inversion. */

/* ---------- the rows: one release each (mini disc, name, where it lives / how long / which pig) ---------- */
.wn-rows { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: .15rem .9rem; min-width: 0; }
.wn-row { min-width: 0; }
.wn-row[hidden], .wn-night[hidden], .wn-month[hidden] { display: none; }
.wn-a { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "d t" "d m"; align-items: center; gap: .2rem .9rem; min-height: 4rem;
  padding: .5rem .65rem .5rem .45rem; border-radius: 10px; color: var(--ink); text-decoration: none; }
.wn-a .rel-mini { grid-area: d; --m: 54px; }
.wn-t { grid-area: t; align-self: end; font-family: var(--display); font-stretch: condensed; font-weight: 700; font-size: clamp(1.25rem, 1.55vw, 1.45rem); line-height: 1; text-transform: lowercase; text-wrap: balance; }
.wn-m { grid-area: m; align-self: start; display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .8rem; font-family: var(--display); font-stretch: condensed; font-weight: 700;
  font-size: 1.02rem; line-height: 1.2; text-transform: lowercase; color: var(--ink-60); }                                  /* 6.9:1 on black */
.wn-m .rel-col--s { font-size: 1em; }
.wn-len { display: inline-flex; align-items: center; gap: .3rem; }
.wn-len .rel-ic { width: 1.05em; height: 1.05em; }
.wn-who { display: inline-flex; align-items: center; gap: .35rem; }
.wn-who .rel-tier--s img { height: 22px; width: auto; display: block; }
a.wn-a:focus-visible { background: var(--ink); color: #000; outline: none; }
a.wn-a:focus-visible * { color: #000; }
a.wn-a:focus-visible .rel-t-pav { background: #000; color: var(--ink); }
@media (hover: hover) {
  a.wn-a:hover { background: var(--ink); color: #000; }
  a.wn-a:hover * { color: #000; }
  a.wn-a:hover .rel-t-pav { background: #000; color: var(--ink); }
  a.wn-a:hover .wn-when [data-rel-word] { color: #000; }
}
a.wn-a:active { background: var(--ink-12); }
/* from before the calendar: no cover held for these, so the disc is plain */
.wn-mini--blank { background: var(--ink-12); box-shadow: 0 0 0 2px #000, inset 0 0 0 1px var(--ink-40); }
.wn-post { background: none; color: var(--ink-60); box-shadow: inset 0 0 0 1.5px var(--ink-40); }

/* ---------- landing next: the calendar's next few, the same rows, the word in red ---------- */
.wn-when { color: var(--ink); }
.wn-when [data-rel-word] { color: var(--red); }
a.wn-a:focus-visible .wn-when [data-rel-word] { color: #000; }

/* ---------- a month: its name and what landed in it; opens and shuts as a cut ---------- */
.wn-month { border-top: 2px solid var(--ink); }
.wn-month:last-of-type { border-bottom: 2px solid var(--ink); }
.wn-month-h { list-style: none; display: flex; align-items: baseline; gap: .4rem 1.2rem; flex-wrap: wrap; padding: 1rem 0 .95rem; cursor: pointer;
  font-family: var(--display); font-stretch: condensed; font-weight: 700; text-transform: lowercase; }
.wn-month-h::-webkit-details-marker { display: none; }
.wn-month-n { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: .9; letter-spacing: -.015em; }
.wn-month-c { margin-left: auto; font-style: normal; font-family: 'Franklin Gothic Bold', var(--display); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-60); }
.wn-month-h svg { flex: none; align-self: center; width: 2.1rem; height: 1.3rem; fill: none; stroke: var(--red); stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.wn-month[open] > .wn-month-h svg { transform: rotate(90deg); }
.wn-month-h:hover .wn-month-n, .wn-month-h:focus-visible .wn-month-n { background: var(--ink); color: #000; }
.wn-month-h:focus-visible { outline: none; }
.wn-nights { list-style: none; }
.wn-night { display: grid; grid-template-columns: clamp(7.5rem, 12vw, 11rem) minmax(0, 1fr); gap: .5rem clamp(1.2rem, 3vw, 2.6rem); align-items: start; padding: .9rem 0; border-top: 1px solid var(--ink-12); }
.wn-night-h { position: static; display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .5rem; padding-top: .7rem; }
.wn-night-h b { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.wn-night-h span { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }

/* ---------- an update: something that is not a file (a feature, the site, the studio, a post). its kind is said in
   small red capitals with a hand-drawn mark; no box round it ---------- */
.wn-row--note { grid-column: 1 / -1; }
.wn-note { display: grid; grid-template-columns: 54px minmax(0, 1fr); grid-template-areas: "i k" "i t" "i p" "i g"; column-gap: .9rem; padding: .7rem .65rem .9rem .45rem; }
.wn-note-ic { grid-area: i; justify-self: center; width: 2.1rem; height: 2.1rem; margin-top: .15rem; color: var(--red); }
.wn-kind { grid-area: k; font-family: 'Franklin Gothic Bold', var(--display); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.wn-kind b { margin-left: .6rem; padding: .1em .45em; border-radius: 5px; background: var(--ink); color: #000; letter-spacing: .12em; }
.wn-note-t { grid-area: t; margin-top: .25rem; font-family: var(--display); font-stretch: condensed; font-weight: 700; font-size: clamp(1.5rem, 2.2vw, 1.95rem); line-height: 1; text-transform: lowercase; }
.wn-note-p { grid-area: p; margin-top: .45rem; max-width: 34em; font-family: var(--text); font-size: clamp(1.02rem, 1.2vw, 1.15rem); line-height: 1.5; color: var(--ink); }
.wn-note-go { grid-area: g; justify-self: start; display: inline-flex; align-items: center; gap: .5rem; margin-top: .55rem; padding: .1em .2em; font-family: var(--display); font-stretch: condensed; font-weight: 700;
  font-size: 1.15rem; text-transform: lowercase; color: var(--ink); text-decoration: none; box-shadow: inset 0 -2px 0 var(--red); }
.wn-note-go svg { width: 1.7rem; height: 1rem; fill: none; stroke: var(--red); stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.wn-note-go:hover, .wn-note-go:focus-visible { background: var(--red); color: #000; box-shadow: none; outline: none; }
.wn-note-go:hover svg, .wn-note-go:focus-visible svg { stroke: #000; }

/* ---------- the filters (script only: the row is hidden until the script shows it) ---------- */
.wn-filters { display: grid; gap: .55rem; margin-bottom: clamp(1.2rem, 3vh, 1.9rem); }
.wn-filters[hidden] { display: none; }
.wn-f-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.wn-f { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.5rem; padding: .3em .85em; border: 0; border-radius: 10px; background: none; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--ink-40); color: var(--ink); font-family: var(--display); font-stretch: condensed; font-weight: 700; font-size: 1.15rem; line-height: 1; text-transform: lowercase; white-space: nowrap; }
.wn-f .rel-ic { width: 1.1em; height: 1.1em; }
.wn-f--lib { color: var(--ink-60); box-shadow: inset 0 0 0 1px var(--ink-12); }
.wn-f:hover, .wn-f:focus-visible, .wn-f.on { background: var(--ink); color: #000; box-shadow: none; outline: none; }
.wn-f:focus-visible { box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--red); }
.wn-none { padding: 1.4rem 0; font-family: var(--display); font-stretch: condensed; font-weight: 700; font-size: 1.4rem; text-transform: lowercase; color: var(--ink-60); }
.wn-none[hidden] { display: none; }

/* the calendar's just-out bar: two ways on (everything new here, everything on patreon) */
.rel-bar-gos { display: inline-flex; flex-wrap: wrap; gap: .3rem 1.4rem; }

/* ---------- small windows and phones: one column, the night above its rows, filters that scroll sideways, 44px to tap ---------- */
@media (max-width: 820px) {
  .wn-night { grid-template-columns: minmax(0, 1fr); gap: .2rem; padding: .7rem 0 .5rem; }
  .wn-night-h { padding-top: .2rem; }
}
@media (max-width: 640px) {
  .wn-rows { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .wn-a { min-height: 3.75rem; padding: .45rem .3rem .45rem .1rem; gap: .2rem .8rem; }
  .wn-a .rel-mini { --m: 48px; }
  .wn-t { font-size: 1.28rem; }
  .wn-m { font-size: .98rem; gap: .05rem .7rem; }
  .wn-note { grid-template-columns: 48px minmax(0, 1fr); column-gap: .8rem; padding-left: .1rem; padding-right: .3rem; }
  .wn-month-h { padding: .85rem 0 .8rem; min-height: 3.5rem; }
  .wn-month-n { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .wn-month-c { order: 3; flex-basis: 100%; margin-left: 0; font-size: .74rem; }
  .wn-month-h svg { margin-left: auto; }
  .wn-f-row { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--frame) * -1); padding: 2px var(--frame); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .wn-f-row::-webkit-scrollbar { display: none; }
  .wn-f { flex: none; min-height: 2.75rem; }
}
html.touch .wn-f { min-height: 2.75rem; }
html.touch .wn-note-go { min-height: 2.75rem; margin-top: .25rem; }
html.touch .wn-month-h { min-height: 3.5rem; }
