/* Verse — colourful multi-topic magazine */
:root {
  --accent: #6d28d9; --ink: #0f0f14; --text: #2a2a35; --muted: #6b6b78; --line: #ececf1; --bg: #fff; --soft: #f6f5fb;
  --head: "Plus Jakarta Sans", system-ui, sans-serif; --serif: "Source Serif 4", Georgia, serif;
}
.c0 { --c: #6d28d9; } .c1 { --c: #db2777; } .c2 { --c: #ea580c; } .c3 { --c: #0891b2; }
.c4 { --c: #16a34a; } .c5 { --c: #ca8a04; } .c6 { --c: #4f46e5; } .c7 { --c: #dc2626; }
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--head); color: var(--text); background: var(--bg); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* top bar + ticker */
.topbar { background: var(--ink); color: #c9c9d6; font-size: .78rem; }
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 36px; }
.today { white-space: nowrap; }
.ticker { flex: 1; display: flex; align-items: center; gap: 10px; overflow: hidden; min-width: 0; }
.ticker b { background: linear-gradient(90deg, #f97316, #db2777); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: .7rem; text-transform: uppercase; letter-spacing: .5px; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: inline-flex; gap: 40px; white-space: nowrap; animation: tick 40s linear infinite; }
.ticker-move a:hover { color: #fff; }
@keyframes tick { to { transform: translateX(-50%); } }
.toplinks { display: flex; gap: 16px; white-space: nowrap; } .toplinks a:hover { color: #fff; }
@media (max-width: 900px) { .today, .toplinks { display: none; } }

/* header */
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.3rem; background: conic-gradient(from 210deg, #6d28d9, #db2777, #f97316, #6d28d9); }
.logo-text { font-weight: 800; font-size: 1.7rem; letter-spacing: -1px; color: var(--ink); }
.search { display: flex; align-items: center; gap: 8px; background: var(--soft); border-radius: 999px; padding: 0 16px; height: 42px; width: 300px; }
.search input { border: 0; background: none; outline: 0; font: inherit; width: 100%; }
.search.big { margin: 18px auto 0; width: min(520px, 100%); background: #fff; }
.icon-btn { display: none; border: 0; background: none; font-size: 1.6rem; cursor: pointer; }
.catnav { border-top: 1px solid var(--line); }
.catnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
.catnav a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: .88rem; white-space: nowrap; color: var(--text); }
.catnav a .bi { color: var(--c, var(--accent)); }
.catnav a:hover { background: var(--soft); }
.catnav a.on { background: var(--c, var(--ink)); color: #fff; } .catnav a.on .bi { color: #fff; }
@media (max-width: 760px) { .search { display: none; } .icon-btn { display: block; } .header-inner { height: 62px; } .logo-text { font-size: 1.35rem; } }

.main { padding-top: 26px; padding-bottom: 50px; }

/* shared bits */
.chip { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--c, var(--accent)); }
.chip::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--accent)); margin-right: 6px; vertical-align: 1px; }
.byline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .8rem; color: var(--muted); }
.byline .dot { width: 3px; height: 3px; background: currentColor; border-radius: 50%; }
.img { display: block; overflow: hidden; border-radius: 14px; background: var(--soft); }
.img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.img:hover img { transform: scale(1.05); }
.img-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--c, var(--accent)), #111); opacity: .8; }
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -.3px; }
h3 a:hover, h4 a:hover, h1 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--c, var(--accent)); }
.empty { color: var(--muted); }

