/* The volume as a box. Load after transmissions.css, on the volume page only.
   Closed: the lid is a signal plot, after CP 1919 (Unknown Pleasures, 1979).
   Open: each issue is a loose object on a desk, shaped by its format, after Aspen (1965–71).
   Pick up an object: it comes to the centre, fills the screen in its colour, and its issue opens.
   Without JavaScript (no .js on <html>), the lid and the desk show one after the other. */
body.tx-volume { --tx-rule: rgba(233, 231, 241, .18); --lid: #121017; background: var(--ink); color: var(--lavender); }
body.tx-volume .site-footer { color: var(--ink); }
.tx-box { position: relative; overflow: hidden; min-height: 100svh; }
.tx-box button { font: inherit; color: inherit; cursor: pointer; }
.tx-box :focus-visible, .tx-box-note :focus-visible { outline: 2px solid var(--lime); outline-offset: 5px; }
.tx-box-top { position: relative; z-index: 30; display: flex; align-items: center; }
.tx-box-top .tx-header { flex: 1; }
.tx-box-count { margin: 32px 0 0; padding-right: var(--home-inset); font-size: 12px; font-weight: 400; line-height: 1.5; letter-spacing: 0; opacity: .7; }
.tx-box-count a:hover { color: var(--lime); text-decoration: none; }
.tx-box-shut { display: none; margin: 32px var(--home-inset) 0 0; padding: 8px 12px; border: 1px solid var(--tx-rule); font-size: 12px; line-height: 1.5; white-space: nowrap; }
.tx-box-shut:hover { text-decoration: none; }
.tx-box-shut:hover { border-color: var(--lime); color: var(--lime); }
.is-open .tx-box-count { display: none; }
.is-open .tx-box-shut { display: inline-block; }

/* The lid. */
.tx-lid-wrap { position: relative; z-index: 20; display: grid; place-items: start center; padding: 32px var(--home-inset) 64px; }
.js .tx-lid-wrap { position: absolute; inset: 0; padding-top: 104px; pointer-events: none; }
.tx-lid { pointer-events: auto; position: relative; width: min(1120px, 100%); height: min(780px, calc(100svh - 168px)); min-height: 560px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--lid); color: var(--lavender); box-shadow: 14px 14px 0 var(--blue); transition: transform .7s cubic-bezier(.6, 0, .25, 1), opacity .4s .2s; }
.tx-lid::before { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(233, 231, 241, .14); pointer-events: none; }
.tx-lid-head { padding: clamp(28px, 3.4vw, 48px) clamp(28px, 4vw, 56px) 0; }
.tx-lid-head .tx-kicker { display: flex; justify-content: space-between; gap: 16px; opacity: .7; }
.tx-lid-head :is(h1, h2) { margin-top: 14px; font-size: min(10.4vw, 150px); font-weight: 400; line-height: .8; letter-spacing: -.06em; text-transform: uppercase; }

