@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --color-white: #f4f1ea;
  --color-soft-white: rgba(244, 241, 234, 0.84);
  --color-black: #030303;
  --color-panel: rgba(8, 8, 8, 0.72);
  --color-panel-heavy: rgba(4, 4, 4, 0.88);

  --font-main: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --tracking-wide: 0.46em;
  --tracking-medium: 0.28em;
  --tracking-small: 0.16em;

  --ease-cinema: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #000;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-main);
  font-weight: 300;
  color: var(--color-white);
  background: #000;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
}

::selection {
  background: rgba(255, 255, 255, 0.22);
  color: white;
}

/* ACCESSIBILITY */

.skip-link {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 9999;
  padding: 13px 17px 12px;
  border-radius: 12px;
  background: rgba(4, 4, 4, 0.84);
  color: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 18px 64px rgba(0, 0, 0, 0.62),
    0 0 42px rgba(255, 255, 255, 0.045);
  transform: translateY(-150%);
  opacity: 0;
  pointer-events: none;
  filter: blur(0.1px);
  transition:
    opacity 260ms var(--ease-cinema),
    transform 260ms var(--ease-cinema),
    box-shadow 260ms ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 22px 78px rgba(0, 0, 0, 0.72),
    0 0 0 4px rgba(255, 255, 255, 0.055),
    0 0 46px rgba(255, 255, 255, 0.08);
}

body:not(.is-keyboard-user) a:focus,
body:not(.is-keyboard-user) a:focus-visible,
body:not(.is-keyboard-user) button:focus,
body:not(.is-keyboard-user) button:focus-visible,
body:not(.is-keyboard-user) [tabindex]:focus,
body:not(.is-keyboard-user) [tabindex]:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

body.is-keyboard-user a:focus-visible,
body.is-keyboard-user button:focus-visible,
body.is-keyboard-user [tabindex]:focus-visible {
  outline: none;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 0 5px rgba(255, 255, 255, 0.055),
    0 0 38px rgba(255, 255, 255, 0.08);
}

body.is-keyboard-user .work-card:focus-visible {
  box-shadow:
    0 24px 86px rgba(0, 0, 0, 0.58),
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    0 0 0 5px rgba(255, 255, 255, 0.055),
    0 0 52px rgba(255, 255, 255, 0.075);
}

#main-content:focus {
  outline: none !important;
  box-shadow: none !important;
}