/* ── Variables ── */
:root {
  --main: #e0a898;
  --bg: #fdf7f5;
  --text: #481808;
  --accent: #b04028;
  --card: #f5d0c8;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 28px rgba(0,0,0,0.14);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: "Inter", system-ui, -apple-system, sans-serif; line-height: 1.65; font-size: 16px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; border-radius: var(--radius); display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Reading progress ── */
#read-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--accent); width: 0; z-index: 9999;
  transition: width 0.1s linear;
}

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: "Inter", sans-serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 0.4rem;
}
.site-logo:hover { text-decoration: none; }
.logo-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--main); color: var(--text);
  font-size: 0.85rem;
}
#nav-menu { display: flex; align-items: center; gap: 0.25rem; }
#nav-menu a {
  padding: 0.4rem 0.85rem; border-radius: 6px;
  font-size: 0.9rem; font-weight: 500; color: var(--text);
  transition: background 0.15s;
}
#nav-menu a:hover { background: var(--card); text-decoration: none; }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important; font-weight: 600 !important;
  margin-left: 0.5rem;
}
.nav-cta:hover { opacity: 0.88; }
#menu-toggle {
  display: none; background: none; border: none;
  font-size: 1.4rem; cursor: pointer; color: var(--text); padding: 0.25rem;
}

/* ── Hero Section ── */
.hero-section { padding: 3rem 0 2rem; }
.hero-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-hover);
  background: #fff;
}
.hero-thumb {
  min-height: 320px;
  position: relative;
  display: flex; align-items: flex-start; padding: 1.5rem;
  overflow: hidden;
}
.hero-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 0; z-index: 0;
}
.hero-thumb .hero-category { position: relative; z-index: 1; }
.hero-category {
  background: rgba(255,255,255,0.9);
  color: var(--text); font-size: 0.78rem; font-weight: 600;
  padding: 0.3rem 0.8rem; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.hero-body {
  padding: 2.5rem; display: flex; flex-direction: column; justify-content: center;
  background: #fff;
}
.badge-featured {
  display: inline-block;
  background: var(--main); color: var(--text);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 0.25rem 0.75rem; border-radius: 20px;
  margin-bottom: 1rem;
}
.hero-title { font-family: "Lora", Georgia, serif; font-size: 1.9rem; line-height: 1.3; margin-bottom: 0.75rem; color: var(--text); }
.hero-title a { color: inherit; }
.hero-title a:hover { text-decoration: none; color: var(--accent); }
.hero-desc { font-size: 0.95rem; opacity: 0.75; margin-bottom: 1.25rem; line-height: 1.6; }
.hero-meta { font-size: 0.82rem; opacity: 0.6; margin-bottom: 1.5rem; display: flex; gap: 0.4rem; align-items: center; }
.meta-dot { opacity: 0.4; }
.btn-read {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 0.65rem 1.4rem; border-radius: 8px; font-weight: 600;
  font-size: 0.9rem; transition: opacity 0.15s; align-self: flex-start;
}
.btn-read:hover { opacity: 0.85; text-decoration: none; }

/* ── Section Header ── */
.articles-section { padding: 3rem 0; }
.section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.5rem; }
.section-title {
  font-family: "Lora", serif; font-size: 1.4rem; font-weight: 600; color: var(--text);
}
.view-all { font-size: 0.88rem; color: var(--accent); font-weight: 500; }
.page-heading { font-family: "Lora", serif; font-size: 2rem; margin-bottom: 0.5rem; }
.page-sub { font-size: 1rem; opacity: 0.65; max-width: 600px; }

/* ── Post Grid ── */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-thumb {
  height: 190px; position: relative;
  display: flex; align-items: flex-end; padding: 0.75rem;
  overflow: hidden;
}
.card-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 0; z-index: 0;
  transition: transform 0.4s ease;
}
.post-card:hover .card-thumb img { transform: scale(1.05); }
.card-thumb .card-category { position: relative; z-index: 1; }
.card-category {
  background: rgba(255,255,255,0.92);
  color: var(--text); font-size: 0.72rem; font-weight: 600;
  padding: 0.2rem 0.65rem; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.card-body { padding: 1.1rem 1.2rem; flex: 1; }
.card-meta { font-size: 0.78rem; opacity: 0.55; display: flex; gap: 0.4rem; margin-bottom: 0.5rem; }
.card-title { font-family: "Lora", serif; font-size: 1.05rem; line-height: 1.4; margin-bottom: 0.5rem; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); text-decoration: none; }
.card-desc { font-size: 0.85rem; opacity: 0.7; line-height: 1.55; }
.card-footer { padding: 0.75rem 1.2rem; border-top: 1px solid var(--card); }
.card-link { font-size: 0.85rem; font-weight: 600; color: var(--accent); }

/* ── About Strip ── */
.about-strip { background: var(--card); padding: 2.5rem 0; margin-top: 1rem; }
.about-inner { display: flex; align-items: center; gap: 1.5rem; }
.about-icon { font-size: 2.5rem; flex-shrink: 0; }
.about-inner h3 { font-family: "Lora", serif; font-size: 1.25rem; margin-bottom: 0.4rem; }
.about-inner p { font-size: 0.92rem; opacity: 0.75; max-width: 640px; }

