/* GGEL — premium academic editorial theme
   Warm off-white, dark charcoal, subtle burgundy. Mobile-first. */

:root {
  --bg: #faf6ef;
  --surface: #fffdf8;
  --ink: #26221d;
  --muted: #6f6459;
  --accent: #7a2230;
  --accent-dark: #5f1824;
  --accent-soft: #f4e8e4;
  --gold: #a06a1f;
  --line: #e6dccb;
  --green: #1e6b3a;
  --green-soft: #e4f0e6;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(38, 34, 29, 0.07);
  --shadow-lift: 0 10px 26px rgba(38, 34, 29, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: "Playfair Display", "Noto Sans Bengali", Georgia, serif;
  line-height: 1.3;
  color: var(--ink);
}

h1 { font-size: 2rem; margin: 0 0 0.6rem; }
h2 { font-size: 1.5rem; margin: 0 0 0.8rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, iframe { max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }


/* ---------- accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; text-decoration: none; }

/* ---------- header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px; height: 42px;
  padding: 0 9px;
  border-radius: 10px;
  background: var(--accent);
  color: #f3e3c2;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}
.brand-text { line-height: 1.25; }
.brand-text strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
}
.brand-text small { color: var(--muted); font-size: 0.78rem; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  margin-left: auto;
}
.site-nav a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 8px;
}
.site-nav a:hover { background: var(--accent-soft); text-decoration: none; color: var(--accent); }
.site-nav a[aria-current="page"] { background: var(--accent); color: #fff; }

/* ---------- hero ---------- */
.hero {
  padding: 56px 0 44px;
  background:
    radial-gradient(720px 300px at 85% -10%, rgba(122, 34, 48, 0.09), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.hero h1 { font-size: 2.4rem; }
.hero .lede { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.tagline-en {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--accent);
  margin: 0 0 1.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid var(--accent);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); box-shadow: var(--shadow-lift); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-small { padding: 8px 14px; font-size: 0.9rem; }

/* ---------- sections ---------- */
.section { padding: 44px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 22px; }
.section-head p { color: var(--muted); margin: 0; max-width: 640px; }

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: fadeUp 0.4s ease both;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card h3 { margin: 0; font-size: 1.3rem; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent); }
.card .author { color: var(--muted); margin: 0; font-size: 0.95rem; }
.card .desc { color: var(--ink); font-size: 0.95rem; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tag {
  font-size: 0.78rem;
  font-weight: 600;
  background: #f1e9db;
  color: #5c5142;
  border-radius: 999px;
  padding: 3px 10px;
}
.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 12px;
  width: fit-content;
}
.badge-free { background: var(--green-soft); color: var(--green); }
.badge-paid { background: var(--accent-soft); color: var(--accent); }
.badge-soon { background: #efe9dc; color: #7a6c55; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.price { font-family: "Playfair Display", Georgia, serif; font-size: 1.4rem; color: var(--accent); font-weight: 700; }
.purchase-box {
  background: var(--accent-soft);
  border: 1px solid #e3c8c4;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
}
.notice {
  background: #f3ecdd;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--muted);
}

/* ---------- year cards ---------- */
.year-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.year-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.year-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.year-card h3 { margin: 0 0 6px; }
.year-card h3 a { color: var(--ink); }
.year-card p { color: var(--muted); margin: 0 0 12px; font-size: 0.95rem; }
.year-num {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 18px; counter-reset: step; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ---------- filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.filters input[type="search"],
.filters select {
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 0;
}
.filters input[type="search"] { flex: 2 1 220px; }
.filters select { flex: 1 1 140px; }
.filters label { position: absolute; left: -9999px; }
.result-count { color: var(--muted); font-size: 0.92rem; margin: 0 0 16px; }

/* ---------- note detail ---------- */
.detail-head { padding: 40px 0 8px; }
.detail-head .author { color: var(--muted); font-size: 1.05rem; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 6px; }
.detail-note { font-size: 0.9rem; color: var(--muted); }
.sections-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.sections-list ol { margin: 0; padding-left: 22px; }
.sections-list li { padding: 4px 0; }
.preview-box { margin-top: 8px; }
.preview-box iframe {
  width: 100%;
  height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.prose { max-width: 720px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  margin-top: 20px;
  padding: 36px 0 28px;
  color: var(--muted);
  font-size: 0.94rem;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.site-footer a { color: var(--ink); }
.site-footer .brand-text small { display: block; }
.foot-note { margin-top: 18px; font-size: 0.85rem; border-top: 1px solid var(--line); padding-top: 16px; }

/* ---------- misc ---------- */
.empty {
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px 20px;
  color: var(--muted);
}
.empty h3 { margin-bottom: 8px; }
.text-center { text-align: center; }
.mt-2 { margin-top: 12px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .year-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  h1 { font-size: 2.4rem; }
  .hero h1 { font-size: 2.9rem; }
}

@media (min-width: 960px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- mobile menu ---------- */
.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 10px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.coming-note { color: var(--gold); font-weight: 600; font-size: 0.92rem; }

@media (max-width: 719px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav { display: none; width: 100%; flex-direction: column; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 12px; border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
