/* RWC website - base layer: resets, fonts, defaults. Mobile-first. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter/inter-700.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, blockquote, figure { margin: 0; }
img, svg { display: block; max-width: 100%; }

html {
  font-size: 16px; /* root anchor for the rem ramp */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--rwc-font-family-base);
  font-weight: var(--rwc-font-weight-regular);
  font-size: var(--rwc-type-body-size);
  line-height: var(--rwc-type-body-lh);
  color: var(--rwc-color-text-body);
  background: var(--rwc-color-surface-page);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--rwc-color-brand-navy); }

a { color: var(--rwc-color-brand-teal-ink); }

/* 1.11 UI copy rule: a link never relies on colour alone */
.body-copy a,
.rwc-type-treatment-link {
  color: var(--rwc-color-brand-teal-ink);
  text-decoration: underline;
  text-decoration-thickness: var(--rwc-layout-hairline);
  text-underline-offset: 0.15em;
}
.body-copy a:hover,
.rwc-type-treatment-link:hover {
  color: var(--rwc-color-brand-teal-ink-hover);
}

ul, ol { padding-left: var(--rwc-space-lg); }

/* 1.8 Focus indicator - one rule everywhere. Two-tone: navy outline plus
   an inner white ring, since no single colour clears 3:1 against both
   ivory and navy. Never remove without this replacement. */
:focus-visible {
  outline: var(--rwc-layout-focus-ring-width) solid var(--rwc-color-brand-navy);
  outline-offset: var(--rwc-layout-focus-ring-offset);
  box-shadow: 0 0 0 var(--rwc-layout-focus-ring-offset) var(--rwc-color-surface-card);
  border-radius: var(--rwc-radius-sm);
}

/* Type roles */
.rwc-type-eyebrow {
  font-size: var(--rwc-type-eyebrow-size);
  font-weight: var(--rwc-type-eyebrow-weight);
  line-height: var(--rwc-type-eyebrow-lh);
  letter-spacing: var(--rwc-type-eyebrow-tracking);
  text-transform: uppercase; /* the only string this rule applies to */
  color: var(--rwc-color-brand-teal-ink);
}
.rwc-type-display { font-size: var(--rwc-type-display-size); font-weight: var(--rwc-type-display-weight); line-height: var(--rwc-type-display-lh); letter-spacing: var(--rwc-type-display-tracking); }
h1, .rwc-type-h1 { font-size: var(--rwc-type-h1-size); font-weight: var(--rwc-type-h1-weight); line-height: var(--rwc-type-h1-lh); letter-spacing: var(--rwc-type-h1-tracking); }
h2, .rwc-type-h2 { font-size: var(--rwc-type-h2-size); font-weight: var(--rwc-type-h2-weight); line-height: var(--rwc-type-h2-lh); letter-spacing: var(--rwc-type-h2-tracking); }
h3, .rwc-type-h3 { font-size: var(--rwc-type-h3-size); font-weight: var(--rwc-type-h3-weight); line-height: var(--rwc-type-h3-lh); letter-spacing: var(--rwc-type-h3-tracking); }
h4, .rwc-type-h4 { font-size: var(--rwc-type-h4-size); font-weight: var(--rwc-type-h4-weight); line-height: var(--rwc-type-h4-lh); letter-spacing: var(--rwc-type-h4-tracking); }
.rwc-type-body-lg { font-size: var(--rwc-type-body-lg-size); line-height: var(--rwc-type-body-lg-lh); }
.rwc-type-body-sm { font-size: var(--rwc-type-body-sm-size); line-height: var(--rwc-type-body-sm-lh); }
.rwc-type-label { font-size: var(--rwc-type-label-size); font-weight: var(--rwc-type-label-weight); line-height: var(--rwc-type-label-lh); letter-spacing: var(--rwc-type-label-tracking); }
.rwc-type-meta { font-size: var(--rwc-type-meta-size); line-height: var(--rwc-type-meta-lh); color: var(--rwc-color-text-muted); }
.rwc-type-quote { font-size: var(--rwc-type-quote-size); font-weight: var(--rwc-type-quote-weight); line-height: var(--rwc-type-quote-lh); letter-spacing: var(--rwc-type-quote-tracking); }
.rwc-type-tabular { font-variant-numeric: tabular-nums; }

/* Layout helpers */
.rwc-container {
  max-width: var(--rwc-layout-container-max);
  margin-inline: auto;
  padding-inline: var(--rwc-layout-gutter);
}
.rwc-content {
  max-width: var(--rwc-layout-content-max);
}
.rwc-section {
  padding-block: var(--rwc-space-3xl);
}
@media (min-width: 1024px) {
  .rwc-section { padding-block: var(--rwc-space-4xl); }
}
.rwc-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Motion: transitions only, respecting reduced-motion as a requirement */
@media (prefers-reduced-motion: no-preference) {
  .rwc-transition {
    transition-duration: var(--rwc-motion-duration-base);
    transition-timing-function: var(--rwc-motion-easing-standard);
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}
