/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/

:root {
  --bg: #f5f0e8;
  --bg-alt: #ebe5d9;
  --text: #1a1a1a;
  --text-light: #555;
  --accent-red: #c1272d;
  --accent-green: #2d8a4e;
  --accent-green-light: #e6f2ec;
  --accent-red-light: #fce8e9;
  --white: #fff;
  --shadow: 0 8px 32px rgba(0,0,0,.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.12);
  --radius: 6px;
  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: .35s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; }

/* HEADER */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; background: rgba(245,240,232,.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0,0,0,.06); }
.header-inner { max-width: 1400px; margin: 0 auto; padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-head); font-size: 2rem; font-weight: 900; letter-spacing: -.04em; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent-red); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; position: relative; transition: color var(--transition); }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent-red); transition: width var(--transition); }
.nav-links a:hover { color: var(--accent-red); }
.nav-links a:hover::after { width: 100%; }
.burger { display: none; background: none; border: none; cursor: pointer; width: 44px; height: 44px; position: relative; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px auto; transition: var(--transition); }

/* HERO */
.hero { margin-top: 80px; padding: 4rem 2rem; max-width: 1400px; margin-left: auto; margin-right: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; min-height: 70vh; }
.hero-text { padding-top: 2rem; }
.hero-label { display: inline-block; background: var(--accent-red); color: var(--white); font-size: .7rem; text-transform: uppercase; letter-spacing: .15em; padding: .35rem .9rem; margin-bottom: 1.5rem; }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.08; font-weight: 900; letter-spacing: -.03em; margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; color: var(--accent-green); }
.hero-sub { font-size: 1.15rem; color: var(--text-light); margin-bottom: 2rem; max-width: 520px; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; height: 500px; object-fit: cover; display: block; }
.hero-visual::after { content: ''; position: absolute; top: -20px; right: -20px; width: 120px; height: 120px; border: 3px solid var(--accent-green); z-index: -1; }

/* ARTICLE BODY ON HOME */
.home-article { max-width: 1400px; margin: 0 auto; padding: 4rem 2rem; display: grid; grid-template-columns: 1fr 340px; gap: 4rem; }
.home-article-content h2 { font-family: var(--font-head); font-size: 1.8rem; margin-bottom: 1rem; }
.home-article-content h3 { font-family: var(--font-head); font-size: 1.3rem; margin: 2rem 0 .8rem; color: var(--accent-green); }
.home-article-content p { margin-bottom: 1.2rem; }
.home-article-content blockquote { border-left: 4px solid var(--accent-red); padding: 1.5rem 2rem; margin: 2rem 0; background: var(--accent-red-light); font-family: var(--font-head); font-size: 1.2rem; font-style: italic; line-height: 1.6; }
.cta-read { display: inline-block; background: var(--accent-red); color: var(--white); padding: .9rem 2.2rem; text-decoration: none; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; transition: var(--transition); margin-top: 1rem; }
.cta-read:hover { background: var(--text); transform: translateY(-2px); box-shadow: var(--shadow); }

/* SIDEBAR */
.sidebar { position: sticky; top: 100px; }
.sidebar-block { background: var(--white); padding: 1.8rem; margin-bottom: 2rem; box-shadow: var(--shadow); }
.sidebar-block h4 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--accent-green); }
.sidebar-block p, .sidebar-block li { font-size: .9rem; color: var(--text-light); line-height: 1.6; }
.sidebar-block ul { list-style: none; padding: 0; }
.sidebar-block ul li { padding: .6rem 0; border-bottom: 1px solid var(--bg-alt); }
.sidebar-block ul li a { color: var(--text); text-decoration: none; transition: color var(--transition); }
.sidebar-block ul li a:hover { color: var(--accent-red); }
.tag { display: inline-block; background: var(--bg-alt); padding: .25rem .7rem; font-size: .75rem; margin: .2rem; border-radius: 20px; }

/* FEATURES / RUBRICS */
.rubrics { max-width: 1400px; margin: 0 auto; padding: 5rem 2rem; }
.rubrics h2 { font-family: var(--font-head); font-size: 2.4rem; text-align: center; margin-bottom: .5rem; }
.rubrics .subtitle { text-align: center; color: var(--text-light); margin-bottom: 3rem; }
.rubrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.rubric-card { padding: 2.5rem 2rem; background: var(--white); position: relative; overflow: hidden; transition: var(--transition); box-shadow: var(--shadow); }
.rubric-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; }
.rubric-card:nth-child(1)::before { background: var(--accent-red); }
.rubric-card:nth-child(2)::before { background: var(--accent-green); }
.rubric-card:nth-child(3)::before { background: var(--text); }
.rubric-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.rubric-card h3 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: .8rem; }
.rubric-card p { font-size: .92rem; color: var(--text-light); }
.rubric-num { font-family: var(--font-head); font-size: 4rem; font-weight: 900; color: var(--bg-alt); position: absolute; top: 10px; right: 20px; line-height: 1; }

