@font-face {
  font-family: "Be Vietnam Pro";
  src: url("/fonts/BeVietnamPro_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("/fonts/BeVietnamPro_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/PlayfairDisplay_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/PlayfairDisplay_500Medium_Italic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  --cream: #fbf6ef;
  --paper: #fffcf8;
  --ink: #2a211e;
  --muted: #6b5e58;
  --accent: #c4506a;
  --accent-dark: #7a2e40;
  --accent-soft: #f6dde2;
  --line: #ede3da;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
}
.brand img { width: 32px; height: 32px; border-radius: 50%; }
.langs { display: flex; gap: 4px; font-size: 14px; }
.langs a {
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
}
.langs a:hover { background: var(--accent-soft); color: var(--accent-dark); }

/* Content */
main { padding: 40px 0 56px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; }
h1 { font-size: 34px; margin: 0 0 8px; }
h2 { font-size: 24px; margin: 40px 0 8px; }
h3 { font-size: 19px; margin: 28px 0 4px; font-family: var(--sans); }

.lead { color: var(--muted); margin: 0 0 24px; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 20px 0;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card.soft { background: var(--accent-soft); border-color: transparent; }

ul, ol { padding-left: 22px; }
li { margin: 4px 0; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  margin: 12px 0;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  display: grid;
  place-items: center;
}

code, .id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 6px;
}

.lang-section + .lang-section {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

/* Home */
.hero { text-align: center; padding: 24px 0 8px; }
.hero img {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 10px 30px rgba(122, 46, 64, 0.18);
}
.hero h1 { font-size: 44px; margin: 20px 0 4px; }
.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 21px;
  color: var(--accent-dark);
  margin: 0 0 8px;
}
.badge {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 600;
}
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.features li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0;
}
.features strong { display: block; font-weight: 600; }
.features span { color: var(--muted); font-size: 15px; }
@media (min-width: 600px) {
  .features { grid-template-columns: 1fr 1fr; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  .hero h1 { font-size: 36px; }
  h2 { font-size: 21px; }
  .card { padding: 16px 16px; }
}
