/* ============================================================
   LÀNG ĐỒNG TRÌ — modern heritage
   Lacquer red · aged gold · parchment · ink
   ============================================================ */

:root {
  --red: #a3261d;
  --red-dark: #7e1c15;
  --gold: #c9a86a;
  --gold-dark: #a8864a;
  --parchment: #f6f1e6;
  --parchment-2: #efe7d4;
  --ink: #2a2118;
  --ink-soft: #5c5242;
  --white: #fffdf7;
  --serif: "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 3px rgba(42, 33, 24, 0.08), 0 4px 14px rgba(42, 33, 24, 0.06);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ================= HERO ================= */

.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(201, 168, 106, 0.25), transparent 60%),
    radial-gradient(900px 400px at 0% 110%, rgba(163, 38, 29, 0.18), transparent 55%),
    linear-gradient(160deg, #2b1c12 0%, #3d2a1a 55%, #4a3220 100%);
  color: var(--white);
  text-align: center;
  padding: 72px 20px 64px;
  border-bottom: 4px solid var(--gold);
}

.hero__inner { max-width: 760px; margin: 0 auto; }

.hero__motif { margin-bottom: 12px; opacity: 0.9; }

.hero__eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

.hero__tagline {
  margin: 16px auto 0;
  max-width: 560px;
  font-size: 1.02rem;
  color: #e9dcc3;
}

.hero__scroll {
  display: inline-block;
  margin-top: 26px;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 600;
  border-bottom: 1px dashed var(--gold-dark);
  padding-bottom: 2px;
}
.hero__scroll:hover { color: #e5c88f; text-decoration: none; border-bottom-style: solid; }

/* ================= NAV ================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 247, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5dcc6;
}

.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  white-space: nowrap;
}
.nav__brand:hover { color: var(--red); text-decoration: none; }

.nav__chips {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav__chips::-webkit-scrollbar { display: none; }

.chip {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  border: 1px solid transparent;
}
.chip:hover { background: var(--parchment-2); color: var(--red); text-decoration: none; }
.chip.active { background: var(--red); color: #fff; }

/* ================= LAYOUT ================= */

.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px 20px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  align-items: start;
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 36px; }
}

/* ================= SECTION HEADS ================= */

.section-head { margin-bottom: 26px; }

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  color: var(--red-dark);
  position: relative;
  padding-bottom: 10px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.section-sub {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: 8px;
}

/* ================= FEED ================= */

.feed__list { display: flex; flex-direction: column; gap: 18px; }

.feed__loading { color: var(--ink-soft); font-style: italic; }

