/* Existing Crux Gravis geometry; palette from src/web/src/styles.scss. */
:root {
  color-scheme: light dark;
  --canvas: #f5f0e7;
  --ink: #24211d;
  --quiet: #6d665b;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--canvas);
  color: var(--ink);
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #191714;
    --ink: #eee7da;
    --quiet: #968c7d;
  }
}

* { box-sizing: border-box; }
body { margin: 0; }

main {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: 3rem max(1.5rem, env(safe-area-inset-right))
    3rem max(1.5rem, env(safe-area-inset-left));
  place-items: center;
}

.lockup { width: min(100%, 24rem); text-align: center; }
h1 { margin: 0; font-weight: 400; }

.wordmark {
  display: block;
  width: 100%;
  aspect-ratio: 229.43 / 84;
  background: currentColor;
  -webkit-mask: url("/logo.svg") center / contain no-repeat;
  mask: url("/logo.svg") center / contain no-repeat;
}

.status {
  margin: clamp(3.5rem, 9vh, 5.5rem) 0 0;
  color: var(--quiet);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 1.6;
  text-indent: 0.2em;
}

.status a { color: inherit; text-underline-offset: 0.3em; }
.status a:focus-visible { outline: 2px solid currentColor; outline-offset: 0.5rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (forced-colors: active) {
  .wordmark { display: none; }
  .visually-hidden {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    font-family: Georgia, serif;
    font-size: clamp(2rem, 8vw, 3rem);
  }
}
