/* ==========================================================================
   Untangled Space — placemarker holding page
   Full artwork always visible; page bg matched to image so letterboxing blends.
   ========================================================================== */

:root {
  /* Sampled from placemarker artwork corners */
  --color-bg: #F0EDF4;
  --color-plum: #582C40;
  --color-sage: #3B5249;
  --color-clay: #B87D67;
  --color-text: #2C302E;

  --font-body: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --focus-ring: 2px solid var(--color-plum);
  --focus-offset: 3px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  height: 100%;
  background-color: var(--color-bg);
  /* Prevent mobile rubber-band revealing a mismatched edge */
  overflow: hidden;
}

body {
  margin: 0;
  height: 100%;
  /* svh = currently visible viewport (accounts for mobile browser chrome) */
  height: 100svh;
  max-height: 100svh;
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--color-plum);
  background-color: var(--color-bg);
}

a {
  color: var(--color-plum);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* --------------------------------------------------------------------------
   Holding page — entire placemarker visible in the viewport
   -------------------------------------------------------------------------- */
.holding {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-height: 100svh;
  padding: 0;
  overflow: hidden;
  background-color: var(--color-bg);
}

.holding__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  /* contain keeps logo + under-construction message fully on screen */
  object-fit: contain;
  object-position: center;
}

/* Visually hidden but available to assistive tech & text browsers */
.holding__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@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;
  }
}
