:root {
  --ground: #F6F3EC;
  --surface: #FFFFFF;
  --ink: #1F2A24;
  --body: #4F5A53;
  --muted: #5A645E;
  --line: #E8E2D5;
  --line-2: #DCD5C6;
  --green: #2F5D46;
  --green-dark: #1C3B2C;
  --green-tint: #E3ECE5;
  --gold: #E8A93A;
  --serif: 'Lora', Georgia, serif;
  --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.prewrap { white-space: pre-line; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--green); }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.kicker.light { color: var(--gold); font-size: 13px; }
.lead { font-size: 17px; line-height: 1.65; color: var(--body); }

/* Màu nền giữ chỗ */
.t-sage { background: #D9E5DC; color: var(--green); }
.t-gold { background: #FBEFD6; color: #7A5410; }
.t-rose { background: #F2E1D8; color: #7B3F28; }
.t-sand { background: #ECE6DA; color: #5A4A2E; }

/* Đầu trang */
.site-head { border-bottom: 1px solid #E2DCCF; background: var(--ground); }
.head-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 22px; font-weight: 600; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { padding: 11px 16px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { background: #ECE7DC; }
.nav a.on { background: var(--green-tint); color: var(--green-dark); font-weight: 600; }

/* Nút */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; font-size: 16px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.more { font-weight: 600; font-size: 15px; padding: 10px 0; text-decoration: none; }

/* Trang chủ */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 48px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.08; }
.hero .lead { font-size: 18px; max-width: 540px; }
.collage { flex: 1 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(100px, 13vw, 150px); gap: 14px; }
.tile { border-radius: 24px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-0 { grid-column: span 4; grid-row: span 2; }
.tile-1, .tile-2 { grid-column: span 2; }
.tile-3 { grid-column: span 3; }
.tile-quote { grid-column: span 3; background: var(--green); color: #fff; align-items: flex-end; justify-content: flex-start; padding: 20px; font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.8vw, 22px); line-height: 1.35; }

.section { padding-top: 36px; padding-bottom: 36px; }
.section > h2, .section-head h2 { font-size: 34px; margin-bottom: 8px; }
.section-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-link:hover h3 { color: var(--green); }
.card-img { height: 200px; display: flex; align-items: center; justify-content: center; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.card-body h3 { font-size: 22px; }
.card-body p { color: var(--body); font-size: 15px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 30px; }
.events-panel { flex: 999 1 480px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.panel-head h2 { font-size: 30px; }
.ev-list { list-style: none; margin: 0; padding: 0; }
.ev { display: flex; gap: 18px; align-items: center; padding: 14px 0; border-top: 1px solid #EFEAE0; }
.ev:first-child { border-top: 0; }
.badge { width: 68px; flex: none; text-align: center; border-radius: 16px; padding: 10px 0; display: flex; flex-direction: column; color: var(--ink); }
.badge span { font-size: 12px; font-weight: 600; }
.badge strong { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.ev-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ev-text strong { font-size: 17px; }
.when { flex: none; font-size: 13px; font-weight: 600; color: var(--green-dark); background: var(--green-tint); padding: 6px 12px; border-radius: 999px; }
.dark { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.flash { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.flash-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.flash-link:hover .flash-title { text-decoration: underline; }
.flash-img { height: 200px; border-radius: 16px; background: #34443B; color: #D7DED9; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.flash-img img { width: 100%; height: 100%; object-fit: cover; }
.flash-title { font-family: var(--serif); font-size: 22px; line-height: 1.4; }

.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; margin-top: 24px; }
.member { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.avatar { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--ink); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Tiêu đề trang con */
.page-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; padding-top: 52px; padding-bottom: 16px; }
.page-head-text { display: flex; flex-direction: column; gap: 10px; max-width: 680px; }
.page-head h1 { font-size: clamp(34px, 4.5vw, 52px); line-height: 1.1; }
.back { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 15px; text-decoration: none; padding: 8px 0; }

.search-box { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 48px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); min-width: min(280px, 100%); color: var(--muted); }
.search-box input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; flex: 1; min-width: 0; color: var(--ink); }
.search-box:focus-within { border-color: var(--green); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.pill { height: 44px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }

/* Album */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 24px; }
.album { color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.album-stack { position: relative; height: 220px; margin-bottom: 14px; }
.album-back { position: absolute; inset: 0 16px -8px 16px; border-radius: 20px; filter: brightness(.93); }
.album-cover { position: absolute; inset: 0; border-radius: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.album:hover .album-cover img { transform: scale(1.04); }
.chip { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 600; color: var(--ink); }
.album-title { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.album:hover .album-title { color: var(--green); }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); grid-auto-rows: 200px; gap: 12px; }
.photo { border-radius: 16px; overflow: hidden; display: block; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photo:hover img { transform: scale(1.04); }

/* Hộp xem ảnh */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(15, 20, 17, .94); display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; max-width: min(1400px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb img { max-height: 84vh; max-width: 100%; object-fit: contain; border-radius: 8px; }
.lb figcaption { color: #E9ECE9; font-size: 15px; text-align: center; min-height: 1em; }
.lb button { background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; flex: none; }
.lb button:hover { background: rgba(255, 255, 255, .24); }
.lb .lb-x { position: absolute; top: 16px; right: 16px; }
body.lb-open { overflow: hidden; }

/* Video */
.video-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.video-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.player { aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #000; }
.player video, .player iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-info { display: flex; flex-direction: column; gap: 8px; }
.video-info h2 { font-size: 30px; }
.video-list { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.video-list h2 { font-size: 24px; margin-bottom: 6px; }
.vitem { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 18px; border: 1.5px solid transparent; color: var(--ink); text-decoration: none; }
.vitem:hover { background: #EFEAE0; color: var(--ink); }
.vitem.on { background: var(--surface); border-color: var(--green); }
.vthumb { width: 128px; height: 72px; flex: none; border-radius: 12px; overflow: hidden; background: #D9E5DC; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; }
.vt-icon { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.vmeta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vmeta strong { font-size: 15px; }

/* Sự kiện */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--line); }
.tabs a { padding: 11px 20px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.tabs a.on { background: var(--ink); color: #fff; font-weight: 600; }
.ev-cards { display: flex; flex-direction: column; gap: 16px; max-width: 900px; }
.ev-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.ev-card .badge { width: 84px; }
.ev-card .badge strong { font-size: 32px; }
.ev-card h2 { font-size: 22px; }
.narrow { max-width: 900px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.timeline li { display: flex; gap: 24px; align-items: stretch; }
.tl-year { width: 76px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tl-year strong { font-family: var(--serif); font-size: 22px; color: var(--green); }
.tl-line { flex: 1; width: 2px; background: #D6CFBF; min-height: 40px; }
.tl-card { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-wrap: wrap; }
.tl-img { flex: 1 1 200px; min-height: 180px; }
.tl-img img { width: 100%; height: 100%; object-fit: cover; }
.tl-body { flex: 2 1 280px; padding: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.tl-body h2 { font-size: 22px; }
.tl-body p { color: var(--body); font-size: 15px; }

/* Kỷ niệm */
.story { max-width: 760px; padding-top: 40px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 14px; }
.story h1 { font-size: clamp(32px, 4.5vw, 48px); }
.story-img { display: block; border-radius: 20px; overflow: hidden; margin: 10px 0; }
.story-text { font-size: 18px; line-height: 1.8; color: #2E3832; }

.empty { border: 1.5px dashed var(--line-2); border-radius: 24px; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); text-align: center; }

.site-foot { border-top: 1px solid #E2DCCF; margin-top: 40px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 16px; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 28px; color: var(--muted); font-size: 14px; }
.foot-brand { font-family: var(--serif); font-size: 18px; color: var(--ink); }

@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 36px; gap: 32px; }
  .nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .nav a { white-space: nowrap; padding: 10px 14px; }
  .section > h2, .section-head h2 { font-size: 28px; }
  .panel { padding: 22px; }
  .photos { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 31vw; gap: 6px; }
  .photo { border-radius: 8px; }
  .timeline li { gap: 12px; }
  .tl-year { width: 52px; }
  .tl-year strong { font-size: 17px; }
  .ev .when { display: none; }
  .lb .lb-prev, .lb .lb-next { position: absolute; bottom: 24px; }
  .lb .lb-prev { left: calc(50% - 60px); }
  .lb .lb-next { right: calc(50% - 60px); }
}
