/* Shared keyboard visibility and readable supporting copy. Loaded last. */
:root { --header-clearance: 110px; }
html { scroll-padding-top: var(--header-clearance); }
body :is(a, button, input, select, textarea, summary, [tabindex]) { scroll-margin-block: 12px; }
body :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #594565;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #f6f3ec;
}
.skip-link { max-width: calc(100vw - 40px); white-space: normal; font-size: 16px; line-height: 1.5; }
.skip-link:focus { background: #f6f3ec; color: #382f45; }
.site-header nav :is(a, button):is(:hover, :focus-visible, :active) {
  /* Keep the scene's contrast-safe background during every interaction state. */
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-footer .footer-bottom { opacity: 1; }
.site-footer .footer-links { min-width: 0; }
.site-footer .footer-links a { overflow-wrap: anywhere; }

/* Opacity is not the only indication of the selected story chapter. */
.journey-bottom .chapters button, .journey-bottom .story-transport .scroll-instruction { opacity: 1; }
.journey-bottom .chapters button[aria-current="step"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.journey-bottom .chapters button { min-height: 36px; }
.journey-bottom .story-transport .scroll-instruction:is(:hover, :focus-visible, :active) {
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* A grain overlay would reduce the guaranteed contrast during transitions. */
.stage-grain { display: none; }
.stage[data-playing="false"] .physical-scene[aria-hidden="false"] { opacity: 1 !important; }
.timeline input { min-height: 24px; }
.journey-bottom .story-page i, .process-disclosure, .how-steps .step-number { opacity: 1; }
.story-copy p, .reconstruction-note, .physical-status { opacity: 1; }
.keepsake-section p a { text-decoration: underline; text-underline-offset: 3px; }
.process-disclosure { font-size: 14px; line-height: 1.8; }

/* Size/depth, delivery and photo notes must remain comfortably readable. */
.product-configuration .price-context,
.product-configuration .option-help,
.product-configuration .product-facts,
.product-configuration .selection-summary,
.product-configuration .selection-summary > #selected-dimensions,
.product-configuration .option-tile small,
.relief-gallery .photo-note,
.relief-gallery .product-figure figcaption,
.relief-gallery .gallery-position,
.relief-gallery .gallery-thumbnail { font-size: 13px; line-height: 1.6; }
.product-configuration .product-details-accordion details p { font-size: 14px; }
.product-configuration .product-facts { gap: 12px; }
.product-configuration .frame-options { row-gap: 12px; }
.relief-gallery .gallery-thumbnail { min-width: 0; }
.option-group legend > span, .process-columns article > span { color: #625568; }

@media (max-width: 900px) { :root { --header-clearance: 94px; } }
@media (max-width: 600px) {
  .journey-bottom .chapters { gap: 6px; }
  .journey-bottom .chapters button { flex: 1; min-width: 0; min-height: 44px; white-space: normal; font-size: 12px; line-height: 1.35; }
  .journey-bottom .story-transport .scroll-instruction { font-size: 12px; }
}
@media (max-height: 450px) {
  /* A fixed header otherwise covers much of a magnified/landscape viewport. */
  .site-header { position: absolute; }
  :root { --header-clearance: 16px; }
}
@media (forced-colors: active) {
  body :is(a, button, input, select, textarea, summary):focus-visible { outline-color: Highlight; box-shadow: none; }
  .skip-link:focus { background: Canvas; color: CanvasText; }
  .journey-bottom .chapters button[aria-current="step"] { border-bottom: 2px solid Highlight; }
}

@media print {
  .site-header { position: static; }
}
