:root {
  --cream: #FFF9F0;
  --paper: #FFFDF8;
  --mint: #DFF7ED;
  --mint-soft: #F1FBF6;
  --coral: #FF7A66;
  --coral-soft: #FFE7E1;
  --lilac: #C8B6FF;
  --lilac-soft: #F0EAFE;
  --ink: #1A1B1E;
  --muted: #64636A;
  --line: rgba(26, 27, 30, .18);
  --line-soft: rgba(26, 27, 30, .09);
  --shadow: 0 24px 48px -28px rgba(26, 27, 30, .42);
  --shadow-soft: 0 16px 34px -22px rgba(26, 27, 30, .3);
  --r-lg: 28px;
  --r-md: 22px;
  --r-sm: 16px;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    linear-gradient(rgba(26, 27, 30, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 27, 30, .032) 1px, transparent 1px);
  background-size: 40px 40px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: clip;
}

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.018em;
}

code {
  font-family: var(--mono);
  font-size: .92em;
  letter-spacing: .01em;
}

.wrap {
  width: min(1160px, calc(100% - 56px));
  margin-inline: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--coral);
}

.eyebrow-swatch {
  width: 12px;
  height: 12px;
  margin-left: 2px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--lilac);
}

.btn {
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.btn:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  color: var(--cream);
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--coral);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--coral);
}

.btn-ghost {
  background: var(--paper);
  box-shadow: 4px 4px 0 rgba(26, 27, 30, .15);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(26, 27, 30, .15);
  background: var(--mint);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 249, 240, .94);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 78px;
  gap: 22px;
}

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

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 4px 0 rgba(26, 27, 30, .12);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.brand-sub {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.4;
}

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

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: background-color .18s ease, color .18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--mint);
}

.nav-download {
  margin-left: 8px;
  color: var(--cream);
  background: var(--ink);
}

.nav-download:hover,
.nav-download:focus-visible {
  color: var(--ink);
  background: var(--coral);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 13px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 800;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  content: "";
}

.menu-lines {
  position: relative;
}

.menu-lines::before {
  position: absolute;
  top: -5px;
}

.menu-lines::after {
  position: absolute;
  top: 5px;
}

/* Hero */
.hero {
  position: relative;
  padding: 60px 0 0;
}

.only-mobile {
  display: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: 44px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 12px;
}

