/* 文化与公共评论 · a wall of pasted posters.
   The headline is a street poster with tear-off tabs that carry the link; headings get slapped on as you reach them. */

.w-cult {
  --bg: #DEDAD1; --paper: #FFFFFF; --ink: #141414; --muted: #4D4943; --line: rgba(20, 20, 20, .22);
  --acc: #D7352A; --acc-ink: #FFFFFF; --yel: #FFD23F; --f-poster: "YH Gu QingKe", "ZCOOL QingKe HuangYou", var(--f-ui); --f-body: var(--f-ui);
  background: #DEDAD1 url("../img/tex-grain.png");
}
.w-cult .bar { background: #141414; color: #FFFFFF; border-bottom: 0; }
.w-cult .bar__logo { padding: 3px; background: #FFFFFF; }
.w-cult .bar__logo img { width: 34px; height: 34px; }
.w-cult .bar__nav .nav__a { font-weight: 700; }
.w-cult .bar__nav .nav__a[aria-current="page"] { border-bottom-color: var(--yel); color: var(--yel); }
.w-cult .bar__btn { border-color: rgba(255, 255, 255, .35); border-radius: 0; }
.w-cult .bar__btn[aria-pressed="true"] { background: var(--yel); color: #141414; border-color: var(--yel); }
.w-cult .prog i { background: var(--acc); height: 5px; }

/* ---------- hero: the poster ---------- */
.w-cult .ah { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; align-items: start; width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding-top: 64px; }
.w-cult .ah__poster {
  position: relative; z-index: 1; padding: 44px 48px 0; background: var(--yel); color: #141414;
  border: 3px solid #141414; box-shadow: 12px 12px 0 #141414; transform: rotate(-.8deg);
  animation: cult-paste .7s cubic-bezier(.2, 1.3, .4, 1) both;
}
.w-cult .ah__poster::before, .w-cult .ah__poster::after { content: ""; position: absolute; top: -14px; width: 92px; height: 28px; background: rgba(255, 255, 255, .62); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.w-cult .ah__poster::before { left: 36px; transform: rotate(-7deg); }
.w-cult .ah__poster::after { right: 40px; transform: rotate(5deg); }
@keyframes cult-paste { from { opacity: 0; transform: rotate(-7deg) scale(1.12); } 60% { opacity: 1; } to { opacity: 1; transform: rotate(-.8deg); } }

.w-cult .ah__cat { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; background: var(--acc); color: #FFFFFF; font-weight: 700; letter-spacing: .08em; }
.w-cult .ah__cat:hover { background: #141414; }
.w-cult .ah__t { margin-top: 18px; font-family: var(--f-poster); font-weight: 400; font-size: 92px; line-height: .98; letter-spacing: -.01em; }
.w-cult .ah__t span { display: block; }
.w-cult .ah__lede { margin-top: 26px; max-width: 24em; font-size: 20px; line-height: 1.7; font-weight: 700; }
.w-cult .ah__meta { margin-top: 18px; font-size: 14px; }
.w-cult .ah__meta dt { color: #5A4A10; }

/* tear-off tabs: each one carries the link */
.w-cult .tabs__cap { margin-top: 30px; font-size: 13px; font-weight: 700; }
.w-cult .tabs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); margin: 10px -48px 0; border-top: 2px dashed #141414; }
.w-cult .tabs li { position: relative; }
.w-cult .tabs li + li { border-left: 2px dashed #141414; }
.w-cult .tab { display: grid; place-items: center; width: 100%; height: 184px; padding: 10px 0; background: var(--yel); transform-origin: 50% 0; transition: transform .2s; }
.w-cult .tab span { writing-mode: vertical-rl; white-space: nowrap; font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.w-cult .tab:hover { transform: rotate(-4deg); }
.w-cult .tab.is-torn { animation: cult-tear .9s cubic-bezier(.5, 0, .8, .6) both; pointer-events: none; }
.w-cult .tabs li:has(.is-torn)::after { content: "已复制"; position: absolute; left: 0; right: 0; top: 10px; text-align: center; font-size: 12px; font-weight: 700; color: rgba(20, 20, 20, .55); animation: cult-copied .9s both; }
@keyframes cult-tear { 0% { transform: none; } 25% { transform: rotate(-9deg) translateY(4px); } 100% { opacity: 0; transform: translate(26px, 240px) rotate(38deg); } }
@keyframes cult-copied { 0%, 60% { opacity: 0; } 100% { opacity: 1; } }

.w-cult .ah__pic { position: relative; margin: 92px 0 0 -40px; padding: 12px 12px 14px; background: #FFFFFF; border: 2.5px solid #141414; transform: rotate(2.2deg); box-shadow: 8px 8px 0 rgba(20, 20, 20, .85); }
.w-cult .ah__pic::before { content: ""; position: absolute; z-index: 2; top: -15px; left: 50%; width: 110px; height: 30px; margin-left: -55px; background: rgba(250, 232, 160, .9); transform: rotate(-3deg); }
.w-cult .ah__pic span { position: relative; display: block; overflow: hidden; }
.w-cult .ah__pic span::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(20, 20, 20, .4) 1px, transparent 1.4px) 0 0 / 5px 5px; mix-blend-mode: multiply; }
.w-cult .ah__pic img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 62% 50%; filter: grayscale(1) contrast(1.35) brightness(1.05); }
.w-cult .ah__pic figcaption { margin-top: 10px; font-size: 13px; font-weight: 700; }

/* ---------- body: black-on-white poster paper ---------- */
.w-cult .ag { margin-top: 96px; }
.w-cult .prose { padding: 50px 56px 60px; background: #FFFFFF; border: 3px solid #141414; box-shadow: 10px 10px 0 #141414; }
.w-cult .prose > p:first-child { font-size: 19px; font-weight: 500; line-height: 1.9; }
.w-cult.deco .prose h2 {
  justify-self: start; display: table; margin-top: 2.2em; padding: 8px 16px 10px; margin-left: -20px;
  background: #141414; color: var(--yel); font-family: var(--f-poster); font-weight: 400; font-size: 31px; line-height: 1.2; letter-spacing: .01em;
  transform: rotate(-1.2deg); box-shadow: 6px 6px 0 var(--acc);
  animation: cult-slap linear both; animation-timeline: view(); animation-range: entry 10% entry 70%;
}
@keyframes cult-slap { from { transform: rotate(-7deg) scale(1.18) translateY(-10px); } to { transform: rotate(-1.2deg) scale(1); } }
.w-cult.deco .prose a { text-decoration-color: var(--acc); text-decoration-thickness: 3px; }
.w-cult .cut::before { background: linear-gradient(rgba(255, 255, 255, 0), #FFFFFF); }
.w-cult .cut a { border-width: 3px; font-weight: 700; }

.w-cult .toc h2 { color: #141414; font-weight: 700; }
.w-cult .toc ol { gap: 6px; }
.w-cult .toc a { color: #141414; background: #FFFFFF; border: 2px solid #141414; border-radius: 0; font-weight: 500; }
.w-cult .toc a:hover { background: var(--yel); }
.w-cult .toc a[aria-current="true"] { background: #141414; color: var(--yel); }

.w-cult .rail__note { position: relative; padding: 22px 18px 18px; background: #FFF3A8; transform: rotate(1.5deg); box-shadow: 0 10px 16px -10px rgba(0, 0, 0, .45); }
.w-cult .rail__note::before { content: ""; position: absolute; top: -10px; left: 50%; width: 70px; height: 20px; margin-left: -35px; background: rgba(255, 255, 255, .7); transform: rotate(-4deg); }
.w-cult .rail__note p { color: #3A3528; }
.w-cult .rail__btn { border: 2px solid #141414; font-weight: 700; }
.w-cult .rail__btn:hover { background: #141414; color: var(--yel); }

/* ---------- end matter ---------- */
.w-cult .ae h2 { font-family: var(--f-poster); font-weight: 400; font-size: 24px; }
.w-cult .tags a { border: 2px solid #141414; background: #FFFFFF; font-weight: 700; }
.w-cult .tags a::before { content: "#"; color: var(--acc); margin-right: 2px; }
.w-cult .tags a:hover { background: var(--yel); }
.w-cult .author { background: #FFFFFF; border: 3px solid #141414; box-shadow: 8px 8px 0 #141414; }
.w-cult .author img { filter: grayscale(1) contrast(1.3); }
.w-cult .author h3 { font-family: var(--f-poster); font-weight: 400; font-size: 26px; }
.w-cult .cmt__empty { display: inline-block; padding: 12px 18px; background: #FFFFFF; border: 2px solid #141414; border-radius: 20px 20px 20px 2px; color: #141414; font-weight: 500; }
.w-cult .cmt__form textarea { background: #FFFFFF; border: 2px solid #141414; }
.w-cult .cmt__form button { background: var(--acc); color: #FFFFFF; font-weight: 700; box-shadow: 4px 4px 0 #141414; }

.w-cult .ft { border-top: 3px solid #141414; }
.w-cult .sub input[type="email"] { border: 2px solid #141414; border-radius: 0; background: #FFFFFF; }
.w-cult .sub button { border-radius: 0; }

@container yh (max-width: 760px) {
  .w-cult .ah { grid-template-columns: minmax(0, 1fr); width: calc(100% - 32px); padding-top: 34px; }
  .w-cult .ah__poster { padding: 30px 22px 0; box-shadow: 7px 7px 0 #141414; }
  .w-cult .ah__t { font-size: 54px; }
  .w-cult .ah__lede { font-size: 17px; }
  .w-cult .tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-inline: -22px; }
  .w-cult .tabs li:nth-child(n + 7) { display: none; }
  .w-cult .tab { height: 170px; }
  .w-cult .tab span { font-size: 11.5px; }
  .w-cult .ah__pic { margin: 40px 10px 0; }
  .w-cult .ag { margin-top: 48px; }
  .w-cult .prose { padding: 28px 20px 36px; box-shadow: 6px 6px 0 #141414; }
  .w-cult.deco .prose h2 { margin-left: -8px; font-size: 25px; }
}

/* poster type steps down with the longest line, so no line leaves a single character behind */
.w-cult .ah__t.is-l { font-size: 74px; }
.w-cult .ah__t.is-m { font-size: 58px; line-height: 1.05; }
.w-cult .ah__t.is-s { font-size: 46px; line-height: 1.1; }
.w-cult .ah__t.is-xs { font-size: 38px; line-height: 1.15; }
.w-cult .ah__t.is-en { font-size: 54px; line-height: 1.05; letter-spacing: -.01em; }
.w-cult .ah__t > span { display: block; }
@container yh (max-width: 760px) {
  .w-cult .ah__t.is-l { font-size: 46px; }
  .w-cult .ah__t.is-m { font-size: 38px; }
  .w-cult .ah__t.is-s { font-size: 31px; }
  .w-cult .ah__t.is-xs { font-size: 27px; }
  .w-cult .ah__t.is-en { font-size: 36px; }
}
