/**
 * YUWU visual foundation.
 *
 * One restrained print-editorial theme for every public surface. Page and
 * component files consume these semantic tokens instead of declaring a second
 * palette, type scale or geometry system.
 */

:root {
  color-scheme: light;

  --yw-canvas: #f2eee5;
  --yw-surface: #f5f1e9;
  --yw-surface-muted: #e7dfd4;
  --yw-text: #644d32;
  --yw-text-muted: #7d6b52;
  --yw-accent: #826a49;
  --yw-accent-strong: #4a3928;
  --yw-border: #cfc2ab;
  --yw-footer: #20170f;
  --yw-on-dark: #ebe1d0;
  --yw-error: #8b352f;
  --yw-hero-wash: linear-gradient(90deg, color-mix(in srgb, var(--yw-canvas) 28%, transparent) 0%, color-mix(in srgb, var(--yw-canvas) 5%, transparent) 45%, transparent 67%);
  --yw-hero-wash-mobile: linear-gradient(90deg, color-mix(in srgb, var(--yw-canvas) 68%, transparent) 0%, color-mix(in srgb, var(--yw-canvas) 32%, transparent) 57%, color-mix(in srgb, var(--yw-canvas) 4%, transparent) 100%);

  --yw-font-brand: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  --yw-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --yw-font-display: var(--yw-font-brand);
  --yw-font-ui: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;

  --yw-shell: 1360px;
  --yw-shell-wide: 1520px;
  --yw-commerce: 1320px;
  --yw-measure: 760px;
  --yw-gutter: clamp(24px, 3.25vw, 48px);

  --yw-space-1: 4px;
  --yw-space-2: 8px;
  --yw-space-3: 12px;
  --yw-space-4: 16px;
  --yw-space-5: 24px;
  --yw-space-6: 32px;
  --yw-space-7: 48px;
  --yw-space-8: 64px;
  --yw-space-9: 96px;

  --yw-duration: 200ms;
  --yw-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --yw-z-header: 40;
  --yw-z-overlay: 80;
}

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

html {
  background: var(--yw-canvas);
  font-size: 16px;
  min-width: 320px;
  scroll-padding-top: 82px;
  text-size-adjust: 100%;
}

body,
button,
input,
select,
textarea {
  font-family: var(--yw-font-ui);
}

body {
  background: var(--yw-canvas);
  color: var(--yw-text);
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
  min-width: 320px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--yw-accent);
  color: var(--yw-surface);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.26em;
}

a:hover {
  color: var(--yw-accent-strong);
}

:where(a, button, input, select, textarea, summary, [tabindex]) {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
  color: var(--yw-text);
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  border-radius: 0;
  box-shadow: none;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--yw-text);
  font-family: var(--yw-font-display);
  font-weight: 400;
  letter-spacing: 0.035em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

hr {
  background: var(--yw-border);
  border: 0;
  height: 1px;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus {
  outline: 0 !important;
}

:where(a, button, summary, [tabindex]):focus:not(:focus-visible) {
  box-shadow: none !important;
}

:where(a, button, summary, [tabindex]) {
  -webkit-tap-highlight-color: transparent;
}

:where(input, select, textarea):focus {
  border-color: var(--yw-accent-strong) !important;
  box-shadow: inset 0 0 0 1px var(--yw-accent-strong) !important;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--yw-accent) 24%, transparent) !important;
  outline: 1px solid var(--yw-accent-strong) !important;
  outline-offset: 2px;
}

:where(input, select, textarea):focus-visible {
  border-color: var(--yw-accent-strong) !important;
  box-shadow: inset 0 0 0 1px var(--yw-accent-strong) !important;
  outline: 0 !important;
}

[hidden] {
  display: none !important;
}

#page.site {
  overflow-x: clip;
  overflow-y: visible;
  background: var(--yw-canvas);
  min-height: 100vh;
}

#content.site-content {
  background: var(--yw-canvas);
  min-height: 42vh;
  padding: 0;
}

#content.site-content:focus-visible {
  outline: 0;
}

.site-content > .col-full {
  margin: 0;
  max-width: none;
  padding: 0;
  width: 100%;
}

.content-area,
.site-main {
  float: none;
  margin: 0;
  width: 100%;
}

.widget-area,
.storefront-sorting::before,
.storefront-sorting::after {
  content: none;
}

.yw-container {
  margin-inline: auto;
  max-width: var(--yw-shell);
  width: calc(100% - (2 * var(--yw-gutter)));
}

.yw-container--commerce {
  max-width: var(--yw-commerce);
}

.yw-prose {
  max-width: var(--yw-measure);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  white-space: nowrap;
  width: 1px;
}

.screen-reader-text:focus,
.skip-link:focus {
  background: var(--yw-surface);
  border: 1px solid var(--yw-accent);
  clip: auto !important;
  clip-path: none;
  color: var(--yw-text);
  display: block;
  font-size: 14px;
  height: auto;
  left: 16px;
  padding: 12px 16px;
  top: 16px;
  width: auto;
  z-index: 99999;
}

.clear::before,
.clear::after,
.entry-content::before,
.entry-content::after,
.site-content::before,
.site-content::after {
  content: "";
  display: table;
}

.clear::after,
.entry-content::after,
.site-content::after {
  clear: both;
}

@media (max-width: 720px) {
  :root {
    --yw-gutter: 16px;
  }

  html {
    scroll-padding-top: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid CanvasText;
  }
}
