:root {
  --mist: #F6F4FF;
  --white: #FFFFFF;
  --violet: #5B4DFF;
  --pink: #FF77B0;
  --pink-deep: #C92F70;
  --mint: #C8F4E4;
  --ink: #101014;
  --muted: #5D5878;
  --line: #DFD9F6;
  --line-strong: #C9C0F0;
  --radius: 20px;
  --shadow: 0 14px 34px rgba(52, 38, 130, 0.09);
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", "Consolas", "SFMono-Regular", "Liberation Mono", "Courier New", monospace;
}

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

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

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background-color: var(--mist);
  background-image:
    radial-gradient(circle at 83% 3%, rgba(255, 119, 176, 0.18), transparent 27rem),
    radial-gradient(circle at 4% 42%, rgba(200, 244, 228, 0.55), transparent 24rem),
    linear-gradient(rgba(91, 77, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 77, 255, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.09em;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

.skip {
  position: absolute;
  top: -70px;
  left: 18px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  transition: top 0.16s ease;
}

.skip:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}

.site-foot :focus-visible {
  outline-color: var(--pink);
}

::selection {
  background: var(--pink);
  color: var(--ink);
}

section[id],
article[id] {
  scroll-margin-top: 92px;
}

/* Header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.head-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-width: 0;
}

.brand-logo {
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid rgba(16, 16, 20, 0.14);
  border-radius: 10px;
  object-fit: cover;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.16s ease, color 0.16s ease;
}

.nav a:hover {
  background: var(--mist);
  color: var(--ink);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn-pink {
  background: var(--pink);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--violet);
}

.btn-pink:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--violet);
}

.btn-pink:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--violet);
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--line-strong);
}

.btn-ghost:hover {
  background: var(--mint);
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--line-strong);
}

.btn-head {
  height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-lg {
  height: 54px;
  padding: 0 24px;
  font-size: 16px;
}

.menu {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}

.menu-bar {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.menu[aria-expanded="true"] .menu-bar:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  padding: 58px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 52px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-title {
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero-brand {
  display: block;
  margin-bottom: 13px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-l1,
.hero-l2 {
  display: block;
}

.hero-l2 {
  color: var(--violet);
}

.hero-lead {
  max-width: 31em;
  margin-top: 24px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.hero-visual::before {
  content: "";
  position: absolute;
  top: -22px;
  right: -6px;
  width: 178px;
  height: 178px;
  border-radius: 50%;
  background: var(--pink);
  opacity: 0.3;
}

.hero-visual::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 0;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(16, 16, 20, 0.18);
  border-radius: 24px;
  background: var(--mint);
  transform: rotate(-9deg);
}

.board {
  position: relative;
  z-index: 1;
  width: min(100%, 370px);
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: var(--violet);
  box-shadow: 10px 10px 0 var(--pink);
}

.board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--white);
}

.board-code {
  color: rgba(255, 255, 255, 0.78);
  font-size: 9.5px;
}

.board-tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tile {
  min-width: 0;
  padding: 5px 5px 6px;
  border-radius: 12px;
  background: var(--white);
}

.tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 8px;
  background: #EAE7FF;
}

.tile figcaption {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 5px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.tile .mono {
  color: var(--violet);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.board-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
}

.board-foot .mono {
  font-size: 8.5px;
}

.channel-bar {
  display: grid;
  grid-template-columns: auto repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 54px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.channel-label {
  display: flex;
  align-items: center;
  padding: 15px 18px;
  background: var(--white);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.channel-bar a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 15px 18px;
  background: var(--white);
  font-size: 13.5px;
  font-weight: 700;
  transition: background 0.16s ease;
}

.channel-bar a .mono {
  color: var(--violet);
  font-size: 9.5px;
}

.channel-bar a:hover {
  background: var(--mist);
}

.channel-bar a:hover .mono {
  color: var(--pink-deep);
}

/* Shared section head */

.section {
  padding: 96px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 40px;
  align-items: end;
  margin-bottom: 42px;
}

.sec-code {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--violet);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
}

.sec-code::before {
  content: "";
  width: 26px;
  height: 2px;
  flex: none;
  background: var(--pink);
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.18;
}

.br-narrow {
  display: none;
}

@media (max-width: 350px) {
  .br-narrow {
    display: inline;
  }
}

.section-head > p {
  max-width: 38em;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.78;
}

/* Panels */

.panels {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.panel {
  min-width: 0;
  padding-top: 14px;
  border-top: 2px solid var(--tone);
}

.panel-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.panel-code {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--tint);
  color: var(--tone-text);
  font-size: 9px;
  font-weight: 700;
}

