/* Theme "marquee": an original entertainment/culture magazine identity —
   near-black masthead with a warm "marquee-bulb" gold accent, generous
   whitespace content sections, and a CSS-only tabbed sidebar widget
   (radio inputs + sibling selectors, no client-side JS — consistent with
   every other theme in this network). Inter throughout (the only webfont
   this network loads globally, via documentShell). Same
   renderHome/renderCategory/renderPost/renderTag/renderSearch/renderAbout
   contract as every other theme (see functions/_themes/marquee.js). */

:root {
  --ink-900:#1a1712; --ink-800:#2c2820; --ink-700:#453f34; --ink-600:#665d4d;
  --ink-500:#8c8271; --ink-400:#b3a996; --ink-300:#dad2c3; --ink-200:#ece6da; --ink-100:#f5f1e9;
  --paper:#fffdf9; --paper-raised:#ffffff;
  --dark-900:#161310; --dark-800:#221d17; --dark-700:#3a3226;
  --accent: #e0a530; /* overridden per-site by documentShell's inline :root style */
  --radius:10px;
  --shadow-sm:0 1px 2px rgba(26,23,18,.07), 0 1px 1px rgba(26,23,18,.05);
  --shadow-lg:0 20px 45px rgba(26,23,18,.16);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink-800); }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 22px; }

/* ---- Placeholder image system ---- */
.ph {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; object-fit: cover; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(135deg,#2a2418,#453c28 60%,#2a2418); color: rgba(255,255,255,.35);
}
.ph.tone-gold { background: linear-gradient(135deg,#3a2e10,#5c4a1c 60%,#3a2e10); }
.ph.tone-rose { background: linear-gradient(135deg,#3a1c26,#5c2c3c 60%,#3a1c26); }
.ph.tone-plum { background: linear-gradient(135deg,#241c38,#3a2c58 60%,#241c38); }
.ph svg { width: 26%; }
img.ph { background: none; }
.ratio-16-9 { aspect-ratio: 16/9; }
.ratio-4-3 { aspect-ratio: 4/3; }
.ratio-1-1 { aspect-ratio: 1/1; }
.ratio-3-2 { aspect-ratio: 3/2; }

/* ---- Masthead ---- */
.masthead { background: var(--dark-900); color: #fff; }
.masthead-row { display: flex; align-items: center; gap: 26px; padding: 18px 22px; flex-wrap: wrap; }
.logo-group { display: flex; align-items: center; gap: 12px; }
.logo-box { width: 42px; height: 42px; border-radius: 8px; background: var(--accent); color: var(--dark-900); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; flex-shrink: 0; }
.logo-img { height: 72px; width: auto; max-width: 420px; object-fit: contain; }
.site-name { font-weight: 800; font-size: 21px; letter-spacing: -0.01em; color: #fff; }
.site-tagline { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); margin-top: 2px; }
.main-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; margin-left: 8px; }
.main-nav a { padding: 8px 13px; border-radius: 4px; color: #e7e0d2; font-weight: 600; font-size: 13.5px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.home { color: var(--accent); border-bottom-color: var(--accent); }
.masthead-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--dark-700); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; }
.icon-dot:hover { background: var(--accent); color: var(--dark-900); }
.btn-subscribe { background: var(--accent); color: var(--dark-900); font-weight: 800; font-size: 13px; padding: 9px 18px; border-radius: 4px; white-space: nowrap; }
.btn-subscribe:hover { filter: brightness(1.08); }

/* ---- Section headers & tags ---- */
.section { padding: 46px 0; }
.section-tint { background: var(--ink-100); }
.hero-head .wrap { padding-bottom: 14px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.section-title { font-size: 21px; font-weight: 800; color: var(--ink-900); display: flex; align-items: center; gap: 10px; }
.section-title .swatch { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.section-viewall { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--ink-700); white-space: nowrap; }
.section-viewall:hover { color: var(--accent); }

.tag { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; }
.meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--ink-500); }
.meta-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-400); }

/* ---- Hero ---- */
.hero-section { padding-top: 30px; padding-bottom: 8px; background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 32px; }
.hero-lead-body { padding-top: 18px; }
.hero-lead-title { font-size: clamp(24px,3vw,38px); font-weight: 800; line-height: 1.15; color: var(--ink-900); margin: 10px 0; }
.hero-lead-title a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.hero-lead-dek { font-size: 15.5px; color: var(--ink-600); line-height: 1.6; margin-bottom: 12px; max-width: 62ch; }

.hero-side { display: flex; flex-direction: column; gap: 20px; }

/* ---- Spotlight sections tiles ---- */
.spotlight-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 20px; }
.spotlight-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-sm); }
.spotlight-card .ph, .spotlight-card img { position: absolute; inset: 0; height: 100%; border-radius: var(--radius); }
.spotlight-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,19,16,.88), rgba(22,19,16,.04) 55%); }
.spotlight-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 15px; z-index: 1; }
.spotlight-card-body h3 { color: #fff; font-size: 17px; font-weight: 800; }
.spotlight-badge { display: inline-block; background: var(--accent); color: var(--dark-900); font-size: 10.5px; font-weight: 800; letter-spacing: .03em; padding: 3px 9px; border-radius: 3px; margin-bottom: 8px; }

/* ---- Main grid: feed + sidebar ---- */
.main-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 28px; }
.feed-grid-4 { grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); }
.feed-card { display: flex; flex-direction: column; }
.feed-card-body { padding-top: 12px; }
.feed-card-body h3 { font-weight: 700; font-size: 16.5px; line-height: 1.32; color: var(--ink-900); margin: 8px 0 6px; }
.feed-card-body h3 a:hover { text-decoration: underline; }
.feed-card-body p { font-size: 13px; color: var(--ink-600); line-height: 1.55; margin-bottom: 8px; }