/* mosaic */
.mosaic { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; margin-bottom: 36px; }
.lead { position: relative; }
.lead-img { height: 100%; min-height: 460px; border-radius: 18px; }
.lead-body { position: absolute; inset: auto 0 0 0; padding: 30px; color: #fff; border-radius: 0 0 18px 18px; background: linear-gradient(transparent, rgba(10,6,24,.72) 30%, rgba(10,6,24,.92)); padding-top: 90px; }
.lead-body h1 { color: #fff; font-size: 2.1rem; line-height: 1.15; margin: 8px 0; }
.lead-body p { margin: 0 0 10px; opacity: .9; }
.lead-body .chip, .lead-body .byline { color: #fff; }
.mosaic-side { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card h3 { font-size: 1rem; line-height: 1.3; margin: 6px 0; }
.card-img { aspect-ratio: 16 / 10; margin-bottom: 10px; }
@media (max-width: 900px) { .mosaic { grid-template-columns: 1fr; } .lead-img { min-height: 340px; } .lead-body h1 { font-size: 1.5rem; } }
@media (max-width: 520px) { .mosaic-side { grid-template-columns: 1fr; } }

/* fresh + trending */
.split { display: grid; grid-template-columns: 1fr 320px; gap: 36px; margin-bottom: 30px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.block-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 3px solid var(--c, var(--ink)); }
.block-head h2 { margin: 0; font-size: 1.45rem; font-weight: 800; }
.block-head a { font-weight: 700; font-size: .85rem; color: var(--c, var(--accent)); }
.fresh { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 26px; }
@media (max-width: 640px) { .fresh { grid-template-columns: 1fr; } }
.row { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.row-img { aspect-ratio: 1; border-radius: 12px; }
.row h4 { margin: 4px 0 6px; font-size: .98rem; line-height: 1.3; }
.trending-box { background: var(--ink); color: #fff; border-radius: 18px; padding: 22px; margin-bottom: 22px; }
.trending-box h3 { color: #fff; margin: 0 0 12px; font-size: 1.1rem; } .trending-box h3 .bi { color: #f97316; }
.trending-box ol { list-style: none; counter-reset: t; margin: 0; padding: 0; }
.trending-box li { counter-increment: t; display: grid; grid-template-columns: 38px 1fr; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); }
.trending-box li::before { content: counter(t, decimal-leading-zero); grid-row: span 2; font-weight: 800; font-size: 1.3rem; background: linear-gradient(135deg, #f97316, #db2777); -webkit-background-clip: text; color: transparent; }
.trending-box li a { font-weight: 700; line-height: 1.3; } .trending-box li a:hover { color: #fbcfe8; }
.trending-box li span { font-size: .75rem; color: #a1a1b5; margin-top: 4px; }

/* ads */
.ad { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: repeating-linear-gradient(45deg, #f6f5fb, #f6f5fb 10px, #f0eef8 10px, #f0eef8 20px); border-radius: 14px; color: var(--muted); font-size: .85rem; }
.ad span { font-size: .65rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; }
.ad-box { min-height: 250px; } .ad-wide { min-height: 90px; max-width: 728px; margin: 10px auto 34px; } .ad-inline { min-height: 90px; margin: 26px 0; }

/* category blocks */
.cat-block { margin-bottom: 38px; }
.cat-block.alt { background: var(--soft); margin-left: -24px; margin-right: -24px; padding: 26px 24px; border-radius: 22px; }
.cat-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; }
.cat-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.cf-img { aspect-ratio: 4 / 3; }
.cat-feature h3 { font-size: 1.3rem; line-height: 1.25; margin: 0 0 8px; }
.cat-feature p { color: var(--muted); margin: 0 0 10px; font-size: .93rem; }
.cat-list .row:last-child { border-bottom: 0; }
.cat-list .row { grid-template-columns: 90px 1fr; }
@media (max-width: 900px) { .cat-grid, .cat-feature { grid-template-columns: 1fr; } .cat-block.alt { margin-left: 0; margin-right: 0; padding: 20px 16px; } }

/* listing */
.list-hero { text-align: center; padding: 34px 16px 30px; margin-bottom: 28px; border-radius: 22px; background: radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--c, var(--accent)) 22%, #fff), transparent 60%), var(--soft); }
.list-icon { font-size: 2.4rem; color: var(--c, var(--accent)); }
.list-hero h1 { font-size: 2.4rem; margin: 6px 0; font-weight: 800; }
.list-hero p { color: var(--muted); margin: 0 auto; max-width: 560px; }
.subcats { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.subcats a { background: #fff; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .85rem; border: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 22px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid, .grid.three { grid-template-columns: 1fr; } }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 34px 0; font-weight: 700; }
.pager a { padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; }

/* story */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #6d28d9, #db2777, #f97316); }
.story-head { max-width: 820px; margin: 10px auto 26px; text-align: center; }
.story-head h1 { font-size: 2.7rem; line-height: 1.12; margin: 10px 0 14px; font-weight: 800; }
.dek { font-family: var(--serif); font-size: 1.25rem; color: var(--muted); margin: 0 0 18px; }
.story-meta { display: inline-flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; background: var(--c, var(--accent)); }
.story-img img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 20px; }
.story-layout { display: grid; grid-template-columns: 60px minmax(0, 720px); justify-content: center; gap: 30px; margin-top: 34px; }
.story-layout.single { grid-template-columns: minmax(0, 720px); }
.share-rail { position: sticky; top: 140px; align-self: start; display: flex; flex-direction: column; gap: 10px; }
.share-rail a, .share-rail button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; font-size: 1.05rem; cursor: pointer; }
.share-rail a:hover, .share-rail button:hover { background: var(--ink); color: #fff; }
.story-body { font-family: var(--serif); font-size: 1.17rem; line-height: 1.75; color: #1d1d27; }
.story-body > p:first-child::first-letter { float: left; font-family: var(--head); font-weight: 800; font-size: 3.6rem; line-height: .9; margin: 6px 10px 0 0; color: var(--c, var(--accent)); }
.story-body h2 { font-family: var(--head); font-size: 1.6rem; margin: 1.8em 0 .6em; }
.story-body a { color: var(--c, var(--accent)); text-decoration: underline; }
.story-body blockquote { border-left: 4px solid var(--c, var(--accent)); margin: 1.5em 0; padding: .2em 0 .2em 1.2em; font-style: italic; font-size: 1.3rem; }
.story-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; font-family: var(--head); }
.story-tags a { padding: 6px 14px; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: .85rem; }
.more { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--line); } .more h2 { font-size: 1.6rem; }
@media (max-width: 760px) { .story-layout { grid-template-columns: 1fr; } .share-rail { position: static; flex-direction: row; justify-content: center; } .story-head h1 { font-size: 1.9rem; } }

/* footer */
.footer { background: var(--ink); color: #b4b4c4; padding-top: 44px; }
.footer .logo-text { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; padding-bottom: 30px; }
.footer-top p { max-width: 380px; }
.footer-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; align-content: start; }
.footer-cats a { font-weight: 600; color: #e4e4ee; } .footer-cats a .bi { color: var(--c); }
.social { display: flex; gap: 10px; } .social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer-bottom nav { display: flex; gap: 18px; } .footer-bottom a:hover { color: #fff; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } }
body.menu-open .catnav .wrap { flex-wrap: wrap; }
