@font-face {
  font-family: "Ysabeau Infant";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/ysabeau-infant-vietnamese.woff2") format("woff2");
}

@font-face {
  font-family: "Ysabeau Infant";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/ysabeau-infant-latin.woff2") format("woff2");
}

:root {
  font-family: "Ysabeau Infant", ui-sans-serif, system-ui, sans-serif;
  color: #332a2d;
  background: #f7f6f3;
  line-height: 1.55;
  letter-spacing: 0;
  --ink: #332a2d;
  --muted: #6d6265;
  --rose: #a54764;
  --rose-dark: #7f314b;
  --rose-soft: #f7e7eb;
  --forest: #3f6d58;
  --forest-soft: #e8f0eb;
  --gold: #ae7d31;
  --gold-soft: #f5ecd9;
  --line: rgba(51, 42, 45, 0.13);
  --surface: #fffefd;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; max-width: 100%; overflow-x: hidden; background: #f7f6f3; color: var(--ink); }
a { color: var(--rose-dark); text-underline-offset: 3px; }
a:hover { color: #60253a; }

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  min-height: 82px;
  margin: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 800;
}

.brand img { width: 44px; height: 48px; object-fit: contain; }
.site-header nav { display: flex; align-items: center; gap: 24px; }
.site-header nav a { color: #5e5356; font-size: .95rem; font-weight: 750; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--rose-dark); }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(660px, calc(100svh - 110px));
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--rose-soft);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 8px;
  background: var(--forest);
}

.hero-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  margin: auto;
  padding: 74px 0 88px;
}

.hero-content > * { min-width: 0; max-width: 700px; }
.eyebrow, .section-label {
  margin: 0 0 10px;
  color: var(--rose-dark);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1, .document h1, .asset-panel h1 {
  margin: 0;
  color: var(--ink);
  font-size: 4.65rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  overflow-wrap: anywhere;
}

.lead {
  margin: 24px 0 0;
  color: #5e5054;
  font-size: 1.3rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.hero-mark {
  position: absolute;
  z-index: 0;
  right: max(30px, calc((100vw - 1180px) / 2));
  bottom: 56px;
  width: 430px;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  opacity: .14;
  pointer-events: none;
}

.actions { display: flex; max-width: 700px; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(81, 51, 60, .2);
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 800;
  text-decoration: none;
}
.actions .portal-link {
  border-color: var(--rose);
  background: var(--rose);
  box-shadow: 0 8px 20px rgba(127, 49, 75, .18);
  color: #fff;
}
.actions .portal-link:hover { border-color: var(--rose-dark); background: var(--rose-dark); color: #fff; }

.feature-band, .identity-band { border-bottom: 1px solid var(--line); }
.feature-band { background: var(--surface); }
.identity-band { background: var(--forest-soft); }
.section-inner { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 62px 0; }
.section-inner.narrow { width: min(820px, calc(100% - 40px)); }
.section-inner h2, .document h2 { margin: 0 0 22px; color: #403438; font-size: 1.9rem; line-height: 1.2; overflow-wrap: anywhere; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; margin-top: 32px; }
.feature-grid article { border-top: 3px solid var(--rose); padding-top: 18px; }
.feature-grid article:nth-child(2) { border-color: var(--forest); }
.feature-grid article:nth-child(3) { border-color: var(--gold); }
.feature-grid h3 { margin: 0 0 8px; color: var(--ink); font-size: 1.16rem; }
.feature-grid p, .identity-band p { margin: 0; color: var(--muted); }
.identity-band p + p { margin-top: 14px; }

.document-shell { padding: 56px 20px 80px; border-top: 1px solid var(--line); background: var(--surface); }
.document { width: min(820px, 100%); margin: auto; }
.document h1, .asset-panel h1 {
  font-size: clamp(2.8rem, 6vw, 3.35rem);
  line-height: 1.12;
}
.document h1 { margin-bottom: 18px; }
.document .intro { margin: 20px 0 38px; color: var(--muted); font-size: 1.15rem; }
.document h2 { margin-top: 40px; margin-bottom: 14px; font-size: 1.35rem; line-height: 1.35; }
.document p, .document li { color: #504549; }
.document li + li { margin-top: 8px; }
.document code { border-radius: 4px; background: #eee8e7; padding: 2px 5px; }

.asset-shell { display: grid; min-height: 640px; place-items: center; padding: 50px 20px; background: var(--surface); }
.asset-panel { width: min(760px, 100%); text-align: center; }
.logo-preview { display: grid; min-height: 330px; place-items: center; margin: 30px 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.logo-preview img { max-width: 70%; height: auto; }
.asset-link { overflow-wrap: anywhere; font-weight: 700; }

footer {
  border-top: 1px solid var(--line);
  background: #f7f6f3;
}

.footer-main {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  padding: 24px 0 0;
  color: #756a6d;
  font-size: .9rem;
}
.footer-credit {
  width: min(1180px, calc(100% - 40px));
  margin: 7px auto 0;
  padding-bottom: 18px;
  color: #8f8588;
  font-size: .7rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0;
}

@media (max-width: 820px) {
  .hero h1 { font-size: 3.6rem; }
  .hero-mark { right: -80px; width: 360px; opacity: .1; }
  .feature-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 600px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 8px; width: calc(100% - 28px); padding: 13px 0; }
  .brand img { width: 38px; height: 42px; }
  .site-header nav { width: 100%; gap: 18px; overflow-x: auto; }
  .hero { min-height: min(560px, calc(100svh - 116px)); }
  .hero-content { width: calc(100% - 28px); padding: 58px 0 70px; }
  .hero h1 { font-size: 2.55rem; line-height: 1.05; }
  .lead { max-width: 94%; font-size: 1.08rem; }
  .hero-mark { right: -110px; bottom: 44px; width: 300px; opacity: .09; }
  .actions { align-items: stretch; flex-direction: column; width: 100%; max-width: 100%; }
  .actions a { width: 100%; }
  .section-inner { width: calc(100% - 28px); padding: 44px 0; }
  .section-inner h2 { font-size: 1.6rem; }
  .document-shell { padding: 38px 14px 58px; }
  .document h1, .asset-panel h1 { font-size: 2.3rem; line-height: 1.16; }
  .document h1 { margin-bottom: 16px; }
  .logo-preview { min-height: 260px; }
  .footer-main { width: calc(100% - 28px); padding-top: 20px; text-align: center; }
  .footer-credit { width: calc(100% - 28px); margin-top: 8px; }
}
