/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Open+Sans:wght@300;400;600&display=swap');

:root {
  --p: #8b1a1a;
  --a: #c0392b;
  --bg: #fdf6ec;
  --bg2: #f5ede0;
  --tx: #2c1810;
  --mu: #6b4c3b;
  --bd: #c9a98a;
  --fh: 'Playfair Display', Georgia, serif;
  --fb: 'Open Sans', Arial, sans-serif;
  --r: 2px;
  --mw: 1200px;
  --cw: 740px;
}

html { scroll-behavior: smooth; }
a { display: inline-block; text-align: center; }
style { html { scroll-behavior: smooth; } a { display: inline-block; text-align: center; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--tx); font-family: var(--fb); line-height: 1.78; font-size: 1rem; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--r); }
h1, h2, h3, h4 { font-family: var(--fh); line-height: 1.25; color: var(--tx); }
a { color: var(--p); text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: var(--a); text-decoration: underline; }
p { margin-bottom: 1.4rem; }

/* ── CONTAINERS ── */
.container { width: 100%; max-width: var(--mw); margin: 0 auto; padding: 0 1.5rem; }
.content-narrow { max-width: var(--cw); margin: 0 auto; padding: 0 1.5rem; }

/* ── COOKIE BANNER (CSS-only) ── */
.cookie-toggle { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.cookie-banner {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  background: var(--bg); border: 2px solid var(--p);
  border-radius: var(--r); padding: 1.25rem 1.5rem;
  max-width: 360px; font-size: .875rem; color: var(--tx);
  animation: slideUp .4s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-toggle:checked + .cookie-banner { display: none; }
.cookie-banner p { margin-bottom: .9rem; line-height: 1.55; font-size: .8rem; }
.cookie-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.cookie-accept {
  background: var(--p); color: #fff; border: none; cursor: pointer;
  padding: .45rem 1.1rem; border-radius: var(--r);
  font-family: var(--fb); font-size: .8rem; font-weight: 600;
  transition: background .2s; letter-spacing: .03em;
}
.cookie-accept:hover { background: var(--a); }
.cookie-link { font-size: .75rem; color: var(--p); text-decoration: underline; }

/* ── SITE HEADER ── */
.site-header {
  background: var(--bg); border-bottom: 2.5px solid var(--p);
  position: sticky; top: 0; z-index: 800;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--mw); margin: 0 auto; padding: .9rem 1.5rem; gap: 1rem;
}
.site-logo {
  font-family: var(--fh); font-size: 1.85rem; font-weight: 700;
  color: var(--p); letter-spacing: .04em; line-height: 1;
}
.site-logo:hover { color: var(--a); text-decoration: none; }

/* Nav toggle (CSS-only burger) */
.nav-toggle { display: none; }
.burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: 1.5px solid var(--p);
  padding: 7px 8px; border-radius: var(--r); transition: border-color .2s;
}
.burger:hover { border-color: var(--a); }
.burger span { display: block; width: 22px; height: 2px; background: var(--p); border-radius: 1px; transition: transform .3s, opacity .3s; }
.nav-toggle:checked ~ .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked ~ .burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav ul { display: flex; list-style: none; gap: 1.75rem; align-items: center; }
.site-nav a {
  font-size: .78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .09em; color: var(--tx); text-decoration: none;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav a:hover { color: var(--p); border-bottom-color: var(--p); text-decoration: none; }

@media (max-width: 820px) {
  .burger { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-top: 1px solid var(--bd);
    border-bottom: 2.5px solid var(--p);
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: .5rem 0; }
  .site-nav li { width: 100%; }
  .site-nav a { display: block; padding: .75rem 1.5rem; border-bottom: none; font-size: .85rem; }
}

/* ── BREADCRUMBS ── */
.breadcrumbs { background: var(--bg2); border-bottom: 1px solid var(--bd); }
.breadcrumbs ol {
  max-width: var(--mw); margin: 0 auto; padding: .6rem 1.5rem;
  list-style: none; display: flex; flex-wrap: wrap; gap: .4rem;
  font-size: .75rem; color: var(--mu);
}
.breadcrumbs li + li::before { content: '›'; margin-right: .4rem; color: var(--bd); }
.breadcrumbs a { color: var(--p); font-size: .75rem; }

/* ── HERO (HOME) ── */
.hero { background: var(--bg2); padding: 4rem 0 0; border-bottom: 2px solid var(--bd); }
.hero-inner { max-width: var(--mw); margin: 0 auto; padding: 0 1.5rem; }
.category-badge {
  display: inline-block; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .13em;
  color: var(--p); border: 1.5px solid var(--p);
  padding: .2rem .75rem; border-radius: var(--r); margin-bottom: 1.25rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin-bottom: 1.1rem; max-width: 820px; }
.hero-lead { font-size: 1.1rem; color: var(--mu); max-width: 640px; margin-bottom: 1.4rem; line-height: 1.7; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem;
  font-size: .78rem; color: var(--mu); margin-bottom: 2.5rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--bd);
}
.hero-meta time, .hero-meta span { display: flex; align-items: center; gap: .3rem; }
.hero-img { width: 100%; max-height: 500px; object-fit: cover; border: 1px solid var(--bd); display: block; }

