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

:root {
  --c-bg: #fdf9f4;
  --c-surface: #fff8f0;
  --c-border: #e8d9c4;
  --c-text: #2c1f10;
  --c-muted: #7a6552;
  --c-accent: #b8641f;
  --c-accent-dark: #8b4a14;
  --c-gold: #d4a847;
  --c-warm: #f5e6d3;
  --c-dark-bg: #1c120a;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Segoe UI', Arial, sans-serif;
  --max-w: 1200px;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(44,31,16,.10);
  --shadow-lg: 0 6px 32px rgba(44,31,16,.15);
}

html { scroll-behavior: smooth; }

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
}

a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-accent-dark); text-decoration: underline; }

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

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* HEADER */
.site-header {
  background: var(--c-dark-bg);
  border-bottom: 3px solid var(--c-gold);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 16px;
}
.site-logo {
  display: flex; align-items: center; gap: 10px; color: #fff;
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700;
  text-decoration: none; letter-spacing: .02em;
}
.site-logo:hover { color: var(--c-gold); text-decoration: none; }
.logo-icon { font-size: 1.8rem; }

/* NAV */
.main-nav ul { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; }
.main-nav a {
  color: #e8d9c4; font-size: .93rem; padding: 6px 12px;
  border-radius: var(--radius); transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav li.active a {
  background: var(--c-accent); color: #fff; text-decoration: none;
}
.nav-toggle {
  display: none; background: none; border: 1px solid var(--c-gold);
  color: var(--c-gold); font-size: 1.3rem; cursor: pointer;
  padding: 4px 10px; border-radius: 4px;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #1c120a 0%, #3a2210 60%, #6b3a1a 100%);
  color: #fff; padding: 72px 24px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('https://upload.wikimedia.org/wikipedia/commons/2/2c/Candle_light_projected_through_a_glass_orb.jpg') center/cover no-repeat;
  opacity: .18;
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero h1 {
  font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.2; margin-bottom: 18px; color: var(--c-gold);
}
.hero p { font-size: 1.1rem; color: #e8d9c4; max-width: 600px; margin: 0 auto; }

/* SECTIONS */
.section { padding: 60px 0; }
.section-alt { background: var(--c-warm); }
.section-title {
  font-family: var(--font-serif); font-size: 1.9rem; color: var(--c-accent-dark);
  margin-bottom: 32px; padding-bottom: 12px;
  border-bottom: 2px solid var(--c-border);
}

/* ARTICLE GRID */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.article-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-img { width: 100%; height: 200px; object-fit: cover; border-radius: 0; }
.card-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card-label {
  display: inline-block; background: var(--c-accent); color: #fff;
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; padding: 3px 9px; border-radius: 3px; margin-bottom: 10px;
}
.card-title {
  font-family: var(--font-serif); font-size: 1.15rem;
  color: var(--c-text); margin-bottom: 10px; line-height: 1.4;
}
.card-excerpt { font-size: .9rem; color: var(--c-muted); flex: 1; margin-bottom: 16px; }
.card-meta { font-size: .8rem; color: var(--c-muted); margin-bottom: 12px; }
.btn-readmore {
  display: inline-block; background: var(--c-accent); color: #fff;
  padding: 8px 18px; border-radius: var(--radius); font-size: .88rem;
  font-weight: 600; transition: background .2s; align-self: flex-start;
}
.btn-readmore:hover { background: var(--c-accent-dark); text-decoration: none; color: #fff; }

/* FEATURED ARTICLE */
.featured {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.featured-img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; border-radius: 0; }
.featured-content { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.featured-label {
  display: inline-block; background: var(--c-gold); color: var(--c-dark-bg);
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; padding: 3px 9px; border-radius: 3px; margin-bottom: 14px;
}
.featured-title {
  font-family: var(--font-serif); font-size: 1.7rem; line-height: 1.3;
  color: var(--c-text); margin-bottom: 14px;
}
.featured-excerpt { color: var(--c-muted); margin-bottom: 22px; }

/* ARTICLE PAGE */
.article-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 48px;
  align-items: start; padding: 48px 0;
}
.article-main h1 {
  font-family: var(--font-serif); font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--c-text); line-height: 1.2; margin-bottom: 12px;
}
.article-main h2 {
  font-family: var(--font-serif); font-size: 1.45rem;
  color: var(--c-accent-dark); margin: 36px 0 14px;
}
.article-main h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--c-text);
  margin: 24px 0 10px;
}
.article-main p { margin-bottom: 18px; }
.article-main ul, .article-main ol {
  margin: 0 0 18px 24px;
}
.article-main li { margin-bottom: 6px; }
.article-meta {
  font-size: .88rem; color: var(--c-muted);
  border-bottom: 1px solid var(--c-border); padding-bottom: 16px; margin-bottom: 28px;
}
.article-cover {
  width: 100%; max-height: 420px; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 30px;
  box-shadow: var(--shadow-lg);
}
.article-sidebar { position: sticky; top: 80px; }
.sidebar-box {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 22px; margin-bottom: 24px;
}
.sidebar-box h4 {
  font-family: var(--font-serif); font-size: 1rem; color: var(--c-accent-dark);
  margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--c-border);
}
.sidebar-box ul { list-style: none; }
.sidebar-box li { padding: 5px 0; border-bottom: 1px solid var(--c-border); font-size: .88rem; }
.sidebar-box li:last-child { border: none; }
.breadcrumb { font-size: .85rem; color: var(--c-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--c-accent); }
.breadcrumb span { margin: 0 6px; }

