/* Aspekta Variable | SIL OFL 1.1 | Ivo Dolenc | https://github.com/ivodolenc/aspekta */

@font-face {
  font-family: "Aspekta Variable";
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url("fonts/AspektaVF.woff2") format("woff2");
}

:root {
  --bg: #0f0f0f;
  --text: #ffffff;
  --faint: rgb(255 255 255 / 30%);
  --hover: #ffffff;
  --frame: 1920px;
  --pad-x: 24px;
  --section-pad-top: 32px;
  --title-size: 48px;
  --title-leading: 56px;
  --label-size: 24px;
  --label-leading: 32px;
  --body-size: 28px;
  --body-leading: 36px;
  --role-gap: 20px;
  --pad-bottom: 32px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

html.is-scrolling {
  scroll-snap-type: none;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Aspekta Variable", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  width: min(100%, var(--frame));
  margin-inline: auto;
}

.panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--section-pad-top) var(--pad-x) var(--pad-bottom);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.panel-body {
  margin-top: auto;
  opacity: 1;
}

body::before {
  content: "";
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--fade-end, 240px);
  background: linear-gradient(
    to bottom,
    var(--bg) 0,
    var(--bg) calc(var(--section-pad-top) + var(--label-leading) + 12px),
    rgb(15 15 15 / 78%) 42%,
    transparent 100%
  );
  pointer-events: none;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  width: 100%;
  font-size: var(--title-size);
  font-weight: 700;
  line-height: var(--title-leading);
  letter-spacing: -1.8px;
}

.label {
  position: fixed;
  z-index: 2;
  top: var(--section-pad-top);
  left: max(var(--pad-x), calc((100vw - var(--frame)) / 2 + var(--pad-x)));
  margin: 0;
  font-size: var(--label-size);
  font-weight: 500;
  line-height: var(--label-leading);
  letter-spacing: -0.5px;
  opacity: 0;
  pointer-events: none;
}

.panel.is-current .label {
  opacity: 0.4;
}

.pagination {
  position: fixed;
  z-index: 2;
  top: var(--section-pad-top);
  right: max(var(--pad-x), calc((100vw - var(--frame)) / 2 + var(--pad-x)));
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--label-leading);
}

.pagination button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  opacity: 0.1;
  cursor: pointer;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.pagination button[aria-current="true"] {
  opacity: 1;
}

.pagination button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

.copy,
.roles,
.roles li,
.roles a,
.contact-links,
.contact-links a {
  font-size: var(--body-size);
  font-weight: 700;
  line-height: var(--body-leading);
  letter-spacing: -0.75px;
}

.contact-links a:first-child {
  font-weight: 600;
}

.copy {
  display: flex;
  flex-direction: column;
  gap: var(--body-leading);
}

.roles,
.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--role-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-links {
  align-items: flex-start;
}

.contact-links a {
  width: fit-content;
}

.roles li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.roles a {
  text-decoration: none;
}

.roles span {
  font-weight: 550;
  color: var(--faint);
  white-space: nowrap;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
}

a:hover {
  color: var(--hover);
}

a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 0.15em;
}

@media (prefers-reduced-motion: reduce) {
  .pagination button {
    transition: none;
  }
}

@media (min-width: 720px) {
  :root {
    --pad-x: 32px;
    --section-pad-top: 32px;
    --pad-bottom: 32px;
    --title-size: 56px;
    --title-leading: 68px;
    --label-size: 24px;
    --label-leading: 32px;
    --body-size: 40px;
    --body-leading: 48px;
    --role-gap: 24px;
  }
}

@media (min-width: 1100px) {
  :root {
    --title-size: 80px;
    --title-leading: 96px;
    --label-size: 24px;
    --label-leading: 32px;
    --body-size: 64px;
    --body-leading: 68px;
    --role-gap: 36px;
  }
}