.hero-title {
  max-width: 640px;
  font-size: clamp(42px, 5.2vw, 66px);
  line-height: 1.14;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.hero-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-mark {
  display: inline;
  color: var(--coral);
  background: linear-gradient(180deg, transparent 61%, rgba(200, 182, 255, .6) 61%, rgba(200, 182, 255, .6) 88%, transparent 88%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-lead {
  max-width: 490px;
  margin-top: 22px;
  color: #3f3e44;
  font-size: 16.5px;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* Hero collage */
.hero-collage {
  position: relative;
  z-index: 1;
  height: 540px;
}

.color-card {
  position: absolute;
  top: 54px;
  left: 0;
  z-index: 2;
  width: min(280px, 55%);
  padding: 22px 20px 20px;
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
}

.card-label {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
}

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

.swatch-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.swatch {
  flex: 0 0 auto;
  width: 26px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 7px;
}

.sw-mint { background: var(--mint); }
.sw-coral { background: var(--coral); }
.sw-lilac { background: var(--lilac); }
.sw-cream { background: var(--cream); }
.sw-ink { background: var(--ink); }

.swatch-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.swatch-text b {
  font-size: 12px;
  font-weight: 900;
}

.swatch-text code {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8.5px;
  letter-spacing: .02em;
}

.color-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: #4c4b51;
  font-size: 11.5px;
  line-height: 1.6;
}

.polaroid {
  position: absolute;
  top: 0;
  right: 4px;
  z-index: 3;
  width: min(252px, 48%);
  margin: 0;
  padding: 10px 10px 12px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(3.4deg);
}

.polaroid::before {
  position: absolute;
  inset: 14px -11px -11px 13px;
  z-index: -1;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--mint);
  content: "";
}

.polaroid-frame {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(26, 27, 30, .25);
  border-radius: 10px;
  background: var(--mint);
}

.polaroid-frame img {
  width: 100%;
  height: auto;
}

.polaroid figcaption {
  padding: 8px 2px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .08em;
}

.tape {
  position: absolute;
  background: rgba(200, 182, 255, .72);
  box-shadow: inset 0 0 0 1px rgba(26, 27, 30, .06);
}

.tape-top {
  top: -12px;
  left: 50%;
  width: 78px;
  height: 22px;
  transform: translateX(-50%) rotate(-2deg);
}

.tape-corner {
  top: -11px;
  left: 18px;
  width: 62px;
  height: 20px;
  background: rgba(223, 247, 237, .88);
  transform: rotate(-34deg);
}

.collage-tag {
  position: absolute;
  bottom: 70px;
  left: 34px;
  z-index: 4;
  padding: 8px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--coral);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 12px;
  font-weight: 900;
  transform: rotate(-4deg);
}

.collage-stamp {
  position: absolute;
  right: 38px;
  bottom: 20px;
  z-index: 4;
  display: grid;
  place-content: center;
  width: 86px;
  height: 86px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.45;
  text-align: center;
  transform: rotate(8deg);
}

.collage-stamp b {
  color: var(--coral);
  font-size: 18px;
  line-height: 1.1;
}

/* Bench */
.bench {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 52px;
  padding: 15px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.bench-label {
  padding: 5px 9px;
  border-radius: 5px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
}

.bench ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  min-width: 0;
}

.bench li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #4d4c52;
  font-size: 12.5px;
  font-weight: 700;
}

.bench li::before {
  width: 7px;
  height: 7px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--mint);
  content: "";
}

.bench li:nth-child(2)::before { background: var(--coral); }
.bench li:nth-child(3)::before { background: var(--lilac); }
.bench li:nth-child(4)::before { background: var(--cream); }
.bench li:nth-child(5)::before { background: var(--mint); }
.bench li:nth-child(6)::before { background: var(--coral); }
.bench li:nth-child(7)::before { background: var(--lilac); }

.bench-meta {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
}

/* Section heading */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0 34px;
  margin-bottom: 36px;
}

.section-head .eyebrow {
  grid-column: 1 / -1;
}

