/* relationprint website visual standard · 21 November 2026.
   Shared meanings and measurements. Page styles retain their content layouts. */
:root {
  --rp-signature-violet: #7046b5;
  --rp-action-violet: var(--rp-signature-violet);
  --rp-reading-ink: #252525;
  --rp-supporting-ink: #575757;
  --rp-structure: #d5d5d5;
  --rp-paper: #fff;
  --rp-ui-radius: .75rem;
  --rp-control-radius: .5rem;
  --rp-paper-radius: 0;
  --rp-eyebrow-size: .875rem;
  --rp-focus-width: 3px;
  --rp-focus-offset: 4px;
  --rp-standard-reveal-height: 8rem;
  --rp-reveal-clearance: 2rem;
  --rp-reveal-side-feather: 1rem;
}

@media (min-width: 48rem) {
  :root {
    --rp-standard-reveal-height: 12rem;
    --rp-reveal-clearance: 3rem;
    --rp-reveal-side-feather: 1.5rem;
  }
}

/* An outer focus ring has a distinct job from a component's own border. */
:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline-width: var(--rp-focus-width);
  outline-offset: var(--rp-focus-offset);
}

/* Paper and interface containers have deliberately different shape roles. */
.rp-ui-card { border-radius: var(--rp-ui-radius); }
.rp-paper-preview { border-radius: var(--rp-paper-radius); }
.rp-control { border-radius: var(--rp-control-radius); }

/* The art stays within this physical opening, including during overscroll.
   Its center retains the supplied graphite contrast; only the edges fade. */
html body[data-watermark] main#main .rp-threshold-reveal {
  position: relative;
  height: var(--rp-standard-reveal-height);
  margin-block: var(--rp-reveal-clearance);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  pointer-events: none;
  -webkit-clip-path: inset(0);
  clip-path: inset(0);
  --rp-reveal-height: var(--rp-standard-reveal-height);
  --shared-reveal-height: var(--rp-standard-reveal-height);
}

html body[data-watermark] main#main .rp-threshold-reveal::before,
html body[data-watermark] main#main .rp-threshold-reveal::after {
  position: absolute;
  /* Cover fractional clip pixels before feathering into the artwork. */
  inset: -1px;
  display: block;
  content: "";
  pointer-events: none;
}

html body[data-watermark] main#main .rp-threshold-reveal::before {
  z-index: 1;
  background: linear-gradient(to bottom,
    #fff 0%,
    #fff 3px,
    rgb(255 255 255 / .9) 6.25%,
    rgb(255 255 255 / .5) 12.5%,
    rgb(255 255 255 / .1) 18.75%,
    transparent 25%,
    transparent 75%,
    rgb(255 255 255 / .1) 81.25%,
    rgb(255 255 255 / .5) 87.5%,
    rgb(255 255 255 / .9) 93.75%,
    #fff calc(100% - 3px),
    #fff 100%);
}

html body[data-watermark] main#main .rp-threshold-reveal::after {
  z-index: 2;
  background: linear-gradient(to right,
    #fff,
    rgb(255 255 255 / .5) calc(var(--rp-reveal-side-feather) / 2),
    transparent var(--rp-reveal-side-feather),
    transparent calc(100% - var(--rp-reveal-side-feather)),
    rgb(255 255 255 / .5) calc(100% - var(--rp-reveal-side-feather) / 2),
    #fff);
}

/* The reveal owns the space at this transition. Existing section padding
   remains in use elsewhere, rather than accumulating beside the window. */
html body[data-site-polish][data-watermark] main#main [data-reveal-next="section"] {
  margin-block-start: 0;
  padding-block-start: 0;
  border-block-start: 0;
}

html body[data-site-polish][data-watermark] main#main [data-reveal-next="container"] {
  margin-block-start: 0;
}

/* With reduced motion, the same feathered crop travels with the page.
   It no longer behaves as a fixed background behind the scrolling content. */
@media (prefers-reduced-motion: reduce) {
  html body[data-watermark] main#main .rp-threshold-reveal > .rp-watermark-field {
    position: absolute;
    inset: 50% 0 auto;
    width: 100%;
    height: 100vh;
    height: 100lvh;
    transform: translateY(-50%);
    animation: none;
    transition: none;
  }
}

@media print, (forced-colors: active), (prefers-contrast: more) {
  html body[data-watermark] main#main .rp-threshold-reveal {
    display: none !important;
  }
}

/* The clipped opening scrolls with the paper. The art follows the same
   document paint path, moving by the inverse scroll distance, so it keeps
   its stationary reveal without the browser's viewport-fixed layer.
   A stable virtual scrollport prevents toolbar-height changes from
   redefining the timeline. Unsupported browsers keep the fixed fallback. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) and (view-timeline-inset: 0 calc(100% - 100lvh)) and (animation-range: cover 0% cover 100%) {
    html body[data-watermark] main#main .rp-threshold-reveal {
      view-timeline-name: --rp-graphite-reveal;
      view-timeline-axis: block;
      view-timeline-inset: 0 calc(100% - 100lvh);
    }

    html body[data-watermark] main#main .rp-threshold-reveal > :is(.rp-watermark-field, .snap-results-art) {
      position: absolute;
      inset: 0 0 auto;
      width: 100%;
      height: 100lvh;
      animation: rp-graphite-screen-plane 1s linear both;
      animation-timeline: --rp-graphite-reveal;
      animation-range: cover 0% cover 100%;
    }
  }
}

@keyframes rp-graphite-screen-plane {
  from { transform: translateY(-100lvh); }
  to { transform: translateY(var(--rp-standard-reveal-height)); }
}
