@font-face {
  font-family:TypewriterUS;src:url("/assets/usa/typewriter.woff") format("woff");
  font-style:normal;font-weight:400;font-display:swap
}
@font-face {
  font-family:TypewriterEast;src:url("/assets/usa/typewriter-east.woff") format("woff");
  font-style:normal;font-weight:400;font-display:swap
}
@font-face {
  font-family:EditionHand;src:url("/assets/china/edition-labels.woff") format("woff");
  font-style:normal;font-weight:400;font-display:swap
}

/* Tone-on-tone grain and light rules keep the sheet quiet behind the drawing. */
body:is(.jp,.us,.cn) {
  --paper-grain:url("/assets/paper-grain.svg");
  --faint-rule:rgb(90 61 37 / .18);
  --paper-divider:rgb(90 61 37 / .24);
  background-image:var(--paper-grain)
}
:is(.jp,.us,.cn) :is(.masthead,.panel,.cast,.cast-card,.about,.numbers-note,.number-slip,.news-summary) {
  background-image:var(--paper-grain)
}
:is(.jp,.us,.cn) .panel {border:1px solid var(--faint-rule)}
:is(.jp,.us,.cn) .panel::after {content:none}
:is(.jp,.us,.cn) :is(.panel-kicker>span,.cn-num) {border-color:var(--paper-divider)}

/* Outside the strip, keep structure in the spacing and the small changes of paper tone. */
:is(.jp,.us,.cn) :is(.masthead,.front-intro,.section-label,.tile,.tile-art,.category-block>h3,.categories a,.topic,
  .cast,.cast-card,.about,.site-footer,.related-rail h2,.related-bottom h2,.related-list li+li,.brand-mark,
  .news-summary,.numbers-note,.number-slip,.bar-track,.bar-ink,.number-timeline) {border-width:0}
:is(.jp,.us,.cn) .masthead nav .edition-link,
:is(.jp,.us,.cn) .masthead nav .edition-link:hover {border:0;background:none}

/* Graphite is softer than ink, but the small readings still need contrast. */
.jp {
  --pen:PenNews,PaperLatin,"Hiragino Sans","Yu Gothic",sans-serif;
  --ink:#514a3f;--muted:#61584d;-webkit-text-stroke:.06px
}
.jp :is(.brand,.front-intro h1,.feature-head h2,.story-head h1,.panel-line,.panel-sub,.comic-credits strong,
  .collection h2,.about h2,.tile-text h3,.category-block>h3,.news-summary-title strong,
  .number-slip dt,.number-timeline strong,.numbers-note h3,.panel-kicker,.panel-kicker>span) {
  -webkit-text-stroke:.07px
}
.jp .ink-ruby rt {color:var(--muted);-webkit-text-stroke:0}
.jp .ink-letter {-webkit-text-stroke-width:calc(var(--ink-stroke,.18px) * .42)}
.jp :is(.front-intro h1,.feature-head h2,.story-head h1) .ink-render {--ink-motion:.47}
.jp :is(.panel-line,.panel-sub) {color:var(--ink)}
.jp .panel-kicker>span {color:var(--ink)}
.jp .strip-panel .panel-text {padding-top:.16rem}

/* Japanese category labels are also plain text. */
.jp .topic {padding-inline:0}
.jp .categories {gap:.08rem .65rem}
.jp .categories a {font-size:.94rem;padding:.2rem .25rem}
.jp .categories a:hover {background:transparent}

/* Let the typewriter face supply the irregular ink, without any fake wobble. */
.us {
  --pen:TypewriterUS,TypewriterEast,"Courier New",monospace;
  --ink:#2e2419;-webkit-text-stroke:0
}
.us :is(.brand,.front-intro h1,.feature-head h2,.story-head h1,.panel-line,.panel-sub,.comic-credits strong,
  .collection h2,.about h2,.tile-text h3,.category-block>h3,.news-summary-title strong,
  .number-slip dt,.number-timeline strong,.numbers-note h3,.panel-kicker,.panel-kicker>span) {
  -webkit-text-stroke:0
}
.us :is(.brand,.front-intro h1,.feature-head h2,.story-head h1,.tile-text h3) {letter-spacing:-.012em}
.us .masthead nav a {letter-spacing:normal}
.jp .masthead nav .edition-link .edition-label {font-family:inherit;-webkit-text-stroke:0}