.section-head h2 {
  max-width: 760px;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.16;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.section-note {
  max-width: 250px;
  padding: 0 0 6px 14px;
  border-left: 2px solid var(--coral);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* Practice */
.practice {
  margin-top: 76px;
  padding: 86px 0 92px;
  border-top: 1px solid rgba(26, 27, 30, .1);
  border-bottom: 1px solid rgba(26, 27, 30, .1);
  background:
    linear-gradient(rgba(26, 27, 30, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 27, 30, .028) 1px, transparent 1px),
    linear-gradient(180deg, #F3FCF7 0%, #E7F8F0 100%);
  background-size: 28px 28px, 28px 28px, auto;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  padding-top: 8px;
}

.task {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 20px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.task-mint {
  background: var(--mint);
  transform: rotate(-1deg);
}

.task-coral {
  background: var(--coral-soft);
  transform: rotate(.7deg);
}

.task-lilac {
  background: var(--lilac-soft);
  transform: rotate(-.5deg);
}

.task-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 74px;
  height: 21px;
  background: rgba(255, 253, 248, .78);
  box-shadow: inset 0 0 0 1px rgba(26, 27, 30, .07);
  transform: translateX(-50%) rotate(-2deg);
}

.task-coral .task-tape { background: rgba(223, 247, 237, .82); }
.task-lilac .task-tape { background: rgba(255, 231, 225, .86); }

.task-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-no {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.task-kind {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
}

.task-time {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .04em;
}

.task h3 {
  margin: 17px 0 9px;
  font-size: clamp(24px, 2.2vw, 29px);
  letter-spacing: -.025em;
}

.task > p:not(.task-material) {
  color: #3e3d43;
  font-size: 14px;
  line-height: 1.75;
}

.task-steps {
  display: grid;
  gap: 8px;
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px dashed rgba(26, 27, 30, .26);
  counter-reset: task-step;
}

.task-steps li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 7px;
  color: #35343a;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
}

.task-steps li::before {
  padding-top: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  content: counter(task-step, decimal-leading-zero);
  counter-increment: task-step;
}

.task-material {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--muted);
  font-size: 11px;
}

.task-material code {
  color: #49484e;
  font-size: 9.5px;
}

.dot {
  width: 12px;
  height: 12px;
  border: 1px solid var(--ink);
  border-radius: 3px;
}

.dot-mint { background: var(--mint); }
.dot-coral { background: var(--coral); }
.dot-lilac { background: var(--lilac); }

/* Inspiration */
.inspiration {
  padding: 92px 0 96px;
}

.snap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
  padding-top: 10px;
}

.snap {
  position: relative;
  margin: 0;
  padding: 11px 11px 17px;
  border: 1px solid rgba(26, 27, 30, .14);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.snap-new { transform: rotate(-1.3deg); }
.snap-dress { transform: rotate(1.1deg); margin-top: 16px; }
.snap-puzzle { transform: rotate(-.8deg); }
.snap-hot { transform: rotate(1.4deg); margin-top: 16px; }

.snap-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  z-index: 2;
  width: 58px;
  height: 18px;
  background: rgba(223, 247, 237, .84);
  box-shadow: inset 0 0 0 1px rgba(26, 27, 30, .06);
  transform: translateX(-50%) rotate(-2deg);
}

.snap-dress .snap-tape,
.snap-hot .snap-tape {
  background: rgba(200, 182, 255, .66);
}

.snap-photo {
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--mint);
}

.snap-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.snap figcaption {
  position: relative;
  padding: 13px 3px 0;
}

.snap-no {
  position: absolute;
  top: 15px;
  right: 3px;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}

.snap h3 {
  padding-right: 24px;
  font-size: 19px;
  letter-spacing: -.02em;
}

.snap figcaption p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

/* Classroom */
.classroom {
  padding: 6px 0 94px;
}

.classroom-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 292px) minmax(0, 1fr);
  gap: 50px;
  align-items: start;
  padding: 40px;
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  background:
    linear-gradient(rgba(26, 27, 30, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 27, 30, .035) 1px, transparent 1px),
    var(--lilac-soft);
  background-size: 24px 24px, 24px 24px, auto;
  box-shadow: var(--shadow);
}

.reader {
  position: relative;
  align-self: start;
  margin: 0;
  padding: 10px 10px 12px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  transform: rotate(-1.6deg);
}

.reader-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 78px;
  height: 21px;
  background: rgba(255, 249, 240, .88);
  box-shadow: inset 0 0 0 1px rgba(26, 27, 30, .07);
  transform: translateX(-50%) rotate(2deg);
}

.reader img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(26, 27, 30, .2);
  border-radius: 10px;
}

.reader figcaption {
  padding: 9px 2px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
}

.classroom-body {
  min-width: 0;
}

.lesson-list {
  border-top: 2px solid var(--ink);
}

