/* ===========================================================
   WanYang Jewelry — Wordmark / brand signature
   Self-hosted Cormorant Garamond. No external font dependency.
   Scope: header wordmark, footer wordmark, order-centre brand.
   Note: styles.css uses ".b2b-logo span" (0,1,1), so every
   typographic rule below is pinned with !important.
   =========================================================== */

@font-face {
  font-family: "WanYang Serif";
  src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "WanYang Serif";
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "WanYang Serif";
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --wm-serif: "WanYang Serif", "Cormorant Garamond", Didot, "Bodoni MT", Georgia, serif;
  --wm-ink: #1b1a17;
  --wm-gold: #a67f42;
  --wm-gold-soft: rgba(166, 127, 66, .55);
}

/* ---------- Shared wordmark shell ---------- */
.wm-logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 13px !important;
  justify-self: start !important;
  width: max-content !important;
  min-width: 0 !important;
  letter-spacing: normal !important;
  line-height: 1 !important;
  color: var(--wm-ink) !important;
  text-decoration: none !important;
}
.wm-logo::before { display: none !important; }

/* Temporary: round "W" seal removed until the final logo artwork is ready.
   site.js no longer outputs <span class="wm-seal">W</span>. The rules below
   are kept so restoring the icon later only needs that one span back. */
.wm-seal {
  position: relative;
  flex: 0 0 auto;
  display: inline-grid !important;
  place-items: center;
  width: 38px !important;
  height: 38px !important;
  border: 1px solid var(--wm-gold-soft) !important;
  border-radius: 50% !important;
  color: var(--wm-gold) !important;
  font-family: var(--wm-serif) !important;
  font-size: 21px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  transition: border-color .25s ease, background-color .25s ease, color .25s ease;
}
.wm-seal::before,
.wm-seal::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  background: var(--wm-gold);
  transform: rotate(45deg);
}
.wm-seal::before { top: -2px; }
.wm-seal::after { bottom: -2px; }
.wm-logo:hover .wm-seal,
.wm-logo:focus-visible .wm-seal { border-color: var(--wm-gold) !important; background: var(--wm-gold) !important; color: #fff !important; }

.wm-type {
  display: grid !important;
  justify-items: center !important;
  gap: 6px !important;
  font-size: 16px !important;
  letter-spacing: normal !important;
}

.wm-name {
  display: block !important;
  margin-right: -.30em !important;
  color: inherit !important;
  font-family: var(--wm-serif) !important;
  font-size: 27px !important;
  font-weight: 400 !important;
  letter-spacing: .30em !important;
  line-height: .92 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.wm-sub {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  color: var(--wm-gold) !important;
  font-family: var(--sans, "Helvetica Neue", Arial, sans-serif) !important;
  font-size: 8.5px !important;
  font-weight: 500 !important;
  letter-spacing: .48em !important;
  text-indent: .48em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}
.wm-sub i {
  display: block !important;
  width: 26px !important;
  height: 1px !important;
  background: var(--wm-gold-soft);
}

/* Text-only wordmark while the icon is away.
   2026-12-04: restored the original centred lockup — left-aligning the two
   lines put JEWELRY + rules ~25px left of WANYANG's optical centre. */
.wm-logo--text-only { gap: 0 !important; }
.wm-logo--text-only .wm-type { justify-items: center !important; }

/* ---------- Header placement ---------- */
/* 2026-12-04: header 分隔线恢复成 wordmark 上线之前的样子 ——
   styles.css 原生的 1px 浅灰 #dcdcdc + 淡阴影，不再用金色 !important 覆盖。
   金色只留给 wordmark 内部装饰（圆章、JEWELRY 两侧短线）。 */
.b2b-site-header .b2b-logo { color: var(--wm-ink) !important; }
.b2b-brand-row { align-items: center; }

/* ---------- Footer placement ---------- */
/* Footer renders on a light ground on the live site: keep the ink dark. */
.wm-logo--footer {
  color: var(--wm-ink) !important;
  gap: 11px !important;
}
.wm-logo--footer .wm-seal { width: 34px !important; height: 34px !important; font-size: 19px !important; }
.wm-logo--footer .wm-name { font-size: 23px !important; letter-spacing: .26em !important; margin-right: -.26em !important; }
.wm-logo--footer .wm-sub { font-size: 8px !important; }
.footer-brand .wm-logo { margin-bottom: 4px; }

/* ---------- Order centre / admin (independent layout) ---------- */
.brand { gap: 10px; }
.brand-mark {
  width: 34px !important;
  height: 34px !important;
  border: 1px solid var(--wm-gold-soft) !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: var(--wm-gold) !important;
  font-family: var(--wm-serif) !important;
  font-size: 19px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}
.brand-text,
.auth-brand > span:not(.brand-mark) {
  color: var(--wm-ink) !important;
  font-family: var(--wm-serif) !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  letter-spacing: .17em !important;
  line-height: 1.05 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}
.brand-text small {
  margin-top: 5px !important;
  color: var(--wm-gold) !important;
  font-family: var(--sans, "Helvetica Neue", Arial, sans-serif) !important;
  font-size: 8px !important;
  font-weight: 500 !important;
  letter-spacing: .42em !important;
  text-transform: uppercase !important;
}
.auth-brand .brand-mark { width: 30px !important; height: 30px !important; font-size: 17px !important; }
.auth-brand > span:not(.brand-mark) { font-size: 19px !important; }

/* 2026-12-04: centre the two-line lockup in the order centre / admin.
   The subtitle is much shorter than the main line; left-aligning it made the
   whole mark look skewed to the left. Do not set `display` on <small> here —
   shop.css hides it on narrow viewports with a plain `display:none`. */
.brand-text {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: max-content !important;
  text-align: center !important;
}
.brand-text small {
  width: max-content !important;
  margin-right: -.42em !important;
  text-align: center !important;
}

/* ---------- Mobile topbar wordmark (injected by mobile.js) ---------- */
.m-brand {
  padding-left: .28em !important;
  font-family: var(--wm-serif) !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  letter-spacing: .28em !important;
  color: var(--wm-ink) !important;
}
.m-brand > span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 6px !important;
  font-family: var(--sans, "Helvetica Neue", Arial, sans-serif) !important;
  font-size: 7.5px !important;
  font-weight: 500 !important;
  letter-spacing: .42em !important;
  text-indent: 0 !important;
  text-transform: uppercase !important;
  color: var(--wm-gold) !important;
}
.m-brand > span::before,
.m-brand > span::after {
  content: "";
  display: block !important;
  width: 22px !important;
  height: 1px !important;
  background: var(--wm-gold-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .wm-seal { width: 33px !important; height: 33px !important; font-size: 18px !important; }
  .wm-name { font-size: 22px !important; letter-spacing: .24em !important; margin-right: -.24em !important; }
  .wm-sub { font-size: 7.5px !important; gap: 7px !important; }
  .wm-sub i { width: 18px !important; }
  .wm-logo--footer .wm-name { font-size: 20px !important; }
}
@media (max-width: 700px) {
  .wm-logo { gap: 9px !important; }
  .wm-seal { width: 28px !important; height: 28px !important; font-size: 16px !important; }
  .wm-name { font-size: 17px !important; letter-spacing: .18em !important; margin-right: -.18em !important; }
  .wm-sub { font-size: 6.8px !important; letter-spacing: .36em !important; text-indent: .36em !important; gap: 5px !important; }
  .wm-sub i { width: 12px !important; }
  .wm-logo--footer .wm-seal { width: 28px !important; height: 28px !important; font-size: 16px !important; }
  .wm-logo--footer .wm-name { font-size: 17px !important; }
}