.panel-no {
  color: var(--muted);
  font-size: 9.5px;
}

.panel-media {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 18px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--tint);
  box-shadow: 7px 7px 0 var(--tint-strong);
}

.panel-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.panel h3 {
  font-size: 23px;
  line-height: 1.25;
}

.panel-copy > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.72;
}

.panel-use {
  display: grid;
  gap: 6px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px dashed var(--line-strong);
}

.panel-use li {
  position: relative;
  padding-left: 14px;
  font-size: 12.5px;
  line-height: 1.55;
}

.panel-use li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--tone);
}

.tone-violet {
  --tone: #5B4DFF;
  --tone-text: #4A3BDB;
  --tint: #EEEBFF;
  --tint-strong: #D8D1FF;
}

.tone-pink {
  --tone: #FF77B0;
  --tone-text: #C92F70;
  --tint: #FFE9F2;
  --tint-strong: #FFD1E2;
}

.tone-mint {
  --tone: #57CFA9;
  --tone-text: #1C7A5E;
  --tint: #DDFBF0;
  --tint-strong: #B8EEDC;
}

.tone-ink {
  --tone: #101014;
  --tone-text: #101014;
  --tint: #EFEDF6;
  --tint-strong: #DBD7E7;
}

/* Shelf */

.shelf-board {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.shelf-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.shelf-rail .mono {
  color: var(--violet);
  font-size: 9.5px;
}

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 26px;
}

.book {
  min-width: 0;
  --book-tone: #5B4DFF;
}

.book-violet {
  --book-tone: #5B4DFF;
}

.book-pink {
  --book-tone: #FF77B0;
}

.book-mint {
  --book-tone: #57CFA9;
}

.book-ink {
  --book-tone: #101014;
}

.book-cover {
  overflow: hidden;
  margin: 0 7px 10px 0;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--mist);
  box-shadow: 7px 7px 0 var(--book-tone);
}

.book-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.book-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
}

.book-no {
  color: var(--muted);
  font-size: 9px;
}

.book-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
}

.book-type::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--book-tone);
}

.book h3 {
  margin-top: 5px;
  font-size: 17px;
  line-height: 1.32;
}

.book p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.62;
}

/* Reader */

.reader {
  border-top: 1px solid #26262F;
  border-bottom: 1px solid #26262F;
  background-color: #101014;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.038) 1px, transparent 1px),
    radial-gradient(circle at 83% 10%, rgba(255, 119, 176, 0.18), transparent 26rem);
  background-size: 32px 32px, 32px 32px, auto;
  color: var(--mist);
}

.reader-grid {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.reader-media {
  min-width: 0;
}

.reader-frame {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: #17171F;
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.38);
}

.reader-frame img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.reader-media figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.reader-media figcaption .mono {
  color: var(--pink);
  font-size: 9px;
}

.reader-copy {
  min-width: 0;
}

.sec-code-light {
  color: var(--pink);
}

.reader-copy h2 {
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.18;
}

.reader-lead {
  max-width: 40em;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 15px;
  line-height: 1.8;
}

.read-notes {
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.read-notes li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.read-notes .mono {
  padding-top: 3px;
  color: var(--pink);
  font-size: 9.5px;
}

.read-notes h3 {
  margin-bottom: 3px;
  font-size: 15px;
  font-weight: 800;
}

.read-notes p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.65;
}

.read-progress {
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.read-progress-top,
.read-progress-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10.5px;
}

.read-progress-top {
  margin-bottom: 10px;
}

.read-progress-top .mono {
  color: rgba(255, 255, 255, 0.4);
  font-size: 8.5px;
}

.read-progress-bottom {
  margin-top: 9px;
}

.read-track {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.read-fill {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--pink));
}

.read-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0 7.5%, rgba(16, 16, 20, 0.62) 7.5% 8.333%);
}

/* Download */

.download {
  padding-bottom: 104px;
}

.dl-head {
  max-width: 660px;
  margin-inline: auto;
  text-align: center;
}

.dl-head .sec-code {
  justify-content: center;
}

.dl-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
}

.dl-head > p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.dl-bay {
  margin-top: 34px;
  padding: 18px;
  border: 1px solid #9EDFC9;
  border-radius: 24px;
  background: var(--mint);
  box-shadow: 0 20px 44px rgba(28, 122, 94, 0.12);
}

.dl-bay:not(:has(.dl-card:not([hidden]))) {
  display: none;
}

.download:not(:has(.dl-card:not([hidden]))) .dl-head > p {
  display: none;
}

.dl-bay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 8px 14px;
  color: #1C6B55;
}

.dl-bay-top .mono {
  font-size: 9px;
  letter-spacing: 0.14em;
}