/* Equal slots for the two scripts, with type sized by its visible height. */
.us .masthead nav :is(.edition-to-japan,.edition-to-china) {
  display:inline-grid;align-items:center;grid-template-columns:3.1rem auto;column-gap:.29rem
}
.us .masthead nav .edition-link .edition-label {
  font-family:EditionHand,TypewriterEast,serif;line-height:1;
  text-align:center;white-space:nowrap;-webkit-text-stroke:0
}
.us .masthead nav .edition-to-japan .edition-label {font-size:1.03rem;letter-spacing:-.045em}
.us .masthead nav .edition-to-china .edition-label {font-size:.88rem;letter-spacing:.075em}
.us .masthead nav .edition-to-china .edition-label {padding-inline-start:.075em}
.us .masthead nav .edition-to-japan .edition-label {padding-inline-end:.045em}

:is(.us,.cn) .dialogue-start {text-align:start}
:is(.us,.cn) .dialogue-center {text-align:center}
:is(.us,.cn) .dialogue-end {text-align:end}

.issue-date {text-underline-offset:.23em;text-decoration-thickness:1px}
.issue-archive {max-width:52rem;padding-block:clamp(1.4rem,4vw,3.2rem) 3rem}
.issue-archive h1 {font-weight:400;line-height:1.4;margin-bottom:.7rem}
.archive-parent {margin-bottom:.55rem;color:var(--muted)}
.archive-dates,.archive-comics {list-style:none;padding:0;margin:0}
.archive-dates li,.archive-comics li {padding:.27rem 0}
.archive-dates a,.archive-comics a {display:inline-block;padding:.14rem 0;line-height:1.8}
.archive-earlier {margin-top:1.85rem}
.archive-earlier h2 {font-weight:400;margin-bottom:.35rem;font-size:1.27rem}

@media (prefers-contrast:more) {
  body:is(.jp,.us,.cn) {--paper-grain:none}
}

.comic-panels.comic-panels-vertical {
  grid-template-columns:minmax(0,1fr);
  width:min(86%,350px);
  margin-inline:auto;
}

.comic-panels-vertical.comic-panels-portrait {
  max-width:265px;
}

.us .compact-approved-strip .approved-strip-art {
  width:min(86%,350px);
  margin-inline:auto;
}

/* Full-width native artwork in the December morning issue. Preserve proportions. */
.jp .comic-panels .morning-panel .story-scene {
  width:100%;max-width:none;height:auto;aspect-ratio:auto;margin:0 0 .25rem;
}
.jp .morning-panel .story-scene .split-scene {
  width:100%;height:auto;filter:grayscale(1) brightness(1.055);
}
.jp .comic-panels-vertical :is(.story-scene,.panel-visual):has(> .japan-pencil-scene) {
  width:100%;max-width:none;height:auto;aspect-ratio:auto;margin:0 0 .25rem;
}
.jp .comic-panels-vertical .japan-pencil-scene {
  display:block;width:100%;height:auto;
  mix-blend-mode:multiply;filter:grayscale(1) brightness(1.055);
}
.jp .comic-panels > .panel,
.jp .news-background,
.jp .news-background-detail {
  border-image-source:url("/assets/japan/pencil-frame.webp");
  border-image-slice:18;
  border-image-width:6px;
}
.jp .comic-panels > .panel::after {content:none}
.jp .news-background-detail {border-image-width:4px 0 0}
.jp .comic-panels.comic-panels-silent {
  gap:0;
  padding:0;
  border:4px solid var(--faint-rule);
  border-image:url("/assets/japan/pencil-frame.webp") 18 / 4px;
}
.jp .comic-panels-silent > .panel {
  border:0;
  border-radius:0;
}
.jp .comic-panels-silent > .panel + .panel {
  border-block-start:3px solid var(--faint-rule);
  border-image:url("/assets/japan/pencil-frame.webp") 18 / 3px 0 0;
}
.jp .comic-panels.comic-panels-silent :is(.story-scene,.panel-visual) {
  width:100%;
  max-width:none;
  margin:0;
}
.jp .comic-panels-silent img {display:block;width:100%;height:auto}
.us .us-full-scene.morning-scene,.cn .cn-scene.morning-scene {
  width:100%;height:auto;aspect-ratio:auto;max-height:none;padding:0;
}
.us .us-full-scene.morning-scene {
  background:transparent;mix-blend-mode:multiply;filter:brightness(1.045);
}

