/* Gánh Mẹ — landing page in the game's woodblock-print (tranh Đông Hồ) look:
   cream "giấy điệp" paper, black ink outlines, red "son" frames, the game's hand-lettered font. */
@font-face {
  font-family: "Patrick Hand";
  src: url("fonts/PatrickHand-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --diep: #f4e7c9;   /* paper */
  --diep-2: #ecdab3;
  --son: #b9352a;    /* red frame */
  --muc: #1f1a14;    /* ink */
  --vang: #e3b341;
  --cham: #2f5d7c;   /* indigo */
  --la: #5b7a3a;     /* leaf green */
  --max: 1040px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--muc);
  background-color: var(--diep);
  /* paper grain and the faint shells of giấy điệp */
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .35) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 80%, rgba(120, 90, 40, .06) 0 1px, transparent 2px),
    radial-gradient(ellipse at top, rgba(255, 250, 235, .7), transparent 60%);
  background-size: 7px 7px, 11px 11px, 100% 100%;
  font-family: "Patrick Hand", "Segoe Print", "Comic Sans MS", cursive, sans-serif;
  font-size: 20px;
  line-height: 1.55;
}

a { color: var(--cham); }
a:hover { color: var(--son); }

img { max-width: 100%; height: auto; display: block; }

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

/* ---- header ---- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--son);
  font-size: 30px;
  line-height: 1;
}
.brand img {
  width: 44px;
  height: 44px;
  border: 2px solid var(--muc);
  border-radius: 10px;
}
.top nav a {
  color: var(--muc);
  text-decoration: none;
  border-bottom: 2px solid var(--son);
}

/* ---- the game's red-and-black card frame ---- */
.frame {
  background: #fbf2dc;
  border: 3px solid var(--muc);
  border-radius: 14px;
  box-shadow: 0 0 0 7px var(--son), 0 0 0 10px var(--muc);
  margin: 10px;
}

/* ---- hero ---- */
.hero { margin-top: 8px; overflow: hidden; }
.hero img { width: 100%; border-radius: 11px 11px 0 0; border-bottom: 3px solid var(--muc); }
.hero-text { padding: 18px 24px 26px; text-align: center; }
.kicker { color: var(--cham); letter-spacing: .5px; margin: 0; }
h1 {
  margin: 0;
  color: var(--son);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 96px);
  line-height: 1;
  text-shadow: 3px 3px 0 var(--muc);
}
.lead { margin: 10px auto 18px; max-width: 34em; }

/* buttons look like the game's printed buttons */
.btn {
  display: inline-block;
  padding: 6px 22px 4px;
  font-size: 24px;
  text-decoration: none;
  color: #fff3cf;
  background: var(--son);
  border: 3px solid var(--muc);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--muc);
}
.btn.soon { background: #fbf2dc; color: var(--muc); }

/* ---- sections ---- */
section { margin: 46px 0; }
h2 {
  color: var(--son);
  font-weight: 400;
  font-size: 38px;
  margin: 0 0 14px;
  text-align: center;
}
h2::after {
  content: "";
  display: block;
  width: 120px;
  height: 6px;
  margin: 6px auto 0;
  /* a little ink border pattern */
  background: repeating-linear-gradient(90deg, var(--muc) 0 10px, transparent 10px 16px);
  border-radius: 3px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}
.card {
  background: #fbf2dc;
  border: 3px solid var(--muc);
  border-radius: 12px;
  box-shadow: 5px 5px 0 var(--muc);
  padding: 16px 18px;
}
.card h3 {
  margin: 0 0 4px;
  font-weight: 400;
  font-size: 26px;
  color: var(--cham);
}
.card p { margin: 0; }
.num { color: var(--son); font-size: 34px; line-height: 1; }

.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.shots figure { margin: 0; }
.shots img {
  border: 3px solid var(--muc);
  border-radius: 10px;
  box-shadow: 5px 5px 0 var(--muc);
}
.shots figcaption { text-align: center; margin-top: 8px; color: var(--cham); }

/* ---- long text (privacy policy) ---- */
.doc { padding: 22px 26px 30px; }
.doc h1 { font-size: clamp(40px, 7vw, 58px); text-align: center; }
.doc h2 { text-align: left; font-size: 30px; margin-top: 28px; }
.doc h2::after { margin-left: 0; width: 80px; height: 5px; }
.doc .meta { text-align: center; color: var(--cham); margin: 6px 0 18px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 4px 0; }

/* ---- footer ---- */
footer {
  margin-top: 56px;
  padding: 22px 0 32px;
  border-top: 3px solid var(--muc);
  text-align: center;
  font-size: 18px;
}
footer p { margin: 4px 0; }

@media (max-width: 560px) {
  body { font-size: 18px; }
  .top { flex-direction: column; }
  .frame { box-shadow: 0 0 0 5px var(--son), 0 0 0 8px var(--muc); margin: 8px; }
  .hero-text { padding: 14px 14px 22px; }
  .doc { padding: 16px 14px 24px; }
  .shots { grid-template-columns: 1fr; }
}