/* ── ARTICLE GRID ── */
.articles-section { padding: 4rem 0; }
.section-header { display: flex; align-items: baseline; gap: 1.5rem; margin-bottom: 2.5rem; border-bottom: 2.5px solid var(--p); padding-bottom: .75rem; }
.section-header h2 { font-size: 1.85rem; }
.section-line { flex: 1; border-top: 1px solid var(--bd); }
.articles-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 600px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .articles-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── CARD ── */
.article-card { border: 1.5px solid var(--bd); border-radius: var(--r); overflow: hidden; background: var(--bg); transition: border-color .2s, transform .2s; }
.article-card:hover { border-color: var(--p); transform: translateY(-2px); }
.card-visual {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg2) 0%, #e8d5c0 100%);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--bd); overflow: hidden;
}
.card-visual img { width: 100%; height: 100%; object-fit: cover; }
.card-visual-icon { font-size: 2.5rem; opacity: .35; }
.card-body { padding: 1.25rem; }
.card-cat {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--p);
  border: 1px solid var(--p); padding: .15rem .55rem;
  border-radius: var(--r); margin-bottom: .75rem; display: inline-block;
}
.card-title { font-family: var(--fh); font-size: 1.08rem; margin-bottom: .5rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.35; }
.card-title a { color: var(--tx); }
.card-title a:hover { color: var(--p); text-decoration: none; }
.card-desc { font-size: .85rem; color: var(--mu); line-height: 1.6; margin-bottom: 1rem; }
.card-foot { font-size: .72rem; color: var(--mu); border-top: 1px solid var(--bd); padding-top: .75rem; display: flex; justify-content: space-between; }