.post {
  background: var(--white);
  border: 1px solid #e8dfc9;
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post:hover { transform: translateY(-2px); box-shadow: 0 2px 6px rgba(42,33,24,0.1), 0 10px 26px rgba(42,33,24,0.08); }

.post__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.post__tag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--parchment-2);
  color: var(--ink-soft);
}
.post--tin-buon .post__tag { background: #f3e3e0; color: var(--red-dark); }
.post--le-hoi .post__tag { background: #f0e8d2; color: var(--gold-dark); }
.post--chinh-sach .post__tag { background: #e3e9ef; color: #2c5d7e; }

.post__date {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.post__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.3;
  margin-bottom: 8px;
}

.post__body { color: var(--ink-soft); font-size: 0.98rem; }
.post__body p + p { margin-top: 10px; }
.post__body em { color: var(--ink); }

.post__more {
  margin-top: 12px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--red);
  cursor: pointer;
}
.post__more:hover { text-decoration: underline; }

.post--pinned { border-left-color: var(--red); }
.post--pinned .post__title::before {
  content: "📌 ";
  font-size: 0.95em;
}

/* ================= SIDEBAR ================= */

.side { display: flex; flex-direction: column; gap: 20px; }

.card {
  background: var(--white);
  border: 1px solid #e8dfc9;
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.card--trich {
  border-left: 4px solid var(--red);
  background: linear-gradient(180deg, #fffdf7 0%, #faf4e6 100%);
}

.card__kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

.card__quote {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
}

.card__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.card__facts { list-style: none; }
.card__facts li {
  padding: 7px 0;
  border-bottom: 1px dashed #e8dfc9;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.card__facts li:last-child { border-bottom: none; }
.card__facts b { color: var(--ink); font-weight: 600; }

.card--dark {
  background: linear-gradient(160deg, #3d2a1a, #2b1c12);
  color: #e9dcc3;
  border: none;
}
.card--dark .card__kicker { color: var(--gold); }
.card__text { font-size: 0.92rem; color: #d8c9ab; }
.card__text--dim { margin-top: 8px; font-size: 0.85rem; color: #a8977a; }
.card--dark a { color: var(--gold); }

/* ================= BLOCKS ================= */

.block { padding: 56px 20px; }
.block--tint { background: var(--parchment-2); border-top: 1px solid #e2d8c0; border-bottom: 1px solid #e2d8c0; }

.block__inner { max-width: 900px; margin: 0 auto; }

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; } }

.prose { font-size: 1rem; color: var(--ink-soft); }
.prose p + p, .prose h3 { margin-top: 14px; }
.prose h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--red-dark);
}
.prose ul { margin: 12px 0 0 20px; }
.prose li + li { margin-top: 6px; }

/* ================= LETTER ================= */

.letter {
  background: var(--white);
  border: 1px solid #e8dfc9;
  border-top: 4px solid var(--red);
  border-radius: 10px;
  padding: 30px 34px;
  max-width: 720px;
  box-shadow: var(--shadow);
  font-size: 1.02rem;
  color: var(--ink-soft);
}
.letter p + p { margin-top: 14px; }
.letter__sign {
  margin-top: 22px;
  text-align: right;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

/* ================= EVENTS ================= */

.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

.event {
  background: var(--white);
  border: 1px solid #e8dfc9;
  border-radius: 10px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.event__badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: #f0e8d2;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.event__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.event__text { font-size: 0.94rem; color: var(--ink-soft); }

/* ================= GALLERY ================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.gallery__item { position: relative; border-radius: 10px; overflow: hidden; }
.gallery__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; cursor: zoom-in; }
.gallery__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(43, 28, 18, 0.85));
  color: #fff;
  font-size: 0.88rem;
  padding: 26px 14px 10px;
}

.gallery__item--placeholder .gallery__frame {
  aspect-ratio: 4/3;
  background:
    radial-gradient(200px 120px at 20% 10%, rgba(201,168,106,0.15), transparent 60%),
    repeating-linear-gradient(45deg, #efe7d4 0 12px, #eae1cb 12px 24px);
  border: 1px dashed #d4c6a4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b09a6d;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
}

/* ================= CONTACT ================= */

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } }

.contact__item {
  background: var(--white);
  border: 1px solid #e8dfc9;
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.contact__item h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--red-dark);
  margin-bottom: 6px;
}
.contact__item p { font-size: 0.94rem; color: var(--ink-soft); }
.contact__note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ================= FOOTER ================= */

.footer {
  background: linear-gradient(160deg, #2b1c12, #221608);
  color: #c9ba9c;
  text-align: center;
  padding: 44px 20px 36px;
}

.footer__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  color: var(--white);
}
.footer__sub { margin-top: 4px; font-size: 0.9rem; color: var(--gold); letter-spacing: 0.06em; }
.footer__line { margin-top: 14px; font-size: 0.9rem; color: #9d8c70; }
.footer__small { margin-top: 18px; font-size: 0.78rem; color: #77684f; }

/* ================= LIGHTBOX ================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 6, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: 100%;
  max-height: 92vh;
  border-radius: 6px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.6);
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.85;
}
.lightbox__close:hover { opacity: 1; }

/* ================= RESPONSIVE TUNES ================= */

@media (max-width: 640px) {
  .hero { padding: 52px 16px 44px; }
  .block { padding: 44px 16px; }
  .post { padding: 18px 16px; }
  .letter { padding: 24px 20px; }
  .nav__inner { gap: 12px; padding: 8px 12px; }
}
