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

/* ── Design tokens ── */
:root {
  --cream: #FDF8F2; --blush: #E8C4A0; --rose: #C9896A; --terracotta: #A05C3B;
  --deep: #3D2B1F; --text-main: #2C1810; --text-muted: #7A5C4A; --text-light: #B8956A;
  --white: #FFFFFF; --shadow-soft: 0 2px 16px rgba(160,92,59,0.10);
  --radius: 16px; --radius-sm: 10px; --radius-xs: 7px;
}

/* ── Base ── */
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--text-main); min-height: 100vh; padding: 0 0 4rem; }

/* ── Site navigation ── */
.site-nav { background: var(--deep); padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; }
.site-nav .brand { font-family: 'Playfair Display', serif; font-size: 0.9rem; color: var(--blush); text-decoration: none; font-weight: 400; letter-spacing: 0.02em; white-space: nowrap; }
.site-nav .brand:hover { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 0.2rem; flex-wrap: wrap; }
.nav-links a { color: rgba(232,196,160,0.75); text-decoration: none; font-size: 0.78rem; font-weight: 400; padding: 0.35rem 0.65rem; border-radius: var(--radius-xs); transition: all 0.15s ease; white-space: nowrap; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-links a.active { color: #fff; }

/* ── Page header (content pages — not used by index.html) ── */
.page-header { background: linear-gradient(180deg, #FDF8F2 0%, #FAF2E8 100%); border-bottom: 1px solid var(--blush); padding: 2.5rem 1.5rem 2rem; text-align: center; }
.page-header h1 { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--terracotta); font-weight: 600; line-height: 1.2; }
.page-header p { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.4rem; }

/* ── Content wrapper ── */
.content { max-width: 760px; margin: 2.5rem auto; padding: 0 1.5rem; }
.last-updated { font-size: 0.78rem; color: var(--text-light); margin-top: 0.4rem; }

/* ── Card (language pages + about.html) ── */
.card { background: var(--white); border: 1.5px solid var(--blush); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-soft); }
.card h2 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--terracotta); margin-bottom: 0.7rem; font-weight: 600; }
.card h3 { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--terracotta); margin: 1rem 0 0.5rem; font-weight: 600; }
.card p, .card li { font-size: 0.92rem; line-height: 1.6; color: var(--text-main); }
.card p { margin-bottom: 0.8rem; }
.card ul, .card ol { padding-left: 1.4rem; margin-bottom: 0.8rem; }
.card a { color: var(--terracotta); text-decoration: underline; text-decoration-color: var(--blush); }
.card a:hover { text-decoration-color: var(--terracotta); }

/* ── Breadcrumb (language pages) ── */
.breadcrumb { background: var(--cream); padding: 0.4rem 1.5rem; border-bottom: 1px solid rgba(160,92,59,0.1); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem; align-items: center; font-size: 0.78rem; color: var(--text-muted); margin: 0; padding: 0; }
.breadcrumb li + li::before { content: '›'; margin: 0 0.3rem; color: var(--text-light); }
.breadcrumb a { color: var(--terracotta); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
[dir='rtl'] .breadcrumb li + li::before { content: '‹'; }

/* ── Name grid + chips (language pages) ── */
.name-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.5rem; margin-top: 0.8rem; }
.name-chip { background: #FFF5F0; border: 1px solid var(--blush); border-radius: var(--radius-sm); padding: 0.5rem 0.7rem; text-align: center; font-family: 'Playfair Display', serif; color: var(--terracotta); font-size: 0.95rem; }

/* ── CTA link + language switcher (language pages) ── */
.cta { display: inline-block; margin-top: 0.6rem; background: var(--terracotta); color: #fff; padding: 0.7rem 1.2rem; border-radius: var(--radius-sm); text-decoration: none; font-weight: 500; }
.cta:hover { background: var(--rose); }
.lang-switch { font-size: 0.8rem; color: var(--text-muted); margin-top: 1rem; }
.lang-switch a { color: var(--terracotta); margin: 0 0.3rem; }

/* ── Definition box (language pages) ── */
.def-box {
  background: #FFF9F5;
  border-left: 4px solid var(--terracotta);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.2rem;
  margin-bottom: 1.4rem;
}
.def-box .def-term {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.def-box p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* ── FAQ items (language pages) ── */
.faq-item { margin-bottom: 1rem; padding-bottom: 0.8rem; border-bottom: 1px solid #F1E5D5; }
.faq-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

/* ── Page footer ── */
.page-footer { background: var(--deep); color: rgba(232,196,160,0.6); text-align: center; padding: 1.2rem 1.5rem; font-size: 0.78rem; line-height: 1.6; }
.page-footer a { color: var(--blush); text-decoration: none; margin: 0 0.5rem; }
.page-footer a:hover { color: #fff; }
.page-footer .footer-links { display: flex; justify-content: center; align-items: center; gap: 0.25rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.page-footer .footer-links span { color: rgba(232,196,160,0.3); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .site-nav { padding: 0 1rem; }
  .page-header { padding: 1.8rem 1rem 1.5rem; }
  .content { padding: 0 1rem; margin-top: 1.8rem; }
}
