/* Aidenize homepage: a child's crayon sketchbook on warm paper. */
/* Self-hosted Baloo 2 (display) and Nunito (text): full Vietnamese diacritics, no system fallback. */
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("/assets/fonts/baloo-2-vn.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("/assets/fonts/baloo-2-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("/assets/fonts/nunito-vn.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("/assets/fonts/nunito-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #FFFDF7;
  --ink: #1F2937;
  --ink-soft: #4B5563;
  --red: #EF4444;
  --yellow: #FACC15;
  --blue: #3B82F6;
  --green: #22C55E;
  --orange: #F97316;
  --purple: #A855F7;
  --red-deep: #B91C1C;
  --blue-deep: #1D4ED8;
  --green-deep: #15803D;
  --orange-deep: #C2410C;
  --purple-deep: #7E22CE;
  /* Hand-drawn wobble: uneven radii read as a crayon outline. */
  --wobble: 255px 18px 225px 18px / 18px 225px 18px 255px;
  --wobble-alt: 18px 225px 18px 255px / 255px 18px 225px 18px;
  --font-display: "Baloo 2", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --edge: max(20px, env(safe-area-inset-left));
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("/home/paper.svg");
  color: var(--ink);
  font: 18px/1.55 var(--font);
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 4px solid var(--blue); outline-offset: 4px; border-radius: 12px; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1, h2, h3, .brand-name, .top-play, .cta-main, .cta-profile, .zone-link, .step-num { font-family: var(--font-display); }
:lang(vi) h1, :lang(vi) h2, :lang(vi) h3 { line-height: 1.22; }

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  z-index: 10;
}
.skip:focus { top: 12px; }

/* ── Top bar ───────────────────────────────────────── */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px var(--edge);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; text-decoration: none; }
.brand-mark { display: inline-grid; grid-template-columns: repeat(3, 14px); gap: 4px; transform: rotate(-6deg); }
.brand-mark span { height: 28px; border-radius: 6px 3px 7px 4px; background: var(--red); }
.brand-mark span:nth-child(2) { background: var(--yellow); transform: translateY(-5px); }
.brand-mark span:nth-child(3) { background: var(--blue); }
.brand-name { font-size: 28px; font-weight: 900; letter-spacing: -.01em; }
.top-nav { display: flex; align-items: center; gap: 12px; margin-left: auto; white-space: nowrap; }
.top-guide {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  font-weight: 800;
  text-decoration: underline wavy var(--purple);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.top-play {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  border: 4px solid var(--ink);
  border-radius: var(--wobble);
  background: var(--yellow);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 4px 5px 0 var(--ink);
}
.top-play:hover { transform: rotate(-1.5deg); }

/* ── Hero ──────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px var(--edge) 56px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 16px;
  border: 3px dashed var(--purple);
  border-radius: var(--wobble-alt);
  color: var(--purple-deep);
  font-weight: 800;
  transform: rotate(-1.5deg);
}
.hero h1 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 900; letter-spacing: -.015em; line-height: 1.34; }
.scribble {
  color: var(--orange-deep);
  text-decoration: underline wavy var(--yellow);
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
  text-decoration-skip-ink: none;
}
.lead { max-width: 34em; margin: 20px 0 32px; color: var(--ink-soft); font-size: 20px; }

.cta { display: flex; flex-wrap: wrap; align-items: stretch; gap: 20px; }
.cta a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  font-weight: 900;
  border: 5px solid var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta-main {
  min-height: 128px;
  padding: 16px 40px 16px 24px;
  border-radius: var(--wobble);
  background: var(--green-deep);
  color: #FFFFFF;
  font-size: clamp(24px, 2.6vw, 32px);
  box-shadow: 7px 8px 0 #14532D;
}
.cta-main img { width: 88px; height: 88px; padding: 8px; border-radius: 50%; background: var(--paper); }
.cta-profile {
  min-height: 128px;
  padding: 16px 32px 16px 20px;
  border-radius: var(--wobble-alt);
  background: var(--paper);
  font-size: clamp(20px, 2vw, 24px);
  box-shadow: 6px 7px 0 var(--blue);
}
.cta-profile img { width: 64px; height: 64px; }
.cta a:hover { transform: translate(-2px, -2px) rotate(-1deg); }
.cta a:active { transform: translate(3px, 4px); box-shadow: 2px 2px 0 var(--ink); }

.facts { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.facts li {
  padding: 6px 14px;
  border: 3px solid currentColor;
  border-radius: var(--wobble-alt);
  font-weight: 800;
  font-size: 16px;
}
.facts li:nth-child(1) { color: var(--blue-deep); }
.facts li:nth-child(2) { color: var(--orange-deep); }
.facts li:nth-child(3) { color: var(--green-deep); }

.hero-art {
  margin: 0;
  padding: 14px;
  border: 6px solid var(--orange);
  border-radius: var(--wobble);
  background: var(--paper);
  box-shadow: 10px 12px 0 rgba(249, 115, 22, .22);
  transform: rotate(1.2deg);
}
.hero-art img { width: 100%; border-radius: var(--wobble-alt); }

/* ── Video ─────────────────────────────────────────── */
.video, .zones, .guide {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px var(--edge) 56px;
  text-align: center;
}
.video h2, .zones h2, .guide h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 900; }
.section-lead { margin: 12px auto 28px; max-width: 36em; color: var(--ink-soft); }
.frame {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
  border: 7px solid var(--blue);
  border-radius: var(--wobble-alt);
  background: #FEF3C7;
  box-shadow: 10px 12px 0 rgba(59, 130, 246, .25);
  transform: rotate(-.8deg);
}
.frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px 26px 18px 30px;
  background: var(--paper);
}

