/* Cast Out — THE TRACT RACK (v1.4): a rack of parody tracts beside the
   Inquisition rail. Magazine-cutout paper, pop-up-book hovers, vectors of
   religious mockery (spinning halo-coins, flapping winged halos, the
   all-seeing eye), and gold dust from heaven. Palette: desk #DCCDA9 ·
   paper #F4E8CE · ink #16120E · gold #E3B23C · ochre #B07E1C · brick #8E2F21. */

.co-rack-page { background: #DCCDA9; background-image: radial-gradient( rgba( 120, 90, 40, .09 ) 1px, transparent 1.4px ); background-size: 7px 7px; }
.co-rack { --co-desk: #DCCDA9; max-width: 1380px; margin: 0 auto; padding: 26px 24px 90px; font-family: 'Space Grotesk', system-ui, sans-serif; color: #16120E; }

@keyframes coGearSpin { to { transform: rotate( 360deg ); } }
@keyframes coDeal { from { opacity: 0; transform: translateY( 34px ) rotate( var( --lean, 0deg ) ) scale( .96 ); } }
@keyframes coBob { 0%, 100% { transform: translateY( 0 ) rotate( -8deg ); } 50% { transform: translateY( -4px ) rotate( 10deg ); } }
@keyframes coInkFlicker { 0%, 100% { opacity: .82; } 50% { opacity: 1; } }
@keyframes coWrath { from { width: 0; } }
@keyframes coSpotSweep { to { left: 130%; } }
@keyframes coFlap { from { transform: rotate( 7deg ); } to { transform: rotate( -13deg ); } }
@keyframes coHover { 0%, 100% { transform: translateY( 0 ); } 50% { transform: translateY( -6px ); } }
@keyframes coBars { from { transform: scaleY( .25 ); } to { transform: scaleY( 1 ); } }

/* ---- the iconography of mockery ---- */
.co-ic { display: block; }
.co-ic__spin { animation: coGearSpin 12s linear infinite; transform-box: view-box; transform-origin: center; }
.co-ic--eye .co-ic__spin { animation-duration: 18s; }
.co-ic__flap { animation: coFlap 1.5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: right center; }
.co-ic__flap--r { transform-origin: left center; animation-name: coFlapR; }
@keyframes coFlapR { from { transform: rotate( -7deg ); } to { transform: rotate( 13deg ); } }
.co-ic--halo { animation: coHover 3.2s ease-in-out infinite; }

/* ---- gold dust from heaven ---- */
.co-dust { position: fixed; inset: 0; z-index: 60; pointer-events: none; }

/* ---- masthead ---- */
.co-rack__mast { position: relative; text-align: center; border-bottom: 3px double #16120E; padding: 30px 160px 24px; margin-bottom: 22px; }
.co-rack__icons { position: absolute; right: 4px; top: 10px; display: flex; align-items: flex-start; }
.co-rack__icons .co-ic + .co-ic { margin-left: -8px; margin-top: 34px; }
.co-rack__icons--left { left: 4px; right: auto; flex-direction: row-reverse; }
.co-rack__icons--left .co-ic + .co-ic { margin-left: 0; margin-right: -8px; }
.co-rack__over { display: block; font-family: 'IM Fell English', serif; font-style: italic; font-size: 14.5px; color: #6b5638; }
.co-rack__title { margin: 6px 0 0; font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: clamp( 52px, 8vw, 108px ); line-height: .84; text-transform: uppercase; }
.co-rack__title span { color: #8E2F21; }
.co-rack__sub { margin: 10px auto 0; max-width: 64ch; font-family: 'IM Fell English', serif; font-size: 14px; color: #4a3c28; }

/* ---- the spotlight: nailed to the door ---- */
.co-rack__spot { position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: #16120E; color: #F1E6D2; box-shadow: 6px 7px 0 rgba( 22, 18, 14, .24 ); padding: 16px 20px; text-decoration: none; margin-bottom: 26px; }
.co-rack__spot::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 38%; background: linear-gradient( 90deg, transparent, rgba( 227, 178, 60, .12 ), transparent ); transform: skewX( -18deg ); animation: coSpotSweep 5s ease-in-out infinite; pointer-events: none; }
.co-rack__spot-pin { flex: none; background: #E3B23C; color: #16120E; font-size: 9.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; padding: 7px 10px; transform: rotate( -3deg ); box-shadow: 0 4px 0 rgba( 0, 0, 0, .35 ); }
.co-rack__spot-body { flex: 1; min-width: 220px; }
.co-rack__spot-body em { display: block; font-family: 'IM Fell English', serif; font-size: 11.5px; color: rgba( 241, 230, 210, .55 ); }
.co-rack__spot-body b { display: block; font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: clamp( 22px, 3vw, 34px ); line-height: .9; text-transform: uppercase; }
.co-rack__spot-body i { display: block; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #E3B23C; margin-top: 6px; }
.co-rack__spot-go { flex: none; background: #8E2F21; color: #F1E6D2; font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 12px 16px; transition: transform .15s; }
.co-rack__spot:hover .co-rack__spot-go { transform: translateX( 4px ); }

/* ---- layout: the rack + the Inquisition rail ---- */
.co-rack__layout { display: flex; gap: 26px; align-items: flex-start; }
.co-rack__main { flex: 1; min-width: 0; }
.co-rack__rail { flex: 0 0 300px; max-width: 300px; position: sticky; top: 20px; display: flex; flex-direction: column; gap: 18px; max-height: calc( 100vh - 40px ); overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.co-rack__rail::-webkit-scrollbar { display: none; }

/* ---- rail widgets ---- */
.co-rw { position: relative; background: #F4E8CE; border: 2px solid #16120E; box-shadow: 5px 5px 0 rgba( 22, 18, 14, .22 ); padding: 18px; }
.co-rw__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.co-rw__eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #B07E1C; margin-bottom: 4px; }
.co-rw__eyebrow--gold { color: #E3B23C; }
.co-rw__title { font-family: 'Big Shoulders Display', sans-serif; font-weight: 800; font-size: 22px; text-transform: uppercase; line-height: .95; }
.co-rw__big { font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: 26px; text-transform: uppercase; line-height: .9; margin-top: 8px; }
.co-rw__p { font-family: 'IM Fell English', serif; font-style: italic; font-size: 12.5px; line-height: 1.5; color: #4a3c28; margin: 8px 0 0; }
.co-rw__fine { font-size: 10px; color: #6b5638; margin-top: 12px; border-top: 1px dotted rgba( 22, 18, 14, .35 ); padding-top: 8px; font-family: 'IM Fell English', serif; font-style: italic; }

/* the Inquisition */
.co-finq__search { width: 100%; box-sizing: border-box; margin-top: 12px; border: 1.5px solid #16120E; background: #FBF6EC; font: 600 13px 'Space Grotesk', sans-serif; color: #16120E; padding: 10px 12px; outline: none; }
.co-finq__search::placeholder { color: rgba( 22, 18, 14, .45 ); font-style: italic; }
.co-finq__search:focus { box-shadow: 3px 3px 0 rgba( 22, 18, 14, .22 ); }
.co-finq__count { font-size: 9.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #8E2F21; margin-top: 8px; }
.co-finq__lab { font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #6b5638; margin: 14px 0 7px; border-top: 1px dotted rgba( 22, 18, 14, .3 ); padding-top: 10px; }
.co-finq__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.co-finq__chips button { border: 1.5px solid #16120E; background: #FBF6EC; color: #16120E; font: 700 10px 'Space Grotesk', sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; cursor: pointer; transition: background .15s, color .15s; }
.co-finq__chips button b { color: #B07E1C; }
.co-finq__chips button:hover { background: rgba( 227, 178, 60, .25 ); }
.co-finq__chips button.is-on { background: #16120E; color: #E3B23C; }
.co-finq__chips button.is-on b { color: #F1E6D2; }
.co-finq__reset { display: block; width: 100%; margin-top: 14px; border: 1.5px dashed #8E2F21; background: transparent; color: #8E2F21; font: 700 10px 'Space Grotesk', sans-serif; letter-spacing: .16em; text-transform: uppercase; padding: 8px; cursor: pointer; }
.co-finq__reset:hover { background: #8E2F21; color: #F1E6D2; }
.co-finq__toggle { display: flex; margin-top: 10px; }
.co-finq__toggle button { flex: 1; border: 1.5px solid #16120E; background: transparent; color: #16120E; font: 700 10.5px 'Space Grotesk', sans-serif; letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; cursor: pointer; }
.co-finq__toggle button + button { border-left: none; }
.co-finq__toggle button.is-on { background: #16120E; color: #E3B23C; }

/* the Wrath Forecast */
.co-rw__meter { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 8.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #8E2F21; }
.co-rw__meter i { flex: 1; height: 8px; border: 1.5px solid #16120E; background: #F9F0DC; overflow: hidden; display: block; }
.co-rw__meter b { display: block; height: 100%; background: repeating-linear-gradient( 135deg, #8E2F21 0 6px, #E3B23C 6px 12px ); animation: coWrath .9s ease-out .3s backwards; }
.co-rw__lines { list-style: none; margin: 10px 0 0; padding: 0; font-family: 'IM Fell English', serif; font-style: italic; font-size: 12.5px; line-height: 1.5; color: #4a3c28; }
.co-rw__lines li { padding: 3px 0; }

/* Hymn of the Day */
.co-rw--ink { background: #16120E; color: #F1E6D2; }
.co-rw--ink .co-rw__fine { color: rgba( 241, 230, 210, .45 ); }
.co-rw__hymnrow { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.co-rw__hymnno { flex: none; min-width: 52px; text-align: center; background: #F1E6D2; color: #16120E; font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: 20px; line-height: 1; padding: 7px 6px; border-radius: 3px; box-shadow: inset 0 -3px 0 rgba( 22, 18, 14, .3 ); }
.co-rw__hymnno i { display: block; font-style: normal; font-size: 8px; letter-spacing: .3em; color: #8E2F21; margin-bottom: 2px; }
.co-rw__hymnt { flex: 1; min-width: 0; }
.co-rw__hymnt b { display: block; font-size: 13px; line-height: 1.3; }
.co-rw__hymnt span { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #E3B23C; margin-top: 3px; }
.co-rw__organ { flex: none; display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.co-rw__organ i { width: 4px; height: 100%; background: #E3B23C; transform-origin: bottom; animation: coBars .9s ease-in-out infinite alternate; }
.co-rw__organ i:nth-child(2) { animation-delay: .15s; background: #B07E1C; }
.co-rw__organ i:nth-child(3) { animation-delay: .3s; }
.co-rw__organ i:nth-child(4) { animation-delay: .45s; background: #B07E1C; }
.co-rw__verse { font-family: 'IM Fell English', serif; font-style: italic; font-size: 12.5px; line-height: 1.55; color: rgba( 241, 230, 210, .8 ); margin: 12px 0 0; }

/* the sponsored relic */
.co-rw--sponsor { border-style: double; border-width: 3px; }
.co-rw__stamp { position: absolute; top: -11px; right: 14px; background: #E3B23C; color: #16120E; font-size: 8.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; padding: 4px 9px; transform: rotate( 2deg ); box-shadow: 0 3px 0 rgba( 22, 18, 14, .3 ); }
.co-rw__buyrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.co-rw__price { font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: 20px; color: #B07E1C; }
.co-rw__btn { background: #16120E; color: #F1E6D2; text-decoration: none; font-weight: 700; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 9px 14px; transition: background .15s; }
.co-rw__btn:hover { background: #8E2F21; color: #F1E6D2; }

/* ---- the rack itself ---- */
.co-rack .co-archive__items.is-grid { display: grid; grid-template-columns: repeat( auto-fill, minmax( 280px, 1fr ) ); gap: 32px 24px; align-items: stretch; perspective: 1400px; }

.co-tcard { position: relative; display: flex; flex-direction: column; gap: 11px; background: #F4E8CE; background-image: radial-gradient( rgba( 120, 90, 40, .06 ) 1px, transparent 1.3px ); background-size: 6px 6px; border: 2.5px solid #16120E; box-shadow: 6px 7px 0 rgba( 22, 18, 14, .24 ); padding: 26px 20px 18px; text-decoration: none; color: #16120E; transform: rotate( var( --lean, 0deg ) ); transition: transform .3s cubic-bezier( .2, .9, .3, 1.35 ), box-shadow .3s; animation: coDeal .55s cubic-bezier( .2, .9, .3, 1.2 ) backwards; }
.co-tcard:nth-child(3n)   { --lean: -1.1deg; }
.co-tcard:nth-child(3n+2) { --lean: .9deg; }
.co-tcard:nth-child(5n)   { --lean: 1.7deg; }
.co-tcard:nth-child(8n+2) { animation-delay: .07s; }
.co-tcard:nth-child(8n+3) { animation-delay: .14s; }
.co-tcard:nth-child(8n+4) { animation-delay: .21s; }
.co-tcard:nth-child(8n+5) { animation-delay: .28s; }
.co-tcard:nth-child(8n+6) { animation-delay: .35s; }
.co-tcard:nth-child(8n+7) { animation-delay: .42s; }
.co-tcard:nth-child(8n)   { animation-delay: .49s; }
.co-tcard:hover, .co-tcard:focus-visible { transform: perspective( 900px ) rotateX( var( --tiltx, 3deg ) ) rotateY( var( --tilty, 0deg ) ) rotate( 0deg ) translateY( -10px ) scale( 1.025 ); box-shadow: 12px 26px 38px -16px rgba( 22, 18, 14, .55 ); z-index: 4; }

.co-tcard__tape { position: absolute; top: -13px; left: 50%; width: 110px; height: 26px; transform: translateX( -50% ) rotate( -2.4deg ); background: rgba( 227, 178, 60, .55 ); border-left: 1px dashed rgba( 22, 18, 14, .3 ); border-right: 1px dashed rgba( 22, 18, 14, .3 ); transition: transform .3s; }
.co-tcard:hover .co-tcard__tape { transform: translateX( -50% ) rotate( -2.4deg ) scaleY( 1.4 ); }
.co-tcard__mast { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 1.5px solid #16120E; padding-bottom: 7px; }
.co-tcard__mast em { font-family: 'UnifrakturCook', serif; font-style: normal; font-size: 17px; line-height: 1; }
.co-tcard__mast i { font-family: 'IM Fell English', serif; font-style: italic; font-size: 11px; color: #6b5638; white-space: nowrap; }
.co-tcard__row { display: flex; align-items: flex-start; gap: 14px; }
.co-tcard__no { flex: none; position: relative; background: #16120E; color: #E3B23C; font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: 28px; line-height: 1; padding: 9px 11px 7px; text-align: center; }
.co-tcard__no i { display: block; font-style: normal; font-family: 'Space Grotesk', sans-serif; font-size: 7.5px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: rgba( 241, 230, 210, .6 ); margin-bottom: 3px; }
.co-tcard__no::after { content: '✦'; position: absolute; top: -11px; right: -11px; font-size: 17px; color: #8E2F21; animation: coBob 3.4s ease-in-out infinite; }
.co-tcard__title { font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: clamp( 24px, 2.2vw, 31px ); line-height: .88; text-transform: uppercase; text-wrap: balance; }
.co-tcard__title .co-accent { color: #8E2F21; }
.co-tcard__sub { font-family: 'IM Fell English', serif; font-style: italic; font-size: 13.5px; line-height: 1.45; color: #4a3c28; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.co-tcard__wrath { display: flex; align-items: center; gap: 9px; font-size: 8.5px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: #8E2F21; }
.co-tcard__wrath i { flex: 1; height: 8px; border: 1.5px solid #16120E; background: #F9F0DC; position: relative; overflow: hidden; }
.co-tcard__wrath i::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: var( --w, 50% ); background: repeating-linear-gradient( 135deg, #8E2F21 0 6px, #E3B23C 6px 12px ); animation: coWrath .9s ease-out .35s backwards; }
.co-tcard__meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.co-tcard__meta span { border: 1.5px solid #16120E; padding: 4px 8px; background: #F9F0DC; }
.co-tcard__meta .co-tcard__e { background: #16120E; color: #E3B23C; }
.co-tcard__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1.5px dashed rgba( 22, 18, 14, .45 ); padding-top: 12px; }
.co-tcard__stamp { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; background: #16120E; color: #F1E6D2; padding: 9px 13px; transition: background .15s, transform .15s; }
.co-tcard:hover .co-tcard__stamp { background: #8E2F21; transform: rotate( -1.5deg ); animation: coInkFlicker 1.2s ease-in-out infinite; }
.co-tcard__gear { display: inline-flex; }
.co-tcard__gear .co-ic__spin { animation-duration: 4s; animation-play-state: paused; }
.co-tcard:hover .co-tcard__gear .co-ic__spin { animation-play-state: running; }

/* ---- the Ledger vestment ---- */
.co-rack .co-archive__items.is-list { display: flex; flex-direction: column; border: 2px solid #16120E; background: #F4E8CE; box-shadow: 6px 7px 0 rgba( 22, 18, 14, .24 ); }
.co-rack .co-card--list { display: flex; align-items: center; gap: 14px; padding: 13px 16px; text-decoration: none; color: #16120E; border-bottom: 1px dotted rgba( 22, 18, 14, .4 ); transition: background .15s; }
.co-rack .co-card--list:last-child { border-bottom: none; }
.co-rack .co-card--list:hover { background: rgba( 227, 178, 60, .18 ); }
.co-rack .co-card--list .co-card__no { font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: 20px; color: #B07E1C; min-width: 44px; }
.co-rack .co-card--list .co-card__body { flex: 1; min-width: 0; }
.co-rack .co-card--list .co-card__body b { display: block; font-weight: 700; font-size: 14.5px; }
.co-rack .co-card--list .co-card__body small { display: block; font-size: 11px; color: #6b5638; }
.co-rack .co-card--list .co-card__aside { text-align: right; font-size: 11px; color: #4a3c28; }
.co-rack .co-card--list .co-card__aside b { display: block; font-size: 12px; }
.co-rack .co-card--list .co-card__orb { display: none; }

/* ---- the foot ---- */
.co-rack .co-archive__foot { text-align: center; padding: 28px 0 0; font-family: 'IM Fell English', serif; font-style: italic; font-size: 13.5px; color: #6b5638; }
.co-rack .co-spin { display: inline-block; width: 12px; height: 12px; border: 2px solid #8E2F21; border-top-color: transparent; border-radius: 50%; animation: coGearSpin 1s linear infinite; vertical-align: -2px; margin-right: 6px; }

/* ---- responsive: tablet & mobile lose the Inquisition (header seek serves) ---- */
@media ( max-width: 920px ) {
	.co-rack__rail { display: none; }
	.co-rack__layout { display: block; }
}
@media ( max-width: 700px ) {
	.co-rack { padding: 18px 14px 70px; }
	.co-rack__mast { padding: 22px 8px 18px; }
	.co-rack__icons { transform: scale( .55 ); transform-origin: top right; opacity: .6; }
	.co-rack__icons--left { transform-origin: top left; }
	.co-rack .co-archive__items.is-grid { grid-template-columns: 1fr; }
}
@media ( prefers-reduced-motion: reduce ) {
	.co-ic__spin, .co-ic__flap, .co-ic__flap--r, .co-ic--halo, .co-tcard, .co-tcard__no::after, .co-rack__spot::after, .co-tcard__wrath i::before, .co-tcard:hover .co-tcard__stamp, .co-rack .co-spin, .co-rw__meter b, .co-rw__organ i { animation: none !important; }
	.co-tcard, .co-tcard:hover { transform: none; }
	.co-dust { display: none; }
}