.lesson-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.lesson-no {
  display: grid;
  place-items: center;
  align-self: start;
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.lesson-list h3 {
  font-size: 20px;
  letter-spacing: -.02em;
}

.lesson-list p {
  margin-top: 5px;
  color: #45444a;
  font-size: 13.5px;
  line-height: 1.72;
}

.ruler {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}

.ruler-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ruler-ticks {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding-bottom: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.ruler-ticks::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: repeating-linear-gradient(90deg, rgba(26, 27, 30, .55) 0 1px, transparent 1px 10%);
  content: "";
}

.ruler-bar {
  display: flex;
  height: 34px;
  margin-top: 8px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 9px;
}

.ruler-bar span {
  display: block;
  height: 100%;
}

.ruler-bar span + span {
  border-left: 1px solid rgba(26, 27, 30, .4);
}

.rb-mint { width: 25%; background: var(--mint); }
.rb-cream { width: 14%; background: var(--cream); }
.rb-lilac { width: 25%; background: var(--lilac); }
.rb-coral { width: 22%; background: var(--coral); }
.rb-ink { width: 14%; background: var(--ink); }

.ruler-labels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 8px;
  text-align: center;
}

.ruler-labels li {
  min-width: 0;
}

.ruler-labels b {
  display: block;
  font-size: 10px;
  line-height: 1.5;
}

.ruler-labels code {
  display: block;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

/* Categories */
.categories {
  padding: 0 0 96px;
}

.drawers {
  display: grid;
  gap: 18px;
}

.drawer {
  position: relative;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) 196px;
  gap: 26px;
  align-items: center;
  padding: 24px 26px;
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.drawer-handle {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 58px;
  height: 5px;
  border-radius: 999px;
  background: rgba(26, 27, 30, .18);
  transform: translateX(-50%);
}

.drawer-label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
}

.drawer-num {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--mint);
  color: #333238;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}

.drawer:nth-child(2) .drawer-num { background: var(--coral-soft); }
.drawer:nth-child(3) .drawer-num { background: var(--lilac-soft); }

.drawer-label h3 {
  font-size: 24px;
  letter-spacing: -.03em;
}

.drawer-label p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.chip-list li::before {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--lilac);
  content: "";
}

.chip-list li:nth-child(2n)::before { background: var(--mint); }
.chip-list li:nth-child(3n)::before { background: var(--coral); }

.drawer-cards {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.drawer-cards figure {
  width: 82px;
  margin: 0;
  transform: rotate(-2deg);
}

.drawer-cards figure:nth-child(2) {
  transform: rotate(2deg);
}

.drawer-cards img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  box-shadow: 2px 3px 0 rgba(26, 27, 30, .14);
}

.drawer-cards figcaption {
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Download */
.download {
  padding: 0 0 98px;
}

.download-board {
  position: relative;
  padding: 50px 52px 44px;
  border: 2px solid var(--ink);
  border-radius: 30px;
  background:
    linear-gradient(rgba(26, 27, 30, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 27, 30, .032) 1px, transparent 1px),
    var(--paper);
  background-size: 26px 26px, 26px 26px, auto;
  box-shadow: var(--shadow);
}

.board-tape {
  position: absolute;
  top: -12px;
  left: 52px;
  width: 94px;
  height: 23px;
  background: rgba(200, 182, 255, .7);
  box-shadow: inset 0 0 0 1px rgba(26, 27, 30, .06);
  transform: rotate(-2deg);
}

.download-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  gap: 0 36px;
  align-items: end;
  margin-bottom: 34px;
}

.download-head .eyebrow {
  grid-column: 1 / -1;
}

.download-head h2 {
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.download-head > p:last-child {
  padding-bottom: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.dl-card {
  position: relative;
  flex: 1 1 250px;
  max-width: 400px;
  padding: 22px 20px;
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  color: var(--ink);
  box-shadow: 0 6px 0 rgba(26, 27, 30, .13);
  transition: transform .18s ease, box-shadow .18s ease;
}

.dl-card:not([hidden]) {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 28px;
  gap: 15px;
  align-items: center;
}

.dl-netdisk { background: var(--mint); }
.dl-android { background: var(--coral-soft); }
.dl-ios { background: var(--lilac-soft); }

.dl-card:hover,
.dl-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 rgba(26, 27, 30, .13);
}

.dl-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--ink);
  border-radius: 15px;
  background: var(--paper);
}

.dl-icon svg {
  width: 26px;
  height: 26px;
}

