/* Carry the One: the issues (covers, spines, the shelf). Uses the host's tokens when it has them. */
.iss{
  --i-paper:var(--paper,#F2EFE7); --i-sheet:var(--sheet,#F8F6F1); --i-ink:var(--ink,#161514); --i-rule:var(--rule,#D9D4C8);
  --i-mute:var(--mute,#6B675F); --i-carry:var(--carry,#E2432A);
  --i-sans:var(--sans,"Schibsted Grotesk","Schibsted Grotesk Fallback",system-ui,sans-serif); --i-serif:var(--serif,"Newsreader","Newsreader Fallback",Georgia,serif);
  --i-mono:var(--mono,"Fragment Mono","Fragment Mono Fallback",ui-monospace,monospace);
  --i-ease:var(--ease,cubic-bezier(.2,.7,.1,1));
  --i-cast:#D5D3CC;   /* the hard shadow on paper, opaque so two never double */
  --i-sun:var(--iss-sun,1);
  color:var(--i-ink);
  min-width:0;
}
.iss *,.iss *::before,.iss *::after{box-sizing:border-box}
.iss-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.iss a{color:inherit;text-decoration:none}

/* ---------- the marks ---------- */
.iss-wm{display:block;width:100%;height:auto;overflow:visible}
.iss-wm .iss-wl,.iss-wmv .iss-wl{fill:currentColor}
.iss-wm .iss-c1,.iss-wmv .iss-c1{fill:var(--i-carry)}
.iss-wm.iss-lift .iss-c1{transition:transform 1.3s var(--i-ease)}
html.js .iss-wm.iss-lift:not(.iss-out) .iss-c1,.iss-wm.iss-lift:not(.iss-out) .iss-c1{transform:translateY(2150px)}
.iss-disc{display:block;width:100%;height:auto;fill:currentColor}
.iss-slot{pointer-events:none}

/* ---------- the cover: the frame never changes; the window belongs to the issue ---------- */
/* its own padding is in % (of its own width): cq units on a container's own box would measure the container above it */
.iss-cover{container-type:inline-size;display:block;background:var(--i-sheet);color:var(--i-ink);padding:4.4% 4.4% 4.2%}
.iss-head{display:grid;grid-template-columns:13.6cqw minmax(0,1fr);column-gap:3.4cqw;align-items:end}
/* the corner box (r5's): a true square, 13.6 of the cover's 100, the disc 7.2 of them, a 1.3 gap, the number in the mono.
   Everything inside is measured in the box's own width, so it keeps these proportions wherever it's put (a spine's foot too). */
.iss .iss-box{container-type:inline-size;display:grid;justify-items:center;align-content:center;aspect-ratio:1;width:13.6cqw;background:var(--ic);color:var(--ion)}
.iss .iss-box .iss-disc{width:53%;height:auto;overflow:visible}
.iss .iss-box b{margin-top:9.6cqw;font:500 21.3cqw/1 var(--i-mono);letter-spacing:.06em}
/* 010, 100: the 1 is a carried one, and is set like one */
.iss-carry{color:var(--i-carry)}
.iss-mast{padding-bottom:.15cqw}
/* a ledger's double rule under the masthead, and on it (r5's line) the issue in the mono and the motto in italic */
.iss-date{position:relative;display:flex;justify-content:space-between;align-items:baseline;gap:2cqw;margin:2.6cqw 0 0;padding-top:2.3cqw;border-top:max(1px,.32cqw) solid currentColor;font:italic 400 2.75cqw/1.2 var(--i-serif);font-variation-settings:"opsz" 12;white-space:nowrap}
.iss-date::before{content:"";position:absolute;left:0;right:0;top:.5cqw;border-top:max(1px,.32cqw) solid currentColor}
.iss-date span:first-child{font:400 2.35cqw/1.2 var(--i-mono);letter-spacing:.04em}
.iss-art{position:relative;margin-top:2.6cqw;aspect-ratio:4/5;overflow:hidden;background:var(--i-rule)}
.iss-art img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .9s var(--i-ease)}
.iss-foot{display:grid;grid-template-columns:minmax(0,1fr) 26cqw;gap:4cqw;align-items:end;margin-top:3.4cqw}
/* every cover's foot is the same height, with or without its one line, so a row of them lines up */
.iss-foot > .iss-words{min-height:15.9cqw;display:flex;flex-direction:column;justify-content:flex-end}
.iss-title{margin:0;font:italic 400 10.4cqw/.95 var(--i-serif);font-variation-settings:"opsz" 72;letter-spacing:-.02em;white-space:nowrap}
.iss-title.iss-rs{font-style:normal;letter-spacing:-.025em}
.iss-line{margin:2cqw 0 0;font:400 3cqw/1.3 var(--i-serif);font-variation-settings:"opsz" 12;color:var(--i-mute)}
.iss-code{display:block;width:100%;height:auto;overflow:visible}
.iss-code .iss-bars{fill:var(--i-ink)}
.iss-code .iss-digits{fill:var(--i-ink);font:500 8.6px var(--i-sans);font-feature-settings:"tnum" 1}

/* at every size: a thumbnail keeps the frame and the title; the line and the barcode's figures step out as it shrinks */
@container (max-width:260px){.iss-line{display:none}.iss-foot > .iss-words{min-height:0}}
@container (max-width:200px){.iss-code .iss-digits{display:none}.iss-foot{grid-template-columns:minmax(0,1fr) 22cqw}}
@container (max-width:150px){.iss-code{display:none}.iss-foot{grid-template-columns:1fr}}
/* a thumbnail keeps the double rule; the words on it would be a grey smear */
@container (max-width:180px){.iss-date span{visibility:hidden}}

/* the cast shadow: a hard block, light from the upper left */
.iss-cast{--dx:14px;--dy:21px;position:relative;isolation:isolate;margin:0 calc(var(--dx) * var(--i-sun)) calc(var(--dy) * var(--i-sun)) 0}
.iss-cast::before{--sx:calc(var(--dx) * var(--i-sun));--sy:calc(var(--dy) * var(--i-sun));content:"";position:absolute;left:0;top:0;z-index:-1;width:calc(100% + var(--sx));height:calc(100% + var(--sy));background:var(--i-cast);
  clip-path:polygon(0 0,calc(100% - var(--sx)) 0,100% var(--sy),100% 100%,var(--sx) 100%,0 calc(100% - var(--sy)))}
.iss-link{display:block;position:relative;border-radius:1px}
.iss-link:focus-visible{outline:2px solid var(--i-ink);outline-offset:6px}
@media (hover:hover){
  .iss-link .iss-cover{transition:transform .6s var(--i-ease)}
  .iss-link:hover .iss-cover{transform:translateY(-4px)}
  .iss-link:hover .iss-art img{transform:scale(1.025)}
}

/* ---------- the run: every issue as a cover ---------- */
.iss-run{contain:inline-size;min-width:0;display:grid;grid-auto-flow:column;grid-auto-columns:80%;gap:22px;margin:0 calc(var(--g,16px) * -1);padding:6px var(--g,16px) 10px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:var(--g,16px);scrollbar-width:none;overscroll-behavior-x:contain}
.iss-run::-webkit-scrollbar{display:none}
.iss-fig{margin:0;min-width:0;scroll-snap-align:start;display:grid;gap:16px;align-content:start}
/* the disc, edge to edge (no die-cut ring on the page), a touch bigger than the ringed sticker it replaces */
.iss-fig figcaption{display:grid;grid-template-columns:58px 1fr;gap:14px;align-items:center;font-family:var(--i-sans)}
.iss-fig figcaption b{display:block;font-weight:600;font-size:15px;font-feature-settings:"tnum" 1}
.iss-fig figcaption span span{display:block;font:400 16px/1.35 var(--i-serif);font-variation-settings:"opsz" 16;color:var(--i-mute)}
.iss-sk .iss-sticker{display:block;width:100%;height:auto;filter:drop-shadow(0 3px 3px rgba(22,21,20,.18));transform:rotate(-4deg);transition:transform .6s var(--i-ease)}   /* every disc leans the one way, like the 1 */
@media (hover:hover){.iss-fig:hover .iss-sk .iss-sticker{transform:rotate(0) translateY(-2px)}}
.iss-dots{display:flex;gap:6px;justify-content:flex-end;margin:12px 0 0}
.iss-dots i{width:6px;height:6px;border-radius:50%;background:var(--i-rule);transition:background .3s}
.iss-dots i.on{background:var(--i-ink)}

/* ---------- the spine and the shelf: it grows by one every drop ---------- */
/* A bound spine: the name runs down from the head, the title under it, and the foot is the issue's corner box.
   It's a little round, as a bound spine is: lit along its left, falling off toward its right edge. */
.iss-spine{--w:var(--sw,56px);flex:none;width:var(--w);height:calc(var(--w) * 8.4);padding:0;border:0;font:inherit;color:var(--i-ink);display:flex;flex-direction:column;align-items:center;position:relative;cursor:pointer;
  background:linear-gradient(90deg,rgba(255,255,255,.6),rgba(255,255,255,0) 34%,rgba(22,21,20,0) 64%,rgba(22,21,20,.075)),var(--i-sheet);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8),inset -1px 0 0 rgba(22,21,20,.12);transition:transform .5s var(--i-ease);-webkit-tap-highlight-color:transparent}
