:root {
  color-scheme: light;
  --paper: #F6EFE2;
  --ink: #2B2A33;
  --soft: #6E6873;
  --white: #FFFDF8;
  --coral: #E07A5F;
  --teal: #5BB5A2;
  --yellow: #F2C14E;
  --blue: #6C9BD2;
  --sky: #DCEBFA;
  --purple: #9D8BD6;
  --shadow: 5px 6px 0 rgba(43, 42, 51, 0.14);
  --sketch: 18px 24px 16px 22px / 22px 16px 24px 18px;
  font-family: "LXGW WenKai", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.75;
  background-image: radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.55), transparent 60%);
}

a { color: inherit; text-decoration-color: var(--coral); text-underline-offset: 4px; }
code {
  font-family: "LXGW WenKai Mono", ui-monospace, monospace;
  background: rgba(43, 42, 51, 0.07);
  padding: 0 6px;
  border-radius: 6px;
  font-size: 0.92em;
}

.wrap { max-width: 1120px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
section { margin: 96px auto; }

h1, h2, h3 { line-height: 1.25; margin: 0; }
h2 {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 32px;
  display: inline-block;
  background: linear-gradient(transparent 62%, rgba(242, 193, 78, 0.55) 62%);
  padding: 0 6px;
}
h3 { font-size: 23px; margin-bottom: 8px; }

/* ---------- nav ---------- */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
  flex-wrap: wrap;
}
.logo { font-weight: 700; font-size: 24px; text-decoration: none; }
.nav nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav nav a { text-decoration: none; color: var(--soft); }
.nav nav a:hover { color: var(--ink); }

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

.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
}
.eyebrow { color: var(--soft); margin: 0 0 8px; letter-spacing: 0.05em; }
h1 { font-size: clamp(56px, 9vw, 104px); }
.lead { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; margin: 16px 0; }
.mark { white-space: nowrap; background: linear-gradient(transparent 60%, rgba(224, 122, 95, 0.35) 60%); }
.sub { color: var(--soft); max-width: 36em; }
.actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-block;
  padding: 10px 26px;
  font-weight: 700;
  text-decoration: none;
  border: 3px solid var(--ink);
  border-radius: var(--sketch);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 8px 0 rgba(43, 42, 51, 0.18); }
.btn.primary { background: var(--coral); color: var(--white); }

.hero-art { text-align: center; }
#mascot { width: 100%; max-width: 360px; aspect-ratio: 1; cursor: pointer; }
.hint { color: var(--soft); font-size: 15px; margin: 0; }

/* ---------- video ---------- */

.video-block video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: var(--sketch);
  box-shadow: var(--shadow);
}

/* ---------- cards ---------- */

.grid { display: grid; gap: 24px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--sketch);
  box-shadow: var(--shadow);
  padding: 24px 26px;
}
.card p { margin: 0; color: var(--soft); }
.card:nth-child(3n + 2) { transform: rotate(0.4deg); }
.card:nth-child(3n) { transform: rotate(-0.4deg); }

.num {
  position: absolute;
  top: -18px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--coral);
  color: var(--white);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.num + h3 { margin-top: 10px; }

.step { border-top-width: 12px; }
.step.teal { border-top-color: var(--teal); }
.step.blue { border-top-color: var(--blue); }
.step.purple { border-top-color: var(--purple); }
.badge { display: inline-block; font-weight: 700; color: var(--coral); margin-bottom: 4px; }

.flow {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.flow li {
  position: relative;
  padding: 4px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--sky);
}
.flow li:not(:last-child) { margin-right: 26px; }
.flow li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -28px;
  color: var(--soft);
}

/* ---------- daily ---------- */

.section-lead { margin: -12px 0 28px; color: var(--soft); }
.say {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}
.say p { margin: 0; color: var(--soft); }
.say .bubble {
  align-self: flex-start;
  color: var(--ink);
  font-weight: 700;
  background: var(--sky);
  border: 3px solid var(--ink);
  border-radius: 20px 20px 20px 6px;
  padding: 6px 18px;
  box-shadow: 3px 4px 0 rgba(43, 42, 51, 0.12);
}

/* ---------- install ---------- */

.install { padding-left: 1.4em; margin: 0; }
.install li { margin-bottom: 20px; }
.install li::marker { font-weight: 700; color: var(--coral); }
.install p { margin: 0 0 8px; }
.code {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  padding: 12px 12px 12px 20px;
  box-shadow: var(--shadow);
}
.code code {
  flex: 1;
  background: none;
  padding: 0;
  overflow-x: auto;
  white-space: nowrap;
}
.copy {
  font: inherit;
  font-size: 15px;
  border: 0;
  border-radius: 8px;
  padding: 4px 12px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.more { color: var(--soft); }

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

.footer {
  margin-top: 96px;
  border-top: 2px dashed rgba(43, 42, 51, 0.25);
  padding-top: 24px;
  padding-bottom: 48px;
  color: var(--soft);
  font-size: 15px;
}
.footer p { margin: 4px 0; }

/* ---------- small screens ---------- */

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; margin-top: 8px; }
  .hero-art { order: -1; }
  #mascot { max-width: 220px; }
  .grid.three, .grid.two { grid-template-columns: 1fr; }
  section { margin: 64px auto; }
  .nav nav { gap: 14px; font-size: 16px; }
}

@media (max-width: 480px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .flow li:not(:last-child)::after { content: none; }
  .flow li:not(:last-child) { margin-right: 0; }
}