/* ---- Compact list item (hero side + tab widget) ---- */
.compact-item { display: grid; grid-template-columns: 78px 1fr; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--ink-200); }
.compact-item:first-child { padding-top: 0; }
.compact-item:last-child { border-bottom: none; padding-bottom: 0; }
.compact-item h4 { font-weight: 700; font-size: 14px; line-height: 1.35; color: var(--ink-900); margin-top: 3px; }
.compact-item h4 a:hover { text-decoration: underline; }
.compact-item .meta-row { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--accent); }

/* ---- Sidebar widgets ---- */
.widget { background: var(--paper-raised); border: 1px solid var(--ink-200); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
.widget h3 { font-size: 15px; font-weight: 800; color: var(--ink-900); margin-bottom: 16px; }

/* CSS-only tab widget: radio inputs (hidden) + sibling-selector panels */
.tab-radio { position: absolute; opacity: 0; pointer-events: none; }
.tab-widget-head { display: flex; gap: 4px; border-bottom: 1px solid var(--ink-200); margin-bottom: 16px; }
.tab-widget-head label { flex: 1; text-align: center; padding: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--ink-500); border-bottom: 2px solid transparent; cursor: pointer; margin-bottom: -1px; }
.tab-panel { display: none; }
#tabTrending:checked ~ .tab-widget-head label[for="tabTrending"],
#tabLatest:checked ~ .tab-widget-head label[for="tabLatest"] { color: var(--ink-900); border-bottom-color: var(--accent); }
#tabTrending:checked ~ .panel-trending { display: block; }
#tabLatest:checked ~ .panel-latest { display: block; }