.iss-sp-wm{margin-top:calc(var(--w) * .3)}
/* the mark at the size its 1 reads as the logo's 1 (smaller, it's a tick), in the logo's exact proportions */
.iss-sp-wm .iss-wmv{display:block;width:calc(var(--w) * .34);height:auto;overflow:visible}
.iss-sp-title{writing-mode:vertical-rl;font:400 calc(var(--w) * .28)/1 var(--i-serif);font-variation-settings:"opsz" 24;margin-top:calc(var(--w) * .46);white-space:nowrap;letter-spacing:-.005em}
.iss-sp-title.iss-live{font-style:italic}
.iss-sp-foot{margin-top:auto;width:100%}
.iss .iss-sp-foot .iss-box{width:100%}
.iss-shelf-scroll{contain:inline-size;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;padding-top:34px;margin-top:-34px}
.iss-shelf-scroll::-webkit-scrollbar{display:none}
.iss-shelf{--sw:clamp(44px,11.5vw,58px);display:flex;align-items:flex-end;width:max-content;min-width:100%;padding-top:34px}
@media (hover:hover){.iss-spine:hover{transform:translateY(-8px)}}
/* pulled: on its way into the issue, its foot about to lift off as the corner box */
.iss-spine.iss-pulled{transform:translateY(-26px);transition-duration:.26s}
.iss-spine:focus-visible{outline:2px solid var(--i-ink);outline-offset:3px}
/* The bookend: the house 1, leaning as the mark's 1 leans. It stands on the plank on its heel (the stem's lower left
   corner; the other corner is just off the plank, the way a leaning thing stands), and rests its flag on the last spine:
   touching, never in it. Its weight is what keeps the run upright. Its hard shadow falls as the covers' do, from the upper left. */