/* ── ARTICLE PAGE HEADER ── */
.article-page-header { background: var(--bg2); padding: 3rem 0 2rem; text-align: center; border-bottom: 1px solid var(--bd); }
.article-page-header h1 { font-size: clamp(1.7rem, 4vw, 3rem); max-width: 820px; margin: .75rem auto 1rem; }
.article-meta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.25rem; font-size: .78rem; color: var(--mu); }
.article-hero-wrap { max-width: var(--mw); margin: 2rem auto 0; padding: 0 1.5rem; }
.article-hero-img { width: 100%; max-height: 460px; object-fit: cover; border: 1px solid var(--bd); }
.article-hero-placeholder {
  width: 100%; height: 320px;
  background: linear-gradient(135deg, var(--bg2) 0%, #dfc9ae 60%, var(--bg2) 100%);
  border: 1px solid var(--bd); display: flex; align-items: center; justify-content: center;
  font-size: 4rem; opacity: .45;
}

/* ── ARTICLE BODY ── */
.article-body { padding: 3rem 0 2rem; }
.article-content { max-width: var(--cw); margin: 0 auto; padding: 0 1.5rem; }
.article-content p { font-size: .98rem; color: var(--tx); }
.article-content h2 {
  font-size: 1.55rem; margin: 2.5rem 0 1rem;
  padding-bottom: .5rem; border-bottom: 1px solid var(--bd);
}
.article-content h3 { font-size: 1.15rem; margin: 1.75rem 0 .75rem; }
.article-content ul, .article-content ol { margin: 0 0 1.5rem 1.5rem; }
.article-content li { margin-bottom: .45rem; font-size: .97rem; }

/* ── PULL QUOTE ── */
blockquote.pull-quote {
  border-left: 4px solid var(--p); margin: 2.5rem 0;
  padding: 1.1rem 1.75rem; background: var(--bg2);
  font-family: var(--fh); font-size: 1.18rem; font-style: italic;
  color: var(--p); line-height: 1.5;
}
blockquote.pull-quote cite {
  display: block; font-size: .78rem; font-style: normal;
  margin-top: .75rem; color: var(--mu); font-family: var(--fb);
}

/* ── AD PLACEHOLDER ── */
.ad-block {
  background: var(--bg2); border: 1px dashed var(--bd);
  text-align: center; padding: 1.25rem; margin: 2.25rem 0;
  font-size: .72rem; color: var(--mu); border-radius: var(--r);
  letter-spacing: .06em; text-transform: uppercase;
}

/* ── TAGS ── */
.tags-row { margin: 2rem 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  font-size: .72rem; padding: .22rem .7rem;
  border: 1px solid var(--bd); border-radius: var(--r);
  color: var(--mu); background: var(--bg2);
  transition: border-color .2s, color .2s;
}
.tag:hover { border-color: var(--p); color: var(--p); text-decoration: none; }

/* ── DISCLAIMER ── */
.article-disclaimer {
  background: var(--bg2); border-left: 4px solid var(--bd);
  padding: .9rem 1.4rem; margin: 2rem 0;
  font-size: .78rem; color: var(--mu);
  border-radius: 0 var(--r) var(--r) 0; font-style: italic; line-height: 1.6;
}
.article-disclaimer strong { color: var(--p); }

/* ── SOURCES ── */
.sources-block {
  margin: 2rem 0; padding: 1.4rem; border: 1px solid var(--bd);
  background: var(--bg2); border-radius: var(--r);
}
.sources-block h3 { font-size: .95rem; margin-bottom: .75rem; letter-spacing: .04em; }
.sources-block ol { margin-left: 1.25rem; font-size: .78rem; color: var(--mu); }
.sources-block li { margin-bottom: .3rem; line-height: 1.5; }

/* ── HR DIVIDER ── */
hr.divider { border: none; border-top: 1px solid var(--bd); margin: 2.5rem 0; }

/* ── SUBSCRIBE ── */
.subscribe-section {
  background: var(--bg2); border-top: 2.5px solid var(--p);
  border-bottom: 2.5px solid var(--p); padding: 3.5rem 0;
}
.subscribe-inner { max-width: 560px; margin: 0 auto; text-align: center; padding: 0 1.5rem; }
.subscribe-inner h2 { font-size: 1.8rem; margin-bottom: .75rem; }
.subscribe-inner p { color: var(--mu); margin-bottom: 1.5rem; font-size: .9rem; }
.subscribe-form { display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 480px) { .subscribe-form { flex-direction: row; } }
.subscribe-form input[type=email] {
  flex: 1; padding: .75rem 1rem; border: 1.5px solid var(--bd);
  border-radius: var(--r); font-family: var(--fb); font-size: .9rem;
  background: var(--bg); color: var(--tx); outline: none;
}
.subscribe-form input[type=email]:focus { border-color: var(--p); }
.btn-primary {
  background: var(--p); color: #fff; border: none;
  padding: .75rem 1.75rem; border-radius: var(--r);
  font-family: var(--fb); font-size: .88rem; font-weight: 700;
  cursor: pointer; transition: background .2s; letter-spacing: .04em;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--a); }
