/*
 * POLYALIS Presence V1 - base foundation
 *
 * Isolated from Presence V0.
 */

/* Sora - identity / display */

@font-face {
  font-family: "Sora";
  src: url("../../fonts/v1/sora/Sora-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("../../fonts/v1/sora/Sora-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* Commissioner - content / interface */

@font-face {
  font-family: "Commissioner";
  src: url("../../fonts/v1/commissioner/Commissioner-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Commissioner";
  src: url("../../fonts/v1/commissioner/Commissioner-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Commissioner";
  src: url("../../fonts/v1/commissioner/Commissioner-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* Box model */

html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Document */

body {
  margin: 0;
  font-family: var(--presence-v1-font-body);
  font-weight: var(--presence-v1-font-weight-regular);
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* Display typography */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-block-start: 0;
  font-family: var(--presence-v1-font-display);
  font-weight: var(--presence-v1-font-weight-bold);
  line-height: 1.15;
}

/* Media */

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/* Controls */

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* Links */

a {
  color: inherit;
}

/* Keyboard accessibility */

:focus-visible {
  outline: 3px solid var(--presence-v1-color-accent);
  outline-offset: 3px;
}

/* Utility */

[hidden] {
  display: none !important;
}

.v1-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* 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;
  }
}