/* ARTICLE CARDS */
.articles-section { max-width: 1400px; margin: 0 auto; padding: 5rem 2rem; }
.articles-section > h2 { font-family: var(--font-head); font-size: 2.4rem; margin-bottom: .5rem; }
.articles-section > .subtitle { color: var(--text-light); margin-bottom: 3rem; }
.articles-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2.5rem; }
.article-card { background: var(--white); box-shadow: var(--shadow); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-card-img { height: 220px; overflow: hidden; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.article-card:hover .article-card-img img { transform: scale(1.06); }
.article-card-body { padding: 1.8rem; flex: 1; display: flex; flex-direction: column; }
.article-card-cat { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-red); margin-bottom: .5rem; }
.article-card-body h3 { font-family: var(--font-head); font-size: 1.25rem; margin-bottom: .7rem; line-height: 1.3; }
.article-card-body p { font-size: .9rem; color: var(--text-light); flex: 1; }
.article-card-body a { display: inline-block; margin-top: 1rem; color: var(--accent-green); text-decoration: none; font-size: .85rem; font-weight: 600; transition: color var(--transition); }
.article-card-body a:hover { color: var(--accent-red); }

/* COLLAGE SECTION */
.collage-section { max-width: 1400px; margin: 0 auto; padding: 5rem 2rem; display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: center; }
.collage-section.reverse { grid-template-columns: 1fr 2fr; }
.collage-text h2 { font-family: var(--font-head); font-size: 2rem; margin-bottom: 1rem; }
.collage-text p { color: var(--text-light); margin-bottom: 1rem; }
.collage-visual { background: var(--accent-green-light); padding: 3rem; position: relative; min-height: 300px; display: flex; align-items: center; justify-content: center; }
.collage-visual.red { background: var(--accent-red-light); }
.collage-visual .big-quote { font-family: var(--font-head); font-size: 1.8rem; font-style: italic; line-height: 1.4; text-align: center; }
.collage-visual::before { content: '\201C'; font-family: var(--font-head); font-size: 8rem; position: absolute; top: -10px; left: 20px; color: rgba(0,0,0,.06); line-height: 1; }

/* SUBSCRIBE */
.subscribe-section { background: var(--text); color: var(--bg); padding: 5rem 2rem; text-align: center; }
.subscribe-section h2 { font-family: var(--font-head); font-size: 2.2rem; margin-bottom: .5rem; color: var(--bg); }
.subscribe-section p { color: rgba(245,240,232,.7); margin-bottom: 2rem; }
.subscribe-form { display: flex; gap: 0; max-width: 480px; margin: 0 auto; }
.subscribe-form input[type="email"] { flex: 1; padding: .9rem 1.2rem; border: 2px solid rgba(245,240,232,.2); background: transparent; color: var(--bg); font-size: 1rem; outline: none; transition: border-color var(--transition); }
.subscribe-form input[type="email"]:focus { border-color: var(--accent-green); }
.subscribe-form button { background: var(--accent-red); color: var(--white); border: none; padding: .9rem 2rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; cursor: pointer; transition: background var(--transition); min-width: 44px; min-height: 44px; }
.subscribe-form button:hover { background: var(--accent-green); }

/* STORY DAY / EXTRA SECTIONS */
.story-section { max-width: 1400px; margin: 0 auto; padding: 4rem 2rem; }
.story-section h2 { font-family: var(--font-head); font-size: 2rem; margin-bottom: 2rem; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.story-card { padding: 2rem; border-left: 4px solid var(--accent-green); background: var(--white); box-shadow: var(--shadow); transition: var(--transition); }
.story-card:hover { transform: translateX(6px); }
.story-card h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: .5rem; }
.story-card p { font-size: .9rem; color: var(--text-light); }
.story-card:nth-child(even) { border-left-color: var(--accent-red); }

/* QUOTES TICKER */
.quotes-ticker { background: var(--accent-green); color: var(--white); padding: 1.5rem 2rem; overflow: hidden; white-space: nowrap; }
.quotes-ticker-inner { display: inline-block; animation: ticker 30s linear infinite; }
.quotes-ticker-inner span { margin-right: 4rem; font-family: var(--font-head); font-style: italic; font-size: 1rem; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* FULL ARTICLE PAGE */
.article-page { margin-top: 80px; max-width: 1400px; margin-left: auto; margin-right: auto; padding: 4rem 2rem; display: grid; grid-template-columns: 1fr 340px; gap: 4rem; }
.article-header { margin-bottom: 2rem; }
.article-header .cat-label { display: inline-block; background: var(--accent-red); color: var(--white); font-size: .7rem; text-transform: uppercase; letter-spacing: .15em; padding: .3rem .8rem; margin-bottom: 1rem; }
.article-header h1 { font-family: var(--font-head); font-size: clamp(2rem,4vw,3rem); line-height: 1.12; margin-bottom: 1rem; }
.article-header .meta { font-size: .85rem; color: var(--text-light); }
.article-body h2 { font-family: var(--font-head); font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.article-body h3 { font-family: var(--font-head); font-size: 1.2rem; margin: 2rem 0 .7rem; color: var(--accent-green); }
.article-body p { margin-bottom: 1.2rem; }
.article-body blockquote { border-left: 4px solid var(--accent-red); padding: 1.2rem 1.8rem; margin: 2rem 0; background: var(--accent-red-light); font-family: var(--font-head); font-style: italic; font-size: 1.1rem; }
.article-body ul, .article-body ol { margin: 1.2rem 0; padding-left: 1.5rem; }
.article-body li { margin-bottom: .5rem; }
.article-body .highlight-box { background: var(--accent-green-light); border-left: 4px solid var(--accent-green); padding: 1.5rem; margin: 2rem 0; }
.article-disclaimer { background: var(--bg-alt); padding: 1.5rem; margin-top: 3rem; font-size: .85rem; color: var(--text-light); border-left: 4px solid var(--accent-red); }
.article-nav { margin-top: 3rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.article-nav a { padding: .7rem 1.5rem; background: var(--text); color: var(--bg); text-decoration: none; font-size: .85rem; transition: var(--transition); min-height: 44px; display: inline-flex; align-items: center; }
.article-nav a:hover { background: var(--accent-red); }

/* SIMPLE PAGES */
.simple-page { margin-top: 80px; max-width: 800px; margin-left: auto; margin-right: auto; padding: 4rem 2rem; }
.simple-page h1 { font-family: var(--font-head); font-size: 2.4rem; margin-bottom: 2rem; }
.simple-page h2 { font-family: var(--font-head); font-size: 1.4rem; margin: 2rem 0 .8rem; }
.simple-page p { margin-bottom: 1rem; color: var(--text-light); }
.simple-page a { color: var(--accent-red); }

/* SUCCESS */
.success-page { margin-top: 80px; min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4rem 2rem; }
.success-page h1 { font-family: var(--font-head); font-size: 3rem; margin-bottom: 1rem; }
.success-page p { color: var(--text-light); margin-bottom: 2rem; font-size: 1.1rem; }
.success-page a { background: var(--accent-green); color: var(--white); padding: 1rem 2.5rem; text-decoration: none; transition: var(--transition); min-height: 44px; display: inline-flex; align-items: center; }
.success-page a:hover { background: var(--text); }

/* 404 */
.error-page { margin-top: 80px; min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4rem 2rem; }
.error-page h1 { font-family: var(--font-head); font-size: 8rem; line-height: 1; color: var(--accent-red); }
.error-page h2 { font-family: var(--font-head); font-size: 1.8rem; margin: 1rem 0; }
.error-page p { color: var(--text-light); margin-bottom: 2rem; }
.error-page .error-links { display: flex; flex-direction: column; gap: .8rem; }
.error-page .error-links a { color: var(--accent-green); text-decoration: none; font-size: 1rem; transition: color var(--transition); }
.error-page .error-links a:hover { color: var(--accent-red); }

/* FOOTER */
.site-footer { background: var(--text); color: rgba(245,240,232,.6); padding: 3rem 2rem; }
.footer-inner { max-width: 1400px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 2rem; }
.footer-brand { font-family: var(--font-head); font-size: 1.4rem; font-weight: 900; color: var(--bg); margin-bottom: .5rem; }
.footer-copy { font-size: .8rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: rgba(245,240,232,.6); text-decoration: none; font-size: .8rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent-red); }
.footer-disclaimer { width: 100%; font-size: .75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(245,240,232,.1); line-height: 1.5; }

/* COOKIES BANNER */
#cookie-toggle { display: none; }
.cookie-banner { position: fixed; bottom: 20px; right: 20px; background: var(--white); box-shadow: var(--shadow-lg); padding: 1.5rem; max-width: 360px; z-index: 999; font-size: .85rem; transition: var(--transition); }
#cookie-toggle:checked ~ .cookie-banner { display: none; }
.cookie-banner p { margin-bottom: 1rem; color: var(--text-light); }
.cookie-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.cookie-actions label, .cookie-actions a { padding: .5rem 1rem; font-size: .8rem; cursor: pointer; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.cookie-accept { background: var(--accent-green); color: var(--white); border: none; }
.cookie-decline { background: var(--bg-alt); color: var(--text); border: none; }
.cookie-more { color: var(--accent-red); }

/* MOBILE */
@media (max-width: 900px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg); padding: 2rem; box-shadow: var(--shadow); }
  .nav-links.active { display: flex; }
  .burger { display: flex; align-items: center; justify-content: center; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .home-article { grid-template-columns: 1fr; }
  .rubrics-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .collage-section, .collage-section.reverse { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .article-page { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-inner { flex-direction: column; }
}

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .8s ease both; }

.hero-cinematic { position: relative; min-height: 85vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: relative; z-index: 2; width: 100%; padding: 4rem 0; background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%); }
.hero-overlay .wrapper { color: #fff; max-width: 680px; }
.hero-overlay h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.08; margin: 1rem 0 1.25rem; font-weight: 800; }
.hero-overlay p { font-size: 1.05rem; line-height: 1.8; opacity: .88; margin-bottom: 1.5rem; }
.btn-hero { display: inline-block; background: #fff; color: #111; padding: .85rem 2rem; border-radius: 6px; font-weight: 700; font-size: .9rem; transition: all .3s; }
.btn-hero:hover { background: var(--c-accent, #7bc8a4); color: #fff; }

.manifest { padding: 4rem 0; border-bottom: 1px solid #e8e8e8; }
.manifest-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.manifest-text h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.manifest-text p { color: #555; line-height: 1.85; font-size: .96rem; }
.manifest-quote blockquote { font-size: 1.6rem; font-style: italic; line-height: 1.4; color: #222; border-left: 4px solid var(--c-accent, #7bc8a4); padding-left: 1.5rem; margin: 0; }

.longread { padding: 4rem 0; }
.longread-inner { display: grid; grid-template-columns: 380px 1fr; gap: 3rem; align-items: start; }
.longread-hero-img { border-radius: 10px; overflow: hidden; position: sticky; top: 80px; }
.longread-hero-img img { width: 100%; height: 480px; object-fit: cover; }
.longread-cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--c-accent, #7bc8a4); display: block; margin-bottom: .5rem; }
.longread-content h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.longread-content p { color: #555; line-height: 1.88; font-size: .95rem; margin-bottom: 1rem; }

.ticker { overflow: hidden; padding: 1rem 0; border-top: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; }
.ticker-inner { display: flex; gap: 2rem; animation: tickerScroll 20s linear infinite; white-space: nowrap; }
.ticker-inner span { font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #aaa; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.pillars { padding: 4rem 0; }
.pillars h2 { font-size: 1.5rem; margin-bottom: 2rem; }
.pillars-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar-card { background: #f7f7f7; border-radius: 10px; padding: 2rem; }
.pillar-n { font-size: 2rem; font-weight: 900; color: #ddd; display: block; margin-bottom: .5rem; }
.pillar-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.pillar-card p { font-size: .9rem; color: #666; line-height: 1.75; }

.deep-section { padding: 3.5rem 0; border-top: 1px solid #eee; }
.deep-section.alt { background: #f8f9fa; border-top: none; }
.deep-content { max-width: 700px; margin: 0 auto; }
.deep-content h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
.deep-content p { font-size: .95rem; line-height: 1.88; color: #555; margin-bottom: 1rem; }
.deep-content p:last-child { margin-bottom: 0; }

.articles-mosaic { padding: 4rem 0; }
.articles-mosaic h2 { font-size: 1.5rem; margin-bottom: 2rem; }
.mosaic-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 1rem; }
.mosaic-card { position: relative; border-radius: 10px; overflow: hidden; display: block; min-height: 240px; }
.mosaic-big { grid-row: span 2; min-height: 100%; }
.mosaic-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mosaic-card:hover img { transform: scale(1.05); }
.mosaic-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.25rem; background: linear-gradient(to top, rgba(0,0,0,.7), transparent); color: #fff; }
.mosaic-cat { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.mosaic-overlay h3 { font-size: 1rem; margin-top: .3rem; line-height: 1.3; }
.mosaic-big .mosaic-overlay h3 { font-size: 1.3rem; }

.stories { padding: 4rem 0; border-top: 1px solid #eee; }
.stories h2 { font-size: 1.5rem; margin-bottom: 2rem; }
.stories-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.story-item { padding: 1.5rem; background: #f8f8f8; border-radius: 10px; }
.story-item h3 { font-size: 1rem; margin-bottom: .5rem; }
.story-item p { font-size: .88rem; color: #666; line-height: 1.75; }

@media (max-width: 900px) {
  .manifest-inner { grid-template-columns: 1fr; }
  .longread-inner { grid-template-columns: 1fr; }
  .longread-hero-img { position: static; }
  .longread-hero-img img { height: 280px; }
  .pillars-row { grid-template-columns: 1fr; }
  .mosaic-grid { grid-template-columns: 1fr; }
  .mosaic-big { grid-row: auto; min-height: 260px; }
  .stories-grid { grid-template-columns: 1fr; }
  .hero-cinematic { min-height: 70vh; }
}