/*
Theme Name: StoryCurrent
Theme URI: https://example.com/storycurrent
Author: StoryCurrent
Description: A warm editorial WordPress theme for original viral stories, human-interest articles, and AdsKeeper native advertising.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: storycurrent
Tags: blog, news, one-column, two-columns, custom-logo, featured-images, threaded-comments
*/

:root {
  --cream: #f7f0e6;
  --paper: #fffaf2;
  --burgundy: #6e2333;
  --burgundy-dark: #511724;
  --amber: #d99a3d;
  --charcoal: #27201d;
  --muted: #716660;
  --taupe: #d5c8b8;
  --shadow: 0 18px 46px rgba(67, 42, 29, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--charcoal); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
.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; }

.site-header { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: auto 1fr; align-items: center; min-height: 88px; padding: 16px clamp(22px,4.5vw,72px); border-bottom: 1px solid var(--taupe); background: rgba(247,240,230,.96); backdrop-filter: blur(16px); }
.site-branding { display: flex; align-items: center; gap: 16px; }
.custom-logo { max-height: 54px; width: auto; }
.site-title { color: var(--burgundy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem,3vw,3rem); letter-spacing: -.06em; line-height: 1; }
.primary-menu { justify-self: end; }
.primary-menu ul { display: flex; align-items: center; gap: clamp(22px,3vw,52px); margin: 0; padding: 0; list-style: none; }
.primary-menu a { position: relative; padding: 12px 0; font-size: .96rem; font-weight: 700; }
.primary-menu a::after { position: absolute; right: 0; bottom: 5px; left: 0; height: 2px; background: var(--burgundy); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.primary-menu a:hover::after, .current-menu-item > a::after { transform: scaleX(1); }
.menu-toggle { display: none; justify-self: end; min-height: 42px; padding: 0 16px; border: 1px solid var(--taupe); border-radius: 999px; background: transparent; color: var(--burgundy); font-weight: 800; }

.hero { display: grid; grid-template-columns: minmax(0,44fr) minmax(0,56fr); min-height: 625px; border-bottom: 1px solid var(--taupe); }
.hero-copy { display: flex; align-items: flex-start; justify-content: center; flex-direction: column; padding: clamp(48px,6vw,92px); }
.eyebrow { margin: 0 0 14px; color: var(--burgundy); font-size: .73rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1,h2,h3 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.045em; }
.hero h1 { max-width: 720px; margin-bottom: 0; color: var(--burgundy); font-size: clamp(3.2rem,5.2vw,5.8rem); line-height: .98; }
.hero-deck { max-width: 590px; margin: 28px 0 32px; color: #3f3733; font-size: clamp(1.1rem,1.6vw,1.38rem); line-height: 1.55; }
.hero-image { min-height: 625px; background: #e5d5c1 center/cover no-repeat; }
.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 12px; padding: 0 26px; border: 0; border-radius: 8px; cursor: pointer; font-weight: 800; transition: .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { min-width: 220px; background: var(--burgundy); color: white; box-shadow: 0 10px 24px rgba(110,35,51,.18); }
.button-primary:hover { background: var(--burgundy-dark); }

.section-shell { width: min(100% - 44px,1380px); margin: 0 auto; padding: 82px 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(2.5rem,4vw,4.4rem); line-height: 1.04; }
.accent-rule { display: block; width: 62px; height: 4px; margin-bottom: 18px; border-radius: 99px; background: var(--amber); }
.story-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 52px 28px; }
.story-card { min-width: 0; }
.story-image-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; margin-bottom: 20px; border-radius: 10px; background: #eadfce; }
.story-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .42s ease; }
.story-card a:hover .story-image-wrap img { transform: scale(1.025); }
.story-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; color: var(--burgundy); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.story-card h3 { margin-bottom: 0; font-size: clamp(1.7rem,2.4vw,2.65rem); line-height: 1.04; }
.story-card a:hover h3 { color: var(--burgundy); }
.story-card p { margin: 14px 0 0; color: var(--muted); line-height: 1.55; }

.ad-slot { display: flex; width: min(100% - 44px,1180px); min-height: 148px; align-items: center; justify-content: center; flex-direction: column; gap: 8px; margin: 28px auto 48px; border: 1px dashed #b8aa99; border-radius: 10px; background: rgba(255,250,242,.65); text-align: center; }
.ad-slot-label { color: #766a61; font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.article-content .ad-slot { width: 100%; }

.article-shell { width: min(100% - 44px,1260px); margin: 0 auto; padding: 60px 0 100px; }
.article-header { width: min(100%,940px); margin: 0 auto 50px; text-align: center; }
.article-header h1 { margin-bottom: 0; color: var(--burgundy); font-size: clamp(3.1rem,6.5vw,6.5rem); line-height: .98; }
.article-deck { max-width: 780px; margin: 28px auto 20px; color: #524842; font-family: Georgia,serif; font-size: clamp(1.25rem,2vw,1.7rem); line-height: 1.45; }
.byline { color: var(--muted); font-size: .9rem; }
.article-hero { width: 100%; aspect-ratio: 16/8.5; border-radius: 14px; object-fit: cover; box-shadow: var(--shadow); }
.article-layout { display: grid; grid-template-columns: minmax(0,760px) 260px; justify-content: center; gap: 70px; padding-top: 62px; }
.article-content { font-family: Georgia,serif; font-size: clamp(1.15rem,1.45vw,1.3rem); line-height: 1.9; }
.article-content p { margin: 0 0 32px; }
.article-sidebar { position: sticky; top: 118px; align-self: start; padding-left: 24px; border-left: 1px solid var(--taupe); color: var(--muted); line-height: 1.6; }
.article-sidebar h2 { color: var(--burgundy); font-family: Arial,sans-serif; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.comments-area { max-width: 760px; margin: 64px auto 0; padding-top: 44px; border-top: 4px solid var(--amber); }
.comment-list { padding-left: 22px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 14px; border: 1px solid var(--taupe); border-radius: 8px; background: var(--paper); }
.comment-form .submit { min-height: 48px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--burgundy); color: white; font-weight: 800; }

.info-page { width: min(100% - 44px,900px); min-height: 65vh; margin: 0 auto; padding: 86px 0 120px; }
.info-page h1 { color: var(--burgundy); font-size: clamp(3.4rem,7vw,6.5rem); }
.info-page p, .entry-content { color: #4f4540; line-height: 1.8; }
.pagination { display: flex; justify-content: center; gap: 12px; margin-top: 56px; }
.pagination .page-numbers { padding: 10px 14px; border: 1px solid var(--taupe); border-radius: 6px; }
.pagination .current { background: var(--burgundy); color: white; }

.site-footer { padding: 64px clamp(22px,4.5vw,72px) 30px; background: var(--charcoal); color: #f7f0e6; }
.footer-main { display: grid; grid-template-columns: 1.2fr 2fr; gap: 70px; padding-bottom: 52px; }
.footer-brand p { max-width: 430px; color: #cfc3b7; line-height: 1.65; }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.footer-links h2 { color: #e9b765; font-family: Arial,sans-serif; font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.footer-links a { display: block; width: fit-content; margin: 12px 0; color: #efe8df; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #a99c91; font-size: .82rem; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image { min-height: 520px; }
  .story-grid { grid-template-columns: repeat(2,1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; padding: 24px 0 0; border-top: 1px solid var(--taupe); border-left: 0; }
}

@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 72px; padding: 14px 20px; }
  .site-title { font-size: 2rem; }
  .menu-toggle { display: block; }
  .primary-menu { display: none; grid-column: 1/-1; justify-self: stretch; padding-top: 16px; }
  .primary-menu.is-open { display: block; }
  .primary-menu ul { align-items: flex-start; flex-direction: column; gap: 4px; }
  .hero-copy { padding: 58px 22px; }
  .hero h1 { font-size: clamp(3rem,14vw,4.3rem); }
  .hero-image { min-height: 420px; }
  .section-shell { width: min(100% - 36px,1380px); padding: 64px 0; }
  .story-grid, .footer-main { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .footer-links { grid-template-columns: repeat(2,1fr); }
  .footer-bottom { flex-direction: column; }
  .article-header { text-align: left; }
  .article-header h1 { font-size: clamp(3rem,13vw,4.5rem); }
  .article-hero { aspect-ratio: 4/3; }
}

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