.dl-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dl-channel {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.4;
}

.dl-copy strong {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.dl-desc {
  margin-top: 2px;
  color: #4b4a50;
  font-size: 11.5px;
  line-height: 1.5;
}

.dl-arrow {
  display: grid;
  place-items: center;
  justify-self: end;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-size: 14px;
  font-weight: 900;
  transition: background-color .18s ease, color .18s ease;
}

.dl-card:hover .dl-arrow,
.dl-card:focus-visible .dl-arrow {
  background: var(--coral);
  color: var(--ink);
}

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

.download-board:not(:has(.dl-card:not([hidden]))) {
  padding-bottom: 46px;
}

.download-board:not(:has(.dl-card:not([hidden]))) .download-head {
  margin-bottom: 0;
}

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

.dl-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--cream);
}

.footer-strip {
  display: flex;
  height: 8px;
}

.footer-strip span {
  flex: 1;
}

.fs-mint { background: var(--mint); }
.fs-coral { background: var(--coral); }
.fs-lilac { background: var(--lilac); }
.fs-cream { background: var(--cream); }
.fs-ink { background: #35363b; }

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, .75fr));
  gap: 44px;
  padding: 56px 0 42px;
}

.brand-footer {
  margin-bottom: 18px;
}

.brand-footer .brand-name {
  color: var(--cream);
}

.brand-footer .brand-sub {
  color: rgba(255, 249, 240, .62);
}

.footer-brand p {
  max-width: 320px;
  color: rgba(255, 249, 240, .65);
  font-size: 13px;
  line-height: 1.75;
}

.footer-col h2 {
  margin-bottom: 14px;
  color: var(--lilac);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 249, 240, .74);
  font-size: 13px;
  line-height: 1.7;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--mint);
}

.footer-col p.footer-domain {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .02em;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 249, 240, .16);
  color: rgba(255, 249, 240, .5);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .03em;
}

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

body.page-404 main {
  flex: 1 0 auto;
}

body.page-404 .site-footer {
  flex: 0 0 auto;
}

.notfound {
  padding: 88px 0 110px;
}

.notfound-board {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding: 52px 44px 46px;
  border: 2px solid var(--ink);
  border-radius: 30px;
  background:
    linear-gradient(rgba(26, 27, 30, .034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 27, 30, .034) 1px, transparent 1px),
    var(--paper);
  background-size: 26px 26px, 26px 26px, auto;
  box-shadow: var(--shadow);
  text-align: center;
}

.notfound-board .eyebrow {
  justify-content: center;
}

.notfound-code {
  margin: 4px 0 12px;
  color: var(--lilac);
  font-family: var(--sans);
  font-size: clamp(74px, 15vw, 148px);
  font-weight: 900;
  letter-spacing: -.08em;
  line-height: .95;
  text-shadow: 6px 6px 0 var(--ink);
}

.notfound h1 {
  font-size: clamp(32px, 4.8vw, 52px);
  letter-spacing: -.035em;
  text-wrap: balance;
}

.notfound-board > p:not(.eyebrow):not(.notfound-code) {
  max-width: 440px;
  margin: 16px auto 28px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.notfound-swatches {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 32px;
}

.notfound-swatches span {
  display: block;
  width: 34px;
  height: 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}

.footer-slim {
  margin-top: 0;
}

.footer-slim .footer-bottom {
  border-top: 0;
  padding: 22px 0 26px;
}

.nav-link.header-home {
  margin-left: auto;
}

/* Responsive */
@media (max-width: 1180px) {
  .hero-grid {
    gap: 30px;
  }

  .hero-collage {
    height: 510px;
  }

  .collage-tag {
    bottom: 62px;
    left: 22px;
  }

  .collage-stamp {
    right: 24px;
    bottom: 12px;
    width: 78px;
    height: 78px;
  }

  .drawer {
    grid-template-columns: 136px minmax(0, 1fr) 180px;
    gap: 20px;
  }
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 72px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 71px;
    right: 24px;
    left: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-left: 0;
    padding: 12px;
    border: 2px solid var(--ink);
    border-radius: 22px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 11px 14px;
    border-radius: 12px;
  }

  .nav-download {
    margin-left: 0;
    text-align: center;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

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

  .hero-collage {
    width: min(520px, 100%);
    height: 530px;
    margin-inline: auto;
  }

  .bench {
    margin-top: 38px;
  }

  .task-grid {
    gap: 20px;
  }

  .task {
    padding: 22px 18px 18px;
  }

  .snap-grid {
    gap: 22px;
  }

  .classroom-board {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 32px;
    padding: 30px;
  }

  .drawer {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 16px 20px;
  }

  .drawer-cards {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
  }

  .download-board {
    padding: 44px 38px 38px;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, .8fr));
    gap: 30px;
  }
}

