/* Base: reset, typography, layout helpers, buttons, plain WordPress content. */

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--yms-header-height) + 1rem); }

body {
  margin: 0;
  background: var(--yms-white);
  color: var(--yms-text);
  font-family: var(--yms-font);
  font-size: var(--yms-text-size);
  line-height: var(--yms-line-height);
  letter-spacing: var(--yms-letter-spacing);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }
.icon { width: 1.5rem; height: 1.5rem; flex: none; }

h1, h2, h3, h4 {
  color: var(--yms-text-strong);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: 0.2em; }
a:hover { color: var(--yms-text-strong); }

:focus-visible { outline: 2px solid var(--yms-purple); outline-offset: 2px; }

.page-width {
  width: 100%;
  max-width: var(--yms-page-width);
  margin-inline: auto;
  padding-inline: var(--yms-gutter);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--yms-white); color: var(--yms-ink);
  padding: 0.6rem 1rem; border-radius: var(--yms-radius-sm);
}
.skip-link:focus { top: 1rem; }

/* Buttons */
.button,
.wp-element-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.8rem;
  border: 1px solid var(--yms-purple);
  border-radius: var(--yms-radius-sm);
  background: var(--yms-purple);
  color: var(--yms-white);
  font: 700 1rem/1.2 var(--yms-font);
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.button:hover { background: var(--yms-purple-dark); border-color: var(--yms-purple-dark); color: var(--yms-white); }
.button--light { background: var(--yms-white); border-color: var(--yms-white); color: var(--yms-ink); }
.button--light:hover { background: var(--yms-surface); border-color: var(--yms-surface); color: var(--yms-ink); }
.button--outline { background: transparent; color: var(--yms-purple); }
.button--outline:hover { background: var(--yms-purple); color: var(--yms-white); }

/* Page content (pages, posts, fallbacks) */
.site-main { display: block; min-height: 40vh; }
.site-main:focus { outline: none; }
.content-page { padding-block: 2.5rem 3.5rem; }
.content-page__title { margin-bottom: 1.25rem; }
.entry-content { max-width: 52rem; }
.entry-content > * + * { margin-top: 1em; }
.entry-content img { border-radius: var(--yms-radius); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--yms-line); text-align: left; }

.not-found { padding-block: 4rem 5rem; text-align: center; }
.not-found .site-search { margin: 1.5rem auto 0; max-width: 32rem; }

/* Breadcrumb (product and category pages) */
.yms-breadcrumb { margin: 1rem 0 2.2rem; }
.yms-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.5rem; margin: 0; padding: 0; list-style: none; font-size: 0.8125rem; line-height: 1.5; }
.yms-breadcrumb li { display: inline-flex; align-items: center; gap: 0.5rem; color: rgba(37, 38, 43, 0.7); }
.yms-breadcrumb li + li::before { content: "›"; color: rgba(37, 38, 43, 0.45); }
.yms-product-page--brand .yms-breadcrumb li + li::before { content: "/"; }
.yms-breadcrumb a { color: inherit; text-decoration: none; }
.yms-breadcrumb a:hover { color: var(--yms-grey-900); text-decoration: underline; }
.yms-breadcrumb [aria-current] { color: var(--yms-grey-900); }

/* Brand store logos (product and category pages) */
.yms-brand-logo img { display: block; box-sizing: content-box; width: 96px; height: auto; padding: 9px 12px; border-radius: 4px; background: #26242a; }
.yms-brand-wordmark { font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; font-weight: 600; letter-spacing: -0.035em; color: #29252d; }
