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

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

html {scroll-behavior: smooth;}
html, body {overflow-x:hidden;}
a {display: inline-block; text-align: center;}

:root {
  --bg: #faf8f5;
  --text: #3a3632;
  --heading: #1a1a2e;
  --accent: #b8926a;
  --accent-light: #d4bf9a;
  --accent-dark: #8c6d48;
  --divider: #d4c5a9;
  --card-bg: #ffffff;
  --sidebar-bg: #f3ede5;
  --muted: #7a7470;
  --quote-bg: #f3ede5;
  --success-green: #5a8a6a;
  --radius: 4px;
  --max-w: 1140px;
  --transition: 0.3s cubic-bezier(.25,.8,.25,1);
}

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

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  color: var(--heading);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 0.5em; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 0.4em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: 0.3em; }

p { margin-bottom: 1.2em; }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

/* ── SITE HEADER ── */
.site-header {
  border-bottom: 2px solid var(--heading);
  padding: 1.2rem 0;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.site-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--heading);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
}
.site-logo:hover { color: var(--accent); }

.site-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.site-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}
.site-nav a:hover { color: var(--accent); }
.site-nav a:hover::after { width: 100%; }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--heading);
  margin: 5px 0;
  transition: var(--transition);
}
@media (max-width: 768px) {
  .hamburger { display: block; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--divider);
  }
  .site-nav.active { display: flex; }
}

/* ── BREADCRUMBS ── */
.breadcrumbs {
  max-width: var(--max-w);
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}
.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  text-align: left;
  transition: color var(--transition);
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 0.2rem; }

/* ── READING TIME WIDGET ── */
.reading-widget {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.2rem;
  background: var(--sidebar-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.reading-widget svg { flex-shrink: 0; }

/* ── ARTICLE LAYOUT ── */
.article-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
}
@media (max-width: 900px) {
  .article-container { grid-template-columns: 1fr; }
}

.article-main { min-width: 0; }

.article-main h1 {
  margin-bottom: 0.3em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.4em;
}

/* ── CATEGORY BADGE ── */
.category-badge {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1.5px solid var(--accent);
  padding: 0.2rem 0.7rem;
  border-radius: 2px;
  margin-bottom: 0.8rem;
  text-align: center;
}

/* ── HORIZONTAL RULE ── */
.editorial-hr {
  border: none;
  height: 1px;
  background: var(--divider);
  margin: 2.5rem 0;
  position: relative;
}
.editorial-hr::after {
  content: '◆';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  padding: 0 1rem;
  color: var(--accent);
  font-size: 0.7rem;
}

/* ── PULL QUOTE ── */
.pull-quote {
  margin: 2.5rem 0;
  padding: 2rem 2.5rem;
  background: var(--quote-bg);
  border-left: 4px solid var(--accent);
  position: relative;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--heading);
}
.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.2rem;
  left: 0.8rem;
  font-size: 4rem;
  color: var(--accent-light);
  font-family: 'Cormorant Garamond', serif;
  line-height: 1;
}
.pull-quote cite {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ── SIDEBAR ── */
.article-sidebar { min-width: 0; }
.sidebar-box {
  background: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-box h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--divider);
}
.sidebar-box ul { list-style: none; }
.sidebar-box li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.92rem;
}
.sidebar-box li:last-child { border-bottom: none; }
.sidebar-box li a {
  color: var(--text);
  text-decoration: none;
  text-align: left;
  transition: color var(--transition);
}
.sidebar-box li a:hover { color: var(--accent); }

/* ── SEASONAL ADVICE BLOCK ── */
.seasonal-block {
  margin: 2.5rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, var(--sidebar-bg) 0%, #e8dfd3 100%);
  border-radius: var(--radius);
  border: 1px solid var(--divider);
  position: relative;
  overflow: hidden;
}
.seasonal-block::before {
  content: '🌿';
  position: absolute;
  top: -0.5rem;
  right: 1rem;
  font-size: 3rem;
  opacity: 0.2;
}
.seasonal-block h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.seasonal-block p { margin-bottom: 0.6rem; }

