* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: #c6e2ee;
  color: #20251e;
  font-family: system-ui, sans-serif;
}

body {
  margin: 0;
}

.page {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-block-size: 100vh;
  min-block-size: 100dvh;
  padding: 1.25rem;
  padding:
    max(1.25rem, env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    max(1.25rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
}

.painting {
  position: absolute;
  inset: 0;
  z-index: -1;
  inline-size: 100%;
  block-size: 100%;
  pointer-events: none;
}

.painting__image {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: 50% 70%;
}

@media (max-width: 700px) and (orientation: portrait) {
  .painting__image {
    object-position: center;
  }
}

.contact {
  position: relative;
  inline-size: min(20rem, 100%);
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.contact__mark {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

/* Keep the address as real text for assistive technology and reader modes. */
.contact__address {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Prioritize readable text when the visitor requests stronger contrast. */
@media (forced-colors: active), (prefers-contrast: more) {
  .contact {
    padding: 1.25rem 1rem;
    border: 1px solid CanvasText;
    border-radius: 0.25rem;
    background: Canvas;
    color: CanvasText;
  }

  .contact__address {
    position: static;
    inline-size: auto;
    block-size: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .contact__mark {
    display: none;
  }
}

@media print {
  html {
    background: white;
    color: black;
  }

  .page {
    min-block-size: auto;
    padding: 0;
  }

  .painting,
  .contact__mark {
    display: none;
  }

  .contact__address {
    position: static;
    inline-size: auto;
    block-size: auto;
    clip-path: none;
    white-space: normal;
  }
}