/* Use identical date alignment and archive placement across editions. */
.issue-bar .issue-date {margin-inline-start:auto;text-align:end}
.tile-date-row {display:flex;align-items:baseline;flex-wrap:wrap;gap:.1rem .5rem}
.tile-date-row time {margin-inline-start:auto;text-align:end;max-width:100%;font-variant-numeric:tabular-nums}
body.cn .tile-date-row time {white-space:normal}
.front-backnumbers {margin-block-start:1.6rem;margin-block-end:1.6rem}
.front-backnumbers>h2 {padding-block-start:.75rem;border-block-start:1px solid var(--rule)}

/* Read through the issue without leaving the front page. */
.edition-reading {min-width:0}
.home-comic-series {margin-block-start:2.2rem}
.home-comic-series > h2 {
  font-family:var(--pen);font-size:clamp(1.24rem,2.45vw,1.65rem);font-weight:400;
  border-block-end:1px solid var(--rule);margin:0 0 .4rem;padding-block-end:.5rem
}
.home-comic-series .home-comic {padding-block:1.2rem}
.home-comic-series .home-comic + .home-comic {border-block-start:1px solid var(--rule)}
.home-comic-series .feature-head h3 {
  font:400 clamp(1.45rem,3.5vw,2.3rem)/1.38 var(--pen);
  margin-block:.35rem .55rem;overflow-wrap:anywhere
}
.front-comics-jump {margin:.36rem 0 .58rem}
.front-comics-jump a {
  display:inline-block;padding:.2rem 0;text-decoration:underline;text-underline-offset:.23em;
}
@media(max-width:790px) {
  .edition-reading {width:100%}
  .home-comic-series .home-comic {padding-block:1.05rem}
}

.dango-extra {scroll-margin-top:1rem}
.dango-extra-article {width:min(91%,43rem);margin:1rem auto 2.5rem}
.dango-extra .feature-head h2,.dango-extra .feature-head h1 {
  font:400 clamp(1.55rem,4.4vw,2.6rem)/1.35 var(--pen);margin:.6rem 0;
}
.dango-extra-figure {margin:0;max-width:38rem}
.dango-extra-figure img {display:block;width:100%;height:auto}
.dango-extra-figure figcaption,.dango-extra-transcript {margin:.7rem 0;color:var(--muted)}
.dango-extra-lead {margin:0 0 2.6rem}
.dango-extra-lead .dango-extra-figure {max-width:none}
.dango-extra-transcript > :is(h2,h3) {font:400 1.04rem/1.5 var(--pen);margin:0 0 .35rem}
.dango-extra-transcript ol {padding-inline-start:1.5rem}
.dango-extra-return {margin:1rem 0}

/* Clear the bands around thumbnails and let the actual page show through. */
:is(.jp,.us,.cn) :is(.tile-art,.read-next-art) {background:transparent}
:is(.jp,.us,.cn) :is(.tile-art,.read-next-art) > :is(img,.board-art) {
  mix-blend-mode:multiply
}
.jp :is(.tile-art,.read-next-art) > :is(img,.board-art) {filter:grayscale(1) brightness(1.12)}
.us :is(.tile-art,.read-next-art) > img {filter:brightness(1.045)}
.cn :is(.tile-art,.read-next-art) > img {filter:grayscale(1) brightness(1.11)}

/* Standalone editorial illustrations on the edition indexes. */
#index .vignette-tile:not(:has(.tile-art)) {grid-template-columns:minmax(0,1fr)}
#index .vignette-tile .tile-art {border:0;background:none}
#index .tile-art > .news-vignette {
  display:block;width:100%;height:100%;object-fit:contain;mix-blend-mode:normal;filter:none
}

/* Match old issues to the same beige sheet without modifying their artwork. */
.story:has(.return:is([href^="/archive/"],[href^="/usa/archive/"],[href^="/china/archive/"])) .panel {
  background-color:var(--paper)
}
.jp .story:has(.return[href^="/archive/"]) :is(.split-scene,.story-scene > .board-art,.panel > .board-art) {
  mix-blend-mode:multiply;filter:grayscale(1) brightness(1.12)
}
.us .story:has(.return[href^="/usa/archive/"]) .us-full-scene {
  background:transparent;mix-blend-mode:multiply;filter:brightness(1.045)
}
.cn .story:has(.return[href^="/china/archive/"]) .cn-scene {filter:grayscale(1) brightness(1.11)}
