:root {
  color-scheme: light;
  --ink: #17233e;
  --paper: #fbf9f4;
  --subtle: #535b68;
  --line: #dcdad3;
  --blue: #263eb4;
  --blue-tint: #e8edff;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
img { width: 100%; display: block; }
h1, h2, h3, p, figure { margin: 0; }
.wrap { width: min(1220px, calc(100% - 88px)); margin-inline: auto; }
.top { min-height: 82px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.brand { font: 700 2.1rem/.95 Georgia, serif; letter-spacing: -.075em; width: fit-content; white-space: nowrap; }
.header-brand { display: inline-flex; align-items: center; gap: 9px; }
.header-logo { width: 42px; height: 42px; flex: none; object-fit: contain; mix-blend-mode: multiply; }
.header-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .875rem; font-weight: 700; }
.header-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid #d4d9eb;
  border-radius: 8px;
  background: #fffefa;
  text-align: center;
  line-height: 1.25;
}
.header-nav a:first-child { color: var(--blue); background: var(--blue-tint); }
.header-nav a:hover { border-color: var(--blue); background: var(--blue-tint); color: var(--blue); }
.footer > a:last-child:hover { color: var(--blue); }
.cart-open { justify-self: end; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: transparent; border-radius: 24px; padding: 8px 13px; white-space: nowrap; font-size: .875rem; font-weight: 700; }
.cart-open:hover { background: var(--blue-tint); }
#count { display: grid; place-items: center; min-width: 24px; height: 24px; padding-inline: 4px; border-radius: 999px; background: var(--blue-tint); color: var(--blue); }
.hero {
  --hero-ink: #152d98;
  --hero-yellow: #ffea82;
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  background: var(--hero-ink);
  color: #fffaf0;
  border-radius: 7px;
  overflow: hidden;
}
.hero-copy { align-self: center; padding: clamp(27px, 4.2vw, 63px); }
.hero > img { height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.eyebrow { font-size: .875rem; font-weight: 750; color: var(--blue); margin-bottom: 14px; }
.hero .eyebrow { color: #fffaf0; font-weight: 650; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.65rem, 4.7vw, 4.5rem); line-height: 1.04; font-weight: 850; letter-spacing: -.065em; }
.hero h1 > span:last-child { color: var(--hero-yellow); }
html[lang="zh-CN"] .hero h1 { letter-spacing: -.075em; line-height: 1.1; }

.hero-copy > p:not(.eyebrow) { max-width: 41ch; margin-top: 21px; color: #f3f3ff; font-size: 1.025rem; line-height: 1.65; }
.primary { display: inline-flex; width: fit-content; justify-content: center; align-items: center; background: var(--blue); color: white; border: 0; border-radius: 4px; padding: 13px 20px; font-weight: 750; }
.primary:hover { background: #182b91; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 27px; }
.hero .primary { background: var(--hero-yellow); color: #182665; }
.hero .primary:hover { background: #fff2a7; }
.hero a:focus-visible { outline-color: var(--hero-yellow); }
.portrait-link { font-size: .9rem; color: #fffaf0; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.shop { padding-block: clamp(42px, 6vw, 76px); }
.section-head { margin-bottom: 24px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.22; font-weight: 850; letter-spacing: -.035em; }
.section-head p { color: var(--subtle); font-size: .875rem; margin-top: 8px; }
.shop-layout { display: grid; grid-template-columns: minmax(164px, 208px) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.filters { display: grid; gap: 4px; }
.filters button {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-inline-start: 3px solid transparent;
  border-radius: 4px;
  background: transparent;
  text-align: start;
  font-size: .9375rem;
  font-weight: 650;
}
.filters button:hover { background: #eeece5; }
.filters button[aria-pressed="true"] { background: var(--blue-tint); border-inline-start-color: var(--blue); color: var(--blue); }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.products > .product:only-child { grid-column: 1 / -1; width: min(100%, 340px); }
.color-picker {
  grid-column: 1 / -1;
  width: min(100%, 680px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.color-picker-content { padding: clamp(16px, 3vw, 28px); }
.color-picker h3 { font-size: 1.125rem; }
.color-picker-description, .color-picker-note { color: var(--subtle); font-size: .875rem; line-height: 1.5; }
.color-picker-description { margin-top: 4px; }
.color-picker-selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.color-picker-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.color-picker-code { display: block; margin-bottom: 4px; font-weight: 750; }
.color-picker-note { margin-top: 16px; }
.product { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.product img { aspect-ratio: 1.38; object-fit: cover; }
.product-copy { padding: 18px; }
.product h3 { font-size: 1.125rem; }
.product-copy p { color: var(--subtle); margin-top: 7px; line-height: 1.6; }
.product-style { display: grid; gap: 6px; margin-top: 14px; font-size: .875rem; font-weight: 650; }
.product-style select {
  appearance: none;
  width: 100%;
  min-height: 42px;
  padding: 8px 34px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23212020' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") right 10px center / 14px no-repeat;
  cursor: pointer;
}
.product-style + .product-bottom { margin-top: 12px; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; }
.product-bottom strong { font-size: 1.22rem; }
.price-pending { color: var(--subtle); font-size: .875rem; font-weight: 650; }
.add { background: var(--blue-tint); border: 0; color: var(--blue); border-radius: 8px; padding: 9px 12px; font-weight: 750; font-size: .875rem; white-space: nowrap; }
.add:hover { background: var(--blue); color: white; }
.guide { background: #e9edfa; padding: clamp(24px, 4vw, 48px); }
.guide-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 26px; }
.guide h3 { font-size: 1.1rem; margin-bottom: 7px; }
.guide p { line-height: 1.7; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 33px; }
.footer > a:last-child { font-size: .875rem; }
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(100%, 445px); max-width: 100%; height: 100%; max-height: 100%; border: 0; padding: 0; background: var(--paper); color: var(--ink); }
.drawer[open] { display: flex; flex-direction: column; }
.drawer::backdrop { background: #17233e80; }
.drawer-head { padding: 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer-head h2 { font-size: 1.55rem; }
.icon-button { width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 1.55rem; }
.icon-button:hover, .quantity button:hover { background: var(--blue-tint); }
.drawer-body { flex: 1; overflow: auto; padding: 20px 22px; }
.empty { color: var(--subtle); padding-top: 12px; }
.cart-row { display: grid; grid-template-columns: 68px 1fr auto; align-items: center; gap: 11px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.cart-row img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.cart-color-swatch { width: 68px; height: 68px; border: 1px solid var(--line); border-radius: 8px; }
.cart-row h3 { font-size: .9375rem; }
.cart-row p { margin-top: 5px; font-size: .875rem; color: var(--subtle); }
.quantity { display: flex; align-items: center; gap: 5px; }
.quantity button { background: #fff; border: 1px solid var(--line); border-radius: 6px; width: 34px; height: 36px; font-size: 1.15rem; }
.quantity span { min-width: 22px; text-align: center; }
.drawer-foot { border-top: 1px solid var(--line); padding: 22px; }
.subtotal { display: flex; justify-content: space-between; }
.drawer-foot p { font-size: .875rem; color: var(--subtle); margin-block: 10px 15px; }
.drawer-foot .primary { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 920px) {
  .wrap { width: calc(100% - 42px); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero > img { height: auto; }
  .product-bottom { flex-wrap: wrap; }
}
@media (max-width: 1040px) {
  .top { min-height: 0; grid-template-columns: 1fr auto; gap: 12px; padding-block: 12px 15px; }
  .header-nav { grid-row: 2; grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 670px) {
  .wrap { width: calc(100% - 32px); }
  .hero-copy { padding: 27px 23px 30px; }
  .shop-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .products { gap: 12px; }
  .product-copy { padding: 12px; }
  .product h3 { font-size: 1rem; }
  .product-bottom { gap: 7px; margin-top: 12px; }
  .product-bottom strong { font-size: 1rem; }
  .guide-steps { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 480px) {
  .color-picker { grid-template-columns: minmax(0, 1fr); }
  .color-picker-swatch { min-height: 128px; }
}
@media (max-width: 355px) {
  .top { grid-template-columns: minmax(0, 1fr); }
  .header-actions { grid-row: 2; justify-self: start; }
  .header-nav { grid-row: 3; }
  .products { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 9px; }
.language {
  appearance: none;
  color: inherit;
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 7px 32px 7px 13px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23211b27' stroke-width='1.6'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") right 11px center / 14px no-repeat;
  cursor: pointer;
}
.language:hover { border-color: var(--blue); }
.language:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.product { display: flex; flex-direction: column; }
.product-copy { display: flex; flex-direction: column; flex: 1; }
.product-copy p { margin-bottom: 14px; }
.product-bottom { margin-top: auto; }
@media (max-width: 670px) {
  .top { column-gap: 8px; }
  .top .brand { font-size: 1.8rem; gap: 7px; }
  .header-logo { width: 36px; height: 36px; }
  .header-nav { gap: 7px; }
  .header-nav a { flex: 1 0 calc((100% - 14px) / 3); min-height: 44px; padding-inline: 7px; }
  .header-actions { gap: 6px; }
  .language { padding-left: 9px; padding-right: 25px; background-position: right 7px center; }
  .cart-open { padding-inline: 8px; gap: 5px; }
  .cart-open svg { display: none; }
  html[lang="en"] .product h3 { overflow-wrap: anywhere; }
  .product-copy p { margin-bottom: 12px; }
}

.story { scroll-margin-top: 20px; }
.set-link { width: fit-content; margin-top: 12px; color: var(--blue); font-size: .875rem; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.story { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 5vw, 72px); border-top: 1px solid var(--line); padding: clamp(36px, 6vw, 78px) clamp(4px, 4vw, 48px); }
.story h2 { font-size: clamp(1.8rem, 3.35vw, 3.1rem); }
html[lang="en"] .story h2 { font-family: Georgia, serif; font-weight: 400; }
.story-copy { max-width: 580px; font-size: clamp(1rem, 1.45vw, 1.2rem); line-height: 1.72; }
.story-copy p + p { margin-top: 15px; }
.story-copy p:first-child { font-weight: 700; }
@media (max-width: 670px) {
  .story { grid-template-columns: 1fr; }
}

.cart-kit { padding: 14px 0; border-bottom: 1px solid var(--line, #d9d1c1); }
.cart-kit-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.cart-kit-heading h3 { margin: 0 0 4px; font-size: 1rem; }
.cart-kit-heading p { margin: 0; font-size: .875rem; }
.cart-kit-remove { background: transparent; color: inherit; border: 0; padding: 2px; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.cart-kit-colors { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 7px 12px; max-height: 160px; overflow: auto; padding: 0 4px 0 0; margin: 12px 0 0; }
.cart-kit-colors li { display: flex; align-items: center; gap: 6px; font-size: .875rem; font-variant-numeric: tabular-nums; }
.cart-kit-colors li > span:last-child { margin-left: auto; }
.cart-kit-chip { width: 16px; height: 16px; flex: none; border: 1px solid #312c2440; border-radius: 3px; }

.product-image-link { display: block; }
.product-image-link:hover + .product-copy h3 a, .product h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.color-picker-content > .set-link { display: inline-block; }
.drawer-foot #checkout-link { width: 100%; margin-bottom: 8px; }
.drawer-foot #checkout-link[hidden] { display: none; }
.drawer-foot #checkout-link:not([hidden]) + #continue { color: var(--blue); background: transparent; }

/* The work stays colorful; the shop around it uses paper, ink and a single blue accent. */
:root { --paper: #fcfaf6; --ink: #272821; --subtle: #575a50; --line: #dcdcd0; --blue: #283f82; --blue-tint: #e9edf6; }
.top { padding-block: 14px; }
.header-nav a { border-color: var(--line); background: transparent; border-radius: 999px; font-weight: 600; }
.hero { background: #f0eedf; color: var(--ink); border-radius: 3px; grid-template-columns: minmax(0, 47fr) minmax(0, 53fr); }
.hero-copy { padding: clamp(26px, 3.6vw, 54px); }
.hero .eyebrow { color: var(--subtle); font-weight: 600; }
.hero h1, #shop-title, .guide h2, .kit-card h3 { font-family: Georgia, "Songti SC", serif; font-weight: 400; }
.hero h1 { font-size: clamp(2.75rem, 5.25vw, 5rem); line-height: 1.03; letter-spacing: -.058em; }
.hero h1 > span:last-child { color: var(--blue); font-style: italic; }
html[lang="zh-CN"] .hero h1 > span:last-child { font-style: normal; }
.hero-copy > p:not(.eyebrow) { color: var(--subtle); max-width: 36ch; }
.hero .primary, .primary { border-radius: 999px; }
.hero .primary { background: var(--ink); color: #fff; }
.hero .primary:hover { background: var(--blue); }
.hero a:focus-visible { outline-color: var(--blue); }
.portrait-link { color: var(--ink); font-weight: 600; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
#shop-title, .guide h2 { font-size: clamp(2.1rem, 3.6vw, 3.2rem); letter-spacing: -.045em; }
.shop-layout { grid-template-columns: minmax(155px,185px) minmax(0,1fr); gap: clamp(16px,2.6vw,38px); }
.product, .color-picker { border-color: var(--line); }
.kit-card { background: transparent; border: 0; border-radius: 0; overflow: visible; }
.kit-card-link { height: 100%; display: flex; flex-direction: column; }
.kit-card-link img { height: auto; aspect-ratio: 1.46; object-fit: cover; border-radius: 4px; }
.kit-card .product-copy { padding: 16px 1px 12px; }
.kit-card h3 { font-size: clamp(1.8rem, 2.8vw, 2.7rem); line-height: 1.12; letter-spacing: -.045em; }
.kit-card .product-copy p { font-size: .95rem; line-height: 1.45; margin: 8px 0 12px; }
.kit-card .set-link { margin-top: auto; }
.kit-card-link:hover .set-link { text-decoration-thickness: 2px; }
.story { padding-inline: 0; }
.story-copy .set-link, .guide .set-link { display: inline-block; }
.guide { background: #efefe4; border-top: 1px solid var(--line); }
.guide-steps > div { border-top: 1px solid #c3c5b6; padding-top: 15px; }
@media(max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero > img { max-height: 360px; width: 100%; object-fit: cover; }
  .hero-actions { margin-top: 18px; }
  .hero-copy { padding: 24px; }
  .hero-copy > p:not(.eyebrow) { margin-top: 12px; }
  .shop-layout { grid-template-columns: 1fr; }
}
@media (min-width: 671px) and (max-width: 900px) {
  .products:has(.kit-card) { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 670px) {
  .header-nav { flex-wrap: nowrap; justify-content: start; overflow-x: auto; scrollbar-width: thin; gap: 6px; padding: 4px 2px; }
  .header-nav a { flex: none; padding: 8px 13px; }
  .products:has(.kit-card) { grid-template-columns: 1fr; }
  .kit-card-link { display: grid; grid-template-columns: minmax(100px,.78fr) minmax(0,1.22fr); align-items: center; gap: 15px; padding-block: 12px; border-bottom: 1px solid var(--line); }
  .kit-card-link img { aspect-ratio: 1.24; }
  .kit-card .product-copy { padding: 0; }
  .kit-card .product-copy p { margin: 4px 0 7px; }
}

.cart-row h3 a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 761px) and (max-width: 920px) {
  .hero > img { height: 100%; min-height: 0; }
}