/* ── READ ALSO BLOCK ── */
.read-also {
  margin: 2.5rem 0;
  padding: 0;
}
.read-also h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.read-also__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}
.read-also__card {
  background: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.read-also__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.read-also__card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--heading);
  margin-bottom: 0.4rem;
}
.read-also__card span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── SUBSCRIPTION FORM ── */
.subscribe-section {
  margin: 2.5rem 0;
  padding: 2.5rem;
  background: var(--heading);
  border-radius: var(--radius);
  text-align: center;
}
.subscribe-section h3 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}
.subscribe-section p {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
}
.subscribe-form {
  display: flex;
  gap: 0.6rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.subscribe-form input[type="email"] {
  flex: 1 1 260px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-family: 'Lora', serif;
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition);
}
.subscribe-form input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.subscribe-form input[type="email"]:focus { border-color: var(--accent); }
.subscribe-form button {
  padding: 0.75rem 1.8rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}
.subscribe-form button:hover { background: var(--accent-dark); }

/* ── FOOTER ── */
.site-footer {
  background: var(--heading);
  color: rgba(255,255,255,0.65);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand .site-logo { color: #fff; font-size: 1.4rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: flex-end; align-items: flex-start; }
.footer-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition);
  text-align: center;
}
.footer-links a:hover { color: var(--accent-light); }
.footer-disclaimer {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  line-height: 1.6;
}

/* ── COOKIE MODAL ── */
.cookie-modal {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 360px;
  max-width: calc(100vw - 2rem);
  background: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  z-index: 9999;
  font-size: 0.88rem;
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-modal h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.cookie-modal p { font-size: 0.82rem; color: var(--muted); margin-bottom: 1rem; }
.cookie-btns { display: flex; gap: 0.5rem; }
.cookie-btns button {
  flex: 1;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.04em;
}
.cookie-accept {
  background: var(--accent);
  color: #fff;
  border: none;
}
.cookie-accept:hover { background: var(--accent-dark); }
.cookie-decline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--divider);
}
.cookie-decline:hover { background: var(--sidebar-bg); }

/* ── HERO SECTION (home) ── */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 1rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  border-bottom: none;
  padding-bottom: 0;
}
.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

/* ── IMAGES ── */
.article-img {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.article-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}
.article-img:hover img { transform: scale(1.02); }
.article-img figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  padding: 0.6rem 0;
  font-style: italic;
}

/* ── NUMBERED LIST VISUAL ── */
.numbered-list { counter-reset: nl; margin: 1.5rem 0; }
.numbered-item {
  counter-increment: nl;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.numbered-item::before {
  content: counter(nl, decimal-leading-zero);
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  min-width: 2.5rem;
}

/* ── LEGAL PAGES ── */
.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}
.legal-page h1 {
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--accent);
}
.legal-page h2 {
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  font-size: 1.4rem;
}
.legal-page p, .legal-page li { font-size: 0.95rem; }

/* ── SUCCESS PAGE ── */
.success-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
  text-align: center;
}
.success-page h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  border-bottom: none;
  color: var(--success-green);
  margin-bottom: 0.4em;
}
.success-page p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}
.success-btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--transition);
}
.success-btn:hover { background: var(--accent-dark); }

/* ── 404 PAGE ── */
.page-404 {
  max-width: 600px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
  text-align: center;
}
.page-404 h1 {
  font-size: clamp(5rem, 12vw, 9rem);
  color: var(--accent-light);
  border-bottom: none;
  margin-bottom: 0;
  line-height: 1;
}
.page-404 h2 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}
.page-404 p { color: var(--muted); margin-bottom: 2rem; }

/* ── FADE-IN ANIMATION ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── UTILITY ── */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
