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

:root {
  --ivory: #F5F0E8;
  --cream: #FAF7F0;
  --navy: #1B2A4A;
  --navy-light: #2A3D5F;
  --olive: #7A8B6A;
  --olive-muted: #A8B59A;
  --olive-bg: #E8EDE3;
  --terracotta: #C4704B;
  --terracotta-light: #D4896A;
  --warm-gray: #B8B0A2;
  --border: #D9D2C7;
  --shadow: rgba(27,42,74,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 17px; }

body {
  font-family: Georgia, 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
  background: var(--ivory);
  color: var(--navy);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--terracotta); text-decoration: none; transition: color .3s; }
a:hover { color: var(--navy); }

/* === HEADER === */
.site-header {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}
.site-logo {
  font-family: Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.site-logo span { color: var(--terracotta); }

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--olive-muted);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: color .3s;
}
.nav-links a:hover { color: var(--ivory); }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span {
  display: block; width: 24px; height: 2px;
  background: var(--ivory); margin: 5px 0;
  transition: .3s;
}

/* === HERO === */
.hero-literary {
  max-width: 860px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
  text-align: center;
}
.hero-category {
  display: inline-block;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--terracotta);
  border: 1px solid var(--terracotta);
  padding: 0.3rem 1rem;
  margin-bottom: 2rem;
}
.hero-literary h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--navy);
}
.hero-divider {
  width: 60px;
  height: 2px;
  background: var(--terracotta);
  margin: 0 auto 2rem;
}
.hero-lead {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--navy-light);
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}
.hero-meta {
  margin-top: 2rem;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  color: var(--warm-gray);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* === MAIN CONTENT GRID === */
.content-with-sidebar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
}
.main-content { min-width: 0; }

.two-col-text {
  columns: 2;
  column-gap: 2.5rem;
  margin-bottom: 2rem;
}
.two-col-text p {
  margin-bottom: 1.2rem;
  text-indent: 1.5rem;
}
.two-col-text p:first-child { text-indent: 0; }

.section-title {
  font-size: 1.6rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.section-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  margin: 2rem 0 1rem;
  color: var(--olive);
}

/* === SIDEBAR === */
.sidebar {
  font-size: 0.85rem;
}
.sidebar-block {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--cream);
  border-left: 3px solid var(--terracotta);
}
.sidebar-block h3 {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Segoe UI', sans-serif;
  color: var(--terracotta);
  margin-bottom: 0.8rem;
}
.sidebar-block p { line-height: 1.6; color: var(--navy-light); }
.sidebar-links { list-style: none; }
.sidebar-links li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-links a {
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

/* === PULL QUOTE === */
.pull-quote {
  max-width: 760px;
  margin: 3rem auto;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
}
.pull-quote::before {
  content: '\201E';
  font-size: 5rem;
  color: var(--terracotta);
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
  opacity: 0.3;
}
.pull-quote p {
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--navy);
}
.pull-quote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-style: normal;
  color: var(--warm-gray);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Segoe UI', sans-serif;
}

/* === MARGIN NOTE === */
.margin-note {
  background: var(--olive-bg);
  padding: 1.2rem;
  border-radius: 2px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--olive);
  font-style: italic;
  margin: 1rem 0;
}
.margin-note strong {
  display: block;
  font-style: normal;
  color: var(--navy);
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Segoe UI', sans-serif;
}

/* === CARDS === */
.cards-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.card {
  background: var(--cream);
  padding: 2rem;
  border-bottom: 3px solid var(--terracotta);
  transition: transform .3s, box-shadow .3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow);
}
.card-number {
  font-family: Georgia, serif;
  font-size: 2.5rem;
  color: var(--terracotta);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 0.8rem;
}
.card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.card p { font-size: 0.9rem; color: var(--navy-light); line-height: 1.6; }

/* === IMAGE BLOCK === */
.image-block {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}
.image-block figure {
  position: relative;
  overflow: hidden;
}
.image-block img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.85);
  transition: filter .5s;
}
.image-block img:hover { filter: saturate(1); }
.image-block figcaption {
  font-size: 0.75rem;
  color: var(--warm-gray);
  font-style: italic;
  margin-top: 0.8rem;
  font-family: 'Segoe UI', sans-serif;
}

/* === HIGHLIGHT BOX === */
.highlight-box {
  max-width: 860px;
  margin: 3rem auto;
  padding: 2.5rem;
  background: var(--navy);
  color: var(--ivory);
}
.highlight-box h3 {
  color: var(--terracotta-light);
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1rem;
}
.highlight-box p { line-height: 1.8; opacity: 0.9; }
.highlight-list {
  list-style: none;
  margin-top: 1.2rem;
}
.highlight-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  font-size: 0.95rem;
  opacity: 0.9;
}
.highlight-list li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--terracotta-light);
}