.btn-outline {
  border: 2px solid var(--p); color: var(--p); background: transparent;
  padding: .65rem 1.5rem; border-radius: var(--r);
  font-family: var(--fb); font-size: .88rem; font-weight: 700;
  cursor: pointer; transition: all .2s; letter-spacing: .04em;
}
.btn-outline:hover { background: var(--p); color: #fff; text-decoration: none; }

/* ── RELATED ── */
.related-section { padding: 2.5rem 0 3.5rem; }
.related-section .section-header { margin-bottom: 1.5rem; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 600px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── FOOTER ── */
.site-footer { background: #180807; color: #c9a98a; padding: 3rem 0 1.5rem; border-top: 3px solid var(--p); }
.footer-inner { max-width: var(--mw); margin: 0 auto; padding: 0 1.5rem; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 600px) { .footer-top { grid-template-columns: 2fr 1fr; } }
.footer-logo { font-family: var(--fh); font-size: 1.5rem; color: var(--bg); margin-bottom: .5rem; display: block; }
.footer-desc { font-size: .8rem; line-height: 1.65; }
.footer-nav h4 { color: var(--bg); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .75rem; }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.footer-nav a { color: #b09070; font-size: .82rem; text-decoration: none; }
.footer-nav a:hover { color: var(--bg); text-decoration: underline; }
.footer-bottom { border-top: 1px solid #3a1508; padding-top: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 600px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.footer-copy { font-size: .75rem; color: #7a5040; white-space: nowrap; }
.footer-disclaimer { font-size: .72rem; color: #7a5040; line-height: 1.55; max-width: 580px; font-style: italic; }

/* ── POLICY PAGES ── */
.policy-hero { background: var(--bg2); border-bottom: 2px solid var(--bd); padding: 3rem 0 2rem; }
.policy-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.policy-date { font-size: .78rem; color: var(--mu); margin-top: .5rem; }
.policy-body { max-width: 820px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.policy-body h2 { font-size: 1.3rem; margin: 2.25rem 0 .75rem; padding-bottom: .4rem; border-bottom: 1px solid var(--bd); }
.policy-body p, .policy-body li { font-size: .95rem; color: var(--tx); line-height: 1.75; margin-bottom: .85rem; }
.policy-body ul { margin: 0 0 1.2rem 1.5rem; }
.policy-body section { margin-bottom: 1rem; }

/* ── SUCCESS PAGE ── */
.success-main { min-height: 65vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 5rem 1.5rem; }
.success-inner { max-width: 540px; }
.success-icon { font-size: 4rem; margin-bottom: 1.25rem; display: block; }
.success-inner h1 { font-size: clamp(2rem, 5vw, 3.25rem); color: var(--p); margin-bottom: 1rem; }
.success-inner p { font-size: 1.05rem; color: var(--mu); margin-bottom: 2rem; }

/* ── 404 ── */
.page-404 { min-height: 75vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4rem 1.5rem; }
.page-404-inner { max-width: 520px; }
.num-404 { font-family: var(--fh); font-size: clamp(6rem, 18vw, 14rem); color: var(--bd); line-height: .9; display: block; letter-spacing: -.04em; }
.page-404 h1 { font-size: 1.75rem; margin: .5rem 0 1rem; }
.page-404 p { color: var(--mu); margin-bottom: 2rem; }
.page-404-divider { width: 60px; height: 3px; background: var(--p); margin: 1.5rem auto; }

/* ── UTILS ── */
.mt-auto { margin-top: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
