/* Yiwu Buddy — one stylesheet, no build step.
   The look borrows from the Yiwu market itself: the carbon-copy order slip
   every booth writes, the red company seal, and blue ballpoint ink. */

@font-face { font-family: "Big Shoulders Display"; src: url("../fonts/bigshoulders-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/atkinson-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/atkinson-var-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("../fonts/courier-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nanum Pen Script"; src: url("../fonts/nanumpen-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --tile: #F4F6F8;      /* market floor under fluorescent light */
  --paper: #FFFFFF;     /* top copy of the slip */
  --ink: #18204A;       /* ballpoint navy, all body text */
  --ink-soft: #4A5275;
  --chop: #CF2A2A;      /* company seal red, pre-printed slip rules */
  --chop-soft: #B45A5A;
  --pen: #2340C4;       /* blue ballpoint: handwriting and links */
  --carbon: #FCE3E3;    /* pink carbon copy */
  --carbon-2: #FFF1C2;  /* yellow carbon copy */
  --wa: #25D366;        /* WhatsApp, used only for the WhatsApp action */
  --line: #D8DCE4;
  --rule: #EDB9B9;

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Atkinson Hyperlegible Next", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Courier Prime", "Courier New", monospace;
  --hand: "Nanum Pen Script", "Segoe Print", cursive;
  --zh: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--tile); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.55; }