/* The plot stretches to its space. The labels sit on their lines' baselines. */
.tx-lid-field { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(190px, 19vw, 270px); gap: clamp(16px, 2vw, 28px); min-height: 0; padding: 0 clamp(28px, 4vw, 56px); }
.tx-lid-plot { position: relative; min-height: 0; }
.tx-lid-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.tx-line path.fill { fill: var(--lid); }
.tx-line path.stroke { fill: none; stroke: var(--lavender); stroke-width: 1.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: stroke .3s, stroke-width .3s; transition-delay: calc(var(--k, 0) * 40ms); }
.tx-line { transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.tx-line.is-under path.stroke { stroke-opacity: .36; }
.tx-line.is-issue path.stroke { stroke-width: 1.7; }
.tx-line.is-sealed path.stroke { stroke-dasharray: 3 3; stroke-opacity: .75; }
.tx-line.is-on { transform: translateY(-10px); }
.tx-line.is-on path.stroke, .is-tuning .tx-line.is-issue path.stroke { stroke: var(--lime); stroke-width: 2.2; stroke-opacity: 1; }
.tx-line-hit { fill: transparent; cursor: pointer; }
.tx-lid-labels { position: relative; list-style: none; margin: 0; padding: 0; }
.tx-lid-labels li { position: absolute; left: 0; right: 0; transform: translateY(-100%); }
.tx-lid-item { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; width: 100%; padding: 3px 0 4px; border: 0; border-bottom: 1px solid rgba(233, 231, 241, .32); background: none; text-align: left; font-size: 13px; line-height: 1.25; }
.tx-lid-title { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-lid-item span:first-child { font-size: 11px; line-height: 1.4; opacity: .6; font-variant-numeric: tabular-nums; }
.tx-lid-item.is-sealed { color: rgba(233, 231, 241, .62); border-bottom-style: dashed; }
.tx-lid-item.is-on { color: var(--lime); border-bottom-color: var(--lime); }
.tx-lid-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 32px; padding: 24px clamp(28px, 4vw, 56px) clamp(28px, 3.4vw, 44px); }
.tx-lid-dek { max-width: 460px; font-family: var(--rf-serif); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; }
.tx-lid-now { grid-column: 1; min-height: 1.5em; margin-top: -4px; font-size: 12px; line-height: 1.5; color: var(--lime); }
.tx-box .tx-lid-open { grid-column: 2; grid-row: 1 / 3; border: 0; color: var(--ink); }
html:not(.js) .tx-lid-open, html:not(.js) .tx-lid-now { display: none; }
.is-open .tx-lid { transform: translateY(-118svh) rotate(-6deg); opacity: 0; }
.is-open .tx-lid-wrap { visibility: hidden; transition: visibility 0s .7s; }
/* From the index, the lid lifts there. The volume page then opens with no lid. */
.tx-lid.is-leaving { transform: translateY(-118svh) rotate(-6deg); opacity: 0; }
.arriving .tx-lid-wrap { visibility: hidden; }
.js.arriving .tx-desk { visibility: visible; }

/* The desk. */
.tx-desk { position: relative; height: max(calc(100svh - 90px), 780px); margin: 0 var(--home-inset); }
.js .tx-desk { visibility: hidden; }
.js .is-open .tx-desk { visibility: visible; }
/* While the box opens, the desk is above the lid, so the objects come out of the lines in view. */
.is-open:not(.is-settled) .tx-desk { z-index: 25; }
.tx-tray { position: absolute; inset: 20px 0 84px; border: 1px solid var(--tx-rule); }
.is-open .tx-tray { animation: tx-late .4s .4s both; }
@keyframes tx-late { from { opacity: 0; } }
/* Subscribe sits in the band under the tray, the same width as the tray. */
.tx-subscribe--desk { position: absolute; left: 0; right: 0; bottom: 18px; }
/* Hidden until the box is open, then it fades in once (also when arriving from the index). */
.js .tx-subscribe--desk { opacity: 0; transition: opacity .4s .5s; }
.js .is-open .tx-subscribe--desk { opacity: 1; }
.tx-box .tx-subscribe .tx-button { color: var(--ink); }
.tx-subscribe--shelf { transition: opacity .25s; }
.is-leaving .tx-subscribe--shelf { opacity: 0; }
.tx-subscribe--shelf { width: min(1120px, calc(100% - 2 * var(--home-inset))); margin: calc(-1 * clamp(40px, 6vw, 96px)) auto 0; padding-bottom: clamp(72px, 9vw, 128px); }

.tx-box .tx-obj { color: var(--fmt-ink); }
.tx-obj { position: absolute; display: block; padding: 0; border: 0; text-align: left; background: none; text-decoration: none; transform: rotate(var(--r)); transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .4s; }
.js .tx-obj { will-change: transform; }
.tx-obj:hover { text-decoration: none; }
/* Before the box opens, each object waits on its line (--sx, --sy and --ss come from box.js). */
.js .tx-desk .tx-obj { opacity: 0; transform: translate(var(--sx, 0), var(--sy, 40px)) scale(var(--ss, 1)) rotate(calc(var(--r) * 2)); }
.js .is-open .tx-desk .tx-obj { opacity: 1; transform: rotate(var(--r)); transition-delay: calc(.1s + var(--i) * 50ms), calc(.1s + var(--i) * 50ms); }
.js .is-open .tx-desk .tx-obj:hover { transform: translateY(-8px) rotate(var(--r)); transition-delay: 0s; }
.is-measuring .tx-obj { transition: none !important; transform: rotate(var(--r)) !important; }
.js .is-open .tx-desk .tx-obj.is-lifted { z-index: 60; transform: translate(var(--dx), var(--dy)) rotate(0) scale(var(--ls)); transition-delay: 0s; }
.tx-obj-face { position: relative; display: block; overflow: hidden; background: var(--fmt-bg); }
.tx-tx { position: relative; z-index: 1; display: block; font-size: 10px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; }
.tx-obj-title { position: relative; z-index: 1; display: block; }

/* Where each object lies. The shape sets its size; the slot sets its place. */
.tx-slot-1 { --r: -5deg; left: 3%; top: 8%; }
.tx-slot-2 { --r: 4deg; left: 25%; top: 11%; }
.tx-slot-3 { --r: -3deg; left: 46%; top: 6%; }
.tx-slot-4 { --r: -6deg; left: 75%; top: 14%; }
.tx-slot-5 { --r: 3deg; left: 16%; top: 58%; }
.tx-slot-6 { --r: -2deg; left: 57%; top: 56%; }

/* Letter: a folded sheet with a blue backing. */
.tx-obj--letter { width: clamp(190px, 18vw, 270px); }
.tx-obj--letter .tx-obj-face { aspect-ratio: 8.5 / 11; padding: 22px 22px 18px; box-shadow: 9px 9px 0 var(--blue); }
.tx-obj--letter .tx-obj-face::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 33.1%, rgba(36, 32, 44, .1) 33.3%, transparent 33.6%, transparent 66.4%, rgba(36, 32, 44, .1) 66.6%, transparent 66.9%); pointer-events: none; }
.tx-obj-greet { display: block; margin-top: 18px; font-size: 17px; letter-spacing: -.03em; }
.tx-obj-lines { display: block; height: 42%; margin-top: 12px; background: repeating-linear-gradient(180deg, rgba(36, 32, 44, .28) 0 1px, transparent 1px 9px); -webkit-mask: linear-gradient(90deg, #000 78%, transparent); mask: linear-gradient(90deg, #000 78%, transparent); }
.tx-obj--letter .tx-obj-title { position: absolute; left: 22px; right: 22px; bottom: 18px; font-family: var(--rf-serif); font-style: italic; font-size: 17px; line-height: 1.2; }

/* Essay: a lavender booklet with an ink spine. */
.tx-obj--essay { width: clamp(170px, 15.5vw, 232px); }
.tx-obj--essay .tx-obj-face { aspect-ratio: 5 / 7; padding: 20px 20px 18px 38px; box-shadow: 8px 8px 0 #15121b; }
.tx-obj--essay .tx-obj-face::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 18px; background: var(--ink); }
.tx-obj--essay .tx-obj-face::after { content: ''; position: absolute; left: 18px; top: 0; bottom: 0; width: 1px; background: rgba(233, 231, 241, .5); }
.tx-obj-spine { position: absolute; z-index: 1; left: 4px; bottom: 14px; writing-mode: vertical-rl; transform: rotate(180deg); color: var(--lavender); font-size: 8px; letter-spacing: .12em; }
.tx-obj--essay .tx-obj-title { margin-top: 14px; font-size: clamp(21px, 1.9vw, 29px); line-height: 1; letter-spacing: -.045em; }
/* The essay cover carries its own line from the lid. */
.tx-obj-strip { position: absolute; left: 38px; right: 20px; bottom: 20px; height: 38%; }
.tx-obj-strip svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tx-obj-strip .fill { fill: var(--fmt-bg); }
.tx-obj-strip .stroke { fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tx-obj-strip .is-under .stroke { stroke-opacity: .45; }
.tx-obj-strip .is-issue .stroke { stroke-width: 1.6; }

/* Field note: a vermilion index card. */
.tx-obj--field-note { width: clamp(250px, 24vw, 340px); }
.tx-obj--field-note .tx-obj-face { aspect-ratio: 5 / 3; padding: 14px 18px; background: repeating-linear-gradient(180deg, transparent 0 21px, rgba(0, 0, 0, .22) 21px 22px) 0 40px / 100% calc(100% - 40px) no-repeat, var(--fmt-bg); box-shadow: 8px 8px 0 var(--ink), 9px 9px 0 rgba(233, 231, 241, .2); }
.tx-obj--field-note .tx-obj-face::before { content: ''; position: absolute; left: 0; right: 0; top: 38px; border-top: 1.5px solid var(--blue); }
.tx-obj--field-note .tx-obj-title { margin-top: 30px; font-family: var(--rf-serif); font-style: italic; font-size: clamp(17px, 1.5vw, 21px); line-height: 22px; }

/* Release: a lime sleeve with a blue disc. */
.tx-obj--release { width: clamp(230px, 22vw, 320px); }
.tx-obj-disc { position: absolute; z-index: -1; width: 92%; aspect-ratio: 1; right: -24%; top: 4%; border-radius: 50%; background: radial-gradient(circle, var(--lime) 0 15%, var(--ink) 15.5% 17%, var(--blue) 17.5%); box-shadow: inset 0 0 0 1px rgba(233, 231, 241, .25); transition: right .6s cubic-bezier(.2, .8, .2, 1); }
.tx-obj--release:hover .tx-obj-disc, .tx-obj--release.is-lifted .tx-obj-disc { right: -40%; }
.tx-obj--release .tx-obj-face { aspect-ratio: 1; padding: 20px; box-shadow: 9px 9px 0 var(--blue); }
.tx-obj--release .tx-obj-title { margin-top: 10px; font-size: clamp(34px, 3.4vw, 52px); line-height: .9; letter-spacing: -.06em; }
.tx-obj--release canvas { position: absolute; width: 110%; height: 80%; left: 10%; bottom: -16%; }

/* Sealed: the object is in the box, but closed. The blue tape holds it shut, with a lime seal. */
.tx-obj.is-sealed:not(.tx-obj--envelope) .tx-obj-face { filter: saturate(.7) brightness(.84); }

/* Envelope: a sealed issue whose title is not out yet. Only the number shows. */
.tx-obj--envelope { width: clamp(200px, 18vw, 260px); }
.tx-box .tx-obj--envelope { color: var(--lavender); }
.tx-obj--envelope .tx-obj-face { aspect-ratio: 11 / 7; padding: 16px 18px; border: 1px solid rgba(233, 231, 241, .55); background: #2b2734; }
.tx-obj--envelope .tx-obj-face::before, .tx-obj--envelope .tx-obj-face::after { content: ''; position: absolute; top: -1px; width: 72%; height: 1px; background: rgba(233, 231, 241, .45); transform-origin: 0 0; }
.tx-obj--envelope .tx-obj-face::before { left: 0; transform: rotate(33deg); }
.tx-obj--envelope .tx-obj-face::after { right: 0; transform-origin: 100% 0; transform: rotate(-33deg); }
.tx-obj-wax { position: absolute; left: 50%; top: 38%; width: 14px; height: 14px; background: var(--lime); transform: translate(-50%, -50%) rotate(45deg); box-shadow: 0 0 0 4px rgba(222, 243, 76, .15); }
.tx-obj--envelope .tx-tx { opacity: .7; }
.tx-obj--envelope .tx-obj-title { position: absolute; left: 18px; right: 18px; bottom: 14px; font-size: 14px; line-height: 1.3; opacity: .85; }
.tx-obj.is-sealed .tx-obj-disc { right: -24% !important; filter: saturate(.7) brightness(.84); }
.tx-obj-seal { position: absolute; z-index: 2; left: -6%; right: -6%; top: 46%; display: flex; align-items: center; gap: 10px; padding: 7px 14px; background: var(--blue); color: var(--paper); font-size: 10px; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; transform: rotate(-7deg); box-shadow: 0 6px 14px rgba(0, 0, 0, .25); }
.tx-obj--field-note .tx-obj-seal { top: 70%; }
.tx-obj-seal i { width: 9px; height: 9px; background: var(--lime); transform: rotate(45deg); box-shadow: 0 0 0 3px rgba(222, 243, 76, .2); }


/* A sealed object's note, under the object at the centre. */
.tx-box-shade { position: fixed; inset: 0; z-index: 40; background: rgba(20, 17, 26, .55); opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.is-lifting .tx-box-shade { opacity: 1; visibility: visible; transition-delay: 0s; }
.is-lifting { overflow: hidden; }
/* Keep the scroll bar's space when the page stops scrolling, so nothing moves. */
html:has(body.tx-volume) { scrollbar-gutter: stable; background: var(--ink); }
.tx-box-note { position: fixed; z-index: 70; left: 50%; bottom: 56px; width: min(460px, calc(100vw - 32px)); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 20px; padding: 18px 20px; background: var(--ink); color: var(--lavender); border: 1px solid var(--tx-rule); transform: translate(-50%, 24px); opacity: 0; visibility: hidden; transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .3s, visibility 0s .4s; }
.is-noting .tx-box-note { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: .15s, .15s, 0s; }
.tx-box-note > :not(button) { grid-column: 1; }
.tx-box-note .tx-kicker { opacity: .7; }
.tx-box-note p { font-size: 15px; line-height: 1.45; }
.tx-box-note .tx-note-title { font-size: 19px; line-height: 1.2; letter-spacing: -.02em; }
.tx-box-note .tx-note-dek { font-family: var(--rf-serif); opacity: .85; }
.tx-box-note a { color: var(--lime); }
.tx-box-note button { grid-column: 2; grid-row: 1 / span 4; padding: 13px 16px; border: 1px solid var(--tx-rule); background: none; color: inherit; font: inherit; font-size: 14px; cursor: pointer; }
.tx-box-note button:hover { border-color: var(--lime); }
.tx-box-wipe { position: fixed; inset: 0; z-index: 90; background: var(--fmt-bg, var(--ink)); opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.is-going .tx-box-wipe { opacity: 1; visibility: visible; transition-delay: 0s; }

/* The index: one lid for each volume, newest first, all the same size. */
.tx-shelf { display: grid; justify-items: center; gap: clamp(56px, 8vw, 112px); margin: 0; padding: 32px var(--home-inset) clamp(72px, 9vw, 128px); list-style: none; }
.tx-shelf-item { width: min(1120px, 100%); }
.tx-shelf .tx-lid { width: 100%; }
.tx-lid-item:hover { text-decoration: none; }

/* Phone: the objects fan down the page, one over the next. */
@media (max-width: 760px) {
  .tx-box-count { max-width: 58%; margin-top: 24px; font-size: 11px; text-align: right; }
  .tx-box-shut { margin-top: 24px; }
  .tx-lid-wrap { padding: 24px 16px 48px; }
  .js .tx-lid-wrap { padding-top: 88px; }
  .tx-lid { height: calc(100svh - 136px); min-height: 520px; box-shadow: 8px 8px 0 var(--blue); }
  .tx-lid::before { inset: 8px; }
  .tx-lid-head { padding: 26px 22px 0; }
  .tx-lid-head .tx-kicker span:last-child { display: none; }
  .tx-lid-head :is(h1, h2) { font-size: 15vw; }
  .tx-shelf { padding: 24px 16px 72px; }
  /* On a phone the form follows the objects. The tray ends above it (form about 82px tall). */
  .tx-subscribe--desk { position: relative; bottom: auto; width: 100%; margin-top: 64px; }
  .tx-subscribe--shelf { width: auto; margin: -32px 16px 0; padding-bottom: 72px; }
  .tx-lid-field { grid-template-columns: minmax(0, 1fr) 26px; gap: 8px; padding: 0 22px; }
  .tx-lid-item { grid-template-columns: 1fr; }
  .tx-lid-title { display: none; }
  .tx-lid-foot { grid-template-columns: 1fr; padding: 18px 22px 24px; }
  .tx-lid-dek { font-size: 15px; }
  .tx-box .tx-lid-open { grid-column: 1; grid-row: auto; }
  .tx-desk { height: auto; margin: 0 20px; padding: 40px 0 24px; display: flex; flex-direction: column; align-items: center; }
  .tx-tray { inset: 24px -8px 138px; }
  .tx-obj { position: relative; left: auto; top: auto; width: min(66vw, 270px); margin-top: -26px; }
  .tx-obj:first-of-type { margin-top: 18px; }
  .tx-desk .tx-obj:nth-of-type(odd) { align-self: flex-start; margin-left: 4%; }
  .tx-desk .tx-obj:nth-of-type(even) { align-self: flex-end; margin-right: 4%; }
  .tx-obj--letter .tx-obj-title { position: static; margin-top: 14px; }
  .tx-obj--letter .tx-obj-lines { height: 30%; }
  .tx-obj--letter .tx-obj-seal { top: 74%; }
  .tx-obj--release { width: min(64vw, 260px); }
  .tx-obj-disc, .tx-obj--release:hover .tx-obj-disc { right: -14%; }
}
.no-motion .tx-lid, .no-motion .tx-subscribe--desk, .no-motion .tx-line, .no-motion .tx-line path.stroke, .no-motion .tx-obj { transition: none !important; }
.no-motion .tx-tray { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .tx-lid, .tx-line, .tx-line path.stroke, .tx-obj { transition: none !important; }
  .is-open .tx-tray { animation: none; }
  .is-open .tx-lid { transform: none; }
}
