/* ═══════════════════════════════════════════════════════════
   ZOHAR-NY — BASE LAYER (global reset + typography)
   Loaded site-wide — the base reset/typography layer. Without this, native
   browser/WP defaults leak through wherever a component sheet
   doesn't cover: blue underlined links, default-serif page titles,
   shallow native buttons/inputs, unstyled body copy.

   Rules here are intentionally LOW specificity (element selectors)
   so every component sheet (components.css, woocommerce.css, …)
   overrides them cleanly. Tokens: see style.css :root.
   ═══════════════════════════════════════════════════════════ */

/* ── Reset ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── Headings — brand serif, never default Times ──────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-md);
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

/* ── Body copy ────────────────────────────────────────────── */
p {
  margin: 0 0 var(--space-md);
  text-wrap: pretty;
}

p:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; }

/* ── Links — brand gold, never browser blue ───────────────── */
/* The single biggest post-migration tell was native blue underlined
   links. Default to gold + no underline; components that want dark
   chrome links (header nav, footer) already set their own color and
   win on class specificity. */
a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--color-gold-hover);
}

/* Visible focus ring for keyboard users (a11y). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* ── Media ─────────────────────────────────────────────────── */
img,
picture,
svg,
video {
  max-width: 100%;
  height: auto;
}

svg { vertical-align: middle; }

/* ── Lists (prose) ─────────────────────────────────────────── */
ul, ol {
  margin: 0 0 var(--space-md);
  padding-inline-start: 1.4em;
}

li { margin-bottom: 0.35em; }

/* ── Form controls — brand baseline, never native chrome ───── */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  margin: 0;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* Native text inputs / selects: warm field, ghost border, brand radius.
   Component sheets refine per-context (PDP variation select, cart qty, …). */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
input[type="url"],
select,
textarea {
  background-color: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.6em 0.85em;
  line-height: 1.4;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(117, 90, 40, 0.12);
}

::placeholder { color: var(--color-text-soft); opacity: 1; }

/* ── Tables (cart, order review) ───────────────────────────── */
table {
  border-collapse: collapse;
  width: 100%;
}

/* ── Selection ─────────────────────────────────────────────── */
::selection {
  background-color: var(--color-gold-light);
  color: var(--color-text);
}

/* ── Screen-reader-only utility (used by skip-link etc.) ───── */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