img, svg { display: block; max-width: 100%; }
a { color: var(--pen); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 6px; font-weight: 700; }
.skip:focus { left: 12px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(244, 246, 248, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__bar { display: flex; align-items: center; gap: 28px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand__seal { width: 36px; height: 36px; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1.65rem; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .96rem; }
.nav a:hover { color: var(--chop); }
@media (max-width: 920px) {
  .nav { display: none; }
  .top__bar > .btn { margin-left: auto; }
}
@media (max-width: 480px) {
  .top__bar { gap: 12px; min-height: 60px; }
  .brand__seal { width: 32px; height: 32px; }
  .brand__name { font-size: 1.45rem; }
  .hide-sm { display: none; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px; border: 2px solid transparent; border-radius: 999px; font: 700 1.02rem/1.1 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--wa { background: var(--wa); color: var(--ink); }
.btn--wa:hover { background: #3ADF78; }
.btn--line { background: transparent; color: inherit; border-color: currentColor; }
.btn--sm { min-height: 42px; padding: 8px 16px; font-size: .95rem; }
.btn--sm svg { width: 19px; height: 19px; }
.textlink { color: inherit; font-weight: 700; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(64px, 8vw, 108px); overflow-x: clip; }
.hero__grid { display: grid; gap: 56px; align-items: start; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; } }
.eyebrow { margin: 0 0 18px; font-family: var(--mono); font-size: .88rem; letter-spacing: .12em; text-transform: uppercase; color: var(--chop); }
/* the headline scales with its own column: "Yiwu market" is 4.85em wide in this face */
.hero__copy { min-width: 0; container-type: inline-size; }
.h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(3.4rem, 9vw, 5.6rem); font-size: clamp(3.4rem, 19.5cqi, 7.2rem); line-height: .86; text-transform: uppercase; letter-spacing: .004em; }
.h1 > span { display: block; }
.h1__hand { margin-top: .08em; font-family: var(--hand); font-weight: 400; font-size: .84em; line-height: .9; text-transform: none; color: var(--pen); transform: rotate(-3deg); transform-origin: left center; }
.lead { max-width: 33ch; margin: 28px 0 30px; font-size: clamp(1.15rem, 1.7vw, 1.36rem); line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero__note { display: flex; gap: 10px; align-items: flex-start; max-width: 40ch; margin: 26px 0 0; font-size: .96rem; color: var(--ink-soft); }
.hero__note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--chop); }

/* ---------- the order slip (signature) ---------- */
.slip-wrap { position: relative; width: 100%; max-width: 540px; margin-inline: auto; }
.slip-wrap::before,
.slip-wrap::after { content: ""; position: absolute; inset: 0; border-radius: 4px; }
.slip-wrap::before { background: var(--carbon-2); transform: translate(12px, 16px) rotate(1.8deg); }
.slip-wrap::after { background: var(--carbon); transform: translate(6px, 8px) rotate(.9deg); }
.slip { position: relative; z-index: 1; padding: 30px 26px 26px; background: var(--paper); border-radius: 4px; box-shadow: 0 1px 0 rgba(24, 32, 74, .06), 0 22px 44px -22px rgba(24, 32, 74, .4); }
/* perforated tear-off edge */
.slip::before { content: ""; position: absolute; left: 14px; right: 14px; top: 11px; height: 6px; background: radial-gradient(circle, var(--tile) 2.2px, transparent 2.6px) 0 0 / 12px 6px repeat-x; }
.slip__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; padding: 6px 0 10px; border-bottom: 2px solid var(--chop); }
.slip__title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: .02em; text-transform: uppercase; color: var(--chop); }
.slip__title [lang="zh"] { margin-left: 8px; font-family: var(--zh); font-size: 1.05rem; font-weight: 700; letter-spacing: .12em; }
.slip__date { margin: 0 96px 0 0; font-family: var(--mono); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--chop); }
.slip__date .hand { margin-left: 6px; font-family: var(--hand); font-size: 1.6rem; letter-spacing: 0; text-transform: none; color: var(--pen); }
.slip__row { display: grid; grid-template-columns: 7.4rem minmax(0, 1fr); align-items: end; gap: 10px; padding-top: 12px; border-bottom: 1px solid var(--rule); transition: box-shadow .15s ease; }
.slip__row:focus-within { border-bottom-color: var(--pen); box-shadow: 0 1px 0 var(--pen); }
.slip__label { padding-bottom: 9px; font-family: var(--mono); font-size: .8rem; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; color: var(--chop); }
.slip__label small { display: block; margin-top: 2px; font-size: .74rem; letter-spacing: .02em; text-transform: none; color: var(--chop-soft); }
.slip__input { width: 100%; padding: 4px 0 3px; border: 0; background: transparent; color: var(--pen); font-family: var(--hand); font-size: 1.95rem; line-height: 1.1; }
.slip__input:focus { outline: none; }
.slip__input::placeholder { color: var(--pen); opacity: .36; }
textarea.slip__input { display: block; min-height: 2.3em; resize: none; overflow: hidden; }
.slip__hint { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 18px; font-size: .95rem; color: var(--ink-soft); }
.slip__hint svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--pen); }
.slip__send { width: 100%; }
.slip__alt { display: block; margin: 14px auto 0; padding: 6px 10px; border: 0; background: none; color: var(--pen); font: 700 .98rem var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.slip__error { min-height: 1.5em; margin: 12px 0 0; color: var(--chop); font-weight: 700; font-size: .96rem; }
.slip__error:empty { min-height: 0; margin: 0; }
.slip__seal { position: absolute; top: -22px; right: -14px; width: 104px; mix-blend-mode: multiply; pointer-events: none; transform: rotate(-9deg); animation: stamp .5s cubic-bezier(.2, .9, .3, 1.25) .5s both; }
@keyframes stamp {
  from { transform: rotate(-9deg) scale(1.7); opacity: 0; }
  55% { opacity: .95; }
  to { transform: rotate(-9deg) scale(1); opacity: .92; }
}
@media (max-width: 520px) {
  .slip { padding: 28px 18px 22px; }
  .slip__row { grid-template-columns: 5.9rem minmax(0, 1fr); gap: 8px; }
  .slip__input { font-size: 1.7rem; }
  .slip__seal { width: 84px; top: -18px; right: -6px; }
  .slip__date { margin-right: 70px; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--paper { background: var(--paper); }
.h2 { margin: 0 0 16px; font-family: var(--display); font-weight: 800; font-size: clamp(2.5rem, 5.2vw, 4.1rem); line-height: .92; text-transform: uppercase; }
.section__lead { max-width: 56ch; margin: 0 0 48px; font-size: 1.16rem; color: var(--ink-soft); }

/* steps: a real sequence, so the numbers carry meaning */
.steps { display: grid; gap: 30px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding-left: 70px; }
.step__no { position: absolute; left: 0; top: -4px; width: 48px; font-family: var(--display); font-weight: 800; font-size: 3.2rem; line-height: 1; text-align: center; color: var(--chop); }
.step:not(:last-child)::after { content: ""; position: absolute; left: 23px; top: 58px; bottom: -24px; border-left: 2px dashed var(--line); }
.step h3 { margin: 4px 0 6px; font-size: 1.2rem; line-height: 1.25; }
.step p { margin: 0; color: var(--ink-soft); }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px; }
  .step { padding: 70px 0 0; }
  .step__no { top: 0; width: auto; text-align: left; }
  .step:not(:last-child)::after { left: 54px; right: -12px; top: 26px; bottom: auto; border-left: 0; border-top: 2px dashed var(--line); }
}

/* what we buy */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chip { padding: 9px 17px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 700; font-size: 1rem; line-height: 1.2; }
.chip--hand { padding: 3px 18px; border: 1.5px dashed var(--pen); background: transparent; color: var(--pen); font-family: var(--hand); font-weight: 400; font-size: 1.6rem; }
.aside { display: flex; gap: 12px; align-items: flex-start; max-width: 62ch; margin: 34px 0 0; color: var(--ink-soft); }
.aside strong { color: var(--ink); }

/* services */
.services { display: grid; gap: 30px 44px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1020px) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.service h3 { display: flex; gap: 12px; align-items: baseline; margin: 0 0 6px; font-size: 1.16rem; line-height: 1.3; }
.service h3::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--chop); transform: translateY(-1px) rotate(-6deg); }
.service p { margin: 0; padding-left: 22px; color: var(--ink-soft); }

