/* Base: reset, typography defaults, focus, reduced motion. */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1, h2, h3, p {
  margin: 0;
}

/* Empty modular slots stay invisible even when a class sets `display` */
[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

/* House mark (D-028) */
.mark {
  font-family: var(--font-serif);
  font-weight: var(--mark-weight);
  /* 11vw cap keeps PASSION inside narrow screens when the visitor's
     text size is enlarged; it never applies at default text size. */
  font-size: min(var(--mark-size), 11vw);
  line-height: var(--lh-tight);
  letter-spacing: var(--mark-tracking);
  text-transform: uppercase;
  /* balances the trailing letter-space so the mark centres optically */
  padding-inline-start: var(--mark-tracking);
}

.mark__word {
  white-space: nowrap;
}

/* Deliberate break (PLUSH / PASSION) on narrow screens; never mid-word */
@media (max-width: 46rem) {
  .mark__word {
    display: block;
  }
}

/* Jost utility text */
.label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  line-height: 1.4;
}

/* Focus: visible on every interactive element, on every ground */
:focus-visible {
  outline: var(--focus-width) solid var(--bronze);
  outline-offset: var(--focus-offset);
  border-radius: 1px;
}

.on-dark :focus-visible {
  outline-color: var(--bronze-on-dark);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
