/*
Theme Name: Sorot Seleb
Author: Site Owner
Description: Lightweight, responsive Indonesian celebrity news theme with built-in SEO metadata fallbacks, structured data, accessible navigation, and optional starter content.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sorot-seleb
Tags: news, blog, one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --ss-bg: #f6f7f9;
  --ss-surface: #ffffff;
  --ss-text: #15171a;
  --ss-muted: #666d75;
  --ss-border: #e3e6ea;
  --ss-accent: #d71920;
  --ss-accent-dark: #a80e13;
  --ss-dark: #111317;
  --ss-radius: 14px;
  --ss-shadow: 0 10px 30px rgba(20, 24, 30, .08);
  --ss-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ss-bg);
  color: var(--ss-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--ss-accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ss-accent); }
button, input, textarea, select { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; margin: 8px; padding: 10px 14px; background: #fff; z-index: 100000; }

.site-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }
.container { width: min(calc(100% - 32px), var(--ss-container)); margin-inline: auto; }

.topbar { background: var(--ss-dark); color: #fff; font-size: .86rem; }
.topbar .container { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar a { color: #fff; text-decoration: none; }
.site-header { background: #fff; border-bottom: 1px solid var(--ss-border); position: sticky; top: 0; z-index: 50; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding { min-width: 0; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 48px; width: auto; }
.site-title { margin: 0; font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 850; line-height: 1; letter-spacing: -.04em; }
.site-title a { color: var(--ss-dark); text-decoration: none; }
.site-description { margin: 6px 0 0; color: var(--ss-muted); font-size: .82rem; }

.primary-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: block; padding: 10px 12px; color: var(--ss-text); text-decoration: none; font-weight: 700; font-size: .94rem; border-radius: 8px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { color: var(--ss-accent); background: #fff2f2; }
.menu-toggle { display: none; border: 1px solid var(--ss-border); background: #fff; color: var(--ss-dark); border-radius: 9px; padding: 9px 12px; cursor: pointer; font-weight: 700; }

.hero-strip { background: var(--ss-dark); color: #fff; padding: 34px 0; }
.hero-strip h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.045em; line-height: 1.05; }
.hero-strip p { max-width: 760px; margin: 12px 0 0; color: #d6d8dc; font-size: 1.03rem; }

.content-area { padding: 36px 0 56px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-heading h2, .archive-title { margin: 0; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.03em; }
.section-kicker { color: var(--ss-accent); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }

.lead-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 22px; margin-bottom: 36px; }
.lead-story, .story-card, .article-shell, .archive-header, .not-found { background: var(--ss-surface); border: 1px solid var(--ss-border); border-radius: var(--ss-radius); overflow: hidden; }
.lead-story { box-shadow: var(--ss-shadow); }
.lead-story .thumb-wrap { aspect-ratio: 16 / 9; display: block; background: #e9ebef; overflow: hidden; }
.lead-story .thumb-wrap img, .story-card .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.lead-story:hover img, .story-card:hover img { transform: scale(1.02); }
.lead-content { padding: clamp(20px, 3vw, 32px); }
.lead-content h2 { margin: 7px 0 10px; font-size: clamp(1.65rem, 4vw, 2.65rem); line-height: 1.06; letter-spacing: -.045em; }
.lead-content h2 a, .story-card h3 a { color: var(--ss-text); text-decoration: none; }
.lead-content h2 a:hover, .story-card h3 a:hover { color: var(--ss-accent); }

.sidebar-stack { display: grid; gap: 14px; align-content: start; }
.mini-story { background: #fff; border: 1px solid var(--ss-border); border-radius: 12px; padding: 18px; }
.mini-story h3 { margin: 6px 0 8px; font-size: 1.05rem; line-height: 1.28; }
.mini-story h3 a { color: var(--ss-text); text-decoration: none; }

.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.story-card { display: flex; flex-direction: column; min-width: 0; }
.story-card .thumb-wrap { aspect-ratio: 16 / 10; background: #e9ebef; overflow: hidden; }
.story-card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.story-card h3 { margin: 7px 0 9px; line-height: 1.22; font-size: 1.2rem; letter-spacing: -.02em; }
.story-card .excerpt { color: var(--ss-muted); margin: 0 0 14px; font-size: .94rem; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; color: var(--ss-muted); font-size: .78rem; }
.category-pill { display: inline-flex; width: fit-content; padding: 4px 8px; border-radius: 999px; background: #fff0f0; color: var(--ss-accent-dark); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; text-decoration: none; }

.archive-header { padding: 24px; margin-bottom: 22px; }
.archive-description { margin-top: 8px; color: var(--ss-muted); }
.pagination { margin-top: 30px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 8px; background: #fff; border: 1px solid var(--ss-border); text-decoration: none; color: var(--ss-text); }
.page-numbers.current { background: var(--ss-accent); color: #fff; border-color: var(--ss-accent); }

.article-shell { max-width: 860px; margin-inline: auto; padding: clamp(22px, 5vw, 54px); }
.article-header { margin-bottom: 26px; }
.article-title { margin: 9px 0 12px; font-size: clamp(2rem, 6vw, 3.75rem); line-height: 1.02; letter-spacing: -.05em; }
.article-dek { margin: 0 0 14px; color: #4d535b; font-size: 1.1rem; }
.article-featured { margin: 26px calc(clamp(22px, 5vw, 54px) * -1) 34px; }
.article-featured img { display: block; width: 100%; max-height: 560px; object-fit: cover; }
.article-content { font-size: 1.05rem; }
.article-content > *:first-child { margin-top: 0; }
.article-content h2 { margin-top: 2em; font-size: 1.65rem; line-height: 1.2; letter-spacing: -.025em; }
.article-content h3 { margin-top: 1.7em; font-size: 1.3rem; }
.article-content p, .article-content ul, .article-content ol { margin-block: 1.1em; }
.article-content blockquote { margin: 1.5em 0; padding: 2px 0 2px 20px; border-left: 4px solid var(--ss-accent); color: #4d535b; }
.article-content a { word-break: break-word; }
.article-footer { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--ss-border); }
.tag-list a { display: inline-block; margin: 4px 4px 0 0; padding: 5px 9px; border-radius: 7px; background: #f0f2f5; color: #424850; text-decoration: none; font-size: .8rem; }
.post-navigation { max-width: 860px; margin: 22px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.post-navigation a { display: block; height: 100%; background: #fff; border: 1px solid var(--ss-border); border-radius: 12px; padding: 16px; text-decoration: none; color: var(--ss-text); }

.comments-area { max-width: 860px; margin: 22px auto 0; background: #fff; border: 1px solid var(--ss-border); border-radius: 14px; padding: 24px; }
.comment-list { padding-left: 20px; }
.comment-body { margin-bottom: 20px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea,
.search-form input[type="search"] { width: 100%; border: 1px solid #cfd4da; border-radius: 8px; padding: 11px 12px; background: #fff; }
.comment-form input[type="submit"], .search-form input[type="submit"] { border: 0; border-radius: 8px; padding: 11px 16px; background: var(--ss-accent); color: #fff; font-weight: 800; cursor: pointer; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }

.not-found { padding: 36px; text-align: center; }
.not-found h1 { margin-top: 0; font-size: clamp(2rem, 6vw, 4rem); }

.site-footer { margin-top: auto; background: var(--ss-dark); color: #c8cbd0; padding: 44px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; }
.site-footer h2 { margin: 0 0 10px; color: #fff; font-size: 1.25rem; }
.site-footer a { color: #fff; }
.footer-menu { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 18px; }
.footer-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid #2e3238; font-size: .84rem; }

@media (max-width: 900px) {
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-grid { grid-template-columns: 1fr; }
  .sidebar-stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .menu-toggle { display: inline-flex; }
  .primary-nav { position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); background: #fff; border: 1px solid var(--ss-border); border-radius: 12px; padding: 8px; box-shadow: var(--ss-shadow); display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav a { padding: 11px 12px; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 22px), var(--ss-container)); }
  .topbar .container { min-height: 32px; }
  .topbar .topbar-secondary { display: none; }
  .header-inner { min-height: 68px; gap: 14px; }
  .site-description { display: none; }
  .story-grid, .sidebar-stack, .footer-grid, .post-navigation { grid-template-columns: 1fr; }
  .content-area { padding-top: 22px; }
  .article-shell { border-radius: 0; border-left: 0; border-right: 0; }
  .search-form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