/* ── Zones ─────────────────────────────────────────── */
.zone-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 36px; text-align: left; }
.zone {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 24px 28px;
  border: 5px solid var(--zone-ink);
  border-radius: var(--wobble);
  background: var(--paper);
  box-shadow: 7px 8px 0 var(--zone-shadow);
}
.zone:nth-child(2) { border-radius: var(--wobble-alt); transform: rotate(.8deg); }
.zone:nth-child(3) { transform: rotate(-.6deg); }
.zone-animals { --zone-ink: var(--orange); --zone-shadow: rgba(249, 115, 22, .25); --zone-wash: #FFEDD5; }
.zone-produce { --zone-ink: var(--green); --zone-shadow: rgba(34, 197, 94, .25); --zone-wash: #DCFCE7; }
.zone-profile { --zone-ink: var(--purple); --zone-shadow: rgba(168, 85, 247, .25); --zone-wash: #F3E8FF; }
.zone-art {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px;
  border-radius: var(--wobble-alt);
  background: var(--zone-wash);
}
.zone-art img { width: 100%; aspect-ratio: 1; }
.zone-art img:nth-child(2) { transform: translateY(-8px) rotate(4deg); }
.zone h3 { font-size: 24px; font-weight: 900; }
.zone p { margin: 0; color: var(--ink-soft); }
.zone-points { margin: 0; padding-left: 1.2em; color: var(--ink-soft); }
.zone-points li { margin: 2px 0; }
.zone-points li::marker { color: var(--green-deep); content: "✦  "; }
.zone-link {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border: 4px solid var(--ink);
  border-radius: var(--wobble-alt);
  background: var(--zone-wash);
  font-weight: 800;
  text-decoration: none;
}
.zone-link:hover { transform: rotate(-1.5deg); }

/* ── Guide ─────────────────────────────────────────── */
.guide-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.guide-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 26px;
  border: 5px solid var(--step-ink);
  border-radius: var(--wobble-alt);
  background: var(--paper);
  box-shadow: 6px 7px 0 var(--step-shadow);
}
.guide-step:nth-child(odd) { border-radius: var(--wobble); transform: rotate(-.6deg); }
.guide-step:nth-child(even) { transform: rotate(.6deg); }
.guide-step-1 { --step-ink: var(--orange); --step-shadow: rgba(249, 115, 22, .25); --step-wash: #FFEDD5; --step-deep: var(--orange-deep); }
.guide-step-2 { --step-ink: var(--green); --step-shadow: rgba(34, 197, 94, .25); --step-wash: #DCFCE7; --step-deep: var(--green-deep); }
.guide-step-3 { --step-ink: var(--blue); --step-shadow: rgba(59, 130, 246, .25); --step-wash: #DBEAFE; --step-deep: var(--blue-deep); }
.guide-step-4 { --step-ink: var(--purple); --step-shadow: rgba(168, 85, 247, .25); --step-wash: #F3E8FF; --step-deep: var(--purple-deep); }
.guide-art {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--wobble);
  background: var(--step-wash);
}
.guide-art img { width: 84px; height: 84px; }
.step-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border: 4px solid var(--ink);
  border-radius: 52% 48% 55% 45% / 47% 55% 45% 53%;
  background: var(--yellow);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-6deg);
}
.guide-step h3 { font-size: 21px; font-weight: 900; color: var(--step-deep); }
.guide-step p { margin: 0; color: var(--ink-soft); font-size: 17px; }
.guide-step strong { color: var(--ink); }
.guide-cta {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  margin-top: 40px;
  padding: 0 32px;
  border: 5px solid var(--ink);
  border-radius: var(--wobble);
  background: var(--yellow);
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 6px 7px 0 var(--ink);
}
.guide-cta:hover { transform: rotate(-1.5deg); }

/* ── Footer ────────────────────────────────────────── */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1240px;
  margin: 24px auto 0;
  padding: 28px var(--edge) 40px;
  border-top: 4px dashed rgba(31, 41, 55, .25);
  color: var(--ink-soft);
  font-size: 16px;
}
.foot p { margin: 0; }
.foot a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 800; color: var(--ink); }

/* ── Tablet ────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .cta, .facts { justify-content: center; }
  .hero-art { max-width: 760px; margin: 0 auto; }
  .zone-list { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin-inline: auto; }
}

/* ── Phone ─────────────────────────────────────────── */
@media (max-width: 599px) {
  body { font-size: 17px; }
  .top { flex-wrap: wrap; row-gap: 8px; padding-block: 14px; }
  .brand-name { font-size: 24px; }
  .hero { gap: 28px; padding-bottom: 40px; }
  .lead { font-size: 18px; }
  .cta { flex-direction: column; }
  .cta a { justify-content: center; width: 100%; }
  .cta-main { padding: 16px 20px; }
  .cta-main img { width: 72px; height: 72px; }
  .cta-profile { min-height: 96px; }
  .hero-art, .frame { transform: none; }
  .frame { padding: 10px; border-width: 5px; }
  .zone, .guide-step { transform: none !important; }
  .top-guide { padding: 0 8px; }
  .top-play { padding: 0 16px; }
  .guide-list { grid-template-columns: 1fr; gap: 24px; }
  .guide-cta { justify-content: center; width: 100%; padding: 0 16px; font-size: 20px; }
  .foot { justify-content: center; text-align: center; }
}