/* === NEWSLETTER === */
.newsletter-section {
  max-width: 680px;
  margin: 4rem auto;
  padding: 3rem 2rem;
  text-align: center;
  background: var(--olive-bg);
  border: 1px solid var(--olive-muted);
}
.newsletter-section h3 {
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 0.8rem;
}
.newsletter-section p {
  font-size: 0.9rem;
  color: var(--navy-light);
  margin-bottom: 1.5rem;
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  background: var(--ivory);
  font-family: Georgia, serif;
  font-size: 0.9rem;
  color: var(--navy);
}
.newsletter-form input[type="email"]::placeholder { color: var(--warm-gray); }
.newsletter-form button {
  padding: 0.8rem 1.8rem;
  background: var(--terracotta);
  color: var(--ivory);
  border: none;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s;
  min-height: 44px;
  min-width: 44px;
}
.newsletter-form button:hover { background: var(--navy); }

/* === ARTICLE CARDS ROW === */
.articles-row {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}
.articles-row h2 {
  font-size: 1.3rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 2rem;
  text-align: center;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2rem;
}
.article-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: border-color .3s, box-shadow .3s;
}
.article-card:hover {
  border-color: var(--terracotta);
  box-shadow: 0 4px 20px var(--shadow);
}
.article-card-cat {
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.6rem;
}
.article-card h3 {
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}
.article-card p {
  font-size: 0.82rem;
  color: var(--navy-light);
  line-height: 1.6;
}
.article-card .read-more {
  display: inline-block;
  margin-top: 1rem;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--terracotta);
}

/* === FOOTER === */
.site-footer {
  background: var(--navy);
  color: var(--olive-muted);
  padding: 3rem 2rem 2rem;
  font-size: 0.8rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.footer-brand {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  color: var(--ivory);
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
}
.footer-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
}
.footer-links a {
  color: var(--olive-muted);
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 1px;
}
.footer-links a:hover { color: var(--ivory); }
.footer-disclaimer {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  margin-top: 1rem;
  font-size: 0.72rem;
  line-height: 1.6;
  color: rgba(168,181,154,.6);
}

/* === COOKIE BANNER === */
#cookie-consent:target + .cookie-banner { display: none; }
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  max-width: 380px;
  background: var(--navy);
  color: var(--ivory);
  padding: 1.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.3);
  z-index: 200;
  font-size: 0.8rem;
  line-height: 1.5;
}
.cookie-banner p { margin-bottom: 1rem; opacity: 0.9; font-family: 'Segoe UI', sans-serif; }
.cookie-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-btns a {
  padding: 0.6rem 1.2rem;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cookie-accept {
  background: var(--terracotta);
  color: var(--ivory) !important;
}
.cookie-accept:hover { background: var(--terracotta-light); }
.cookie-decline {
  border: 1px solid var(--olive-muted);
  color: var(--olive-muted) !important;
}
.cookie-decline:hover { border-color: var(--ivory); color: var(--ivory) !important; }
.cookie-link {
  color: var(--terracotta-light) !important;
  font-size: 0.7rem;
}

/* === PAGE-SPECIFIC === */
.page-header {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  text-align: center;
}
.page-header h1 {
  font-size: 2.2rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1rem;
}
.page-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}
.page-body p { margin-bottom: 1.2rem; }
.page-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.legal-section { counter-reset: legal; }
.legal-section h2::before {
  counter-increment: legal;
  content: counter(legal) '. ';
  color: var(--terracotta);
}

/* === SUCCESS & 404 === */
.status-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 6rem 2rem;
  text-align: center;
}
.status-page h1 {
  font-size: 3rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1rem;
}
.status-page p {
  color: var(--navy-light);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}
.status-btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: var(--terracotta);
  color: var(--ivory) !important;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background .3s;
  min-height: 44px;
}
.status-btn:hover { background: var(--navy); }

.error-links {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.error-links a {
  font-style: italic;
  font-size: 1rem;
}

/* === ARTICLE PAGE === */
.article-hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}
.article-hero h1 {
  font-size: 2.4rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.article-hero .hero-meta {
  margin-top: 0;
  margin-bottom: 1rem;
}
.article-body-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
}
.article-body-section p {
  margin-bottom: 1.2rem;
  text-indent: 1.2rem;
}
.article-body-section p:first-child { text-indent: 0; }

.inline-highlight {
  background: var(--olive-bg);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-left: 3px solid var(--olive);
  font-style: italic;
}

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.card, .article-card, .sidebar-block {
  animation: fadeUp .6s ease both;
}
.card:nth-child(2), .article-card:nth-child(2) { animation-delay: .1s; }
.card:nth-child(3), .article-card:nth-child(3) { animation-delay: .2s; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .two-col-text { columns: 1; }
  .cards-grid, .articles-grid {
    grid-template-columns: 1fr;
  }
  .hero-literary h1 { font-size: 2rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
  .burger { display: block; }
  .newsletter-form { flex-direction: column; }
  .cookie-banner { left: 1rem; right: 1rem; max-width: none; bottom: 0; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .cards-grid, .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .content-with-sidebar { grid-template-columns: 1fr 220px; gap: 2.5rem; }
}