/* ── CTA Band ── */
.cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, var(--text) 100%);
  padding: 3rem 0;
}
.cta-band-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.cta-band h3 { font-family: "Lora", serif; font-size: 1.5rem; color: #fff; margin-bottom: 0.4rem; }
.cta-band p { color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.btn-cta {
  display: inline-block; background: #fff; color: var(--accent);
  padding: 0.75rem 1.6rem; border-radius: 8px;
  font-weight: 700; font-size: 0.95rem; white-space: nowrap;
  transition: opacity 0.15s; flex-shrink: 0;
}
.btn-cta:hover { opacity: 0.88; text-decoration: none; }

/* ── Footer ── */
.site-footer { background: var(--text); color: rgba(255,255,255,0.8); padding: 3.5rem 0 0; }
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem 3rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.footer-logo { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.footer-col p { font-size: 0.88rem; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul a { font-size: 0.88rem; color: rgba(255,255,255,0.65); }
.footer-col ul a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.25rem 1.5rem; max-width: 1140px; margin: 0 auto; font-size: 0.82rem; opacity: 0.5; }

/* ── Single Article ── */
.single-wrap { max-width: 800px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.breadcrumb { font-size: 0.8rem; opacity: 0.55; margin-bottom: 1.5rem; display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--accent); }
.breadcrumb span { opacity: 0.4; }
.article-header { margin-bottom: 1.75rem; }
.article-cats { margin-bottom: 0.75rem; }
.article-title { font-family: "Lora", serif; font-size: 2.2rem; line-height: 1.3; margin-bottom: 0.75rem; color: var(--text); }
.article-lead { font-size: 1.1rem; opacity: 0.7; line-height: 1.6; margin-bottom: 1rem; border-left: 3px solid var(--accent); padding-left: 1rem; }
.article-meta { font-size: 0.82rem; opacity: 0.55; display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.meta-author { font-weight: 500; }
.article-banner { height: 360px; border-radius: 12px; margin-bottom: 2rem; overflow: hidden; }
.article-banner img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.article-body { font-family: "Lora", Georgia, serif; font-size: 1.07rem; line-height: 1.8; }
.article-body h1, .article-body h2, .article-body h3 { font-family: "Inter", sans-serif; font-weight: 700; margin: 2rem 0 0.8rem; color: var(--text); line-height: 1.3; }
.article-body h2 { font-size: 1.4rem; }
.article-body h3 { font-size: 1.15rem; }
.article-body p { margin-bottom: 1.15rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.15rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body strong { font-weight: 600; color: var(--text); }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-body blockquote { border-left: 4px solid var(--main); padding: 0.75rem 1.25rem; background: var(--card); border-radius: 0 8px 8px 0; margin: 1.5rem 0; font-style: italic; }
.article-body code { background: var(--card); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.88em; font-family: "Courier New", monospace; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-family: "Inter", sans-serif; font-size: 0.9rem; }
.article-body th { background: var(--main); padding: 0.65rem 1rem; text-align: left; font-weight: 600; }
.article-body td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--card); }
.article-body tr:last-child td { border-bottom: none; }
.article-tags { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--card); font-size: 0.88rem; display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.tag {
  display: inline-block; background: var(--card);
  color: var(--text); padding: 0.25rem 0.75rem;
  border-radius: 20px; font-size: 0.78rem; font-weight: 500;
  font-family: "Inter", sans-serif;
}

/* ── Inline CTA ── */
.inline-cta {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: linear-gradient(135deg, var(--card) 0%, var(--main) 100%);
  border-radius: 12px; padding: 1.75rem; margin: 2.5rem 0;
}
.inline-cta-icon { font-size: 2rem; flex-shrink: 0; margin-top: 0.1rem; }
.inline-cta strong { display: block; font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--text); }
.inline-cta p { font-size: 0.9rem; opacity: 0.75; margin-bottom: 0.9rem; line-height: 1.55; }

/* ── Related Articles ── */
.related-section { margin-top: 2rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.related-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.related-thumb { height: 110px; overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.related-body { padding: 0.75rem; }
.related-body h4 { font-size: 0.88rem; line-height: 1.4; font-family: "Inter", sans-serif; font-weight: 600; }
.related-body h4 a { color: var(--text); }
.related-body h4 a:hover { color: var(--accent); text-decoration: none; }
.related-body .card-meta { font-size: 0.74rem; margin-bottom: 0.35rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-card { grid-template-columns: 1fr; }
  .hero-thumb { min-height: 200px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .hero-title { font-size: 1.4rem; }
  .article-title { font-size: 1.6rem; }
  #menu-toggle { display: block; }
  #nav-menu { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; padding: 1rem; box-shadow: var(--shadow); gap: 0.25rem; }
  #nav-menu.open { display: flex; }
}