.dl-lights {
  display: flex;
  gap: 5px;
}

.dl-lights i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1C6B55;
  opacity: 0.34;
}

.dl-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.dl-card {
  width: 100%;
  max-width: 340px;
  flex: 1 1 210px;
  position: relative;
  min-height: 218px;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 5px 5px 0 rgba(16, 16, 20, 0.16);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.dl-card:not([hidden]) {
  display: flex;
  flex-direction: column;
}

.dl-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(16, 16, 20, 0.16);
}

.dl-code {
  color: var(--muted);
  font-size: 8.5px;
}

.dl-card h3 {
  margin-top: 13px;
  font-size: 27px;
  line-height: 1.1;
}

.dl-desc {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.dl-go {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--violet);
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
}

.dl-android {
  background: var(--violet);
  color: var(--white);
}

.dl-android .dl-code,
.dl-android .dl-desc {
  color: rgba(255, 255, 255, 0.82);
}

.dl-android .dl-go {
  background: var(--white);
  color: var(--violet);
}

.dl-ios {
  background: #FFE9F2;
}

.dl-ios .dl-go {
  background: var(--pink);
  color: var(--ink);
}

/* Footer */

.site-foot {
  padding-top: 64px;
  border-top: 6px solid var(--violet);
  background: var(--ink);
  color: var(--mist);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.foot-brand {
  min-width: 0;
}

.brand-foot .brand-logo {
  width: 44px;
  height: 44px;
  border-color: rgba(255, 255, 255, 0.2);
}

.brand-foot .brand-name {
  font-size: 18px;
}

.foot-brand > p {
  max-width: 34em;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.78;
}

.foot-domain {
  font-size: 10.5px;
}

.foot-brand > .foot-domain {
  color: var(--pink);
}

.foot-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.foot-title {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.foot-col a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.16s ease;
}

.foot-col a:hover {
  color: var(--pink);
}

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
}

.foot-bottom .mono {
  font-size: 9px;
}

/* 404 */

.page-404 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.head-slim .head-inner {
  justify-content: space-between;
}

.notfound {
  display: flex;
  flex: 1;
  align-items: center;
  padding: 76px 0 96px;
}

.nf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.nf-copy {
  min-width: 0;
}

.nf-copy h1 {
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.12;
}

.nf-copy > p {
  max-width: 30em;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.8;
}

.nf-copy .btn {
  margin-top: 28px;
}

.nf-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 380px);
  margin-inline: auto;
}

.nf-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--white);
  font-weight: 800;
}

.nf-cell-a {
  background: var(--violet);
  color: var(--white);
  box-shadow: 8px 8px 0 var(--pink);
  font-family: var(--mono);
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: -0.06em;
}

.nf-cell-b {
  background: var(--pink);
}

.nf-cell-c {
  background: var(--mint);
}

.nf-cell-b::before {
  content: "";
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
}

.nf-cell-c::before {
  content: "";
  width: 40%;
  aspect-ratio: 1;
  background: var(--violet);
}

.nf-cell-d {
  background-color: var(--white);
  background-image:
    linear-gradient(rgba(91, 77, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 77, 255, 0.22) 1px, transparent 1px);
  background-size: 14px 14px;
}

.foot-slim {
  padding: 22px 0;
  border-top-width: 4px;
}

.foot-slim-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.foot-slim-inner .mono {
  font-size: 9px;
}

/* Responsive */

@media (max-width: 1120px) {
  .hero-grid {
    gap: 38px;
  }

  .board {
    width: min(100%, 350px);
  }

  .panel-grid {
    gap: 22px;
  }

  .reader-grid {
    gap: 44px;
  }
}

@media (max-width: 980px) {
  .menu {
    display: flex;
  }

  .nav {
    display: none;
  }

  .nav.is-open {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px 14px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 20px 32px rgba(52, 38, 130, 0.12);
  }

  .nav.is-open a {
    padding: 13px 12px;
    border-radius: 10px;
    font-size: 15px;
  }

  .head-actions {
    margin-left: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero-visual {
    justify-content: center;
  }

  .hero-visual::before {
    right: auto;
    left: calc(50% + 64px);
  }

  .board {
    width: min(100%, 380px);
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 34px;
  }

  .reader-grid {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 34px;
  }

  .reader-media {
    width: 100%;
    margin-inline: 0;
  }

  .foot-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }

  .nf-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .nf-board {
    margin-inline: 0;
  }
}

@media (max-width: 900px) {
  .panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 28px;
  }

  .panel-media {
    margin-bottom: 16px;
  }

  .shelf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
  }
}