/* fees: printed like a receipt */
.fees { display: grid; gap: 48px; align-items: start; }
@media (min-width: 940px) { .fees { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }
.fees__points { margin: 0; padding: 0; list-style: none; }
.fees__points li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fees__points li:first-child { border-top: 1px solid var(--line); }
.fees__points svg { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--chop); }
.receipt-wrap { max-width: 480px; width: 100%; justify-self: center; filter: drop-shadow(0 16px 22px rgba(24, 32, 74, .16)); }
.receipt { position: relative; padding: 30px 28px 26px; background: var(--paper); font-family: var(--mono); font-size: 1rem; color: var(--ink); }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px; background: linear-gradient(135deg, var(--paper) 50%, transparent 50%) 0 0 / 16px 12px repeat-x, linear-gradient(225deg, var(--paper) 50%, transparent 50%) 8px 0 / 16px 12px repeat-x; }
.receipt__head { margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px dashed #9AA0B5; text-align: center; letter-spacing: .14em; text-transform: uppercase; }
.receipt__head strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.9rem; letter-spacing: .04em; color: var(--chop); }
.receipt__rows { margin: 0; }
.receipt__row { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; }
.receipt__row dt { color: var(--ink-soft); }
.receipt__row dd { margin: 0; max-width: 55%; text-align: right; }
.receipt__row .dots { flex: 1 1 24px; min-width: 24px; border-bottom: 2px dotted #AEB3C5; transform: translateY(-5px); }
@media (max-width: 480px) {
  .receipt { padding: 26px 18px 22px; font-size: .9rem; }
  .receipt__row dt { white-space: nowrap; }
  .receipt__row dd { max-width: none; }
}
.receipt__foot { margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed #9AA0B5; font-size: .92rem; text-align: center; color: var(--ink-soft); }

/* shipping */
.ship { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.ship__row { display: grid; gap: 4px 28px; padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .ship__row { grid-template-columns: minmax(0, 1.1fr) minmax(0, .55fr) minmax(0, 1.35fr); align-items: baseline; } }
.ship__name { font-weight: 700; font-size: 1.16rem; }
.ship__name small { display: block; font-weight: 400; font-size: .92rem; color: var(--ink-soft); }
.ship__time { font-family: var(--mono); color: var(--chop); }
.ship__best { color: var(--ink-soft); }
.small-print { max-width: 70ch; margin: 22px 0 0; font-size: .95rem; color: var(--ink-soft); }

/* about */
.about { display: grid; gap: 44px; align-items: start; }
@media (min-width: 940px) { .about { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 72px; } }
.about__text p { max-width: 58ch; font-size: 1.12rem; }
.facts { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.facts li { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts .k { flex: none; font-family: var(--mono); font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.facts .v { font-weight: 700; text-align: right; }

/* what we don't do */
.nots { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 800px) { .nots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nots li { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-weight: 700; }
.nots li::before { content: "NO"; flex: none; padding: 3px 7px 2px; border: 2px solid var(--chop); border-radius: 4px; font-family: var(--display); font-weight: 800; font-size: 1.05rem; line-height: 1; letter-spacing: .06em; color: var(--chop); transform: rotate(-5deg); }

/* faq */
.faq { max-width: 880px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 20px 48px 20px 0; font-weight: 700; font-size: 1.12rem; line-height: 1.35; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-weight: 800; font-size: 2.1rem; line-height: 1; color: var(--chop); }
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { color: var(--chop); }
.faq__a { max-width: 70ch; padding: 0 0 22px; color: var(--ink-soft); }
.faq__a p:last-child { margin-bottom: 0; }

/* closing call */
.cta { background: var(--ink); color: #FFFFFF; }
.cta__inner { display: grid; gap: 28px; align-items: end; }
@media (min-width: 900px) { .cta__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }
.cta .h2 { color: #FFFFFF; }
.cta p { max-width: 48ch; margin: 0; font-size: 1.16rem; color: #D9DDF0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.cta .textlink { color: #FFFFFF; }
.cta__lines { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }

/* footer */
.foot { padding-block: 30px 40px; background: var(--ink); border-top: 1px solid rgba(255, 255, 255, .14); color: #C9CEE3; font-size: .95rem; }
.foot__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.foot p { margin: 0; }
.foot a { color: #FFFFFF; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* toast (shown only while the WhatsApp number is not set) */
.toast { position: fixed; left: 50%; bottom: 96px; z-index: 40; width: min(92vw, 440px); padding: 14px 18px; border-radius: 10px; background: var(--ink); color: #FFFFFF; font-size: .98rem; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5); transform: translateX(-50%); }
.toast a { color: #FFFFFF; }

/* mobile dock: WhatsApp within thumb reach once the hero is gone */
.dock { display: none; }
@media (max-width: 720px) {
  .dock { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; transform: translateY(150%); transition: transform .25s ease; }
  .dock.is-on { transform: none; }
  .dock .btn { width: 100%; box-shadow: 0 12px 30px -10px rgba(24, 32, 74, .55); }
  .foot { padding-bottom: 104px; }
}

/* simple pages (privacy, 404) */
.page { padding-block: clamp(48px, 8vw, 96px); }
.page .h2 { margin-bottom: 24px; }
.prose { max-width: 68ch; }
.prose h2 { margin: 36px 0 10px; font-size: 1.3rem; }

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