@charset "UTF-8";

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('fonts/manrope-latin-200-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/manrope-latin-300-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/manrope-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/manrope-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* velapay - duriancard.com
   Brand tokens, same values as the app. Change colours here only. */

:root {
  --ink: #1A1A1A;
  --ivory: #F5F3EF;
  --paper: #FFFFFF;
  --graphite: #6B6862;
  --graphite-light: #9A968E;
  --bronze: #B08D57;
  --hairline: #E5E2DA;

  --measure: 62ch;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
               'Noto Sans CJK SC', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 0.5px solid var(--hairline);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand svg { display: block; }

.brand span {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2.5px;
}

.masthead nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.masthead nav a {
  color: var(--graphite);
  text-decoration: none;
  border-bottom: 0.5px solid transparent;
  padding-bottom: 2px;
}

.masthead nav a:hover,
.masthead nav a[aria-current] {
  color: var(--ink);
  border-bottom-color: var(--bronze);
}

/* ---------- hero ---------- */

.hero { padding: 96px 0 72px; }

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -0.5px;
  max-width: 16ch;
}

.hero .rule {
  width: 44px;
  height: 2px;
  background: var(--bronze);
  margin: 36px 0 28px;
}

.hero p {
  margin: 0;
  max-width: var(--measure);
  font-size: 18px;
  font-weight: 300;
  color: var(--graphite);
}

/* ---------- sections ---------- */

section { padding: 56px 0; border-top: 0.5px solid var(--hairline); }

h2 {
  margin: 0 0 32px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2.5px;
  color: var(--graphite-light);
  text-transform: uppercase;
}

h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 500;
}

/* entries: hairline dividers, not cards */

.entries { display: grid; gap: 0; }

.entry {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 0.5px solid var(--hairline);
}

.entry:first-child { padding-top: 0; }
.entry:last-child { border-bottom: 0; padding-bottom: 0; }

.entry p {
  margin: 0;
  color: var(--graphite);
  font-weight: 300;
  max-width: var(--measure);
}

/* facts table: legal entity details */

.facts { width: 100%; border-collapse: collapse; }

.facts th,
.facts td {
  text-align: left;
  padding: 14px 0;
  border-bottom: 0.5px solid var(--hairline);
  vertical-align: top;
  font-weight: 400;
}

.facts th {
  width: 200px;
  padding-right: 32px;
  color: var(--graphite-light);
  font-weight: 400;
}

.facts tr:last-child th,
.facts tr:last-child td { border-bottom: 0; }

.facts td { font-variant-numeric: tabular-nums; }

/* ---------- document pages ---------- */

.doc { padding: 72px 0 0; }

.doc h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 200;
  letter-spacing: -0.3px;
}

.doc .updated {
  margin: 0 0 56px;
  font-size: 14px;
  color: var(--graphite-light);
}

.doc h2 {
  margin: 48px 0 14px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
  text-transform: none;
}

.doc h3 {
  margin: 28px 0 8px;
  font-size: 15px;
  font-weight: 500;
}

.doc p,
.doc li {
  max-width: var(--measure);
  color: var(--graphite);
  font-weight: 300;
}

.doc p { margin: 0 0 16px; }

.doc ul { margin: 0 0 16px; padding-left: 20px; }
.doc li { margin-bottom: 8px; }

.doc strong { font-weight: 500; color: var(--ink); }

.doc a { color: var(--ink); text-decoration-color: var(--bronze); }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 15px;
}

.doc table th,
.doc table td {
  text-align: left;
  padding: 12px 16px 12px 0;
  border-bottom: 0.5px solid var(--hairline);
  vertical-align: top;
  font-weight: 400;
}

.doc table th {
  color: var(--graphite-light);
  font-weight: 400;
  white-space: nowrap;
}

.doc table td { color: var(--graphite); font-weight: 300; }

/* ---------- footer ---------- */

footer {
  margin-top: 72px;
  padding: 32px 0 56px;
  border-top: 0.5px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  align-items: baseline;
  font-size: 14px;
  color: var(--graphite-light);
}

footer a { color: var(--graphite); text-decoration: none; }
footer a:hover { color: var(--ink); }

footer .spacer { flex: 1; }

/* ---------- a11y and responsive ---------- */

a:focus-visible,
:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  :root { --gutter: 22px; }
  .hero { padding: 64px 0 48px; }
  .entry { grid-template-columns: 1fr; gap: 6px; }
  .facts th { width: 130px; padding-right: 20px; }
  .masthead { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* language switch */

.masthead nav a.lang {
  color: var(--ink);
  border-bottom-color: var(--hairline);
}

.masthead nav a.lang:hover { border-bottom-color: var(--bronze); }

/* section footnote */

.aside {
  margin: 28px 0 0;
  max-width: var(--measure);
  color: var(--graphite);
  font-weight: 300;
}

/* Chinese body copy: weight back to 400, 300 is too thin for CJK glyphs */

html[lang="zh-Hans"] body { font-weight: 400; }
html[lang="zh-Hans"] .hero p,
html[lang="zh-Hans"] .entry p,
html[lang="zh-Hans"] .aside,
html[lang="zh-Hans"] .doc p,
html[lang="zh-Hans"] .doc li,
html[lang="zh-Hans"] .doc table td { font-weight: 400; }
html[lang="zh-Hans"] .hero h1 { font-weight: 300; letter-spacing: 0; }
html[lang="zh-Hans"] .doc h1 { font-weight: 300; letter-spacing: 0; }
