@font-face {
  font-family: "Charm"; font-weight: 700; font-display: swap;
  src: url("Charm-Bold.ttf") format("truetype");
}
:root {
  --bg: #F4EDDF; --paper: #FFFCF5; --edge: #E4DED2; --rule: #B8893A;
  --ink: #24323A; --ink-2: #4F5C62; --muted: #68757A;
  --son: #A3352A; --lam: #1C6172; --gold: #E2B962; --lacquer: #2A1410;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141B1F; --paper: #1D262B; --edge: #2F3A40; --rule: #E2B962;
    --ink: #F3EEE4; --ink-2: #C5CCCE; --muted: #99A4A8; --son: #E07A68; --lam: #6FB3C2;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }

/* Black-red lacquer hero with a gold hồi văn band. */
header.hero {
  background: linear-gradient(160deg, #3A1712, var(--lacquer) 70%);
  color: #F1D9A0; padding: 40px 16px 30px; text-align: center; position: relative;
}
header.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='12' viewBox='0 0 15 12'%3E%3Cpath d='M0 12V0h12v9H3V3h6v3M0 12h15' fill='none' stroke='%23E2B962' stroke-width='1.2'/%3E%3C/svg%3E") repeat-x;
  opacity: .7;
}
header.hero img { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
header.hero h1 { font-family: "Charm", "New York", Georgia, serif; font-size: 40px; line-height: 1.15; margin: 14px 0 4px; color: #F1D9A0; }
header.hero p { margin: 0; color: #E8D4AE; }
.date {
  display: inline-block; margin-top: 14px; padding: 4px 12px; border: 1px solid rgba(241,217,160,.4);
  border-radius: 6px; font-size: 13px; letter-spacing: .06em; color: #F1D9A0;
}
.lang { margin-top: 12px; font-size: 14px; }
.lang a { color: #F1D9A0; margin: 0 6px; }

.sign { display: flex; align-items: center; gap: 10px; margin: 34px 0 12px; }
.sign span {
  background: var(--son); color: #FFF6E3; border-radius: 6px; padding: 5px 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: inset 0 0 0 2px var(--son), inset 0 0 0 3px rgba(241,217,160,.55);
}
.sign::after { content: ""; flex: 1; border-top: 1.5px solid var(--rule); opacity: .5; }

.card {
  background: var(--paper); border: 1px solid var(--edge); border-radius: 14px;
  padding: 18px 20px; box-shadow: 0 3px 10px rgba(36,50,58,.06);
}
.card + .card { margin-top: 12px; }
h2, h3 { font-family: "New York", "Iowan Old Style", Georgia, serif; color: var(--ink); line-height: 1.3; }
h2 { font-size: 22px; margin: 0 0 8px; }
h3 { font-size: 18px; margin: 16px 0 6px; }
p, li { margin: 0 0 10px; }
ul { padding-left: 20px; margin: 0 0 10px; }
strong { color: var(--ink); }
a { color: var(--lam); }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.seal {
  background: var(--paper); border: 1.5px dashed var(--rule); border-radius: 10px; padding: 14px;
}
.seal b { display: block; color: var(--son); font-family: "New York", Georgia, serif; font-size: 17px; margin-bottom: 4px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-top: 1px dashed var(--edge); }
th { color: var(--ink); font-weight: 600; white-space: nowrap; }
.muted { color: var(--muted); font-size: 14px; }
hr.lang-split { border: 0; height: 12px; margin: 48px 0 0; opacity: .6;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='12' viewBox='0 0 15 12'%3E%3Cpath d='M0 12V0h12v9H3V3h6v3M0 12h15' fill='none' stroke='%23B8893A' stroke-width='1.2'/%3E%3C/svg%3E") repeat-x; }
footer { margin-top: 40px; text-align: center; color: var(--muted); font-size: 14px; }
footer a { margin: 0 8px; }
.quote { font-family: "Charm", Georgia, serif; font-size: 22px; color: var(--son); }
@media (max-width: 520px) { th { white-space: normal; } header.hero h1 { font-size: 34px; } }