/* CONTACT FORM */
.contact-form {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 36px; max-width: 640px;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 600; font-size: .93rem;
  color: var(--c-text); margin-bottom: 6px;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--c-border); border-radius: var(--radius);
  font-family: var(--font-sans); font-size: .95rem;
  background: var(--c-bg); color: var(--c-text);
  transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--c-accent);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.btn-submit {
  background: var(--c-accent); color: #fff;
  border: none; padding: 11px 28px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: background .2s;
}
.btn-submit:hover { background: var(--c-accent-dark); }

/* INFO GRID */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-top: 24px; }
.info-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 22px; text-align: center;
  box-shadow: var(--shadow);
}
.info-card .ic-icon { font-size: 2.2rem; margin-bottom: 10px; }
.info-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; color: var(--c-accent-dark); }
.info-card p { font-size: .85rem; color: var(--c-muted); }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--c-dark-bg); color: #e8d9c4;
  border-top: 3px solid var(--c-gold); padding: 18px 24px;
  display: none; box-shadow: 0 -4px 20px rgba(0,0,0,.4);
}
.cookie-banner.visible { display: block; }
.cookie-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-inner p { flex: 1; min-width: 220px; font-size: .9rem; }
.cookie-inner a { color: var(--c-gold); }
.cookie-btns { display: flex; gap: 12px; flex-shrink: 0; }
.btn-cookie {
  padding: 8px 20px; border-radius: var(--radius); font-size: .9rem;
  font-weight: 700; cursor: pointer; border: none; transition: opacity .2s;
}
.btn-cookie:hover { opacity: .85; }
.btn-accept { background: var(--c-accent); color: #fff; }
.btn-reject { background: transparent; color: #e8d9c4; border: 1px solid #e8d9c4 !important; }

/* PAGE HEADER */
.page-header {
  background: linear-gradient(135deg, var(--c-dark-bg), #3a2210);
  color: #fff; padding: 48px 24px; text-align: center; border-bottom: 3px solid var(--c-gold);
}
.page-header h1 {
  font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--c-gold); margin-bottom: 10px;
}
.page-header p { color: #e8d9c4; font-size: 1rem; max-width: 560px; margin: 0 auto; }

/* PROSE */
.prose h2 { font-family: var(--font-serif); font-size: 1.4rem; color: var(--c-accent-dark); margin: 36px 0 12px; }
.prose h3 { font-size: 1.1rem; font-weight: 700; margin: 24px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 5px; }
.prose a { color: var(--c-accent); }

/* FOOTER */
.site-footer { background: var(--c-dark-bg); color: #c8b89a; padding: 52px 0 0; margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 36px; padding-bottom: 40px; }
.footer-col h3 { font-family: var(--font-serif); color: var(--c-gold); font-size: 1rem; margin-bottom: 14px; }
.footer-col p, .footer-col li { font-size: .88rem; margin-bottom: 6px; }
.footer-col ul { list-style: none; }
.footer-col a { color: #c8b89a; transition: color .2s; }
.footer-col a:hover { color: var(--c-gold); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0; text-align: center; font-size: .82rem; color: #8a7a6a;
}
.footer-bottom a { color: #a8967e; }
.footer-bottom .disclaimer { margin-top: 6px; font-size: .78rem; color: #665c52; max-width: 700px; margin-left: auto; margin-right: auto; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; }
  .featured-img { min-height: 220px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}
@media (max-width: 680px) {
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .main-nav a { display: block; padding: 10px 16px; }
  .nav-toggle { display: block; }
  .header-inner { flex-wrap: wrap; }
}