@media (max-width: 720px) {
  .container {
    padding-inline: 20px;
  }

  .reader-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .reader-media {
    width: min(100%, 340px);
    margin-inline: auto;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-visual {
    justify-content: center;
  }

  .hero-visual::before {
    left: auto;
    right: 4px;
    width: 138px;
    height: 138px;
  }

  .hero-visual::after {
    width: 74px;
    height: 74px;
    border-radius: 18px;
  }

  .board {
    width: min(100%, 350px);
    box-shadow: 8px 8px 0 var(--pink);
  }

  .channel-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 38px;
  }

  .channel-label {
    grid-column: 1 / -1;
    padding: 12px 16px;
  }

  .section {
    padding: 72px 0;
  }

  .section-head h2 {
    font-size: clamp(27px, 6vw, 36px);
  }

  .panel-grid {
    gap: 30px 22px;
  }

  .panel h3 {
    font-size: 21px;
  }

  .panel-copy > p {
    font-size: 13px;
  }

  .shelf-board {
    padding: 20px;
  }

  .shelf-rail {
    margin-bottom: 20px;
  }

  .download {
    padding-bottom: 80px;
  }

  .dl-bay {
    padding: 14px;
    border-radius: 22px;
  }

  .site-foot {
    padding-top: 48px;
  }

  .foot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 24px;
    padding-bottom: 38px;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }

  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .notfound {
    padding: 52px 0 72px;
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 16px;
  }

  .btn-head {
    height: 38px;
    padding: 0 14px;
    font-size: 13px;
    box-shadow: 3px 3px 0 var(--violet);
  }

  .cta-app {
    display: none;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn-lg {
    height: 50px;
    padding: 0 18px;
    font-size: 14.5px;
  }

  .panel-grid {
    gap: 28px 18px;
  }

  .panel-media {
    max-width: 100%;
    box-shadow: 5px 5px 0 var(--tint-strong);
  }

  .panel h3 {
    font-size: 19px;
  }

  .panel-copy > p {
    font-size: 12.5px;
    line-height: 1.65;
  }

  .panel-use {
    margin-top: 10px;
    padding-top: 9px;
  }

  .panel-use li {
    padding-left: 12px;
    font-size: 11.5px;
  }

  .shelf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }

  .shelf-board {
    padding: 16px;
    border-radius: 20px;
  }

  .book h3 {
    font-size: 15px;
  }

  .book p {
    font-size: 11.5px;
  }

  .book-cover {
    box-shadow: 5px 5px 0 var(--book-tone);
  }

  .reader-copy h2 {
    font-size: 30px;
  }

  .dl-head h2 {
    font-size: 31px;
  }

  .dl-card {
    min-height: 190px;
    flex-basis: 100%;
  }

  .foot-col a {
    font-size: 12.5px;
  }

  .nf-copy h1 {
    font-size: clamp(34px, 9vw, 48px);
  }

  .nf-board {
    width: min(100%, 300px);
  }

  .nf-cell {
    border-radius: 18px;
  }
}

@media (max-width: 420px) {
  .container {
    padding-inline: 18px;
  }

  .head-inner {
    gap: 12px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .brand-name {
    font-size: 15px;
  }

  .head-actions {
    gap: 7px;
  }

  .menu {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .hero-title {
    font-size: clamp(28px, 8.2vw, 36px);
  }

  .hero-brand {
    font-size: 12px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .channel-bar a {
    padding: 12px 13px;
    gap: 7px;
    font-size: 12px;
  }

  .panel-grid {
    gap: 26px 16px;
  }

  .panel-kicker {
    margin-bottom: 10px;
  }

  .panel-code {
    padding: 3px 6px;
    font-size: 8px;
  }

  .panel-no {
    font-size: 8.5px;
  }

  .panel h3 {
    font-size: 18px;
  }

  .panel-copy > p {
    font-size: 12px;
  }

  .panel-use li {
    font-size: 11px;
  }

  .shelf-grid {
    gap: 24px 16px;
  }

  .book-cover {
    margin-right: 5px;
    margin-bottom: 8px;
    box-shadow: 4px 4px 0 var(--book-tone);
  }

  .book-meta {
    gap: 4px;
  }

  .book-no {
    font-size: 8px;
  }

  .book-type {
    gap: 4px;
    font-size: 9.5px;
  }

  .book h3 {
    font-size: 14px;
  }

  .book p {
    font-size: 11px;
  }

  .dl-card {
    padding: 18px;
  }

  .dl-card h3 {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .nav a,
  .menu-bar,
  .skip,
  .channel-bar a,
  .dl-card,
  .foot-col a {
    transition: none;
  }
}