.iss-bookend{flex:none;width:calc(var(--sw) * 1.8);position:relative;align-self:flex-end;color:var(--i-ink)}
.iss-bookend svg{display:block;width:100%;height:auto;fill:currentColor;overflow:visible;filter:drop-shadow(calc(var(--sw) * .12) calc(var(--sw) * .08) 0 var(--i-cast))}
.iss-plank{display:block;height:10px;background:var(--i-ink);width:max(100%,var(--plank-w,100%))}
.iss-shelf-cap{display:flex;justify-content:space-between;gap:12px;margin:12px 0 0;font:400 14px/1.4 var(--i-sans);min-height:20px}
.iss-shelf-cap .iss-hint{color:var(--i-mute);text-align:right;white-space:nowrap}
.iss-shelf-cap.iss-named .iss-hint{display:none}
.iss-now a{display:inline-flex;align-items:center;gap:8px;min-height:32px;font-weight:600;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.iss-ar{width:16px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* the shelf with the current cover beside it */
.iss-shelf-with{display:grid;gap:34px;align-items:end}
.iss-pane{max-width:360px}
@media (min-width:860px){.iss-shelf-with{grid-template-columns:minmax(0,1fr) minmax(240px,340px);gap:56px}}

/* the set: every issue's disc, side by side */
.iss-set{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:22px 16px}
.iss-set li{display:grid;justify-items:center;gap:10px;text-align:center;font-family:var(--i-sans)}
.iss-set .iss-sk{width:100%;max-width:132px}
.iss-set b{display:block;font-weight:600;font-size:13px;font-feature-settings:"tnum" 1}
.iss-set li > span:last-child span{display:block;font:400 14.5px/1.3 var(--i-serif);font-variation-settings:"opsz" 14;color:var(--i-mute)}
.iss-set .iss-sk .iss-sticker{display:block;width:100%;height:auto;filter:drop-shadow(0 3px 3px rgba(22,21,20,.18));transition:transform .6s var(--i-ease)}
.iss-set .iss-sticker{transform:rotate(-4deg)}
@media (hover:hover){.iss-set li:hover .iss-sticker{transform:rotate(0) translateY(-3px)}}

/* a spine in research, turned to show its cover (issues.js turn) */
.iss-turn{position:fixed;inset:0;z-index:66;pointer-events:none;perspective:1400px}
.iss-turn-box{position:absolute;transform-style:preserve-3d;will-change:transform}
.iss-turn-box > *{position:absolute;left:0;top:0;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.iss-turn .iss-spine{transition:none}
.iss-turn-cv{box-shadow:0 24px 44px -24px rgba(22,21,20,.5)}
/* the bookend and the plank hold still in front of a turning issue, whole */
.iss-shelf-row.iss-turning .iss-bookend,.iss-shelf-row.iss-turning .iss-plank{position:relative;z-index:67}

/* ---------- the way into an issue ---------- */
.iss-enter{position:fixed;z-index:9999;overflow:hidden;pointer-events:none;transition:top .75s cubic-bezier(.7,0,.2,1),left .75s cubic-bezier(.7,0,.2,1),width .75s cubic-bezier(.7,0,.2,1),height .75s cubic-bezier(.7,0,.2,1)}
.iss-enter img{display:block;width:100%;height:100%;object-fit:cover;transition:opacity .26s ease}
.iss-enter.iss-land img{opacity:0}

@media (min-width:860px){
  .iss-run{grid-auto-flow:row;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;margin:0;padding:0;gap:44px}
  .iss-run[data-count="4"],.iss-run[data-count="5"],.iss-run[data-count="6"]{grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:calc((100% - 88px) / 3);overflow-x:auto;padding:6px 0 10px;scroll-snap-type:x mandatory}
  .iss-run .iss-cast{--dx:20px;--dy:30px}
  .iss-dots{display:none}
  .iss-shelf{--sw:58px}
}
@media (prefers-reduced-motion:reduce){
  .iss *,.iss-enter,.iss-enter img{transition:none!important}
  .iss-wm.iss-lift .iss-c1{transform:none!important}
}

