/*
Theme Name: Celebrity News Today
Description: Bold pop-magazine theme for Celebrity News Today. Brand duotone on every image, trending ticker, category rows, sponsored promo slot and The Daily Dish newsletter.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: cnt
*/

:root {
  --pink: #ff1f8e;
  --pink-2: #ff4fa8;
  --violet: #7b2ff7;
  --ink: #0c0b10;
  --ink-2: #1c1a24;
  --paper: #ffffff;
  --blush: #fff0f7;
  --muted: #6b6878;
  --line: #ece9f1;
  --gold: #ffd84d;
  --head: 'Anton', 'Impact', sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --accent: 'Playfair Display', Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; clip: auto; width: auto; height: auto; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

/* Ticker */
.ticker { background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; overflow: hidden; display: flex; align-items: center; height: 38px; }
.ticker .tag { background: var(--pink); height: 100%; display: flex; align-items: center; padding: 0 14px; font-family: var(--head); letter-spacing: .08em; font-size: 14px; flex-shrink: 0; position: relative; z-index: 2; }
.ticker .tag::after { content: ''; position: absolute; right: -10px; top: 0; border-left: 10px solid var(--pink); border-top: 19px solid transparent; border-bottom: 19px solid transparent; }
.ticker .track { display: flex; gap: 48px; white-space: nowrap; animation: cnt-scroll 60s linear infinite; padding-left: 28px; }
.ticker .track a::before { content: '●'; color: var(--pink); margin-right: 12px; font-size: 9px; vertical-align: middle; }
.ticker .track a:hover { color: var(--pink-2); }
.ticker:hover .track { animation-play-state: paused; }
@keyframes cnt-scroll { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@media (prefers-reduced-motion: reduce) { .ticker .track { animation: none; } }

/* Header */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); z-index: 10; }
.admin-bar .site-header { top: 32px; }
.masthead { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 14px; gap: 16px; }
.logo { font-family: var(--head); font-size: 34px; line-height: 1; letter-spacing: .01em; display: flex; align-items: center; gap: 8px; text-transform: uppercase; }
.logo .today { background: var(--pink); color: #fff; padding: 4px 10px 2px; transform: rotate(-3deg); display: inline-block; box-shadow: 4px 4px 0 var(--ink); }
.date { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.head-actions { display: flex; align-items: center; gap: 10px; }
.search-toggle { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; }
.search-toggle:hover { border-color: var(--pink); color: var(--pink); }
.cta { background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; padding: 11px 18px; border-radius: 999px; white-space: nowrap; transition: background .2s; }
.cta:hover { background: var(--pink); }
.site-nav ul { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 12px; list-style: none; scrollbar-width: none; }
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav a { display: block; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; transition: background .15s, color .15s; }
.site-nav a:hover { background: var(--blush); color: var(--pink); }
.site-nav .current-menu-item > a, .site-nav .current-cat > a, .site-nav a.on { background: var(--pink); color: #fff; }
.search-panel { display: none; padding: 0 0 14px; }
.search-panel.open { display: block; }
.search-form { display: flex; gap: 8px; }
.search-form input[type=search] { flex: 1; border: 2px solid var(--ink); border-radius: 999px; padding: 12px 18px; font: inherit; font-size: 16px; min-width: 0; }
.search-form button { border: 0; background: var(--pink); color: #fff; font: inherit; font-weight: 800; padding: 0 22px; border-radius: 999px; cursor: pointer; }

/* Duotone image treatment: every photo gets the brand duotone */
.img { position: relative; overflow: hidden; background: var(--ink-2); display: block; }
.img img, .img::before { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.img img { filter: grayscale(1) contrast(1.1); }
.img::before { content: ''; background: var(--scene, none); }
.img::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(160deg, rgba(255,31,142,.62) 0%, rgba(123,47,247,.32) 45%, rgba(12,11,16,.82) 100%); mix-blend-mode: multiply; pointer-events: none; }
a:hover .img img, a:hover .img::before { transform: scale(1.05); }
.grain { position: absolute; inset: 0; z-index: 2; opacity: .16; mix-blend-mode: overlay; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* Fallback scenes when a post has no image */
.s0 { --scene: radial-gradient(circle at 30% 20%, #ffe3a1 0 8%, transparent 30%), radial-gradient(circle at 75% 30%, #ff9ad1 0 6%, transparent 28%), linear-gradient(180deg, #3a2b4f, #120f18 70%); }
.s1 { --scene: radial-gradient(ellipse at 50% 110%, #ff2d55 0 30%, transparent 60%), radial-gradient(circle at 20% 25%, #fff6 0 5%, transparent 20%), linear-gradient(180deg, #24203a, #0e0d14); }
.s2 { --scene: conic-gradient(from 200deg at 50% 0%, #fff8 0 6%, transparent 10% 20%, #ffd1ef88 24%, transparent 30%), linear-gradient(180deg, #2a1636, #08070b); }
.s3 { --scene: radial-gradient(circle at 60% 40%, #ffb3da 0 12%, transparent 40%), linear-gradient(120deg, #3d1d4a, #121019); }
.s4 { --scene: repeating-radial-gradient(circle at 50% 120%, #ff5fa855 0 6px, transparent 6px 22px), linear-gradient(180deg, #1d1830, #09080c); }
.s5 { --scene: radial-gradient(circle at 15% 80%, #ffd84d88 0 10%, transparent 35%), radial-gradient(circle at 85% 20%, #7b2ff788 0 12%, transparent 40%), linear-gradient(180deg, #2b2440, #0b0a10); }
.s6 { --scene: linear-gradient(0deg, #b0003a 0 18%, transparent 18%), radial-gradient(circle at 50% 10%, #fff7 0 6%, transparent 25%), linear-gradient(180deg, #2e2340, #0d0c12); }
.s7 { --scene: radial-gradient(circle at 40% 50%, #ff8ccf 0 4%, transparent 22%), radial-gradient(circle at 70% 60%, #b38cff 0 5%, transparent 24%), linear-gradient(180deg, #221c33, #0a090e); }

.kicker { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); }
.kicker.solid { background: var(--pink); color: #fff; padding: 4px 9px; }
.kicker.gold { background: var(--gold); color: var(--ink); padding: 4px 9px; }
.meta { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 8px; }
.meta b { color: var(--ink); font-weight: 700; }

/* Section titles */
.sec-title { font-family: var(--head); font-size: 26px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 400; }
.sec-title::before { content: ''; width: 10px; height: 26px; background: var(--pink); transform: skew(-12deg); flex-shrink: 0; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.55fr 1fr 300px; gap: 22px; margin: 26px 0 40px; }
.lead .img { aspect-ratio: 4/5; border-radius: 6px; }
.lead .over { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 28px; color: #fff; }
.lead h1, .lead h2 { font-family: var(--head); font-weight: 400; font-size: clamp(34px, 4.2vw, 56px); line-height: .98; text-transform: uppercase; margin: 12px 0 10px; text-wrap: balance; }
.lead p { font-size: 16px; line-height: 1.5; opacity: .9; max-width: 520px; }
.lead .meta { color: #ffffffb3; }
.lead .meta b { color: #fff; }
.stack { display: grid; gap: 22px; align-content: start; }
.card .img { aspect-ratio: 16/10; border-radius: 6px; }
.card h3 { font-weight: 800; font-size: 19px; line-height: 1.22; margin-top: 8px; letter-spacing: -.01em; text-wrap: balance; }
.card:hover h3 { color: var(--pink); }
.card .kicker { margin-top: 12px; }
.justin { border-left: 1px solid var(--line); padding-left: 22px; }
.justin ul { list-style: none; }
.justin li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.justin time { font-size: 11px; font-weight: 800; color: var(--pink); letter-spacing: .06em; text-transform: uppercase; }
.justin a { display: block; font-weight: 700; font-size: 15px; line-height: 1.32; margin-top: 4px; }
.justin a:hover { color: var(--pink); }

/* Trending */
.trending { background: var(--ink); color: #fff; padding: 44px 0; position: relative; overflow: hidden; }
.trending::before { content: 'TRENDING'; position: absolute; right: -20px; top: -30px; font-family: var(--head); font-size: 220px; color: #ffffff08; line-height: 1; pointer-events: none; }
.trending .sec-title { color: #fff; font-size: 34px; }
.trend-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; counter-reset: t; position: relative; }
.trend-list a { counter-increment: t; display: block; padding-top: 6px; border-top: 2px solid #ffffff22; }
.trend-list a::before { content: counter(t); font-family: var(--head); font-size: 64px; line-height: 1; color: var(--pink); display: block; margin: 10px 0 8px; }
.trend-list a:nth-child(n+2)::before { color: transparent; -webkit-text-stroke: 2px var(--pink); }
.trend-list span { font-weight: 700; font-size: 16px; line-height: 1.32; }
.trend-list a:hover span { color: var(--pink-2); }
.trend-list small { display: block; margin-top: 10px; color: #ffffff80; font-size: 12px; font-weight: 600; }

/* Category rows */
section.row { margin: 52px 0; }
.row-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; border-bottom: 3px solid var(--ink); padding-bottom: 10px; gap: 12px; }
.row-head .sec-title { margin: 0; font-size: 32px; }
.row-head a.more { font-weight: 800; font-size: 13px; color: var(--pink); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.wide .img { aspect-ratio: 16/9; border-radius: 6px; }
.wide .kicker { margin-top: 14px; }
.wide h3 { font-family: var(--head); font-weight: 400; font-size: 36px; line-height: 1; text-transform: uppercase; margin-top: 10px; }
.wide:hover h3 { color: var(--pink); }
.wide p { color: var(--muted); line-height: 1.55; margin-top: 10px; }
.mini { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.mini .img { aspect-ratio: 1; border-radius: 6px; }
.mini h4 { font-size: 16px; font-weight: 800; line-height: 1.3; margin-top: 4px; }
.mini:hover h4 { color: var(--pink); }

/* Style strip */
.style-strip { background: var(--blush); padding: 44px 0; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 260px; gap: 20px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.scroller > a { scroll-snap-align: start; }
.scroller .img { aspect-ratio: 3/4; border-radius: 160px 160px 8px 8px; }
.scroller h3 { font-weight: 800; font-size: 17px; line-height: 1.25; margin-top: 12px; }
.scroller a:hover h3 { color: var(--pink); }

/* Sponsored promo */
.promo { margin: 52px 0; border-radius: 10px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; background: linear-gradient(120deg, #0f8bd8, #12c2b5 55%, #ffd84d); color: #fff; position: relative; }
.promo .txt { padding: 40px; }
.promo .lbl { font-size: 11px; letter-spacing: .14em; font-weight: 800; text-transform: uppercase; opacity: .85; }
.promo h2 { font-family: var(--head); font-weight: 400; font-size: 54px; line-height: .95; text-transform: uppercase; margin: 12px 0; text-shadow: 3px 3px 0 #0c0b1033; }
.promo p { font-size: 17px; line-height: 1.5; max-width: 420px; }
.promo .btn { display: inline-block; margin-top: 20px; background: #fff; color: var(--ink); font-weight: 800; padding: 13px 22px; border-radius: 999px; }
.promo .btn:hover { background: var(--ink); color: #fff; }
.promo .art { position: relative; min-height: 260px; background: radial-gradient(circle at 70% 40%, #fff6 0 18%, transparent 19%), radial-gradient(circle at 30% 80%, #ffffff33 0 30%, transparent 31%); }
.promo .sun { position: absolute; right: 60px; top: 40px; width: 110px; height: 110px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 60px #ffd84d; }
.promo .wave { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: repeating-radial-gradient(circle at 50% -40px, transparent 0 34px, #ffffff40 34px 38px); }
.promo.inline { margin: 36px 0; grid-template-columns: 1fr; }
.promo.inline .art { display: none; }
.promo.inline .txt { padding: 28px; }
.promo.inline h2 { font-size: 38px; }

/* Newsletter */
.news { background: linear-gradient(120deg, var(--pink), var(--violet)); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.news::after { content: '★'; position: absolute; right: 6%; top: -40px; font-size: 280px; color: #ffffff14; pointer-events: none; }
.news .inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.news h2 { font-family: var(--head); font-weight: 400; font-size: 58px; line-height: .95; text-transform: uppercase; }
.news h2 em { font-family: var(--accent); font-style: italic; text-transform: none; font-weight: 700; }
.news p { margin-top: 12px; font-size: 17px; line-height: 1.5; opacity: .92; }
.news form { display: flex; background: #fff; border-radius: 999px; padding: 6px; box-shadow: 8px 8px 0 var(--ink); }
.news input[type=email] { flex: 1; border: 0; padding: 0 18px; font: inherit; font-size: 16px; outline: none; min-width: 0; background: transparent; color: var(--ink); }
.news button { border: 0; background: var(--ink); color: #fff; font: inherit; font-weight: 800; padding: 14px 22px; border-radius: 999px; cursor: pointer; }
.news button:hover { background: var(--pink); }
.news small { display: block; margin-top: 12px; opacity: .8; font-size: 12px; }
.news small a { text-decoration: underline; }
.news .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.news-done { background: #fff; color: var(--ink); border-radius: 14px; padding: 18px 22px; font-size: 17px; line-height: 1.5; box-shadow: 8px 8px 0 var(--ink); }
.news-done strong { color: var(--pink); }
.news-error { background: var(--gold); color: var(--ink); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-weight: 600; font-size: 14px; }

/* Footer */
.site-footer { background: var(--ink); color: #ffffffb3; padding: 44px 0 28px; font-size: 14px; }
.site-footer .logo { color: #fff; font-size: 26px; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 30px; }
.site-footer h5 { color: #fff; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin: 8px 0; }
.site-footer a:hover { color: var(--pink-2); }
.site-footer .legal { border-top: 1px solid #ffffff1f; margin-top: 30px; padding-top: 18px; font-size: 12px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Article */
.article { max-width: 760px; margin: 0 auto; padding: 36px 0 20px; }
.article-head .kicker { margin-bottom: 14px; }
.article-head h1 { font-family: var(--head); font-weight: 400; font-size: clamp(38px, 5.4vw, 64px); line-height: 1; text-transform: uppercase; text-wrap: balance; }
.article-head .dek { font-size: 20px; line-height: 1.5; color: #3b3846; margin-top: 16px; }
.byline { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 18px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.byline b { color: var(--ink); }
.byline .src a { color: var(--pink); font-weight: 700; }
.share { display: flex; gap: 8px; margin-left: auto; }
.share a, .share button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--blush); color: var(--ink); border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 13px; }
.share a:hover, .share button:hover { background: var(--pink); color: #fff; }
.article-figure { margin: 26px 0 8px; }
.article-figure .img { aspect-ratio: 16/9; border-radius: 8px; }
.article-figure .img::after { opacity: .7; }
.article-body { font-size: 19px; line-height: 1.72; margin-top: 26px; }
.article-body > * + * { margin-top: 1.1em; }
.article-body h2 { font-family: var(--head); font-weight: 400; text-transform: uppercase; font-size: 32px; line-height: 1.05; margin-top: 1.6em; }
.article-body h3 { font-size: 22px; font-weight: 800; margin-top: 1.4em; }
.article-body a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { border-left: 6px solid var(--pink); padding: 6px 0 6px 22px; font-family: var(--accent); font-style: italic; font-size: 26px; line-height: 1.35; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li + li { margin-top: .4em; }
.article-body .source-credit { margin-top: 2em; background: var(--blush); border-left: 6px solid var(--pink); padding: 16px 20px; font-size: 15px; font-weight: 700; }
.article-body .source-credit::before { content: 'Originally reported by '; font-weight: 500; color: var(--muted); }
.article-body .source-credit { font-size: 0; }
.article-body .source-credit::before, .article-body .source-credit a { font-size: 15px; }
.article-body img { border-radius: 8px; }
.article-body .wp-block-image figcaption, .article-body figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.article-foot { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.article-foot a { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--blush); }
.article-foot a:hover { background: var(--pink); color: #fff; }
.related { margin: 40px 0 56px; }

/* Archive */
.archive-head { padding: 40px 0 20px; border-bottom: 3px solid var(--ink); margin-bottom: 28px; }
.archive-head h1 { font-family: var(--head); font-weight: 400; font-size: clamp(44px, 7vw, 84px); line-height: .95; text-transform: uppercase; }
.archive-head h1 span { color: var(--pink); }
.archive-head p { color: var(--muted); margin-top: 10px; font-size: 17px; max-width: 640px; }
.archive-lead { margin-bottom: 30px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin: 40px 0 60px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: grid; place-items: center; border-radius: 999px; border: 2px solid var(--ink); font-weight: 800; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--pink); border-color: var(--pink); color: #fff; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* Static pages */
.page-body { max-width: 760px; margin: 0 auto; padding: 40px 0 60px; }
.page-body h1 { font-family: var(--head); font-weight: 400; font-size: clamp(40px, 6vw, 64px); text-transform: uppercase; line-height: 1; margin-bottom: 24px; }

/* 404 */
.notfound { text-align: center; padding: 80px 0; }
.notfound .big { font-family: var(--head); font-size: 180px; line-height: 1; color: var(--pink); }
.notfound h1 { font-family: var(--head); font-weight: 400; font-size: 40px; text-transform: uppercase; }
.notfound p { color: var(--muted); margin: 12px 0 24px; }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1.3fr 1fr; }
  .justin { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
  .trend-list { grid-template-columns: repeat(3, 1fr); }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .logo { font-size: 24px; }
  .date, .cta { display: none; }
  .hero, .split, .promo, .news .inner, .grid3 { grid-template-columns: 1fr; }
  .trend-list { grid-template-columns: 1fr; gap: 0; }
  .trend-list a { display: grid; grid-template-columns: 64px 1fr; align-items: center; padding: 12px 0; }
  .trend-list a::before { font-size: 44px; margin: 0; }
  .trend-list small { grid-column: 2; margin-top: 2px; }
  .grid4 { grid-template-columns: 1fr 1fr; gap: 16px; }
  .card h3 { font-size: 15px; }
  .promo h2, .news h2 { font-size: 40px; }
  .promo .art { min-height: 160px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .sec-title, .trending .sec-title, .row-head .sec-title { font-size: 26px; align-items: flex-start; line-height: 1.05; }
  .sec-title::before { height: 24px; }
  .trending::before { font-size: 120px; top: -10px; }
  .article-body { font-size: 18px; }
  .share { margin-left: 0; width: 100%; }
  .mini { grid-template-columns: 96px 1fr; }
}