.newsletter-widget { background: var(--dark-900); border-color: var(--dark-900); color: #fff; }
.newsletter-widget h3 { color: #fff; }
.newsletter-widget p { font-size: 13px; color: var(--ink-300); line-height: 1.55; margin-bottom: 14px; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input { padding: 11px 13px; border-radius: 4px; border: 1px solid var(--dark-700); background: var(--dark-800); color: #fff; font-size: 13.5px; font-family: inherit; }
.newsletter-form input::placeholder { color: var(--ink-400); }
.newsletter-form button { background: var(--accent); color: var(--dark-900); padding: 11px; border-radius: 4px; font-weight: 800; font-size: 13.5px; cursor: pointer; border: none; }
.newsletter-form button:hover:not(:disabled) { filter: brightness(1.08); }
.newsletter-fine { font-size: 11px; color: var(--ink-400); margin-top: 10px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { background: var(--ink-100); border: 1px solid var(--ink-200); border-radius: 4px; padding: 6px 13px; font-size: 12.5px; font-weight: 700; color: var(--ink-700); }
.tag-cloud a:hover { background: var(--dark-900); color: var(--accent); border-color: var(--dark-900); }
.ad-widget { border: 1px dashed var(--ink-300); background: transparent; border-radius: var(--radius); text-align: center; color: var(--ink-500); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 50px 10px; }

/* ---- Category / tag / search listing pages ---- */
.category-title { font-size: 28px; font-weight: 800; color: var(--ink-900); margin: 0 0 20px; }
.search-form { display: flex; gap: 10px; margin: 0 0 26px; max-width: 520px; }
.search-form input { flex: 1; padding: 12px 16px; border: 1px solid var(--ink-200); border-radius: 4px; font-size: 15px; font-family: inherit; }
.search-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-form button { background: var(--accent); color: var(--dark-900); border: none; border-radius: 4px; padding: 0 22px; font-weight: 800; cursor: pointer; }
.pagination { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--ink-200); font-weight: 700; font-size: 13.5px; }
.pagination a { color: var(--ink-800); }
.pagination a:hover { color: var(--accent); }
.empty-state { text-align: center; padding: 80px 20px; color: var(--ink-500); }
.empty-state h1 { color: var(--ink-900); font-size: 26px; margin-bottom: 8px; }
.btn { display: inline-block; margin-top: 14px; background: var(--accent); color: var(--dark-900); padding: 10px 20px; border-radius: 4px; font-weight: 800; font-size: 13.5px; }

/* ---- Single post ---- */
.single-post { max-width: 740px; margin: 0 auto; }
.breadcrumb { font-size: 12px; color: var(--ink-500); margin-bottom: 14px; }
.breadcrumb a { font-weight: 700; color: var(--ink-800); }
.single-post-header h1 { font-size: clamp(27px,4vw,40px); line-height: 1.2; margin: 10px 0 14px; color: var(--ink-900); font-weight: 800; }
.single-post-headline { width: 100%; max-height: 460px; object-fit: cover; margin: 22px 0 30px; border-radius: var(--radius); }
.single-post-content { font-size: 17.5px; }
.single-post-content p { margin: 0 0 22px; }
.single-post-content h2 { font-size: 23px; margin: 32px 0 14px; font-weight: 800; }
.single-post-content h3 { font-size: 19px; margin: 24px 0 12px; font-weight: 700; }
.single-post-content img { margin: 24px 0; width: 100%; border-radius: var(--radius); }
.single-post-content a { color: var(--ink-900); text-decoration: underline; text-decoration-color: var(--accent); }
.single-post-content blockquote { border-left: 3px solid var(--accent); margin: 26px 0; padding-left: 20px; font-style: italic; color: var(--ink-600); }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--ink-200); }
.tag-pill-link { background: var(--ink-100); color: var(--ink-700); font-size: 12.5px; font-weight: 700; padding: 6px 14px; border-radius: 4px; }
.tag-pill-link:hover { background: var(--dark-900); color: var(--accent); }

.related-posts { max-width: 740px; margin: 56px auto 0; border-top: 1px solid var(--ink-200); padding-top: 28px; }
.related-posts h2 { font-size: 18px; margin-bottom: 18px; font-weight: 800; }

/* ---- Layout wrapper for inner pages ---- */
.page-layout { max-width: 1240px; margin: 0 auto; padding: 36px 22px 60px; }

/* ---- Footer ---- */
.site-footer { background: var(--dark-900); color: var(--ink-400); padding: 46px 0 0; margin-top: 10px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--dark-700); }
.footer-grid h4 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 14px; }
.footer-grid p { font-size: 13px; color: var(--ink-500); line-height: 1.6; }
.footer-grid ul { display: flex; flex-direction: column; gap: 9px; }
.footer-grid li a:hover { color: var(--accent); }
.footer-logo { font-weight: 800; font-size: 21px; color: #fff; margin-bottom: 10px; }
.footer-social { display: flex; gap: 8px; margin-top: 14px; }
.footer-recent-item { display: grid; grid-template-columns: 46px 1fr; gap: 10px; margin-bottom: 12px; align-items: center; }
.footer-recent-item h5 { font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--ink-300); }
.footer-recent-item h5 a:hover { color: var(--accent); }
.footer-bottom { padding: 18px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--ink-600); }

@media (max-width: 1080px) {
  .main-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .main-nav { order: 3; width: 100%; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .feed-grid, .feed-grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .compact-item { grid-template-columns: 64px 1fr; }
  .masthead-actions { margin-left: 0; }
}
@media (max-width: 460px) {
  .feed-grid, .feed-grid-4 { grid-template-columns: 1fr; }
}
