/* Blog: homepage section and post page */
.tp-blog{max-width:1560px;margin:0 auto;padding:70px 5.4% 90px;scroll-margin-top:90px}
.tp-blog h2{margin:0 0 40px;font:600 clamp(30px,3.4vw,50px)/.98 "Plus Jakarta Sans","Inter",sans-serif;letter-spacing:-.045em;color:#24201f}
.tp-jj{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(0,1fr);gap:clamp(32px,4vw,64px);align-items:start}
.tp-jj-photo{margin:0}
.tp-jj-frame{display:block;padding:12px;background:#fff;box-shadow:0 0 0 1px rgba(36,32,31,.16),0 18px 30px -14px rgba(50,35,30,.4);text-decoration:none;color:inherit}
.tp-jj-frame:focus-visible,.tp-story-more:focus-visible,.tp-story-title a:focus-visible,.tp-jj-btn:focus-visible{outline:2px solid #2150c0;outline-offset:3px}
.tp-jj-stack{position:relative;display:block;aspect-ratio:4 / 3;background:#f3eee9}
.tp-jj-img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:contain;background:#f3eee9;opacity:0;transition:opacity .9s ease}
.tp-jj-img.is-on{opacity:1}
.tp-jj-cap{display:flex;flex-direction:column;gap:3px;margin-top:14px}
.tp-jj-tag{font:700 10.5px "Plus Jakarta Sans","Inter",sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#ff2d95}
.tp-jj-name{font:600 18px/1.25 "Plus Jakarta Sans","Inter",sans-serif;letter-spacing:-.02em;color:#24201f}
.tp-jj-label{margin:0 0 6px;padding-bottom:14px;border-bottom:1.5px solid #24201f;font:700 12px "Plus Jakarta Sans","Inter",sans-serif;letter-spacing:.16em;text-transform:uppercase}
.tp-posts{display:block}
.tp-story{display:grid;grid-template-columns:88px minmax(0,1fr);gap:16px;padding:20px 0;border-bottom:1px solid #f0d9e2}
.tp-story-thumb{display:block;width:88px;height:88px;overflow:hidden;background:#f3eee9;border:0;border-radius:12px}
.tp-story-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.tp-story-body{min-width:0}
.tp-story-title{margin:0;font:600 19px/1.15 "Plus Jakarta Sans","Inter",sans-serif;letter-spacing:-.035em}
.tp-story-title a{color:inherit;text-decoration:none}
.tp-story-title a:hover{text-decoration:underline;text-underline-offset:4px}
.tp-story-meta{margin:6px 0 0;font:500 10.5px "Inter",monospace;letter-spacing:1px;text-transform:uppercase;color:#66605c}
.tp-story-excerpt{margin:8px 0 0;font:400 13.5px/1.55 "Inter",sans-serif;color:#66605c;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tp-story-more{display:inline-block;margin-top:10px;font:700 11px "Plus Jakarta Sans","Inter",sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#24201f;text-decoration:none;border-bottom:2px solid #ffed00;padding-bottom:2px}
.tp-story-more:hover{border-color:#ff2d95}
.tp-jj-btn{display:inline-flex;align-items:center;height:52px;margin-top:44px;padding:0 30px;border:1.5px solid #1b2a52;border-radius:999px;background:#ffed00;color:#1b2a52;font:700 13px "Plus Jakarta Sans","Inter",sans-serif;letter-spacing:.14em;text-transform:uppercase;text-decoration:none;transition:background-color .15s}
.tp-jj-btn:hover{background:#fff35c}
@media(max-width:900px){.tp-jj{grid-template-columns:1fr}.tp-jj-stack{aspect-ratio:1 / 1}.tp-jj-btn{width:100%;justify-content:center;margin-top:36px}}
@media(prefers-reduced-motion:reduce){.tp-jj-img,.tp-jj-stack{transition:none}}
/* post layout v2: narrow reading column, eyebrow, rounded cover, divider with likes and tags */
.tp-article-wrap{max-width:820px;padding:44px 24px 110px}
.tp-eyebrow{margin:0 0 12px;font:700 12px "Plus Jakarta Sans","Inter",sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#66605c}
.tp-article-title{margin:0 0 16px;font:700 clamp(32px,4.4vw,48px)/1.08 "Plus Jakarta Sans","Inter",sans-serif;letter-spacing:-.04em}
.tp-byline{margin:0 0 26px;font:500 14px "Inter",sans-serif;letter-spacing:0;text-transform:none;color:#66605c}
.tp-article-cover{display:block;width:100%;height:auto;aspect-ratio:16 / 9;object-fit:cover;margin:0 0 40px;border:0;border-radius:18px;background:#f3eee9}
.tp-article-body{font:400 18px/1.75 "Inter",sans-serif;color:#24201f}
.tp-article-body p{margin:0 0 1.15em}
.tp-post-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:44px;padding-top:20px;border-top:1px solid #24201f}
.tp-post-stats{margin:0;font:500 14px "Inter",sans-serif;color:#66605c;white-space:pre}
.tp-like{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 18px;border:1.5px solid #24201f;border-radius:999px;background:#fff;color:#24201f;font:600 14px "Inter",sans-serif;cursor:pointer;transition:background-color .15s}
.tp-like:hover:not(:disabled){background:#fbe3ee}
.tp-like.is-on{background:#f7bfd3}
.tp-like:disabled{opacity:.6;cursor:wait}
.tp-like:focus-visible{outline:2px solid #2150c0;outline-offset:3px}
.tp-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.tp-tags:empty{display:none}
.tp-tag-pill{padding:6px 14px;border:1px solid #24201f;border-radius:999px;background:#fff;font:500 13px "Inter",sans-serif}
.tp-related-title{margin:64px 0 10px;padding-top:0;border-top:0;font:700 22px "Plus Jakarta Sans","Inter",sans-serif;letter-spacing:-.03em}
@media(max-width:640px){.tp-article-wrap{padding:30px 20px 80px}.tp-article-cover{border-radius:14px;margin-bottom:30px}.tp-article-body{font-size:17px}.tp-post-bar{margin-top:34px}}
/* post page base rules (restored) */
html body .tp-article-wrap{max-width:820px;margin:0 auto;padding:44px 24px 110px;color:#24201f}
.tp-article-wrap .tp-back{display:inline-block;margin:0 0 34px;font:700 12px "Plus Jakarta Sans","Inter",sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#24201f;text-decoration:none;border-bottom:2px solid #ffed00;padding-bottom:3px}
.tp-article-wrap .tp-back:hover{border-color:#ff2d95}
.tp-related{margin:0;padding:0;list-style:none}
.tp-related li{padding:12px 0;border-bottom:1px solid #f0d9e2}
.tp-related a{color:#24201f;font:600 17px "Plus Jakarta Sans","Inter",sans-serif;text-decoration:none}
.tp-related a:hover{text-decoration:underline;text-underline-offset:4px}
.tp-article-body a{color:#2150c0}
.tp-article-body img{max-width:100%;height:auto;border-radius:12px}
.tp-jj-star{display:inline-block;width:.62em;height:.62em;margin-left:.08em;vertical-align:.04em;transform:rotate(-6deg)}

.tp-story{align-items:center}

.tp-story{align-items:start}
.tp-story-title{margin-top:-2px}
.tp-blog{border-top:1px solid #000}

.tp-blog{border-top:0 !important;padding-top:0 !important}
.tp-blog::before{content:"";display:block;height:0;border-top:1px solid #000;margin:0 0 70px}

/* Look inside tag hanging from the Junk Journal star */
.tp-blog h2{margin-bottom:120px}
.tp-jj-starwrap{position:relative;display:inline-block;vertical-align:baseline}
.tp-jj-tag{position:absolute;top:calc(100% - 4px);left:50%;margin-left:-38px;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px;width:76px;height:98px;padding:0 6px 11px;margin-top:26px;box-sizing:border-box;border:2.5px solid #1a1a2a;border-radius:7px;background:#f68fc3;color:#1a1a2a;font:800 12px/1.15 "Plus Jakarta Sans","Inter",sans-serif;letter-spacing:.04em;text-align:center;text-transform:uppercase;text-decoration:none;transform:rotate(-3deg);transform-origin:50% -26px;box-shadow:2px 3px 0 rgba(0,0,0,.25)}
.tp-jj-tag::before{content:"";position:absolute;top:9px;left:50%;width:13px;height:13px;margin-left:-6.5px;border:2px solid #1a1a2a;border-radius:50%;background:#fff}
.tp-jj-tag::after{content:"";position:absolute;bottom:100%;left:50%;width:2px;height:26px;margin-left:-1px;background:#1a1a2a}
.tp-jj-tag svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.tp-jj-tag:hover{animation:tpSwing .7s ease-in-out}
@media(prefers-reduced-motion:reduce){.tp-jj-tag:hover{animation:none}}
@media(max-width:600px){.tp-blog h2{margin-bottom:110px}.tp-jj-tag{scale:.85}}

.tp-jj-tag{display:none !important}
.tp-blog h2{margin-bottom:40px !important}

.tp-jj-cap{display:none !important}

/* smaller homepage picture */
.tp-jj{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
.tp-jj-img{transition-duration:.6s}
@media(max-width:900px){.tp-jj{grid-template-columns:1fr}.tp-jj-photo{width:78%;max-width:340px}}

/* picture size: a bit smaller on desktop, full width on phones */
@media(min-width:901px){.tp-jj{grid-template-columns:minmax(0,.9fr) minmax(0,1fr)}}
@media(max-width:900px){.tp-jj-photo{width:100%;max-width:none}}

/* no views / comments line on blog posts */
.tp-post-stats{display:none !important}
.tp-post-bar{justify-content:flex-start}

/* Junk Journal on the homepage: three gallery boxes across, three articles underneath */
.tp-jj.tp-jj-rows{display:block}
.tp-jj-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(10px,2vw,28px)}
.tp-jj-box{margin:0;padding:clamp(5px,.9vw,12px);background:#fff;box-shadow:0 0 0 1px rgba(36,32,31,.16),0 18px 30px -16px rgba(50,35,30,.4)}
.tp-jj-box img{display:block;width:100%;aspect-ratio:4 / 3;object-fit:cover;background:#f3eee9}
.tp-jj.tp-jj-rows .tp-jj-label{margin:clamp(34px,4vw,56px) 0 22px}
.tp-posts.tp-posts-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(18px,2.4vw,36px)}
.tp-card{min-width:0}
.tp-card-thumb{display:block;overflow:hidden;border-radius:14px;background:#f3eee9}
.tp-card-thumb img{display:block;width:100%;aspect-ratio:3 / 2;object-fit:cover}
.tp-card-title{margin:14px 0 0;font:600 20px/1.15 "Plus Jakarta Sans","Inter",sans-serif;letter-spacing:-.035em}
.tp-card-title a{color:inherit;text-decoration:none}
.tp-card-title a:hover{text-decoration:underline;text-underline-offset:4px}
.tp-card-excerpt{margin:8px 0 0;font:400 14px/1.55 "Inter",sans-serif;color:#66605c}
.tp-posts-row .tp-products-status{grid-column:1/-1}
@media(max-width:700px){.tp-jj-gallery{gap:8px}.tp-posts.tp-posts-row{grid-template-columns:1fr;gap:26px}.tp-card-thumb img{aspect-ratio:16 / 9}}

html body .tp-jj-gallery .tp-jj-box img{width:100% !important;height:auto !important;aspect-ratio:4 / 3 !important;object-fit:cover !important;position:static !important}
html body .tp-jj-gallery .tp-jj-box{height:auto !important;aspect-ratio:auto !important}

html body .tp-card .tp-card-thumb img{width:100% !important;height:auto !important;aspect-ratio:3 / 2 !important;object-fit:cover !important}
@media(max-width:700px){html body .tp-card .tp-card-thumb img{aspect-ratio:16 / 9 !important}}

/* smaller article cards */
html body .tp-posts.tp-posts-row{gap:clamp(16px,2vw,28px) !important}
html body .tp-card .tp-card-thumb{border-radius:10px !important}
html body .tp-card .tp-card-thumb img{aspect-ratio:2 / 1 !important}
html body .tp-card .tp-card-title{font-size:16px !important;margin-top:10px !important}
html body .tp-card .tp-card-excerpt{font-size:13px !important;line-height:1.5 !important;margin-top:5px !important}
@media(max-width:700px){html body .tp-card .tp-card-thumb img{aspect-ratio:2 / 1 !important}html body .tp-posts.tp-posts-row{gap:20px !important}}

html body section#blog.tp-blog{background:#FFF9F0 !important;box-shadow:0 0 0 100vmax #FFF9F0 !important;clip-path:inset(0 -100vmax) !important}

/* ===== Magazine layout ===== */
html body .tp-jj-gallery{display:grid !important;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr) !important;grid-template-rows:auto auto;gap:clamp(12px,1.8vw,24px) !important;align-items:stretch}
html body .tp-jj-gallery .tp-jj-box{display:flex;margin:0;padding:clamp(6px,.8vw,11px) !important}
html body .tp-jj-gallery .tp-jj-box:nth-child(1){grid-row:1 / span 2;transform:rotate(-.6deg)}
html body .tp-jj-gallery .tp-jj-box:nth-child(2){transform:rotate(.7deg)}
html body .tp-jj-gallery .tp-jj-box:nth-child(3){transform:rotate(-.4deg)}
html body .tp-jj-gallery .tp-jj-box img{width:100% !important;flex:1 1 auto;min-height:0}
html body .tp-jj-gallery .tp-jj-box:nth-child(1) img{height:100% !important;aspect-ratio:auto !important;min-height:300px}
html body .tp-jj-gallery .tp-jj-box:nth-child(n+2) img{height:auto !important;aspect-ratio:16 / 10 !important}
html body .tp-jj.tp-jj-rows .tp-jj-label{display:flex;justify-content:space-between;border-bottom:3px double #1a1a1a;padding-bottom:10px;margin-top:clamp(40px,5vw,72px) !important}
html body .tp-posts.tp-posts-row{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr) !important;grid-template-rows:auto auto;column-gap:clamp(20px,3vw,44px) !important;row-gap:0 !important}
html body .tp-posts-row .tp-card{display:block;min-width:0}
html body .tp-posts-row .tp-card:nth-child(1){grid-row:1 / span 2;padding-right:clamp(0px,2vw,28px);border-right:1px solid rgba(26,26,26,.3)}
html body .tp-posts-row .tp-card:nth-child(n+2){display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);column-gap:16px;align-content:start;padding:0 0 18px;margin-bottom:18px;border-bottom:1px solid rgba(26,26,26,.3)}
html body .tp-posts-row .tp-card:nth-child(3){border-bottom:0;margin-bottom:0;padding-bottom:0}
html body .tp-posts-row .tp-card:nth-child(n+2) .tp-card-thumb{grid-row:1 / span 3;align-self:start}
html body .tp-posts-row .tp-card:nth-child(n+2) .tp-card-thumb img{aspect-ratio:1 / 1 !important}
.tp-card-no{display:flex;justify-content:space-between;gap:10px;margin:12px 0 0;font:700 10px/1 "Plus Jakarta Sans","Inter",sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#d6203a}
.tp-card-no span:last-child{color:#1a1a1a;opacity:.55}
html body .tp-posts-row .tp-card:nth-child(1) .tp-card-title{font-size:clamp(24px,2.6vw,36px) !important;line-height:1.05 !important;margin-top:10px !important}
html body .tp-posts-row .tp-card:nth-child(1) .tp-card-excerpt{font-size:15px !important;max-width:46ch}
html body .tp-posts-row .tp-card:nth-child(1) .tp-card-thumb img{aspect-ratio:16 / 10 !important}
html body .tp-posts-row .tp-card:nth-child(n+2) .tp-card-no{margin-top:2px}
html body .tp-posts-row .tp-card:nth-child(n+2) .tp-card-title{font-size:18px !important;margin-top:8px !important}
@media(max-width:700px){
html body .tp-jj-gallery{grid-template-columns:1fr 1fr !important}
html body .tp-jj-gallery .tp-jj-box:nth-child(1){grid-column:1 / -1;grid-row:auto;transform:none}
html body .tp-jj-gallery .tp-jj-box:nth-child(1) img{aspect-ratio:4 / 3 !important;height:auto !important;min-height:0}
html body .tp-jj-gallery .tp-jj-box:nth-child(n+2){transform:none}
html body .tp-posts.tp-posts-row{grid-template-columns:1fr !important}
html body .tp-posts-row .tp-card:nth-child(1){grid-row:auto;padding:0 0 22px;margin-bottom:22px;border-right:0;border-bottom:1px solid rgba(26,26,26,.3)}
html body .tp-posts-row .tp-card:nth-child(n+2){grid-template-columns:96px minmax(0,1fr)}
}

html body .tp-posts-row .tp-card:nth-child(n+2){grid-template-rows:auto auto 1fr !important}

html body .tp-posts-row .tp-card:nth-child(1) .tp-card-thumb img{aspect-ratio:2.1 / 1 !important}
@media(max-width:700px){html body .tp-posts-row .tp-card:nth-child(1) .tp-card-thumb img{aspect-ratio:2 / 1 !important}}

@media(min-width:701px){html body .tp-posts.tp-posts-row{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) !important}html body .tp-posts-row .tp-card:nth-child(1) .tp-card-thumb img{aspect-ratio:3 / 2 !important}}

@media(min-width:701px){html body .tp-posts-row .tp-card:nth-child(1) .tp-card-thumb img{aspect-ratio:2.1 / 1 !important}html body .tp-posts-row .tp-card:nth-child(n+2){grid-template-columns:150px minmax(0,1fr) !important}}

/* three equal posts in a row */
@media(min-width:701px){
html body .tp-posts.tp-posts-row{grid-template-columns:repeat(3,minmax(0,1fr)) !important;grid-template-rows:auto !important;column-gap:clamp(18px,2.4vw,34px) !important;row-gap:0 !important}
html body .tp-posts-row .tp-card,html body .tp-posts-row .tp-card:nth-child(1),html body .tp-posts-row .tp-card:nth-child(n+2),html body .tp-posts-row .tp-card:nth-child(3){display:block !important;grid-row:auto !important;grid-template-columns:none !important;grid-template-rows:none !important;padding:0 !important;margin:0 !important;border:0 !important}
html body .tp-posts-row .tp-card .tp-card-thumb img,html body .tp-posts-row .tp-card:nth-child(1) .tp-card-thumb img,html body .tp-posts-row .tp-card:nth-child(n+2) .tp-card-thumb img{aspect-ratio:2 / 1 !important}
html body .tp-posts-row .tp-card .tp-card-no,html body .tp-posts-row .tp-card:nth-child(n+2) .tp-card-no{margin-top:12px}
html body .tp-posts-row .tp-card .tp-card-title,html body .tp-posts-row .tp-card:nth-child(1) .tp-card-title,html body .tp-posts-row .tp-card:nth-child(n+2) .tp-card-title{font-size:18px !important;line-height:1.15 !important;margin-top:8px !important}
html body .tp-posts-row .tp-card .tp-card-excerpt,html body .tp-posts-row .tp-card:nth-child(1) .tp-card-excerpt{font-size:13px !important;max-width:none}
}

/* smaller post pictures */
html body .tp-posts-row .tp-card .tp-card-thumb img,html body .tp-posts-row .tp-card:nth-child(1) .tp-card-thumb img,html body .tp-posts-row .tp-card:nth-child(n+2) .tp-card-thumb img{aspect-ratio:3 / 1 !important}
@media(max-width:700px){html body .tp-posts-row .tp-card .tp-card-thumb img,html body .tp-posts-row .tp-card:nth-child(1) .tp-card-thumb img{aspect-ratio:2.6 / 1 !important}}

/* narrower post pictures */
html body .tp-posts-row .tp-card .tp-card-thumb{width:62% !important}
html body .tp-posts-row .tp-card .tp-card-thumb img,html body .tp-posts-row .tp-card:nth-child(1) .tp-card-thumb img,html body .tp-posts-row .tp-card:nth-child(n+2) .tp-card-thumb img{aspect-ratio:4 / 3 !important}
@media(max-width:700px){
html body .tp-posts-row .tp-card .tp-card-thumb{width:56% !important}
html body .tp-posts-row .tp-card .tp-card-thumb img,html body .tp-posts-row .tp-card:nth-child(1) .tp-card-thumb img{aspect-ratio:4 / 3 !important}
}

/* text as narrow as the picture */
html body .tp-posts-row .tp-card .tp-card-no,html body .tp-posts-row .tp-card .tp-card-title,html body .tp-posts-row .tp-card .tp-card-excerpt{width:62% !important;max-width:none !important}
@media(max-width:700px){html body .tp-posts-row .tp-card .tp-card-no,html body .tp-posts-row .tp-card .tp-card-title,html body .tp-posts-row .tp-card .tp-card-excerpt{width:56% !important}}

html body main section#blog.tp-blog{background:#fff !important;box-shadow:0 0 0 100vmax #fff !important;clip-path:inset(0 -100vmax) !important}