@media (max-width: 820px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .section-head .eyebrow {
    grid-column: auto;
    margin-bottom: 0;
  }

  .section-note {
    max-width: 420px;
    padding-bottom: 0;
  }

  .practice {
    margin-top: 60px;
    padding: 78px 0 84px;
  }

  .task-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .task-mint,
  .task-coral,
  .task-lilac {
    transform: none;
  }

  .inspiration {
    padding: 84px 0 90px;
  }

  .snap-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .classroom {
    padding-bottom: 90px;
  }

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

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

  .download-board {
    padding: 40px 26px 32px;
  }

  .download-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .download-head .eyebrow {
    grid-column: auto;
  }

  .download-head > p:last-child {
    max-width: 420px;
    padding-bottom: 0;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 28px;
    padding: 46px 0 34px;
  }

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

  .footer-brand p {
    max-width: 440px;
  }
}

@media (max-width: 700px) {
  .snap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }

  .snap-dress,
  .snap-hot {
    margin-top: 14px;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: 66px;
    gap: 12px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

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

  .brand-sub {
    font-size: 9px;
  }

  .menu-toggle {
    padding: 8px 11px;
    font-size: 12px;
  }

  .site-nav {
    top: 65px;
    right: 16px;
    left: 16px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-title {
    font-size: clamp(33px, 10.4vw, 50px);
  }

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

  .hero-actions {
    gap: 11px;
    margin-top: 24px;
  }

  .btn {
    padding: 12px 18px;
    font-size: 14px;
  }

  .hero-collage {
    height: 440px;
  }

  .color-card {
    top: 0;
    width: min(270px, 52%);
    padding: 18px 16px 16px;
    border-radius: 22px;
  }

  .card-label {
    margin-bottom: 11px;
    font-size: 8.5px;
  }

  .swatch-list {
    gap: 8px;
  }

  .swatch {
    width: 22px;
    height: 34px;
  }

  .swatch-text b {
    font-size: 11px;
  }

  .swatch-text code {
    font-size: 8px;
  }

  .color-note {
    margin-top: 12px;
    padding-top: 10px;
    font-size: 10.5px;
  }

  .polaroid {
    top: 36px;
    right: 8px;
    width: min(230px, 47%);
    border-radius: 16px;
  }

  .polaroid::before {
    inset: 10px -8px -8px 10px;
  }

  .polaroid figcaption {
    font-size: 8px;
  }

  .collage-tag {
    bottom: 48px;
    left: 8px;
    font-size: 11px;
  }

  .collage-stamp {
    right: 12px;
    bottom: 6px;
    width: 68px;
    height: 68px;
    font-size: 7px;
  }

  .collage-stamp b {
    font-size: 15px;
  }

  .bench {
    margin-top: 28px;
    gap: 8px 12px;
    padding: 13px 0;
  }

  .bench ul {
    gap: 6px 12px;
  }

  .bench li {
    font-size: 11.5px;
  }

  .bench-meta {
    display: none;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-head h2 {
    font-size: clamp(28px, 8.2vw, 38px);
  }

  .practice {
    padding: 64px 0 70px;
  }

  .task {
    padding: 22px 18px 18px;
  }

  .task h3 {
    font-size: 25px;
  }

  .task > p:not(.task-material) {
    font-size: 13.5px;
  }

  .task-steps {
    margin-top: 14px;
  }

  .task-steps li {
    font-size: 12px;
  }

  .inspiration {
    padding: 68px 0 74px;
  }

  .snap-grid {
    padding-top: 6px;
  }

  .snap {
    padding: 8px 8px 13px;
    border-radius: 15px;
  }

  .snap-new,
  .snap-dress,
  .snap-puzzle,
  .snap-hot {
    transform: none;
  }

  .snap-dress,
  .snap-hot {
    margin-top: 0;
  }

  .snap-photo {
    border-radius: 10px;
  }

  .snap figcaption {
    padding-top: 10px;
  }

  .snap h3 {
    font-size: 17px;
  }

  .snap figcaption p {
    font-size: 11px;
  }

  .classroom {
    padding-bottom: 74px;
  }

  .classroom-board {
    gap: 26px;
    padding: 24px 18px;
    border-radius: 24px;
  }

  .reader {
    padding: 8px 8px 10px;
    transform: none;
  }

  .lesson-list li {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 15px 0;
  }

  .lesson-no {
    width: 32px;
    height: 32px;
    font-size: 9px;
  }

  .lesson-list h3 {
    font-size: 18px;
  }

  .lesson-list p {
    font-size: 12.5px;
  }

  .ruler {
    margin-top: 22px;
  }

  .ruler-bar {
    height: 28px;
  }

  .ruler-labels code {
    font-size: 7px;
  }

  .categories {
    padding-bottom: 74px;
  }

  .drawer {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 22px 18px;
  }

  .drawer-cards {
    grid-column: auto;
    padding-top: 12px;
  }

  .drawer-cards figure {
    width: 76px;
  }

  .download {
    padding-bottom: 78px;
  }

  .download-board {
    padding: 34px 18px 28px;
    border-radius: 24px;
  }

  .board-tape {
    left: 28px;
    width: 74px;
  }

  .download-head h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .dl-grid {
    gap: 14px;
  }

  .dl-card {
    flex-basis: 100%;
    max-width: none;
    padding: 18px 16px;
  }

  .dl-card:not([hidden]) {
    grid-template-columns: 46px minmax(0, 1fr) 26px;
    gap: 12px;
  }

  .dl-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .dl-icon svg {
    width: 23px;
    height: 23px;
  }

  .dl-copy strong {
    font-size: 20px;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px 20px;
    padding: 40px 0 28px;
  }

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

  .footer-bottom {
    justify-content: flex-start;
    gap: 6px 18px;
    font-size: 10px;
  }

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

  .notfound-board {
    padding: 36px 20px 32px;
    border-radius: 24px;
  }

  .notfound h1 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .notfound-board > p:not(.eyebrow):not(.notfound-code) {
    font-size: 13.5px;
  }
}

@media (max-width: 420px) {
  .only-mobile {
    display: inline;
  }
}

@media (max-width: 380px) {
  .hero-collage {
    height: 360px;
  }

  .color-card {
    width: 56%;
    padding: 16px 13px 14px;
  }

  .swatch {
    width: 18px;
    height: 31px;
  }

  .swatch-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .swatch-list li {
    gap: 6px;
  }

  .swatch-text b {
    font-size: 10px;
  }

  .swatch-text code {
    font-size: 7px;
  }

  .polaroid {
    width: 45%;
  }

  .collage-stamp {
    display: none;
  }

  .collage-tag {
    bottom: 30px;
    left: 4px;
  }

  .bench li {
    font-size: 11px;
  }

  .snap figcaption p {
    font-size: 10.5px;
  }

  .ruler-labels code {
    font-size: 6.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: .01ms;
  }
}