/* ===== VARIABLES & RESET (Coffee Theme) ===== */
:root {
  /* Repurpose tokens into a coffee palette */
  --red:        #c58a54;        /* caramel */
  --red-dark:   #6f4e37;        /* brew */
  --accent:     #ffd39b;        /* sweet foam */
  --bg-light:   #f7efe9;        /* latte foam */
  --text-dark:  #3a2a20;        /* espresso ink */
  --text-light: #fff;
  --muted:      rgba(58,42,32,.7);
  --radius:     12px;
  --shadow:     0 14px 40px rgba(43,26,20,.18);
  --transition: .25s ease;
  font-size:    16px;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at -10% -20%, rgba(197,138,84,0.08), transparent 60%),
    radial-gradient(900px 500px at 110% 120%, rgba(111,78,55,0.08), transparent 60%),
    var(--bg-light);
  color: var(--text-dark);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
}

a { text-decoration: none; color: var(--red-dark); }

/* ===== FLEX & GRID HELPERS ===== */
.flex { display: flex; }
.wrap { flex-wrap: wrap; }
.center { justify-content: center; }
.center-v { align-items: center; }
.between { justify-content: space-between; }

/* ===== CONTAINER ===== */
.container { width: 90%; max-width: 960px; margin: 0 auto; }

/* ===== HEADER ===== */
.site-header {
  background: linear-gradient(135deg, #8b6546, #301809);
  color: var(--text-light);
  box-shadow: 0 8px 24px rgba(43,26,20,.12);
}
.header-container { padding: 1rem 0; }

.main-nav ul { list-style: none; gap: 1rem; }
.main-nav ul li { display: inline-block; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .8rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform .15s ease;
  color: var(--text-light);
}
.main-nav a:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.main-nav i { font-size: 1.2rem; }

/* ===== ARTICLE SECTION ===== */
.article-section { flex: 1; padding: 2rem 0; }
.article-container { gap: 2rem; }

/* main content */
.article-content { flex: 2; min-width: 300px; }

/* coffee-paper article card */
.article-card {
  background:
    radial-gradient(600px 400px at 85% 15%, rgba(197,138,84,0.08), transparent 60%),
    linear-gradient(180deg, #fffdf8, #fffaf3);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(74,46,32,.10);
}

.breadcrumb { font-size: .9rem; margin-bottom: 1rem; color: var(--muted); }
.breadcrumb a { color: var(--red-dark); }
.breadcrumb .sep { margin: 0 .5rem; }

.article-title {
  font-size: 2rem;
  margin-bottom: .5rem;
  color: var(--red-dark);
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}

.article-meta { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }

.article-body { color: var(--text-dark); }
.article-body img { max-width: 100%; margin: 1rem 0; border-radius: 10px; box-shadow: 0 8px 20px rgba(43,26,20,.10); }
.article-body p { margin-bottom: 1rem; }

.article-body h2,
.article-body h3 {
  margin-top: 1.5rem;
  margin-bottom: .5rem;
  color: var(--red-dark);
}

.article-body ul,
.article-body ol { padding-left: 1.2rem; margin-bottom: 1rem; }
.article-body li { margin-bottom: .5rem; }

/* ===== SIDEBAR ===== */
.sidebar { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 1.5rem; }

/* ad/banner placeholder with coffee styling */
.banner-slot {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(197,138,84,.06) 0 12px,
      rgba(197,138,84,.10) 12px 24px
    ),
    #fffdfa;
  border: 1px dashed rgba(74,46,32,.35);
  border-radius: var(--radius);
  width: 300px;
  height: 250px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(135deg, #8b6546, #301809);
  color: var(--text-light);
  text-align: center;
  padding: 1rem 0;
  font-size: .9rem;
  box-shadow: 0 -6px 18px rgba(43,26,20,.10);
}
.site-footer a { color: var(--accent); }
.site-footer a:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .article-container { flex-direction: column; }
  .sidebar { align-items: center; }
  .banner-slot { width: 100%; max-width: 300px; }
}
